testsuite: Fix gdb.base/bang.exp for remote stubs without exit
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
686d4def
PA
12013-10-25 Pedro Alves <palves@redhat.com>
2
3 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
4 static field value.
5 (cp_print_static_field): If the value is entirely optimized out,
6 print <optimized out> here.
7 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
8 static field value.
9 * p-valprint.c (pascal_object_print_static_field): If the value is
10 entirely optimized out, print <optimized out> here.
11 * valops.c (do_search_struct_field)
12 (value_struct_elt_for_reference): No longer handle a NULL static
13 field value.
14 * value.c (value_static_field): Return an optimized out value
15 instead of NULL.
16
6c177e28
YQ
172013-10-25 Yao Qi <yao@codesourcery.com>
18
19 * remote.c (remote_traceframe_info): Return early if
20 traceframe is not selected.
21
98322bfa
YQ
222013-10-25 Yao Qi <yao@codesourcery.com>
23
24 * tracepoint.c (traceframe_fun): Remove.
25 (traceframe_sal): Remove.
26 (set_traceframe_context): Add local variables.
27
6ba1f115
JB
282013-10-25 Joel Brobecker <brobecker@adacore.com>
29
30 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
31 and parameter name.
32
bbe769cc
MR
332013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
34
35 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
36 failure from register information collection.
37
72ee4495 382013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
39
40 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
41 member.
42 (linux_corefile_thread_callback): Update accordingly.
43 (linux_make_corefile_notes): Likewise.
44
98882a26
PA
452013-10-24 Pedro Alves <palves@redhat.com>
46
47 * NEWS (New options): Mention set/show startup-with-shell.
48 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
49 instead of 3.
50 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
51 startup-with-shell'.
52 (show_startup_with_shell): New function.
53 (_initialize_fork_child): Register the set/show startup-with-shell
54 commands.
55 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
56 * inf-ttrace.c (inf_ttrace_him): Remove comment.
57 * procfs.c (procfs_init_inferior): Remove comment.
58 * infcmd.c (startup_with_shell): New global.
59 * inferior.h (startup_with_shell): Declare global.
60 (STARTUP_WITH_SHELL): Delete.
61 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
62
c9737c08
PA
632013-10-23 Pedro Alves <palves@redhat.com>
64
65 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
66 * common/signals.c: Include "gdb_assert.h".
67 (signals): New field 'symbol'.
68 (SET): Use the 'symbol' parameter.
69 (gdb_signal_to_symbol_string): New function.
70 * infrun.c (handle_inferior_event) <random signal>: In debug
71 output, print the random signal enum as string in addition to its
72 number.
73 * target/waitstatus.c (target_waitstatus_to_string): Print the
74 signal's enum value as string instead of the (POSIX) signal name.
75
f60db4f0
GB
762013-10-23 Gary Benson <gbenson@redhat.com>
77
78 PR 16013
79 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
80 from 32 to 18. Adjusted fscanf format string accordingly.
81 (Avoids leaving cmd unterminated.)
82 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
83 trun, retn or extra. (Avoids leaving extra unterminated.) Check
84 that local_address and remote_address will not overflow.
85 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
86 leaving dependencies unterminated. Parse size as "%u" to match
87 definition.
88
6d3e7a94
PA
892013-10-22 Pedro Alves <palves@redhat.com>
90
91 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
92 set ecs->random signal.
93
42ec045f
PA
942013-10-22 Pedro Alves <palves@redhat.com>
95
96 * infrun.c (keep_going): Update comments.
97
982013-10-22 Pedro Alves <palves@redhat.com>
99
100 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
101 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
102
1032013-10-22 Pedro Alves <palves@redhat.com>
104
105 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
106 GDB_EXC_BAD_ACCESS.
107 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
108 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
109 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
110 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
111 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
112 (GDB_SIGNAL_LAST): Change description string.
113 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
114 Adjust to signal renaming.
115 * darwin-nat.c (darwin_decode_message): Likewise.
116
c8fde1b1
JM
1172013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
118
119 * MAINTAINERS (Write After Approval): Add myself to the list.
120
e8369a73
AB
1212013-10-18 Andrew Burgess <aburgess@broadcom.com>
122
123 * breakpoint.c (update_watchpoint): If hardware watchpoints are
124 forced off, downgrade them to software watchpoints if possible,
125 and error out if not possible.
126 (watch_command_1): Move watchpoint type selection closer to
127 watchpoint creation, and extend the comments.
128
776f04fa
PA
1292013-10-18 Pedro Alves <palves@redhat.com>
130
131 PR gdb/16062
132 * infrun.c (handle_inferior_event): Keep going if we got a random
133 signal we should not stop for, instead of falling through to the
134 step tests.
135
0c6faab5
YQ
1362013-10-18 Yao Qi <yao@codesourcery.com>
137
138 * c-varobj.c (cplus_number_of_children): Fix indentation.
139
50b34a18
TT
1402013-10-17 Tom Tromey <tromey@redhat.com>
141
142 PR gdb/15995:
143 * printcmd.c (printcmd): Call gdb_flush.
144
5c4c8a59
TT
1452013-10-17 Tom Tromey <tromey@redhat.com>
146
147 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
148 (elf_locate_sections): Update.
149
c4124bf1
YQ
1502013-10-17 Yao Qi <yao@codesourcery.com>
151
152 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
153 * ada-varobj.c: Remove the include of ada-varobj.h.
154 (ada_varobj_get_number_of_children): Declare.
155 (ada_varobj_get_name_of_child): Make it static.
156 (ada_varobj_get_path_expr_of_child): Likewise.
157 (ada_varobj_get_value_of_child): Likewise.
158 (ada_varobj_get_type_of_child): Likewise.
159 (ada_varobj_get_value_of_array_variable): Likewise.
160 * ada-varobj.h: Remove.
161
99ad9427
YQ
1622013-10-17 Yao Qi <yao@codesourcery.com>
163
164 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
165 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
166 * ada-varobj.c: Include "varobj.h".
167 (ada_number_of_children): New. Moved from varobj.c.
168 (ada_name_of_variable, ada_name_of_child): Likewise.
169 (ada_path_expr_of_child, ada_value_of_child): Likewise.
170 (ada_type_of_child, ada_value_of_variable): Likewise.
171 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
172 (ada_varobj_ops): New.
173 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
174 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
175 * gdbtypes.h (get_target_type): Declare.
176 * varobj.c: Remove the inclusion of "ada-varobj.h" and
177 "ada-lang.h".
178 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
179 (ANONYMOUS_UNION_NAME): Likewise.
180 (get_type, get_value_type, get_target_type): Remove declarations.
181 (value_get_print_value, varobj_value_get_print_value): Likewise.
182 (c_number_of_children, c_name_of_variable): Likewise.
183 (c_name_of_child, c_path_expr_of_child): Likewise.
184 (c_value_of_child, c_type_of_child): Likewise.
185 (c_value_of_variable, cplus_number_of_children): Likewise.
186 (cplus_class_num_children, cplus_name_of_variable): Likewise.
187 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
188 (cplus_value_of_child, cplus_type_of_child): Likewise.
189 (cplus_value_of_variable, java_number_of_children): Likewise.
190 (java_name_of_variable, java_name_of_child): Likewise.
191 (java_path_expr_of_child, java_value_of_child): Likewise.
192 (java_type_of_child, java_value_of_variable): Likewise.
193 (ada_number_of_children, ada_name_of_variable): Likewise.
194 (ada_name_of_child, ada_path_expr_of_child): Likewise.
195 (ada_value_of_child, ada_type_of_child): Likewise.
196 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
197 (ada_value_has_mutated): Likewise.
198 (struct language_specific): Move it to varobj.h.
199 (CPLUS_FAKE_CHILD): Move it to varobj.h.
200 (restrict_range): Rename it varobj_restrict_range. Make it extern.
201 Callers update.
202 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
203 Make it extern.
204 (is_anonymous_child): Move it to c-varobj.c and rename to
205 varobj_is_anonymous_child. Caller update.
206 (get_type): Move it to c-varobj.c.
207 (get_value_type): Rename it varobj_get_value_type. Make it
208 extern.
209 (get_target_type): Move it gdbtypes.c.
210 (varobj_formatted_print_options): New function.
211 (value_get_print_value): Rename it to
212 varobj_value_get_print_value and make it extern.
213 (varobj_value_is_changeable_p): Make it extern.
214 (adjust_value_for_child_access): Move it to c-varobj.c.
215 (default_value_is_changeable_p): Rename it to
216 varobj_default_value_is_changeable_p. Make it extern.
217 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
218 (c_name_of_child, c_path_expr_of_child): Likewise.
219 (c_value_of_child, c_type_of_child): Likewise.
220 (c_value_of_variable, cplus_number_of_children): Likewise.
221 (cplus_class_num_children, cplus_name_of_variable): Likewise.
222 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
223 (cplus_value_of_child, cplus_type_of_child): Likewise.
224 (cplus_value_of_variable): Likewise.
225 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
226 (java_name_of_child, java_path_expr_of_child): Likewise.
227 (java_value_of_child, java_type_of_child): Likewise.
228 (java_value_of_variable): Likewise.
229 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
230 (ada_name_of_child, ada_path_expr_of_child): Likewise.
231 (ada_value_of_child, ada_type_of_child): Likewise.
232 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
233 (ada_value_has_mutated): Likewise.
234 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
235 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
236 (c_varobj_ops, cplus_varobj_ops): Declare.
237 (java_varobj_ops, ada_varobj_ops): Declare.
238 (varobj_default_value_is_changeable_p): Declare.
239 (varobj_value_is_changeable_p): Declare.
240 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
241 (varobj_get_path_expr_parent): Declare.
242 (varobj_value_get_print_value): Declare.
243 (varobj_formatted_print_options): Declare.
244 (varobj_restrict_range): Declare.
245
c8a62302
LM
2462013-10-17 Luis Machado <lgustavo@codesourcery.com>
247
248 * target/waitstatus.h (target_waitkind): Remove spurious
249 character from the comments.
250
eade6471
JB
2512013-10-17 Joel Brobecker <brobecker@adacore.com>
252
253 * gdbarch.sh (get_longjmp_target): Add method documentation.
254 * gdbarch.h: Regenerate.
255
5411b26c
TT
2562013-10-16 Tom Tromey <tromey@redhat.com>
257
258 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
259 label.
260
87326c87
LM
2612013-10-16 Luis Machado <lgustavo@codesourcery.com>
262
263 * gcore.in: Call GDB using the full path to the gcore script.
264 Error out if the GDB binary is not found.
265
fd0a4d76
SDJ
2662013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
267
268 PR gdb/16014
269 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
270 sizeof.
271
d92f7ee3
SDJ
2722013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
273
274 PR gdb/16042
275 * target.c (target_disable_btrace): Fix invalid return value for
276 void function.
277 (target_teardown_btrace): Likewise.
278
bb5ce47a
YQ
2792013-10-14 Yao Qi <yao@codesourcery.com>
280
281 * varobj.c (struct varobj): Move most of the fields to
282 varobj.h.
283 (struct varobj_dynamic): New struct.
284 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
285 (varobj_has_more): Likewise.
286 (dynamic_varobj_has_child_method): Likewise.
287 (update_dynamic_varobj_children): Likewise.
288 (varobj_get_num_children): Likewise.
289 (varobj_list_children, varobj_pretty_printed_p): Likewise.
290 (install_new_value_visualizer): Likewise.
291 (install_new_value_visualizer, install_new_value): Likewise.
292 (varobj_update, new_variable, free_variable): Likewise.
293 (my_value_of_variable, value_get_print_value): Likewise.
294 (install_visualizer): Change the type of parameter 'var' to
295 'struct varobjd_dynamic *'. Callers update.
296 * varobj.h (struct varobj): Moved from varobj.c.
297 (struct varobj) <dynamic>: New field.
298
0b76b0ce
SL
2992013-10-13 Sandra Loosemore <sandra@codesourcery.com>
300
301 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
302 as the preferred name of r30.
303 * nios2-linux-tdep.c (reg_offsets): Likewise.
304 * features/nios2-cpu.xml: Likewise.
305 * features/nios2-linux.c: Regenerated.
306 * features/nios2.c: Regenerated.
307 * regformats/nios2-linux.dat: Regenerated.
308
4856b6bc
JK
3092013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 Canonicalize directories for EXEC_FILENAME.
312 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
313 exec_filename.
314 * utils.c (gdb_realpath_keepfile): New function.
315 * utils.h (gdb_realpath_keepfile): New declaration.
316
9b557b58
DE
3172013-10-11 Doug Evans <dje@google.com>
318
319 * Makefile.in (GDBFLAGS): New variable.
320 (run): New rule.
321
ce13fade
JB
3222013-10-11 Joel Brobecker <brobecker@adacore.com>
323
324 * NEWS: Add entry documenting the new "-catch-assert" and
325 "-catch-exception" GDB/MI commands.
326
349774ef
JB
3272013-10-11 Joel Brobecker <brobecker@adacore.com>
328
329 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
330 "enabled".
331 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
332 "enabled". Set B->ENABLE_STATE accordingly.
333 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
334 ada-lang.c.
335 (create_ada_exception_catchpoint): Add declaration.
336 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
337 (create_ada_exception_catchpoint): Make non-static. Add new
338 parameter "disabled". Use it in call to
339 init_ada_exception_breakpoint.
340 (catch_ada_exception_command): Add parameter "enabled" in call
341 to create_ada_exception_catchpoint.
342 (catch_assert_command): Likewise.
343
344 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
345 Add declarations.
346 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
347 "catch-exception" commands.
348 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
349 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
350
761269c8
JB
3512013-10-11 Joel Brobecker <brobecker@adacore.com>
352
353 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
354 "enum exception_catchpoint_kind". Replace the "ex_" prefix
355 of all its enumerates with "ada_". Update the rest of this
356 file throughout.
357
b4a5b78b
JB
3582013-10-11 Joel Brobecker <brobecker@adacore.com>
359
360 * ada-lang.c (ada_decode_exception_location): Delete.
361 (create_ada_exception_catchpoint): Remove arguments "sal",
362 "addr_string" and "ops". Add argument "ex_kind" instead.
363 Adjust implementation accordingly, calling ada_exception_sal
364 to get the entities it no longer gets passed as arguments.
365 Document the function's arguments.
366 (catch_ada_exception_command): Use catch_ada_exception_command_split
367 instead of ada_decode_exception_location, and update call to
368 create_ada_exception_catchpoint.
369 (catch_ada_assert_command_split): Renames
370 ada_decode_assert_location. Remove parameters "addr_string" and
371 "ops", and now returns void. Adjust implementation accordingly.
372 Update the function documentation.
373 (catch_assert_command): Use catch_ada_assert_command_split
374 instead of ada_decode_assert_location. Update call to
375 create_ada_exception_catchpoint.
376
7ad1d32c 3772013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
378
379 * utils.h (perror_warning_with_name): Add declaration.
380 * utils.c (perror_warning_with_name): New function.
381 * cli/cli-cmds.c (source_script_with_search): Add call to
382 perror_warning_with_name if from_tty is nul.
383
7ad1d32c 3842013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
385
386 * utils.c (perror_string): New function, extracted out of
387 throw_perror_with_name.
388 (throw_perror_with_name): Rework to use perror_string.
389
bcc75809
YQ
3902013-10-11 Yao Qi <yao@codesourcery.com>
391
392 * remote.c (discard_pending_stop_replies_in_queue): Update
393 declaration.
394 (struct stop_reply) <rs>: New field.
395 (remove_stop_reply_of_remote_state): New function.
396 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
397 Callers update. Pass remove_stop_reply_of_remote_state to
398 QUEUE_iterate.
399 (remote_parse_stop_reply): Initialize field 'rs'.
400
05feb193
WN
4012013-10-10 Will Newton <will.newton@linaro.org>
402
403 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
404 linux_init_abi.
405
0d12017b
JB
4062013-10-10 Joel Brobecker <brobecker@adacore.com>
407
408 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
409 serial_baud_show_cmd.
410 (_initialize_cli_cmds): Delete the code creating the
411 "set/show remotebaud" commands.
412 * serial.c (baud_rate): Move here from top.c.
413 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
414 (_initialize_serial): Create "set/show serial baud" commands.
415 Add "set/show remotebaud" command aliases.
416 * top.c (baud_rate): Moved to serial.c.
417 * NEWS: Document the new "set/show serial baud" commands,
418 replacing "set/show remotebaud".
419
578d3588
PA
4202013-10-09 Pedro Alves <palves@redhat.com>
421
422 * breakpoint.c (insert_bp_location): Use memory_error_message to
423 build the memory error string.
424 * c-lang.c: Include "gdbcore.h".
425 (c_get_string): Use memory_error to throw error.
426 (target_xfer_memory_error): Delete.
427 (memory_error_message): New, factored out from
428 target_xfer_memory_error.
429 (memory_error): Change parameter type to target_xfer_error.
430 Rewrite.
431 (read_memory): Use memory_error instead of
432 target_xfer_memory_error.
433 * gdbcore.h: Include "target.h".
434 (memory_error): Change parameter type to target_xfer_error.
435 (memory_error_message): Declare function.
436 * target.c (target_read_memory, target_read_stack)
437 (target_write_memory, target_write_raw_memory): Return
438 TARGET_XFER_E_IO on error. Adjust comments.
439 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
440 instead of EIO.
441 * target.h (target_read, target_insert_breakpoint)
442 (target_remove_breakpoint): Adjust comments.
443 * valprint.c (partial_memory_read): Rename parameter, and adjust
444 comment.
445 (val_print_string): Use memory_error_message to build the memory
446 error string.
447
c74e1ccf
JK
4482013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
451 result variable. Rename variable fopen_e_ever_failed to
452 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
453
915215be
PA
4542013-10-09 Pedro Alves <palves@redhat.com>
455
456 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
457 (monitor_write_memory_longlongs, monitor_write_memory_block):
458 Constify 'myaddr' parameter.
459 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
460 helper.
461 (monitor_xfer_partial): New function.
462 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
463 hook. Install a to_xfer_partial hook.
464
acd13123
TT
4652013-10-09 Tom Tromey <tromey@redhat.com>
466
467 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
468 bfd_get_alt_debug_link_info.
469
40135bb1
JK
4702013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
471
472 New flag OBJF_NOT_FILENAME.
473 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
474 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
475 allocate_objfile.
476 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
477 symbol_file_add_from_bfd.
478 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
479 allocate_objfile.
480 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
481 NULL.
482 * objfiles.h (OBJF_NOT_FILENAME): New.
483
dc294be5
TT
4842013-10-08 Tom Tromey <tromey@redhat.com>
485
486 * Makefile.in (SFILES): Add build-id.c.
487 (HFILES_NO_SRCDIR): Add build-id.h.
488 * build-id.c: New file, largely from elfread.c. Modified
489 most functions.
490 * build-id.h: New file.
491 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
492 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
493 Search for dwz file using build-id.
494 * elfread.c (build_id_bfd_get, build_id_verify)
495 (build_id_to_debug_filename, find_separate_debug_file): Remove.
496
db230ce3
JB
4972013-10-08 Joel Brobecker <brobecker@adacore.com>
498
499 * ada-lang.c (compare_names_with_case): Renamed from
500 compare_names, adding a new parameter "casing" and its handling.
501 New function documentation.
502 (compare_names): New function, implemented using
503 compare_names_with_case.
504
6501c98a
JB
5052013-10-08 Joel Brobecker <brobecker@adacore.com>
506
507 * ada-lang.c (ada_exception_sal): Remove advance declaration.
508
84a1243b
TT
5092013-10-07 Tom Tromey <tromey@redhat.com>
510
511 * objfiles.c (free_objfile_per_bfd_storage): Delete the
512 demangled_names_hash.
513 (free_objfile): Don't delete the demangled_names_hash.
514 * objfiles.h (struct objfile_per_bfd_storage)
515 <demangled_names_hash>: New field.
516 (struct objfile) <demangled_names_hash>: Move to
517 objfile_per_bfd_storage.
518 * symfile.c (reread_symbols): Don't delete the
519 demangled_names_hash.
520 * symtab.c (create_demangled_names_hash): Update.
521 (symbol_set_names): Update.
522
1da77581
TT
5232013-10-07 Tom Tromey <tromey@redhat.com>
524
525 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
526 needs_relocations>: New fields.
527 (gdb_bfd_requires_relocations): New function.
528 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
529 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
530 the BFD needs relocations applied.
531
46ecd527
PA
5322013-10-07 Pedro Alves <palves@redhat.com>
533
534 PR breakpoints/11568
535 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
536 the thread list" instead of "gone".
537
0c557179
SDJ
5382013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
539
540 * NEWS: Mention new convenience variable $_exitsignal.
541 * corelow.c (core_open): Reset exit convenience variables. Set
542 $_exitsignal to the uncaught signal which generated the corefile.
543 * infrun.c (handle_inferior_event): Reset exit convenience
544 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
545 (clear_exit_convenience_vars): New function.
546 * inferior.h (clear_exit_convenience_vars): New prototype.
547
1cc47d81
YQ
5482013-10-06 Yao Qi <yao@codesourcery.com>
549
550 * varobj.h: Add comments to enum varobj_languages.
551
73869dc2
DE
5522013-10-04 Doug Evans <dje@google.com>
553
554 Add support for DWP file format version 2.
555 * NEWS: Mention support for DWP file format version 2.
556 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
557 union of asection, containing_section. New fields virtual_offset
558 and is_virtual. Change type of readin filed from int to char.
559 (dwo_sections, dwo_file): Tweak comments.
560 (dwp_v2_section_ids): New enum.
561 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
562 str_offsets, types.
563 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
564 All uses updated.
565 (virtual_v2_dwo_sections): New struct.
566 (dwp_hash_table): New fields version, nr_columns. Change type of
567 section_pool field to a union.
568 (dwp_file): New field version.
569 (dwarf2_has_info): Check for virtual sections.
570 (get_containing_section): New function.
571 (get_section_bfd_owner, get_section_bfd_section): Call it.
572 (dwarf2_locate_sections): Update.
573 (dwarf2_section_empty_p): Update.
574 (dwarf2_read_section): Handle virtual sections.
575 (locate_dwz_sections): Update.
576 (create_dwp_hash_table): Document and handle V2 format.
577 (locate_v1_virtual_dwo_sections): Renamed from
578 locate_virtual_dwo_sections and update. All callers updated.
579 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
580 Delete arg htab. Rename arg section_index to unit_index.
581 All callers updated.
582 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
583 All uses updated.
584 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
585 (lookup_dwo_unit_in_dwp): Add V2 support.
586 (dwarf2_locate_dwo_sections): Update.
587 (dwarf2_locate_common_dwp_sections): Renamed from
588 dwarf2_locate_dwp_sections and update. All callers updated.
589 (dwarf2_locate_v2_dwp_sections): New function.
590 (open_and_init_dwp_file): Add V2 support.
591 (read_str_index): New locals str_section, str_offsets_section.
592
9a2c3737
PA
5932013-10-04 Pedro Alves <palves@redhat.com>
594
595 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
596 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
597 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
598 describing comments with references to ptid.h.
599 * common/ptid.h: Remove intro description of constructors,
600 accessors and predicates.
601 (struct ptid): Reformat.
602 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
603 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
604 describing comments.
605
f5371440
JB
6062013-10-04 Joel Brobecker <brobecker@adacore.com>
607
608 * aix-thread.c (sync_threadlists): Add missing ')' in call
609 to ptid_build.
610
793e1c06
JB
6112013-10-04 Joel Brobecker <brobecker@adacore.com>
612
613 * procfs.c (procfs_init_inferior): Fix typo causing the build
614 to fail.
615
26f0edc1
JB
6162013-10-04 Joel Brobecker <brobecker@adacore.com>
617
618 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
619
5713b9b5
JB
6202013-10-04 Joel Brobecker <brobecker@adacore.com>
621
622 * mi/mi-main.c (run_one_inferior): Add function description.
623 Make ARG a pointer to an integer whose value determines whether
624 we should "run" or "start" the program.
625 (mi_cmd_exec_run): Add handling of the "--start" option.
626 Reject all other command-line options.
627 * NEWS: Add entry for "-exec-run"'s new "--start" option.
628
f48ff2a7
YQ
6292013-10-04 Yao Qi <yao@codesourcery.com>
630
631 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
632 (struct notif_client) <pending_event>: Moved
633 to struct remote_notif_state.
634 <id>: New field.
635 (struct remote_notif_state) <pending_event>: New field.
636 (notif_event_xfree): Declare.
637 * remote-notif.c (handle_notification): Adjust.
638 (notif_event_xfree): New function.
639 (do_notif_event_xfree): Call notif_event_xfree.
640 (remote_notif_state_xfree): Call notif_event_xfree to free
641 each element in field pending_event.
642 * remote.c (discard_pending_stop_replies): Remove declaration.
643 (discard_pending_stop_replies_in_queue): Declare.
644 (remote_close): Call discard_pending_stop_replies_in_queue
645 instead of discard_pending_stop_replies.
646 (remote_start_remote): Adjust.
647 (stop_reply_xfree): Call notif_event_xfree.
648 (notif_client_stop): Adjust initialization.
649 (remote_notif_remove_all): Rename it to ...
650 (remove_stop_reply_for_inferior): ... this. Update comments.
651 Don't check INF is NULL.
652 (discard_pending_stop_replies): Return early if notif_state is
653 NULL. Adjust. Don't check INF is NULL.
654 (remote_notif_get_pending_events): Adjust.
655 (discard_pending_stop_replies_in_queue): New function.
656 (remote_wait_ns): Likewise.
657
5965e028
YQ
6582013-10-04 Yao Qi <yao@codesourcery.com>
659
660 * remote-notif.c (DECLARE_QUEUE_P): Remove.
661 (notif_queue): Remove.
662 (remote_notif_process): Add one parameter 'notif_queue'.
663 Update comments. Callers update.
664 (remote_async_get_pending_events_token): Remove.
665 (remote_notif_register_async_event_handler): Remove.
666 (remote_notif_unregister_async_event_handler): Remove.
667 (handle_notification): Add parameter 'notif_queue'. Update
668 comments. Callers update.
669 (notif_xfree): Remove.
670 (remote_notif_state_allocate): New function.
671 (remote_notif_state_xfree): New function.
672 (_initialize_notif): Remove code to allocate queue.
673 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
674 (struct remote_notif_state): New.
675 (handle_notification): Update declaration.
676 (remote_notif_process): Likewise.
677 (remote_notif_register_async_event_handler): Remove.
678 (remote_notif_unregister_async_event_handler): Remove.
679 (remote_notif_state_allocate): Declare.
680 (remote_notif_state_xfree): Declare.
681 * remote.c (struct remote_state) <notif_state>: New field.
682 (remote_close): Don't call
683 remote_notif_unregister_async_event_handler. Call
684 remote_notif_state_xfree.
685 (remote_open_1): Don't call
686 remote_notif_register_async_event_handler. Call
687 remote_notif_state_allocate.
688
5e5ac9a5
YQ
6892013-10-04 Yao Qi <yao@codesourcery.com>
690
691 * varobj.c (create_child_with_value): Remove 'const' from the
692 type of parameter 'name'.
693 (varobj_add_child): Likewise.
694 (install_dynamic_child): Remove 'const' from the type of
695 parameter 'name'.
696 (varobj_add_child): Likewise.
697 (create_child_with_value): Likewise. Update comments. Don't
698 duplicate 'name'.
699 (update_dynamic_varobj_children): Duplicate 'name'
700 and pass it to install_dynamic_child.
701
06ab7b19
PM
7022013-10-03 Phil Muldoon <pmuldoon@redhat.com>
703
704 * python/py-value.c (convert_value_from_python): Move PyInt_Check
705 conversion logic to occur after PyLong_Check. Comment on order
706 change significance.
707 * python/py-arch.c (archpy_disassemble): Comment on order of
708 conversion for integers and longs.
709
8ae377e8
PA
7102013-10-03 Pedro Alves <palves@redhat.com>
711
712 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
713 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
714 functions. Always test for PTRACE_O_TRACESYSGOOD even if
715 PTRACE_O_TRACEFORK is not supported.
716 (linux_test_for_tracesysgood): New function.
717 (linux_test_for_tracefork): New function, factored out from
718 linux_check_ptrace_features, and also don't kill child_pid here.
719
b1328b1b
TG
7202013-10-03 Tristan Gingold <gingold@adacore.com>
721
722 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
723 Remove verbose error reporting. Use detected state to
724 thread_set_state call.
725 (i386_darwin_dr_get): Fix return type. Remove verbose error
726 report.
727 Remove trailing spaces.
728
901461f8
PA
7292013-10-02 Pedro Alves <palves@redhat.com>
730
731 * cp-valprint.c (cp_print_value_fields): Adjust calls to
732 val_print_optimized_out.
733 * jv-valprint.c (java_print_value_fields): Likewise.
734 * p-valprint.c (pascal_object_print_value_fields): Likewise.
735 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
736 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
737 new optimized out value.
738 * findvar.c (address_from_register): Likewise.
739 * frame.c (put_frame_register): Tweak error string to say the
740 register was not saved, rather than optimized out.
741 * infcmd.c (default_print_one_register_info): Adjust call to
742 val_print_optimized_out. Use value_of_register instead of
743 get_frame_register_value.
744 * mi/mi-main.c (output_register): Use value_of_register instead of
745 get_frame_register_value.
746 * valprint.c (valprint_check_validity): Likewise.
747 (val_print_optimized_out): New value parameter. If the value is
748 lval_register, print <not saved> instead.
749 (value_check_printable, val_print_scalar_formatted): Adjust calls
750 to val_print_optimized_out.
751 * valprint.h (val_print_optimized_out): New value parameter.
752 * value.c (struct value) <optimized_out>: Extend comment.
753 (error_value_optimized_out): New function.
754 (require_not_optimized_out): Use it. Use a different string for
755 lval_register values.
756 * value.h (error_value_optimized_out): New declaration.
757 * NEWS: Mention <not saved>.
758
042a84d9
JB
7592013-10-02 Joel Brobecker <brobecker@adacore.com>
760
761 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
762 strcmp to compare two symtab filenames.
763
6b9780fb
JB
7642013-10-02 Joel Brobecker <brobecker@adacore.com>
765
766 * symtab.c (search_symbols_equal): Delete.
767 (sort_search_symbols_remove_dups): Replace call to
768 search_symbols_equal by call to compare_search_syms,
769 adjusting as necessary.
770
751e7549
PM
7712013-10-02 Phil Muldoon <pmuldoon@redhat.com>
772
773 PR python/15579
774
775 * python/python.c: Document gdb.execute command in Python help.
776
1efd7661
PM
7772013-10-02 Phil Muldoon <pmuldoon@redhat.com>
778
779 * python/py-frame.c (frame_info_to_frame_object): Use
780 gdbpy_convert_exception. Clean up Python object on failure.
781
562fc849
PM
7822013-10-02 Phil Muldoon <pmuldoon@redhat.com>
783
784 * python/lib/gdb/command/frame_filters.py
785 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
786 (ShowFrameFilterPriority.invoke): Ditto.
787
d7561cbb
KS
7882013-10-01 Keith Seitz <keiths@redhat.com>
789
790 * linespec.c (struct ls_parser): Make 'saved_arg' const.
791 (parse_linespec): Make 'argptr' const.
792 Remove temporary cast of 'argptr' to const char **.
793 (decode_line_full): Pass const pointer to parse_linespec.
794 (decode_line_1): Likewise.
795 (decode_objc): Make local variable 'new_argptr' const.
796 (find_function_symbols): Remove temporary cast to char *
797 to find_imps.
798 * objc-lang.c (find_imps): Make argument 'method' const.
799 Return const.
800 * objc-lang.h (find_imps): Likewise.
801
8022013-10-01 Keith Seitz <keiths@redhat.com>
803
804 * completer.c (skip_quoted_chars): Make all arguments const.
805 Return const.
806 (skip_quoted): Likewise.
807 * completer.h (skip_quoted_chars): Likewise.
808 (skip_quoted): Likewise.
809 * defs.h (skip_quoted): Remove duplicate declaration.
810 * jv-exp.y: Include completer.h.
811 (yylex): Remove unneccessary cast to char * fro skip_quoted.
812 * p-exp.y: Include completer.h.
813
8142013-10-01 Keith Seitz <keiths@redhat.com>
815
816 * c-exp.y (parse_number): Make first argument const.
817 Make a copy of the input to manipulate.
818 (c_parse_escape): Make first argument const.
819 Make local variable 'tokptr' const.
820 (parse_string_or_char): Make first two arguments const.
821 (macro_original_text): Make const.
822 (lex_one_token): Make local variable 'tokstart' const.
823 Likewise for local variables named 'p'.
824 Cast away const for struct stoken (temporary).
825 * c-lang.h (c_parse_escpae): Make first argument const.
826 * cli/cli-cmds.c (echo_command): Make local variable 'p'
827 const.
828 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
829 var_string case.
830 * f-exp.y (parse_number): Make first argument const.
831 (match_string_literal): Make local variable 'tokstart'
832 const.
833 (yylex): Make local variable 'p' const.
834 Cast away const for struct stoken (temporary).
835 * go-exp.y (parse_number): Make first argument const.
836 (parse_string_or_char): Likewise.
837 Make local variable 'tokstart' const.
838 (lex_one_token): Likewise for numerous locals called 'p'.
839 Cast away const for struct stoken (temporary).
840 * jv-exp.y (parse_number): Make first argument const.
841 Make local variables 'tokstart' and 'tokptr' const.
842 Cast away const for call to skip_quoted (temporary).
843 (yylex): Make local variable 'p' const.
844 Cast away const for struct stoken (temporary).
845 * m2-exp.y (parse_number): Make local variable 'p' const.
846 (yylex): Likewise for 'tokstart'.
847 Cast away const for struct stoken (temporary).
848 Make local variable 'p' const.
849 * macroexp.c (get_character_constant): Pass a const string
850 to c_parse_escape.
851 (get_string_literal): Likewise.
852 (macro_expand_next): Make first argument const.
853 Cast away const for init_shared_buffer.
854 * macroexp.h (macro_expand_next): Make first argument const.
855 * p-exp.y (yylex): Make a local copy of 'lexptr'.
856 Pass a const string to c_parse_escape.
857 Make local variables 'p' and 'namestart' const.
858 * parse.c (lexptr): Make const.
859 (prev_lexptr): Likewise.
860 (find_template_name_end): Return const.
861 Make argument const, too.
862 (parse_exp_in_context): Make first argument const.
863 Remove the entire const_hack.
864 (parse_exp_in_context_1): Make first argument const.
865 * parser-defs.h (find_template_name_end): Return const.
866 Make argument const, too.
867 (lexptr): Make const.
868 (prev_lexptr): Likewise.
869 * utils.c (parse_escape): Make second argument const.
870 * utils.h (parse_escape): Likewise.
871
8722013-10-01 Keith Seitz <keiths@redhat.com>
873
874 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
875 is now const.
876 (block_lookup): Make 'raw_name' and 'name' const.
877 * ada-lex.l (processString): Update for struct stoken.ptr.
878 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
879 (operator_stoken): Likewise.
880 (lex_one_token): Remove temporary cast to char * for
881 'yylval.sval.ptr'.
882 * f-exp.y (yylex): Likewise.
883 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
884 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
885 * go-exp.y (lex_one_token): Remove temporary cast to char * for
886 'yylval.sval.ptr'.
887 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
888 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
889 * linespec.c (struct ls_parser): Make 'stream' const.
890 (find_parameter_list_end): Make argument 'input' and local
891 variable 'p' const.
892 (linespec_lexer_lex_string): Make local variables 'start' and
893 'p' const.
894 Use skip_spaces_const instead of skip_spaces.
895 (linespec_lexer_peek_token): Make local variable 'saved_stream'
896 const.
897 (parse_linespec): Temporarily cast 'argptr' to const for
898 'parser->lexer.stream'.
899 * m2-exp.y (yylex): Remove temporary cast to char * for
900 'yylval.sval.ptr'.
901 * objc-lang.c (add_msglist): Make local variable 'p' const.
902 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
903 (exp : STRING): Make 'sp' const.
904 (parse_number): Make argument 'p' const.
905 * parser-defs.h (struct stoken): Make 'ptr' const.
906
193a8eac
DE
9072013-10-01 Doug Evans <dje@google.com>
908
909 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
910
2213e2be
YQ
9112013-10-01 Yao Qi <yao@codesourcery.com>
912
913 * varobj.c (c_value_of_root): Remove declaration.
914 (cplus_value_of_root, java_value_of_root): Likewise.
915 (ada_value_of_root): Likewise.
916 (struct language_specific) <value_of_root>: Remove.
917 (languages): Update initialization.
918 (check_scope): Move earlier.
919 (c_value_of_root): Move earlier and rename to ...
920 (value_of_root_1): ... this.
921 (value_of_root): Caller update.
922 (cplus_value_of_root, java_value_of_root): Remove.
923 (ada_value_of_root): Remove.
924
c573f273
YQ
9252013-10-01 Yao Qi <yao@codesourcery.com>
926
927 * varobj.c (varobj_format_string): Remove "unknown".
928 (languages): Remove the first element.
929 * varobj.h (enum varobj_languages): Remove vlang_c.
930
56250258
YQ
9312013-10-01 Yao Qi <yao@codesourcery.com>
932
933 * varobj.c (struct language_specific) <language>: Remove.
934 (languages): Update the initialization.
935
29f9ebfa
YQ
9362013-10-01 Yao Qi <yao@codesourcery.com>
937
938 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
939 "solib-target.h". Include "windows-tdep.h".
940 (arm_wince_init_abi): Call windows_init_abi. Remove call to
941 set_solib_ops and set_gdbarch_has_dos_based_file_system.
942 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
943 windows-tdep.o to gdb_target_obs.
944
64870a42
YQ
9452013-10-01 Yao Qi <yao@codesourcery.com>
946
947 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
948 "solib-target.h".
949 (amd64_windows_init_abi): Don't call set_solib_ops and
950 set_gdbarch_iterate_over_objfiles_in_search_order. Call
951 windows_init_abi instead.
952 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
953 "solib-target.h".
954 (i386_cygwin_init_abi): Don't call set_solib_ops,
955 set_gdbarch_has_dos_based_file_system and
956 set_gdbarch_iterate_over_objfiles_in_search_order. Call
957 windows_init_abi instead.
958 * windows-tdep.c: Include "solib.h" and "solib-target.h".
959 (windows_init_abi): New function.
960 (windows_iterate_over_objfiles_in_search_order): Make it
961 static.
962 * windows-tdep.h (windows_init_abi): Declare.
963 (windows_iterate_over_objfiles_in_search_order): Remove
964 declaration.
965
0aebdefa
JB
9662013-10-01 Jerome Guitton <guitton@adacore.com>
967
968 Checked in by Joel Brobecker <brobecker@adacore.com>
969 * system-gdbinit/elinos.py (get_elinos_environment): Return an
970 incomplete dictionnary instead of None in case of missing
971 environment variables.
972 (elinos_init): in case of an incomplete environment, best
973 effort to load system libraries instead of abort.
974
1c8e84b0
JB
9752013-10-01 Joel Brobecker <brobecker@adacore.com>
976
977 * ada-lang.c (ada_has_this_exception_support): Ignore
978 mst_solib_trampoline minimal symbols.
979
61d82a0d
TG
9802013-09-30 Tristan Gingold <gingold@adacore.com>
981
982 * i386-darwin-nat.c (darwin_complete_target): Install methods for
983 hardware watchpoint.
984 (i386_darwin_dr_set): Support 32 and 64 bit states.
985 (i386_darwin_dr_get): Likewise.
986 (i386_darwin_dr_set_control): Make static.
987 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
988 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
989
dfd4cc63
LM
9902013-09-30 Luis Machado <lgustavo@codesourcery.com>
991
992 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
993 Replace TIDGET with ptid_get_lwp.
994 Replace GET_LWP with ptid_get_lwp.
995 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
996 Replace BUILD_THREAD with ptid_build.
997 Replace BUILD_LWP with ptid_build.
998 Replace PIDGET with ptid_get_pid.
999 Replace TIDGET with ptid_get_lwp.
1000 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1001 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1002 Replace TIDGET with ptid_get_lwp.
1003 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1004 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1005 Replace TIDGET with ptid_get_lwp.
1006 Replace GET_LWP with ptid_get_lwp.
1007 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1008 * auxv.c: Likewise.
1009 * breakpoint.c: Likewise.
1010 * common/ptid.c (ptid_is_pid): Condense check for
1011 null_ptid and minus_one_ptid.
1012 (ptid_lwp_p): New function.
1013 (ptid_tid_p): New function.
1014 * common/ptid.h: Update comments for accessors.
1015 (ptid_lwp_p): New prototype.
1016 (ptid_tid_p): New prototype.
1017 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1018 * gcore.c: Replace PIDGET with ptid_get_pid.
1019 * gdbthread.h: Likewise.
1020 * gnu-nat.c: Likewise.
1021 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1022 Replace TIDGET with ptid_get_lwp.
1023 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1024 * hppanbsd-nat.c: Likewise.
1025 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1026 Replace TIDGET with ptid_get_lwp.
1027 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1028 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1029 * infcmd.c: Likewise.
1030 * inferior.h: Likewise.
1031 * inflow.c: Likewise.
1032 * infrun.c: Likewise.
1033 * linux-fork.c: Likewise.
1034 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1035 Replace GET_PID with ptid_get_pid.
1036 Replace is_lwp with ptid_lwp_p.
1037 Replace GET_LWP with ptid_get_lwp.
1038 Replace BUILD_LWP with ptid_build.
1039
5b4e221c
MF
10402013-09-28 Mike Frysinger <vapier@gentoo.org>
1041
1042 * common/linux-btrace.c: Move sys/syscall.h out of the
1043 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1044 Also check for SYS_perf_event_open before attempting to buid.
1045
57d63ce2
DE
10462013-09-27 Doug Evans <dje@google.com>
1047
19ac8c2e
DE
1048 * dwarf2read.c (dwarf2_section_info): Add comment.
1049 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1050 All uses updated.
1051 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1052 (dwarf2_read_section): Delete unused local "header". Add section
1053 name to error message.
1054 (create_dwo_in_dwp): Tweak comment.
1055 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1056
a32a8923
DE
1057 * dwarf2read.c (die_reader_specs): Tweak comment.
1058 (get_section_bfd_owner, get_section_bfd_section): New functions.
1059 (get_section_name, get_section_file_name): New functions.
1060 (get_section_id, get_section_flags): New functions.
1061 (*): Use new functions to access section fields.
1062
57d63ce2
DE
1063 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1064 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1065 arg "htab". All callers updated.
1066 (create_debug_types_hash_table): Remove redundant copy of
1067 abbrev_section.
1068 (create_dwo_in_dwp): Tweak comments.
1069 (read_str_index): Tweak comment. Record dwarf form name in static
1070 local.
1071
3736004f
PA
10722013-09-27 Pedro Alves <palves@redhat.com>
1073
1074 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1075 (remote_filename_p): Add comment.
1076 * remote.c (remote_filename_p): Adjust to use
1077 REMOTE_SYSROOT_PREFIX.
1078 * solib.c (solib_find): When deciding whether we need to add a
1079 directory separator, check whether the sysroot is "remote:"
1080 instead of checking whether the patch has a drive spec. Add
1081 comments.
1082
5b5596ff
PA
10832013-09-27 Pedro Alves <palves@redhat.com>
1084
1085 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1086 Delete fields.
1087 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1088 directly.
1089
b5eef7aa
JK
10902013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1091
1092 Fix set debug frame output.
1093 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1094 SENTINEL_FRAME entry lower to match enum frame_type order.
1095
5b856f36
PM
10962013-09-26 Pierre Muller <muller@sourceware.org>
1097
1098 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1099 AMD64_R15_REGNUM when a register index is expected.
1100 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1101 Substitute in array.
1102 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1103 (amd64_push_arguments): Substitute in integer_regnum array.
1104
ade7ed9e
DE
11052013-09-25 Doug Evans <dje@google.com>
1106
d3e81981
DE
1107 * objfiles.c (allocate_objfile): Move comment to better place.
1108
8fb8eb5c
DE
1109 New option "set debug symfile on".
1110 * NEWS: Mention "set debug symfile".
1111 * Makefile.in (SFILES): Add symfile-debug.c.
1112 (COMMON_OBS): Add symfile-debug.o.
1113 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1114 objfile's symbol functions.
1115 * objfiles.h (objfile_set_sym_fns): Declare.
1116 * symfile-debug.c: New file.
1117 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1118 objfile's symbol functions.
1119 (reread_symbols): Ditto.
1120
c256e171
DE
1121 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1122 All uses updated.
1123 (add_symtab_fns): Update prototype.
1124 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1125 (registered_sym_fns): ... this.
1126 (symtab_fns): Update.
1127 (add_symtab_fns): New arg "flavour". All callers updated.
1128 (find_sym_fns): Rewrite to use new sym_fns registry.
1129
f56ce883
DE
1130 * symfile.h (struct sym_fns): Add "objfile" argument to
1131 sym_read_linetable. All uses updated.
1132
20c681d1
DE
1133 * symtab.c (domain_name, search_domain_name): New functions.
1134 * symtab.h (domain_name, search_domain_name): Declare.
1135
ade7ed9e
DE
1136 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1137 map_matching_symbols so objfile is first. All uses updated.
1138 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1139 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1140
7d760051
UW
11412013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 PR shlibs/8882
1144 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1145 link map entries.
1146
020f7036
DE
11472013-09-24 Doug Evans <dje@google.com>
1148
1149 * objfiles.c (free_objfile): Move comment.
1150
598402f0
JB
11512013-09-24 Joel Brobecker <brobecker@adacore.com>
1152
1153 * ada-exp.y (string_to_operator): Delete.
1154 (dummy_string_to_ada_operator): Delete.
1155
bf4d6c1c
JB
11562013-09-24 Joel Brobecker <brobecker@adacore.com>
1157
1158 Revert:
1159 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1160 amd64-tdep.c.
1161 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1162 call_dummy_integer_regs, and classify.
1163 * amd64-tdep.h (amd64_classify): Add declaration.
1164 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1165 (amd64_reg_class): Delete, moved to i386-tdep.h.
1166 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1167 Replace call to amd64_classify by call to tdep->classify.
1168 (amd64_push_arguments): Get the list of registers to use for
1169 passing integer parameters from the gdbarch tdep structure,
1170 rather than using a hardcoded one. Replace calls to amd64_classify
1171 by calls to tdep->classify.
1172 (amd64_push_dummy_call): Get the register number used for
1173 the "hidden" argument from tdep->call_dummy_integer_regs.
1174 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1175 and tdep->call_dummy_integer_regs. Set tdep->classify.
1176
849e9755
JB
11772013-09-24 Joel Brobecker <brobecker@adacore.com>
1178
1179 Revert:
1180 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1181 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1182 where tdep->memory_args_by_pointer is non-zero.
1183
c1459fd6
JB
11842013-09-24 Joel Brobecker <brobecker@adacore.com>
1185
1186 Revert:
1187 * i386-tdep.h (struct gdbarch_tdep): Add new field
1188 integer_param_regs_saved_in_caller_frame.
1189 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1190 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1191
20c2e3e0
JB
11922013-09-24 Joel Brobecker <brobecker@adacore.com>
1193
874440b8 1194 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1195 (amd64_windows_classify): Delete.
1196 (amd64_windows_passed_by_integer_register)
1197 (amd64_windows_passed_by_xmm_register)
1198 (amd64_windows_passed_by_pointer)
1199 (amd64_windows_adjust_args_passed_by_pointer)
1200 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1201 (amd64_windows_push_dummy_call): New functions.
1202 (amd64_windows_init_abi): Remove setting of
1203 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1204 tdep->classify, tdep->memory_args_by_pointer and
1205 tdep->integer_param_regs_saved_in_caller_frame.
1206 Add call to set_gdbarch_push_dummy_call.
1207
82bf32bc
JK
12082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1211 objfile->original_name.
1212
24ba069a
JK
12132013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 Pass down original filename for objfile.
1216 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1217 * elfread.c (elf_symfile_read): Likewise.
1218 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1219 longer set ORIGINAL_NAME.
1220 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1221 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1222 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1223 symbol_file_add_from_bfd call.
1224 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1225 (macho_check_dsym): Add parameter filenamep. Change function comment.
1226 Set *filenamep.
1227 (macho_symfile_read): New variable dsym_filename. Update
1228 macho_check_dsym call. Use it for symbol_file_add_separate.
1229 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1230 it. Use it for objfile->original_name.
1231 (objfile_name): Return OBFD's filename, if available.
1232 * objfiles.h (allocate_objfile): Add new parameter name.
1233 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1234 * symfile-mem.c (symbol_file_add_from_memory): Update
1235 symbol_file_add_from_bfd call.
1236 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1237 comment for it.
1238 (symbol_file_add_with_addrs): New parameter name, add function comment
1239 for it. Remove variable name. Update allocate_objfile call.
1240 (symbol_file_add_separate): New parameter name, add function comment
1241 for it. Update symbol_file_add_with_addrs call.
1242 (symbol_file_add_from_bfd): New parameter name. Update
1243 symbol_file_add_with_addrs call.
1244 (symbol_file_add): Update symbol_file_add_from_bfd call.
1245 (reread_symbols): New variable original_name. Save
1246 objfile->original_name by it.
1247 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1248 second parameter.
1249
4262abfb
JK
12502013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1251
1252 Code cleanup: Add objfile_name accessor function.
1253 * ada-lang.c (is_known_support_routine): Use objfile_name.
1254 * auto-load.c (source_gdb_script_for_objfile)
1255 (auto_load_objfile_script): Likewise.
1256 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1257 * dbxread.c (dbx_symfile_read): Likewise.
1258 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1259 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1260 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1261 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1262 (lookup_dwp_signatured_type, lookup_dwo_unit)
1263 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1264 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1265 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1266 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1267 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1268 (read_subrange_type, load_partial_dies, read_partial_die)
1269 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1270 (die_containing_type, build_error_marker_type, lookup_die_type)
1271 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1272 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1273 (get_DW_AT_signature_type, write_psymtabs_to_index)
1274 (save_gdb_index_command): Likewise.
1275 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1276 Likewise.
1277 * expprint.c (dump_subexp_body_standard): Likewise.
1278 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1279 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1280 original_name.
1281 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1282 obj_name, use objfile_name for it, use the variable.
1283 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1284 Use objfile_name.
1285 * machoread.c (macho_symtab_read, macho_check_dsym)
1286 (macho_symfile_relocate): Likewise.
1287 * maint.c (maintenance_translate_address): Likewise.
1288 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1289 * minsyms.c (install_minimal_symbols): Likewise.
1290 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1291 original_name.
1292 (filter_overlapping_sections): Use objfile_name.
1293 (objfile_name): New function.
1294 * objfiles.h (struct objfile): Rename field name to original_name.
1295 (objfile_name): New prototype.
1296 * printcmd.c (sym_info, address_info): Use objfile_name.
1297 * probe.c (parse_probes, collect_probes, compare_probes)
1298 (info_probes_for_ops): Likewise.
1299 * progspace.c (clone_program_space): Likewise.
1300 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1301 (maintenance_info_psymtabs): Likewise.
1302 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1303 (source_section_scripts): Likewise.
1304 * python/py-objfile.c (objfpy_get_filename): Likewise.
1305 * python/py-progspace.c (pspy_get_filename): Likewise.
1306 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1307 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1308 * solib.c (solib_read_symbols): Likewise.
1309 * stabsread.c (scan_file_globals): Likewise.
1310 * stap-probe.c (handle_stap_probe): Likewise.
1311 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1312 (find_separate_debug_file_by_debuglink): Likewise.
1313 (reread_symbols): Likewise. Use the objfile field name renamed to
1314 original_name.
1315 (allocate_symtab): Use objfile_name.
1316 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1317 (dump_objfile, dump_msymbols, dump_symtab_1)
1318 (maintenance_print_msymbols, maintenance_print_objfiles)
1319 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1320 * target.c (target_translate_tls_address, target_info): Likewise.
1321 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1322 objfile_name.
1323
4721dc18
JK
13242013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 Code cleanup.
1327 * probe.c (parse_probes): Rename variable objfile_name to
1328 objfile_namestr.
1329
a61d6db8
JK
13302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1331
1332 Remove solib-sunos.c.
1333 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1334 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1335 * objfiles.c (rt_common_objfile): Remove.
1336 (free_objfile): Remove rt_common_objfile comparison.
1337 * objfiles.h (rt_common_objfile): Remove.
1338 * solib-sunos.c: Remove.
1339 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1340
2659903b
JK
13412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 Remove a.out NetBSD and OpenBSD hosts.
1344 * NEWS (Removed native configurations): New.
1345 * config/arm/nbsdaout.mh: Remove.
1346 * config/i386/nbsdaout.mh: Remove.
1347 * config/i386/obsdaout.mh: Remove.
1348 * config/m68k/nbsdaout.mh: Remove.
1349 * config/sparc/nbsdaout.mh: Remove.
1350 * config/vax/nbsdaout.mh: Remove.
1351 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1352 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1353 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1354 error.
1355 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1356 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1357 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1358
f60e2d5c
TT
13592013-09-23 Tom Tromey <tromey@redhat.com>
1360
1361 * linespec.c (struct minsym_and_objfile): Remove.
1362 (minsym_and_objfile_d): Remove.
1363 (struct linespec, struct collect_info, linespec_parse_basic)
1364 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1365 (compare_msymbols, find_method, find_function_symbols)
1366 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1367 (add_minsym, search_minsyms_for_name): Update.
1368
d3eaaf66
AB
13692013-09-23 Andrew Burgess <aburgess@broadcom.com>
1370
1371 * regcache.c: Add include of valprint.h.
1372 (dump_endian_bytes): Delete.
1373 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1374
2cc762b5
AB
13752013-09-23 Andrew Burgess <aburgess@broadcom.com>
1376
1377 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1378
96181529
PA
13792013-09-19 Pedro Alves <palves@redhat.com>
1380
1381 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1382 breakpoints.
1383
9b3f3ee6
TS
13842013-09-19 Pedro Alves <palves@redhat.com>
1385 Thomas Schwinge <thomas@codesourcery.com>
1386 Yue Lu <hacklu.newborn@gmail.com>
1387
1388 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1389 Take a gdb_byte pointer instead of a char pointer.
1390
1391 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1392 gnu_xfer_partial helper.
1393 (gnu_xfer_partial): New function.
1394 (gnu_target): Don't install a deprecated_xfer_memory hook.
1395 Install a to_xfer_partial hook.
1396
69150c3d
JK
13972013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1398
1399 Constification.
1400 * main.c (captured_main): Replace catch_command_errors by
1401 catch_command_errors_const. Twice.
1402 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1403 (symbol_file_add): Make name parameter const.
1404 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1405 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1406 variable name. Change their usage accordingly.
1407 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1408 const.
1409 (symbol_file_add_main): Make args parameter const.
1410
086850b2
UW
14112013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1412 Ulrich Weigand <uweigand@de.ibm.com>
1413
1414 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1415 of c_value member.
1416 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1417
ca08a94c 14182013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1419 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1420
1421 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1422 (gnu_create_inferior)
1423 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1424 (set_sig_thread_cmd): Use the lwpid field of ptids to
1425 store/extract thread ids instead of the tid field.
1426 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1427
e4c6a2c4
AB
14282013-09-18 Andrew Burgess <aburgess@broadcom.com>
1429
1430 * infcmd.c (default_print_one_register_info): Add detection of
1431 optimized out values.
1432 (default_print_registers_info): Switch to using
1433 get_frame_register_value.
1434
58c48e72
MM
14352013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1436
1437 * infrun.c (handle_inferior_event): Check if we know the
1438 function start address before setting a resume breakpoint.
1439
c8d37639
PA
14402013-09-18 Pedro Alves <palves@redhat.com>
1441
1442 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1443 minus_one_ptid instead of looking at the ptid's tid field and
1444 comparing that to -1.
1445
71926e28
AB
14462013-09-18 Andrew Burgess <aburgess@broadcom.com>
1447
1448 * main.h (get_gdb_program_name): Remove extra whitespace.
1449
c88a1531
AB
14502013-09-18 Andrew Burgess <aburgess@broadcom.com>
1451
1452 * main.h (get_gdb_program_name): Add declaration.
1453 * main.c (get_gdb_program_name): Add definition.
1454
4390d890
DE
14552013-09-17 Doug Evans <dje@google.com>
1456
1457 * dwarf2read.c: Move definitions of complaint functions to after
1458 forward declarations of local functions.
1459
49fa26b0
PA
14602013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1461 Pedro Alves <palves@redhat.com>
1462
1463 PR gdb/11568
1464 * breakpoint.c (remove_threaded_breakpoints): New function.
1465 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1466 as thread_exit observer.
1467
08d72866
PA
14682013-09-17 Pedro Alves <palves@redhat.com>
1469
1470 PR gdb/15911
1471 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1472 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1473 * corelow.c (core_open):
1474 * frame.h (print_stack_frame, print_frame_info): New
1475 'set_current_sal' parameter.
1476 * infcmd.c (finish_command, kill_command): Adjust call to
1477 print_stack_frame.
1478 * inferior.c (inferior_command): Likewise.
1479 * infrun.c (normal_stop): Likewise.
1480 * linux-fork.c (linux_fork_context): Likewise.
1481 * record-full.c (record_full_goto_entry, record_full_restore):
1482 Likewise.
1483 * remote-mips.c (common_open): Likewise.
1484 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1485 Use it.
1486 (print_frame_info): New 'set_current_sal' parameter. Set the last
1487 displayed sal depending on the new paremeter instead of looking at
1488 print_what.
1489 (backtrace_command_1, select_and_print_frame, frame_command)
1490 (current_frame_command, up_command, down_command): Adjust call to
1491 print_stack_frame.
1492 * thread.c (print_thread_info, restore_selected_frame)
1493 (do_captured_thread_select): Adjust call to print_stack_frame.
1494 * tracepoint.c (tfind_1): Likewise.
1495 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1496 (mi_cmd_stack_info_frame): Likewise.
1497 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1498 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1499
6bc305f5
SDJ
15002013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1501
1502 * value.c (isvoid_internal_fn): Replace "parameter" with
1503 "argument".
1504
0a7cfe2c
SS
15052013-09-16 Stan Shebs <stan@codesourcery.com>
1506
1507 * README: Update references to writing code for GDB.
1508 * configure.ac (build_warnings): Remove obsolete comment.
1509 * configure: Regenerate.
1510 * gdbarch.sh: Remove references to gdbint.texinfo.
1511 * gdbarch.h: Regenerate.
1512 * gdbtypes.c (objfile_type): Remove comments referencing internals
1513 manual and D10V.
1514
a280dbd1
SDJ
15152013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1516
1517 * NEWS: Mention new convenience function $_isvoid.
1518 * value.c (isvoid_internal_fn): New function.
1519 (_initialize_values): Add new convenience function $_isvoid.
1520
04a83fee
PM
15212013-09-16 Pierre Muller <muller@sourceware.org>
1522
1523 * arm-linux-tdep.c: Add "elf/common.h" header.
1524 Remove AT_HWCAP macro definintion as it is provided in
1525 added include file.
1526 * s390-tdep.c: Remove system header <elf.h>
1527 Add "elf/common.h" header for AT_HWCAP definition.
1528 (s390_core_read_description): Use correct CORE_ADDR
1529 for hwcap local variable used as third parameter
1530 of function target_auxv_search.
1531
88505fac
PM
15322013-09-14 Pierre Muller <muller@sourceware.org>
1533 Tom Tromey <tromey@redhat.com>
1534 Pedro Alves <palves@redhat.com>
1535
1536 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1537 mode if operating system doesn't know O_CLOEXEC.
1538
d3846e71
JK
15392013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1540
1541 Code cleanup.
1542 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1543 inner block.
1544
4ac33720
UW
15452013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1546
1547 * NEWS: Mention TDB support.
1548 * features/s390-tdb.xml: New file.
1549 * features/s390-te-linux64.xml: New file.
1550 * features/s390x-te-linux64.xml: New file.
1551 * features/Makefile (WHICH): Add new tdescs above.
1552 (s390-te-linux64-expedite): Set.
1553 (s390x-te-linux64-expedite): Set.
1554 * features/s390-te-linux64.c: New file (generated).
1555 * features/s390x-te-linux64.c: New file (generated).
1556 * regformats/s390-te-linux64.dat: New file (generated).
1557 * regformats/s390x-te-linux64.dat: New file (generated).
1558 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1559 (HWCAP_S390_TE): Likewise.
1560 (S390_TDB_DWORD0_REGNUM): Likewise.
1561 (S390_TDB_DWORD0_REGNUM): Likewise.
1562 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1563 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1564 (S390_TDB_ATIA_REGNUM): Likewise.
1565 (S390_TDB_R0_REGNUM): Likewise.
1566 (S390_TDB_R1_REGNUM): Likewise.
1567 (S390_TDB_R2_REGNUM): Likewise.
1568 (S390_TDB_R3_REGNUM): Likewise.
1569 (S390_TDB_R4_REGNUM): Likewise.
1570 (S390_TDB_R5_REGNUM): Likewise.
1571 (S390_TDB_R6_REGNUM): Likewise.
1572 (S390_TDB_R7_REGNUM): Likewise.
1573 (S390_TDB_R8_REGNUM): Likewise.
1574 (S390_TDB_R9_REGNUM): Likewise.
1575 (S390_TDB_R10_REGNUM): Likewise.
1576 (S390_TDB_R11_REGNUM): Likewise.
1577 (S390_TDB_R12_REGNUM): Likewise.
1578 (S390_TDB_R13_REGNUM): Likewise.
1579 (S390_TDB_R14_REGNUM): Likewise.
1580 (S390_TDB_R15_REGNUM): Likewise.
1581 (S390_NUM_REGS): Increase.
1582 (S390_IS_TDBREGSET_REGNUM): New macro.
1583 (s390_regmap_tdb): Declare.
1584 (s390_sizeof_tdbregset): Define.
1585 (tdesc_s390_te_linux64): Declare.
1586 (tdesc_s390x_te_linux64): Likewise.
1587 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1588 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1589 (s390_regmap_tdb): New regmap.
1590 (s390_supply_tdb_regset): New function.
1591 (s390_tdb_regset): New regset.
1592 (s390_linux64v2_regset_sections): Add TDB regset to list.
1593 (s390x_linux64v2_regset_sections): Likewise.
1594 (s390_regset_from_core_section): Recognize TDB core note section.
1595 (s390_core_read_description): If HWCAP indicates TE support,
1596 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1597 (s390_gdbarch_init): Handle TDB regset.
1598 (_initialize_s390_tdep): Initialize new tdescs.
1599 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1600 (have_regset_tdb): New variable.
1601 (s390_native_supply): Support register invalidation.
1602 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1603 (check_regset): Treat ENODATA as "regset exists".
1604 (s390_linux_fetch_inferior_registers): Add TDB.
1605 (s390_read_description): Check for TDB existence and select
1606 appropriate tdesc.
1607 * gdbserver/Makefile.in (clean): Add removal of new makefile
1608 targets.
1609 (s390-te-linux64.c): New makefile target.
1610 (s390x-te-linux64.c): Likewise.
1611 * gdbserver/configure.srv (srv_regobj): Append new objects
1612 s390-te-linux64.o and s390x-te-linux64.o.
1613 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1614 s390x-te-linux64.xml, and s390-tdb.xml.
1615 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1616 declaration.
1617 (tdesc_s390_te_linux64): Likewise.
1618 (init_registers_s390x_te_linux64): Likewise.
1619 (tdesc_s390x_te_linux64): Likewise.
1620 (s390_check_regset): Treat ENODATA as "regset exists".
1621 (s390_arch_setup): Add TDB regset support.
1622 (initialize_low_arch): Initialize registers for new tdescs.
1623
2ccd1468
UW
16242013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625
1626 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1627 (S390_IS_FPREGSET_REGNUM): New macro.
1628 * s390-tdep.c (s390_dwarf_regmap): Make const.
1629 (regnum_is_gpr_full): New function for replacing repeated code.
1630 (s390_pseudo_register_name): Use it.
1631 (s390_pseudo_register_type): Likewise.
1632 (s390_pseudo_register_read): Likewise.
1633 (s390_pseudo_register_write): Likewise.
1634 (s390_unwind_pseudo_register): Likewise.
1635 (s390_regmap_gregset): New format for regmap.
1636 (s390x_regmap_gregset): Likewise.
1637 (s390_regmap_fpregset): Likewise.
1638 (s390_regmap_upper): Likewise.
1639 (s390_regmap_last_break): Likewise.
1640 (s390_regmap_system_call): Likewise.
1641 (s390_supply_regset): Adjust to new regmap format.
1642 (s390_collect_regset): Likewise.
1643 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1644 (s390_native_collect): Likewise.
1645 (supply_gregset): Likewise.
1646 (fill_gregset): Likewise.
1647 (supply_fpregset): Likewise.
1648 (fill_fpregset): Likewise.
1649 (fetch_regset): Likewise.
1650 (store_regset): Likewise.
1651 (s390_linux_fetch_inferior_registers): Likewise.
1652 (s390_linux_fetch_inferior_registers): Likewise.
1653
1aa4cd77
AP
16542013-09-12 Andrew Pinski <apinski@cavium.com>
1655
1656 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1657
d91fab15
UW
16582013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659
1660 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1661
5a5d8ead
AB
16622013-09-09 Andrew Burgess <aburgess@broadcom.com>
1663
1664 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1665
1385f66c
PA
16662013-09-06 Pedro Alves <palves@redhat.com>
1667
1668 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1669 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1670 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1671 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1672 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1673 gdb_stdlog.
1674
146ec4db
PA
16752013-09-06 Pedro Alves <palves@redhat.com>
1676
1677 * remote-sim.c (dump_mem): Constify buf parameter.
1678 gdbsim_xfer_inferior_memory): Rename to ...
1679 (gdbsim_xfer_memory): ... this. Adjust interface as
1680 target_xfer_partial helper.
1681 (gdbsim_xfer_partial): New function.
1682 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1683 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1684
fcde0081
PA
16852013-09-06 Pedro Alves <palves@redhat.com>
1686
1687 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1688 host_address_to_string, and send debug output to gdb_stdlog.
1689
749c8b38
RW
16902013-09-06 Ricard Wanderlof <ricardw@axis.com>
1691
1692 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1693 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1694 gdb_target_obs for cris target.
1695 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1696 (cris_gdbarch_init): Move calls to
1697 set_gdbarch_fetch_tls_load_module_address and
1698 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1699 Add call to gdbarch_init_osabi.
1700 * cris-linux-tdep.c: New file.
1701 * cris-tdep.h: New file.
1702
43df09d9
AB
17032013-09-06 Andrew Burgess <aburgess@broadcom.com>
1704
1705 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1706 to deprecated_init_ui_hook.
1707
4d09c5b4
AB
17082013-09-06 Andrew Burgess <aburgess@broadcom.com>
1709
1710 * cli/cli-interp.c (_initialize_cli_interp): Add a
1711 command_loop_proc to interp_procs.
1712 * event-top.c (cli_command_loop): Change signature to match
1713 interp_command_loop_ftype.
1714 * event-top.h (cli_command_loop): Same.
1715 * interps.c (interp_new): Require every interpreter to have a
1716 command_loop_proc.
1717 (current_interp_command_loop): Just call the command_loop_proc on
1718 the current interpreter.
1719 * tui/tui-interp.c (_initialize_tui_interp): Add a
1720 command_loop_proc to interp_procs.
1721
8eb3d7b6
RW
17222013-09-06 Ricard Wanderlof <ricardw@axis.com>
1723
1724 * cris-tdep.c (cris_gdbarch_init): Add call to
1725 get_gdbarch_fetch_tls_load_module_address.
1726
18b3c2f5
RW
17272013-09-06 Ricard Wanderlof <ricardw@axis.com>
1728
1729 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1730 (cris_elf_gregset_t): Rename from elf_gregset_t.
1731 (crisv32_elf_gregset_t): Adjust.
1732 (cris_supply_gregset, fetch_core_registers): Adjust.
1733
dc8636ef
RW
17342013-09-06 Ricard Wanderlof <ricardw@axis.com>
1735
1736 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1737
257e6d53
AB
17382013-09-05 Andrew Burgess <aburgess@broadcom.com>
1739
1581d8a7 1740 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1741 references in comments.
1581d8a7 1742 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1743 deprecated_command_loop_hook.
1744 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1745 setup.
1581d8a7 1746 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1747
7c33b57c
PA
17482013-09-05 Pedro Alves <palves@redhat.com>
1749
1750 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1751 local is now int instead of ULONGEST. Print it with %d
1752 instead of paddress.
1753
9f8edbd5
TG
17542013-09-05 Tristan Gingold <gingold@adacore.com>
1755
1756 * MAINTAINERS: Remove avr maintainership.
1757
d5b495b4
PA
17582013-09-05 Pedro Alves <palves@redhat.com>
1759
1760 * findvar.c (value_of_register): Rework in terms of
1761 value_of_register_lazy.
1762
40b91786
MB
17632013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1764
1765 * symfile.c (add_symbol_file_command): Remove trailing
1766 whitespaces and blank line after comment.
1767
6eed1678
PA
17682013-09-05 Pedro Alves <palves@redhat.com>
1769
1770 * tui/tui-regs.c (tui_register_format): Don't look at the
1771 register's name here. Return string representing register
1772 value instead of storing it in the data element.
1773 (tui_get_register): Compare register string representations
1774 instead of register value states and contents.
1775
8eb6bda2
PA
17762013-09-05 Pedro Alves <palves@redhat.com>
1777
1778 PR tui/15933
1779 * tui/tui-regs.c (tui_show_registers): Show registers of the
1780 selected frame, not the current frame.
1781
48b1f08c
RW
17822013-09-05 Ricard Wanderlof <ricardw@axis.com>
1783
1784 * MAINTAINERS (Write After Approval): Add myself to the list.
1785
89e63ee4
DE
17862013-09-04 Doug Evans <dje@google.com>
1787
1788 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1789 (queue_and_load_dwo_tu): New function.
1790 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1791 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1792 Make dependent_cu optional.
1793 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1794 and an older .gdb_index is in use, queue and load all its TUs too.
1795
492c0ab7
JK
17962013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1797
1798 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1799 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1800 variable search_flags.
1801 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1802 (OPF_RETURN_REALPATH): ... here.
1803 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1804 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1805 call. Twice.
1806 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1807 openp call.
1808 * solib.c (solib_find): Likewise. Four times.
1809 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1810 in the function comment and for the realpath_fptr variable.
1811 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1812 (find_and_open_source): Likewise. Twice.
1813 * symfile.c (symfile_bfd_open): Likewise, also twice.
1814
23a44de8
DE
18152013-09-04 Doug Evans <dje@google.com>
1816
1817 * progspace.c (save_current_space_and_thread): Remove unnecessary
1818 call to save_current_inferior.
1819
47061676
AB
18202013-09-04 Andrew Burgess <aburgess@broadcom.com>
1821
1822 * sh64-tdep.c (sh64_do_register): Return after printing message
1823 about unavailable register contents.
1824
41dc8db8
MB
18252013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1826 Pedro Alves <palves@redhat.com>
1827
1828 * symfile.c (add_symbol_file_command): Error out on unknown
1829 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1830 options and collapse into single conditional branch.
1831
07107ca6
LM
18322013-09-03 Luis Machado <lgustavo@codesourcery.com>
1833
a7ea61cf 1834 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1835 detach_fork.
1836 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1837 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1838 * inferior.h (detach_fork): Remove.
1839 * infrun.c (detach_fork): Adjust comment and make it
1840 static.
1841 (follow_fork): Pass detach_fork parameter to
1842 target_follow_fork.
1843 * linux-nat.c (linux_child_follow_fork): New parameter
1844 detach_fork.
1845 * target.c (target_follow_fork): New parameter detach_fork.
1846 Pass detach_fork as parameter and print its value.
1847 * target.h (struct target_ops) <to_follow_fork>: New int
1848 parameter.
1849 (target_follow_fork): New parameter detach_fork.
1850
3bec2768
JB
18512013-09-03 Joel Brobecker <brobecker@adacore.com>
1852
1853 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1854 Replace sec->bfd by sec->the_bfd_section->owner.
1855
c01cbb3d
YQ
18562013-09-03 Yao Qi <yao@codesourcery.com>
1857
1858 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1859 from linux_has_shared_address_space.
1860 (linux_has_shared_address_space): Call linux_is_uclinux.
1861 * linux-tdep.h (linux_is_uclinux): Declare.
1862 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1863 linux_is_uclinux.
1864
7b00db47
YQ
18652013-09-03 Yao Qi <yao@codesourcery.com>
1866
1867 * config/djgpp/fnchange.lst: Remove entry of
1868 i386-interix-nat.c and i386-interix-tdep.c.
1869 * configure.ac: Remove '*-*-interix*'.
1870 * configure: Re-generated.
1871 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1872 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1873 obsolete comments.
1874 * osabi.c (gdb_osabi_names): Remove "Interix".
1875
0f9741f2
YQ
18762013-09-03 Yao Qi <yao@codesourcery.com>
1877
1878 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1879
1e038f67
MM
18802013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1881
1882 * record.h (record_print_flag) <record_print_src_line,
1883 record_print_insn_range>: Rename into ...
1884 (record_print_flag) <record_print_src_line,
1885 record_print_insn_range>: ... this. Update all users.
1886
9e52adf9
PM
18872013-09-02 Pierre Muller <muller@sourceware.org>
1888
1889 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1890 error code.
1891
a2388568
PM
18922013-09-02 Pierre Muller <muller@sourceware.org>
1893
1894 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1895 by use of plongest function.
1896
9058cc3a
TG
18972013-09-02 Tristan Gingold <gingold@adacore.com>
1898
1899 * NEWS: Add entry mentioning support for native Windows x64
1900 SEH data.
1901
1902 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1903 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1904 (struct amd64_windows_frame_cache): New struct.
1905 (amd64_windows_w2gdb_regnum): New global.
1906 (pc_in_range, amd64_windows_frame_decode_epilogue)
1907 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1908 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1909 (amd64_windows_frame_this_id): New functions.
1910 (amd64_windows_frame_unwind): New static global.
1911 (amd64_windows_skip_prologue): New function.
1912 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1913 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1914 with amd64_windows_skip_prologue.
1915
3161820b 19162013-08-30 Joel Brobecker <brobecker@adacore.com>
1917
1918 GDB 7.6.1 released.
1919
02457c76
PA
19202013-08-30 Pedro Alves <palves@redhat.com>
1921
1922 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1923 SRC_AND_LOC.
1924
e0162910
PA
19252013-08-30 Pedro Alves <palves@redhat.com>
1926
1927 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1928 warning text.
1929
6391ce51
PA
19302013-08-30 Pedro Alves <palves@redhat.com>
1931
1932 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1933 Adjust arguments to print_stack_frame.
1934
d1da0587
PA
19352013-08-30 Pedro Alves <palves@redhat.com>
1936
1937 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1938
adfd8245
PA
19392013-08-30 Pedro Alves <palves@redhat.com>
1940
1941 * frame.h (show_and_print_stack_frame): Delete declaration.
1942
96d9056e
PM
19432013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1944
1945 PR python/15461
1946
1947 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1948 (archpy_name): Check for valid architecture.
1949 (archpy_disassemble): Ditto.
1950
11cb8762
JB
19512013-08-29 Joel Brobecker <brobecker@adacore.com>
1952
1953 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1954 instead of "long long" in call to ptrace64.
1955
1af12a7d
AB
19562013-08-29 Andrew Burgess <aburgess@broadcom.com>
1957
1958 * mi/mi-interp.c (mi_command_loop): Change signature to match
1959 interp_command_loop_ftype.
1960 (mi1_command_loop): Remove.
1961 (mi2_command_loop): Remove.
1962 (mi3_command_loop): Remove.
1963 (mi_interpreter_resume): Remove setting of
1964 deprecated_command_loop_hook.
1965 (_initialize_mi_interp): Set mi_command_loop as the command loop
1966 callback.
1967
acc900c2
SA
19682013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1969
1970 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1971 value_type.
1972
548b762d
SA
19732013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1974
1975 * value.c (allocate_value_contents): Make static.
1976 * value.h (allocate_value_contents): Remove prototype.
1977
08039c9e
SA
19782013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1979
1980 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1981 of assembling value via allocate_value_lazy and attribute setter.
1982 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1983 assembling value via allocate_value_lazy and attribute setter.
1984 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1985 assembling value via allocate_value_lazy and attribute setter.
1986
314c7de9
SA
19872013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1988
1989 * value.c (value_from_contents_and_address): Replace allocate_value and
1990 memcpy with value_from_contents.
1991
8f28f522
PM
19922013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1993
1994 * python/py-framefilter.c (py_print_frame): Remove usage of
1995 PyString_AsString. Use python_string_to_host_string instead.
1996 Refactor function to work with a string as a new allocation
1997 instead of a pointer.
1998 (py_print_frame): Ditto.
1999 * python/lib/gdb/frames.py (return_list): Cain iterators together
2000 instead of adding them as a list.
2001 (_sort_list): Call return_list, and remove duplicate code.
2002 (execute_frame_filters): Convert iterator to a list with list().
2003 * python/lib/gdb/command/frame_filters.py
2004 (SetFrameFilterPriority._set_filter_priority): Convert priority
2005 attribute to an integer.
2006 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2007 wrapper function __next__.
2008 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2009 define as "str".
2010
8ee002df
PM
20112013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2012
2013 PR python/15752
8ee002df
PM
2014 * python/py-framefilter.c (apply_frame_filter): Check
2015 gdb_python_initialized. Exit if the Python frame-filter code
2016 cannot be initialized.
2017
af4c453a
PM
20182013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2019
2020 PR cli/15842
af4c453a
PM
2021 * top.c (print_gdb_version): Remove erroneous newline after help
2022 text.
2023
bf8793bb
YQ
20242013-08-29 Yao Qi <yao@codesourcery.com>
2025
2026 * varobj.c (install_dynamic_child): Remove trailing space.
2027 Add one blank line after variable declaration.
2028
1f0c4988
JK
20292013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2030
2031 PR gdb/15415
2032 * corefile.c (get_exec_file): Use exec_filename.
2033 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2034 * exec.c (exec_close): Free EXEC_FILENAME.
2035 (exec_file_attach): New variable canonical_pathname. Use
2036 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2037 EXEC_FILENAME.
2038 * exec.h (exec_filename): New.
2039 * inferior.c (print_inferior, inferior_command): Use
2040 PSPACE_EXEC_FILENAME.
2041 * mi/mi-main.c (print_one_inferior): Likewise.
2042 * progspace.c (clone_program_space, print_program_space): Likewise.
2043 * progspace.h (struct program_space): New field pspace_exec_filename.
2044 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2045 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2046
59ee9f94
WN
20472013-08-28 Will Newton <will.newton@linaro.org>
2048
2049 * common/linux-ptrace.c: Include stdint.h unconditionally.
2050
c8a2a419
JK
20512013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2052
2053 Code cleanup.
2054 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2055
ffa4ac95
YQ
20562013-08-28 Yao Qi <yao@codesourcery.com>
2057 Pedro Alves <palves@redhat.com>
2058
2059 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2060 instead of stdio_fileopen.
2061 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2062 .Call stderr_fileopen instead of stdio_fileopen.
2063 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2064 [__MINGW32__] (stderr_file_fputs): New function.
2065 (stderr_fileopen): New function.
2066 * ui-file.h (stderr_fileopen): Declare.
2067
69d751e3
DE
20682013-08-27 Doug Evans <dje@google.com>
2069
2070 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2071 (struct dwarf2_per_cu_data): Ditto.
2072 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2073 (process_imported_unit_die): Ditto.
2074 (follow_die_sig_1): Simplify assert.
2075
44f38867
PA
20762013-08-27 Pedro Alves <palves@redhat.com>
2077
2078 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2079 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2080 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2081 windows_xfer_memory directly.
2082 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2083
d28d46b5
PA
20842013-08-27 Pedro Alves <palves@redhat.com>
2085
2086 * darwin-nat.c (darwin_xfer_memory): Delete.
2087 (_initialize_darwin_inferior): Don't install a
2088 deprecated_xfer_memory method.
2089
6211c335
YQ
20902013-08-27 Pedro Alves <pedro@codesourcery.com>
2091 Yao Qi <yao@codesourcery.com>
2092
2093 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2094 (parse_no_frames_option): Remove.
2095 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2096 (mi_cmd_stack_list_args): Adjust.
2097 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2098 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2099 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2100 Caller update.
2101 (list_args_or_locals): New parameter 'skip_unavailable'.
2102 Handle it.
2103 * valprint.c (scalar_type_p): Rename to ...
2104 (val_print_scalar_type_p): ... this. Make extern.
2105 (val_print, value_check_printable): Adjust.
2106 * valprint.h (val_print_scalar_type_p): Declare.
2107 * value.c (value_entirely_unavailable): New function.
2108 * value.h (value_entirely_unavailable): Declare.
2109
2110 * NEWS: Mention the new option "--skip-unavailable" to MI
2111 commands '-stack-list-locals', '-stack-list-arguments' and
2112 '-stack-list-variables'.
2113
242f1fd7
YQ
21142013-08-27 Yao Qi <yao@codesourcery.com>
2115
2116 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2117 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2118 options.
2119 * mi/mi-getopt.c (mi_getopt): Remove.
2120 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2121 'error_on_unknown'.
2122 (mi_getopt): Call mi_getopt_1.
2123 (mi_getopt_silent): New.
2124 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2125
260b681b
DE
21262013-08-26 Doug Evans <dje@google.com>
2127
779bd270
DE
2128 PR symtab/15885
2129 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2130 .gdb_index is in use.
2131 * symfile.c (reread_symbols): Reset objfile->sf.
2132
52e260a3
DE
2133 * NEWS: Document "mt print objfiles" now takes optional regexp.
2134 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2135 regexp of objfiles to print.
2136 (_initialize_symmisc): Update doc string for "mt print objfiles".
2137
260b681b
DE
2138 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2139 missing debug info checks.
2140
a85c52f2
UW
21412013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2142 Ulrich Weigand <uweigand@de.ibm.com>
2143
2144 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2145 line tables generated by XLC compiled binaries.
2146
4f00dda3
DE
21472013-08-23 Doug Evans <dje@google.com>
2148
db68bbae
DE
2149 * symmisc.c (dump_symtab): Delete prototype.
2150 (dump_msymbols, dump_objfile): Ditto.
2151 (maintenance_info_symtabs): Mark as dont_repeat.
2152 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2153
4f00dda3
DE
2154 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2155 debugging printf to better location.
2156
23d577b0
PA
21572013-08-23 Pedro Alves <palves@redhat.com>
2158
2159 * target.c (target_read_live_memory): Change type of 'ret' local
2160 to LONGEST.
2161
00d84524
PA
21622013-08-23 Pedro Alves <palves@redhat.com>
2163
2164 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2165 (remote_read_bytes): Change return type to LONGEST, and adjust to
2166 return a target_xfer_error on error.
2167 (remote_xfer_memory): Delete.
2168 (remote_flash_write): Change type of 'ret' local to LONGEST.
2169 (remote_xfer_partial, remote_xfer_partial): Adjust.
2170 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2171
1ed3ee94
PM
21722013-08-23 Pierre Muller <muller@sourceware.org>
2173
2174 ARI fix: Push # directives to start of line.
2175 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2176
9eaabc75
MW
21772013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2178
2179 PR gdb/15501
2180 * breakpoint.c (enable_command, disable_command): Iterate over
2181 all specified breakpoint locations.
2182
101158d9
LM
21832013-08-22 Luis Machado <lgustavo@codesourcery.com>
2184
2185 * common/linux-ptrace.c (linux_fork_to_function): Push #
2186 directives to the start of the line.
2187 (linux_check_ptrace_features): Fix warning message to use
2188 the "_" markup.
2189
96d7229d
LM
21902013-08-22 Luis Machado <lgustavo@codesourcery.com>
2191
2192 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2193 nat/linux-waitpid.h.
2194 (linux-waitpid.o): New object file rule.
2195 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2196 (current_ptrace_options): Moved from linux-nat.c.
2197 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2198 parameters.
2199 (linux_fork_to_function): New function.
2200 (linux_grandchild_function): Likewise.
2201 (linux_child_function): Likewise.
2202 (linux_check_ptrace_features): New function, heavily
2203 based on linux-nat.c:linux_test_for_tracefork.
2204 (linux_enable_event_reporting): New function.
2205 (ptrace_supports_feature): Likewise.
2206 (linux_supports_tracefork): Likewise.
2207 (linux_supports_traceclone): Likewise.
2208 (linux_supports_tracevforkdone): Likewise.
2209 (linux_supports_tracesysgood): Likewise.
2210 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2211 gdbserver/linux-low.c.
2212 (linux_enable_event_reporting): New declaration.
2213 (linux_supports_tracefork): Likewise.
2214 (linux_supports_traceclone): Likewise.
2215 (linux_supports_tracevforkdone): Likewise.
2216 (linux_supports_tracesysgood): Likewise.
2217 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2218 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2219 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2220 * config/arm/linux.mh (NATDEPFILES): Likewise.
2221 * config/i386/linux.mh (NATDEPFILES): Likewise.
2222 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2223 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2224 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2225 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2226 * config/mips/linux.mh (NATDEPFILES): Likewise.
2227 * config/pa/linux.mh (NATDEPFILES): Likewise..
2228 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2229 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2230 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2231 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2232 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2233 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2234 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2235 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2236 ptrace's 4th argument's types.
2237 Check the type of PTRACE_TYPE_ARG4.
2238 * configure: Regenerate.
2239 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2240 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2241 (linux_supports_tracefork_flag): Remove.
2242 (linux_supports_tracesysgood_flag): Likewise.
2243 (linux_supports_tracevforkdone_flag): Likewise.
2244 (current_ptrace_options): Moved to
2245 common/linux-ptrace.c.
2246 (linux_tracefork_child): Remove.
2247 (my_waitpid): Remove.
2248 (linux_test_for_tracefork): Renamed to
2249 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2250 (linux_test_for_tracesysgood): Remove.
2251 (linux_supports_tracesysgood): Remove.
2252 (linux_supports_tracefork): Remove.
2253 (linux_supports_tracevforkdone): Remove.
2254 (linux_enable_tracesysgood): Remove.
2255 (linux_enable_event_reporting): Remove.
2256 (linux_init_ptrace): New function.
2257 (linux_child_post_attach): Call linux_init_ptrace.
2258 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2259 (linux_child_follow_fork): Call linux_supports_tracefork
2260 and linux_supports_tracevforkdone.
2261 (linux_child_insert_fork_catchpoint): Call
2262 linux_supports_tracefork.
2263 (linux_child_insert_vfork_catchpoint): Likewise.
2264 (linux_child_set_syscall_catchpoint): Call
2265 linux_supports_tracesysgood.
2266 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2267 * nat/linux-nat.h: New file.
2268 * nat/linux-waitpid.c: New file.
2269 * nat/linux-waitpid.h: New file.
2270
9f948660
SDJ
22712013-08-22 Samuel Bronson <naesten@gmail.com>
2272
2273 ARM Linux support for `catch syscall'.
2274 * syscalls/arm-linux.py: New file.
2275 * syscalls/arm-linux.xml: Likewise.
2276 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2277 (arm_linux_init_abi): Register the new function and syscall xml file.
2278 * data-directory/Makefile.in: Install the new syscall xml file.
2279 * NEWS: Brag about this.
2280
6be7b56e
PA
22812013-08-22 Pedro Alves <palves@redhat.com>
2282
2283 PR gdb/15871
2284 * corefile.c (target_xfer_memory_error): New function.
2285 (memory_error): Defer EIO to target_memory_error.
2286 (read_memory): Use target_xfer_partial, and handle finer-grained
2287 target xfer errors.
2288 * target.c (target_xfer_error_to_string): New function.
2289 (memory_xfer_partial_1): If memory is known to be
2290 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2291 (target_xfer_partial): Make extern.
2292 * target.h (enum target_xfer_error): New enum.
2293 (target_xfer_error_to_string): Declare function.
2294 (target_xfer_partial): Declare function.
2295 (struct target_ops) <xfer_partial>: Adjust describing comment.
2296
bcbec14e
AM
22972013-08-22 Alan Modra <amodra@gmail.com>
2298
2299 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2300 * configure.tgt: Likewise as targets.
2301
fc474241
DE
23022013-08-20 Doug Evans <dje@google.com>
2303
2304 * buildsym.c (subfile_stack): Move here from buildsym.h.
2305 (pending_macros): Ditto.
2306 (get_macro_table): New function.
2307 (buildsym_init): Initialize subfile_stack.
2308 * coffread.c (type_vector,type_vector_length): Moved here from
2309 buildsym.h.
2310 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2311 (coff_symtab_read): Use it.
2312 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2313 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2314 with call to get_macro_table.
2315 * stabsread.c (type_vector,type_vector_length): Moved here from
2316 buildsym.h.
2317 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2318 * buildsym.h (get_macro_table): Declare.
2319
bec71544
TT
23202013-08-20 Tom Tromey <tromey@redhat.com>
2321
2322 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2323 Update.
2324 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2325
0002ad5f
DE
23262013-08-20 Doug Evans <dje@google.com>
2327
2328 * blockframe.c: Remove #include "psymtab.h".
2329 * cp-support.c: Ditto.
2330 * source.c: Ditto.
2331 * stack.c: Ditto.
2332
df302446
TT
23332013-08-20 Tom Tromey <tromey@redhat.com>
2334
2335 PR python/15816:
2336 * exceptions.h (return_mask): Now an enum.
2337 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2338 enum constants.
2339
df6d5441
TT
23402013-08-20 Tom Tromey <tromey@redhat.com>
2341
2342 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2343 get_objfile_arch.
2344 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2345 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2346 * jit.c (jit_object_close_impl): Update.
2347 * jv-lang.c (get_dynamics_objfile): Update.
2348 * linespec.c (add_minsym): Use get_dynamics_objfile.
2349 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2350 (allocate_objfile): Don't initialize 'gdbarch' field.
2351 (get_objfile_arch): Update.
2352 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2353 moved from...
2354 (struct objfile) <gdbarch>: ... here. Remove.
2355 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2356 get_objfile_arch.
2357 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2358
f5aee5ee
AM
23592013-08-20 Alan Modra <amodra@gmail.com>
2360
2361 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2362 for IBM long double nan and inf.
2363 (floatformat_is_negative, floatformat_classify,
2364 floatformat_mantissa): Similarly.
2365 (floatformat_ieee_single, floatformat_ieee_double,
2366 floatformat_ieee_quad, floatformat_arm_ext,
2367 floatformat_ia64_spill): Delete unused vars.
2368 (_initialize_doublest): Delete unused function.
2369 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2370 little-endian variants of floatformat_ibm_long_double.
2371
33b60d58 23722013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2373
33b60d58
LM
2374 * Makefile.in (SFILES): Remove common/target-common.c and
2375 add target/waitstatus.c.
2376 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2377 target/resume.h, target/wait.h and target/waitstatus.h.
2378 (COMMON_OBS): Remove target-common.o and add
2379 waitstatus.o.
2380 (target-common.o): Remove.
2381 (waitstatus.o): New target object file.
2382 * common/target-common.c: Move contents to
2383 target/waitstatus.c and remove.
2384 * common/target-common.h: Move contents to other files and
2385 remove.
2386 (enum resume_kind: Move to target/resume.h.
2387 (TARGET_WNOHANG): Move to target/wait.h.
2388 (enum target_waitkind): Move to target/waitstatus.h.
2389 (struct target_waitstatus): Likewise.
2390 * target.h: Do not include target-common.h and
2391 include target/resume.h, target/wait.h and
2392 target/waitstatus.h.
2393 * target/resume.h: New file.
2394 * target/wait.h: New file.
2395 * target/waitstatus.h: New file.
2396 * target/waitstatus.c: New file.
2397
12696c10
PA
23982013-08-19 Pedro Alves <palves@redhat.com>
2399
2400 * linux-nat.c (linux_test_for_tracefork)
2401 (linux_test_for_tracesysgood, linux_child_follow_fork)
2402 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2403 (linux_nat_wait_1): Extend comment.
2404 (linux_async_pipe): Add comment.
2405
ba89f962
KB
24062013-08-15 Kevin Buettner <kevinb@redhat.com>
2407
2408 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2409 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2410 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2411 Update to account for fact that PC is now a pseudo-register.
2412 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2413 cases for RL78_PC_REGNUM.
2414
35ab155d
MB
24152013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2416
2417 PR cli/15841
2418 * top.c (quit_force): Skip writing history file
2419 if input is not from terminal.
2420
0d031856
TT
24212013-08-14 Tom Tromey <tromey@redhat.com>
2422
2423 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2424 resultthreadlist>: New fields.
2425 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2426 (remote_get_threadlist, remote_threadlist_iterator): Use
2427 new fields. Remove static variables.
2428
ee154bee
TT
24292013-08-14 Tom Tromey <tromey@redhat.com>
2430
2431 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2432 remote_watch_data_address>: New fields.
2433 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2434 (process_stop_reply, remote_wait_as)
2435 (remote_check_watch_resources, remote_stopped_data_address): Update.
2436
88b496c3
TT
24372013-08-14 Tom Tromey <tromey@redhat.com>
2438
2439 * remote.c (struct remote_state) <async_client_callback,
2440 async_client_context>: New fields.
2441 (async_client_callback, async_client_context): Remove.
2442 (remote_async_serial_handler, remote_async): Update.
2443
2f65bcb7
TT
24442013-08-14 Tom Tromey <tromey@redhat.com>
2445
2446 * remote.c (sizeof_pkt): Remove.
2447 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2448
b80fafe3
TT
24492013-08-14 Tom Tromey <tromey@redhat.com>
2450
2451 * remote.c (struct remote_state) <use_threadinfo_query,
2452 use_threadextra_query>: New fields.
2453 (remote_threads_info, remote_threads_extra_info)
2454 (remote_open_1): Update.
2455
8e88304f
TT
24562013-08-14 Tom Tromey <tromey@redhat.com>
2457
2458 * remote.c (struct remote_state) <finished_object,
2459 finished_annex, finished_offset>: New fields.
2460 (remote_read_qxfer): Use remote_state fields; remove static
2461 variables.
2462
280ceea3
TT
24632013-08-14 Tom Tromey <tromey@redhat.com>
2464
2465 * remote.c (struct remote_state) <last_sent_step>:
2466 New field.
2467 (last_sent_step): Remove.
2468 (remote_resume, remote_wait_as): Update.
2469
b73be471
TT
24702013-08-14 Tom Tromey <tromey@redhat.com>
2471
2472 * remote.c (struct remote_state) <last_sent_signal>:
2473 New field.
2474 (last_sent_signal): Remove.
2475 (new_remote_state, remote_resume, remote_wait_as): Update.
2476
5e4a05c4
TT
24772013-08-14 Tom Tromey <tromey@redhat.com>
2478
2479 * remote.c (struct remote_state) <last_program_signals_packet>:
2480 New field.
2481 (last_program_signals_packet): Remove.
2482 (remote_program_signals, remote_open_1): Update.
2483
747dc59d
TT
24842013-08-14 Tom Tromey <tromey@redhat.com>
2485
2486 * remote.c (struct remote_state) <last_pass_packet>:
2487 New field.
2488 (last_pass_packet): Remove.
2489 (remote_pass_signals, remote_open_1): Update.
2490
262e1174
TT
24912013-08-14 Tom Tromey <tromey@redhat.com>
2492
2493 * remote.c (struct remote_state) <remote_traceframe_number>:
2494 New field.
2495 (remote_traceframe_number): Remove.
2496 (new_remote_state, remote_open_1, set_remote_traceframe)
2497 (remote_trace_find): Update.
2498
47f8a51d
TT
24992013-08-14 Tom Tromey <tromey@redhat.com>
2500
2501 * remote.c (struct remote_state) <general_thread, continue_thread>:
2502 New fields.
2503 (general_thread, continue_thread): Remove.
2504 (record_currthread, set_thread, set_general_process)
2505 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2506 (extended_remote_mourn_1): Update.
2507
5d93a237
TT
25082013-08-14 Tom Tromey <tromey@redhat.com>
2509
2510 * remote.c (struct remote_state) <remote_desc>: New field.
2511 (remote_desc): Remove.
2512 (remote_threads_info, remote_threads_extra_info, remote_close)
2513 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2514 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2515 (remote_hostio_send_command, remote_file_put, remote_file_get)
2516 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2517 (remote_async, remote_new_objfile, set_range_stepping): Update.
2518
cf792862
TT
25192013-08-14 Tom Tromey <tromey@redhat.com>
2520
2521 * remote.c (remote_state): Now a pointer.
2522 (get_remote_state_raw): Update.
2523 (new_remote_state): New function.
2524 (_initialize_remote): Use new_remote_state.
2525
dc473cfb
TT
25262013-08-14 Tom Tromey <tromey@redhat.com>
2527
2528 * remote.c (remote_protocol_features): Now const.
2529
85ec6ce7
TT
25302013-08-14 Tom Tromey <tromey@redhat.com>
2531
2532 * remote.c (crc32_table, crc32): Remove.
2533 (remote_verify_memory): Use xcrc32.
2534
73033f12
SDJ
25352013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2536
2537 * value.h (create_internalvar_type_lazy): Adjust prototype
2538 declaration.
2539
5c30d39a
AB
25402013-08-13 Andrew Burgess <aburgess@broadcom.com>
2541
2542 * common/format.c (parse_format_string): Don't allow '#' flag for
2543 pointer arguments in format string.
2544
1a66331e
PM
25452013-08-13 Pierre Muller <muller@sourceware.org>
2546
fde605f3 2547 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2548 if rl_get_screen_size did not return useful values.
2549
b4013987
AA
25502013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2551
2552 PR breakpoints/15117
2553 * linespec.c (linespec_parse_basic): Check for convenience
2554 variable or history value while parsing.
2555
959b6a66
SDJ
25562013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2557
2558 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2559 AVR.
2560 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2561 different signals between the generic Linux kernel implementation
2562 and AVR's.
2563 (avr_linux_gdb_signal_from_target): Delete.
2564 (avr_linux_gdb_signal_to_target): Delete.
2565 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2566
24a55014
DE
25672013-08-09 Doug Evans <dje@google.com>
2568
2569 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2570 entries.
2571
eb14d406
SDJ
25722013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2573
2574 * linux-tdep.c: Define enum with generic signal numbers.
2575 (linux_gdb_signal_from_target): New function.
2576 (linux_gdb_signal_to_target): Likewise.
2577 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2578 methods to the functions above.
2579 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2580 (linux_gdb_signal_to_target): Likewise.
2581 * alpha-linux-tdep.c: Define new enum with signals different
2582 from generic Linux kernel.
2583 (alpha_linux_gdb_signal_from_target): New function.
2584 (alpha_linux_gdb_signal_to_target): Likewise.
2585 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2586 with the functions mentioned above.
2587 * avr-tdep.c: Define enum with differences between Linux kernel
2588 and AVR signals.
2589 (avr_linux_gdb_signal_from_target): New function.
2590 (avr_linux_gdb_signal_to_target): Likewise.
2591 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2592 the functions mentioned above.
2593 * sparc-linux-tdep.c: Define enum with differences between SPARC
2594 and generic Linux kernel signal numbers.
2595 (sparc32_linux_gdb_signal_from_target): New function.
2596 (sparc32_linux_gdb_signal_to_target): Likewise.
2597 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2598 to the functions defined above.
2599 * xtensa-linux-tdep.c: Define enum with differences between
2600 Xtensa and Linux kernel generic signals.
2601 (xtensa_linux_gdb_signal_from_target): New function.
2602 (xtensa_linux_gdb_signal_to_target): Likewise.
2603 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2604 to the functions defined above.
2605 * mips-linux-tdep.c: Define enum with differences between
2606 signals in MIPS and Linux kernel generic ones.
2607 (mips_gdb_signal_to_target): New function.
2608 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2609 only different signals from the Linux kernel generic.
2610 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2611 the functions defined above.
2612 * mips-linux-tdep.h (enum mips_signals): Remove.
2613
156d08c8
PA
26142013-08-09 Pedro Alves <palves@redhat.com>
2615
2616 * avr-tdep.c (XMALLOC): Delete macro.
2617 * cli/cli-dump.c (XMALLOC): Delete macro.
2618
db229724
PA
26192013-08-09 Pedro Alves <palves@redhat.com>
2620
2621 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2622 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2623 (fopen_with_cleanup, add_dump_command): Make static.
2624 * cli/cli-dump.h: Delete file.
2625 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2626 cli/cli-dump.h.
2627
3f12a589
PA
26282013-08-09 Pedro Alves <palves@redhat.com>
2629
2630 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2631 error message.
2632
c718be47
PA
26332013-08-09 Pedro Alves <palves@redhat.com>
2634
156d08c8 2635 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2636 error message.
2637
1e351ed1
PA
26382013-08-09 Pedro Alves <palves@redhat.com>
2639
2640 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2641 (gcore_command): Use tilde_expand here, and when showing the
2642 filename to the user, show the expanded version.
2643
1ed8d800
YQ
26442013-08-09 Yao Qi <yao@codesourcery.com>
2645
2646 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2647 'entryval' is set.
2648
47ecca85
PA
26492013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2650
2651 * gcore.c (create_gcore_bfd): Use tilde_expand.
2652
82a0a75f
YQ
26532013-08-08 Yao Qi <yao@codesourcery.com>
2654
2655 * frame.h (read_frame_local): Declare.
2656 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2657 read_frame_local.
2658 * stack.c (read_frame_local): New.
2659
5c4aa40b
YQ
26602013-08-08 Yao Qi <yao@codesourcery.com>
2661
2662 * mi/mi-cmd-stack.c: Update comments to function
2663 list_args_or_locals.
2664
b93601f3
TT
26652013-08-07 Tom Tromey <tromey@redhat.com>
2666
2667 PR symtab/15028:
2668 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2669 (process_psymtab_comp_unit_reader): Use it.
2670 (process_psymtab_comp_unit): Update. Add "pretend_language"
2671 argument.
2672 (dwarf2_build_psymtabs_hard): Update.
2673 (scan_partial_symbols): Pass CU's language to
2674 process_psymtab_comp_unit.
2675
fa760f46
TT
26762013-08-07 Tom Tromey <tromey@redhat.com>
2677
2678 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2679 (dwarf2_gdb_index_functions): Update.
2680 * psymtab.c (find_symbol_file_from_partial): Remove.
2681 (psym_functions): Update.
2682 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2683 Remove.
2684
bf6d8a91
TT
26852013-08-07 Tom Tromey <tromey@redhat.com>
2686
2687 * symfile.c (set_initial_language): Look up "main" symbol
2688 and use its language.
2689 * symtab.c (find_main_filename): Remove.
2690 * symtab.h (find_main_filename): Remove.
2691
f9125b6c
TT
26922013-08-07 Tom Tromey <tromey@redhat.com>
2693
2694 * dwarf2read.c (recursively_compute_inclusions): Add
2695 "immediate_parent" argument. Set symtab's "user" field
2696 if not set.
2697 (compute_symtab_includes): Update.
2698
fdbb204b
TT
26992013-08-07 Tom Tromey <tromey@redhat.com>
2700
2701 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2702 when adding label symbols.
2703
49de1690
UW
27042013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2705 Ulrich Weigand <uweigand@de.ibm.com>
2706
2707 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2708 * configure.host (powerpc64-*-aix*): Likewise.
2709
b08ee99f
UW
27102013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2711 Ulrich Weigand <uweigand@de.ibm.com>
2712
2713 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2714 is defined.
2715 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2716 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2717 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2718 * configure.ac: Check for ptrace64.
2719 * configure, config.in: Regenerate.
2720
fecf803e
UW
27212013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2722 Ulrich Weigand <uweigand@de.ibm.com>
2723
2724 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2725 Call ptrace64 instead of ptrace if defined.
2726 Add macro addr_ptr to take care of ptrace address argument.
2727 (pdc_read_regs): Likewise.
2728 (pdc_write_regs): Likewise.
2729 (aix_thread_resume): Likewise.
2730 (fetch_regs_kernel_thread): Likewise.
2731 (store_regs_kernel_thread): Likewise.
2732
3bb5e4a8
AB
27332013-08-07 Anton Blanchard <anton@samba.org>
2734
2735 * MAINTAINERS: Add myself to Write After Approval.
2736
12070676
TT
27372013-08-05 Tom Tromey <tromey@redhat.com>
2738
2739 * aix-thread.c (_initialize_aix_thread): Use
2740 complete_target_initialization.
2741 * bsd-uthread.c (_initialize_bsd_uthread): Use
2742 complete_target_initialization.
2743 * dec-thread.c (_initialize_dec_thread): Use
2744 complete_target_initialization.
2745 * ravenscar-thread.c (_initialize_ravenscar): Use
2746 complete_target_initialization.
2747 * sol-thread.c (_initialize_sol_thread): Use
2748 complete_target_initialization.
2749 * spu-multiarch.c (_initialize_spu_multiarch): Use
2750 complete_target_initialization.
2751
7c7b6655
TT
27522013-08-05 Tom Tromey <tromey@redhat.com>
2753
2754 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2755 * ada-lang.c (ada_lookup_simple_minsym): Return
2756 bound_minimal_symbol.
2757 * ada-lang.h (ada_lookup_simple_minsym): Update.
2758 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2759 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2760 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2761 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2762 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2763 * minsyms.c (msymbol_objfile): Remove.
2764 (lookup_minimal_symbol_internal): New function, from
2765 lookup_minimal_symbol.
2766 (lookup_minimal_symbol): Rewrite using
2767 lookup_minimal_symbol_internal.
2768 (lookup_bound_minimal_symbol): New function.
2769 * minsyms.h (msymbol_objfile): Remove.
2770 (lookup_bound_minimal_symbol): Declare.
2771 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2772 * parse.c (write_exp_msymbol): Change parameter to a
2773 bound_minimal_symbol.
2774 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2775 * parser-defs.h (write_exp_msymbol): Update.
2776 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2777 * symfile.c (simple_read_overlay_table): Use
2778 lookup_bound_minimal_symbol.
2779 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2780 (search_symbols): Likewise.
2781 (print_msymbol_info): Take a bound_minimal_symbol argument.
2782 (symtab_symbol_info, rbreak_command): Update.
2783 * symtab.h (struct symbol_search) <msymbol>: Change type
2784 to bound_minimal_symbol.
2785 * valops.c (find_function_in_inferior): Use
2786 lookup_bound_minimal_symbol.
2787 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2788
934b9bac
JK
27892013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 Code cleanup.
2792 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2793 to ...
2794 (async_cleanup_sigint_signal_handler): ... this.
2795 (initialize_sigint_signal_handler): Remove declaration.
2796 (handle_remote_sigint): Rename the declaration to ...
2797 (async_handle_remote_sigint): ... this.
2798 (handle_remote_sigint_twice): Rename the declaration to ...
2799 (async_handle_remote_sigint_twice): ... this.
2800 (async_remote_interrupt, async_remote_interrupt_twice)
2801 (remote_interrupt): Remove the declarations.
2802 (remote_interrupt_twice): Rename the declaration ...
2803 (sync_remote_interrupt_twice): ... this.
2804 (sigint_remote_twice_token): Rename the variable to ...
2805 (async_sigint_remote_twice_token): ... this.
2806 (sigint_remote_token): Rename the variable to ...
2807 (async_sigint_remote_token): ... this.
2808 (initialize_sigint_signal_handler): Rename the function to ...
2809 (async_initialize_sigint_signal_handler): ... this. Update the name
2810 inside.
2811 (handle_remote_sigint): Rename the function to ...
2812 (async_handle_remote_sigint): ... this. Update the names inside.
2813 (handle_remote_sigint_twice): Rename the function to ...
2814 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2815 (cleanup_sigint_signal_handler): Rename the function to ...
2816 (async_cleanup_sigint_signal_handler): ... this.
2817 (remote_interrupt): Rename the function to ...
2818 (sync_remote_interrupt): this. Update the names inside.
2819 (remote_interrupt_twice): Rename the function to ...
2820 (sync_remote_interrupt_twice): this. Update the names inside.
2821 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2822 (_initialize_remote): Update the names inside.
2823
3a1115a0
TT
28242013-08-02 Tom Tromey <tromey@redhat.com>
2825
2826 PR symtab/15719:
2827 * breakpoint.c (update_watchpoint, watchpoint_check)
2828 (watch_command_1): Update.
2829 * eval.c (fetch_subexp_value): Add "preserve_errors"
2830 parameter.
2831 * ppc-linux-nat.c (check_condition): Update.
2832 * value.h (fetch_subexp_value): Update.
2833
58b19776
AB
28342013-08-02 Andrew Burgess <aburgess@broadcom.com>
2835
2836 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2837 add_file_handler.
2838
ec94af83
DE
28392013-08-01 Doug Evans <dje@google.com>
2840
7ee85ab1
DE
2841 PR symtab/15691
2842 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2843 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2844 Add assert of sig_entry->dwo_unit == NULL.
2845 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2846 had already been read.
2847 (read_signatured_type): Set per_cu.tu_read.
2848
b846d303
DE
2849 PR symtab/15695
2850 * valops.c (value_struct_elt): Add missing call to check_typedef.
2851 (value_find_oload_method_list): Ditto.
2852
b52109bc
DE
2853 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2854 effectively, struct symbol_search **.
2855 (make_cleanup_free_search_symbols): Change arg to struct
2856 symbol_search **. All callers updated.
2857 (compare_search_syms): Compare symtab file name and block as well.
2858 (search_symbols_equal): New function.
2859 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2860 New args new_head, new_tail. Result is now void. Remove dups after
2861 sorting the symbols.
2862 (search_symbols): Sort all found symbols once, after all have been
2863 found, and remove duplicates. Simplify cleanup tracking of result.
2864 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2865
ec94af83
DE
2866 Further workarounds for binutils/15021.
2867 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2868 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2869 Watch for duplicate symtabs coming from type units.
2870 (compute_symtab_includes): Update call to
2871 recursively_compute_inclusions. Build vector of included symtabs
2872 instead of per_cus.
2873 * symtab.h (symtab_ptr): New typedef.
2874 (DEF_VEC_P (symtab_ptr)): New VEC type.
2875 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2876 instead.
2877
b2ae85cf
AB
28782013-08-01 Andrew Burgess <aburgess@broadcom.com>
2879
2880 * cli/cli-script.c (script_from_file): Remove use of
2881 error_pre_print.
2882 * main.c (captured_main): Remove use of error_pre_print and
2883 quit_pre_print.
2884 * utils.c (error_pre_print, quit_pre_print): Remove.
2885 * utils.h (error_pre_print, quit_pre_print): Likewise.
2886
645eab03
YQ
28872013-08-01 Yao Qi <yao@codesourcery.com>
2888
2889 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2890 with mi_getopt.
2891 (mi_cmd_stack_list_variables): Likewise.
2892
16f92dd4
AB
28932013-07-31 Andrew Burgess <aburgess@broadcom.com>
2894
2895 * exceptions.c (deprecated_throw_reason): Remove.
2896 * exceptions.h (deprecated_throw_reason): Remove.
2897
13f78033
AB
28982013-07-31 Andrew Burgess <aburgess@broadcom.com>
2899
2900 * remote-mips.c (mips_error): Replace use of
2901 deprecated_throw_reason with throw_verror. Use the error message
2902 passed to mips_error as the error message for throw_verror.
2903
039e3c22
AB
29042013-07-31 Andrew Burgess <aburgess@broadcom.com>
2905
2906 * monitor.c (monitor_interrupt_query): Replace use of
2907 deprecated_throw_reason with quit.
2908 * nto-procfs.c (interrupt_query): Likewise.
2909 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2910 * remote-mips.c (mips_kill): Likewise.
2911 * remote.c (interrupt_query): Likewise.
2912
8150913b
AB
29132013-07-31 Andrew Burgess <aburgess@broadcom.com>
2914
2915 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2916 with call to fatal.
2917
de74e63a
YQ
29182013-07-31 Pedro Alves <pedro@codesourcery.com>
2919 Yao Qi <yao@codesourcery.com>
2920
2921 * tracepoint.c (trace_dump_command): Select the current frame.
2922
247f5c4f
DE
29232013-07-30 Doug Evans <dje@google.com>
2924
2925 * dwarf2read.c (process_queue): Add type signature to debug output.
2926
11b4b7cc
AB
29272013-07-30 Andrew Burgess <aburgess@broadcom.com>
2928
2929 * value.c (value_fetch_lazy): Mark optimized out values as such
2930 rather than raising an error.
2931
b0c54aa5
AB
29322013-07-30 Andrew Burgess <aburgess@broadcom.com>
2933
2934 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2935 before checking which bits of the parent, not the child, value are
2936 valid.
2937
97c85fc6
MB
29382013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2939
2940 PR gdb/15715
2941 * top.c: Include "filenames.h".
2942 (set_history_filename): New function.
2943 (init_main): Install it as set hook of the "set history filename"
2944 command.
2945
ff39bb5e
SA
29462013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2947
2948 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2949 attribute parameter.
2950 (dwarf2_const_value_data): Constify struct attribute parameter.
2951 (dwarf2_const_value): Constify struct attribute parameter.
2952 (dwarf2_const_value_attr): Constify struct attribute parameter.
2953 (lookup_die_type): Constify struct attribute parameter.
2954 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2955 (follow_die_ref_or_sig): Constify struct attribute parameter.
2956 (follow_die_ref): Constify struct attribute parameter.
2957 (follow_die_sig): Constify struct attribute parameter.
2958 (get_DW_AT_signature_type): Constify struct attribute parameter.
2959 (get_type_unit_group): Constify struct attribute parameter.
2960 (fill_in_loclist_baton): Constify struct attribute parameter.
2961 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2962 (type_unit_group): Constify struct attribute parameter.
2963
6e5a29e1
SA
29642013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2965
2966 * dwarf2read.c (attr_form_is_block): Make argument const.
2967 (attr_form_is_section_offset): Make argument const.
2968 (attr_form_is_constant): Make argument const.
2969 (attr_form_is_ref): Make argument const.
2970
7771576e
SA
29712013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2972
2973 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2974 All uses updated.
2975 (attr_form_is_ref): Moved below attr_form_is_constant.
2976
a94e8645
DE
29772013-07-29 Doug Evans <dje@google.com>
2978
bb5291d0
DE
2979 * main.c (captured_command_loop): Tweak comment.
2980
b5419e49
DE
2981 * target.c (target_async_permitted_1): Fix comment.
2982
b2d23133
DE
2983 * symtab.c (iterate_over_some_symtabs): Add comment.
2984
a94e8645
DE
2985 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2986
7a60ad40
YQ
29872013-07-27 Yao Qi <yao@codesourcery.com>
2988
2989 * NEWS: Mention that GDBserver now supports hardware
2990 watchpoints on the MIPS GNU/Linux target.
2991
aaee2056
YQ
29922013-07-27 Yao Qi <yao@codesourcery.com>
2993
2994 * Makefile.in (HFILES_NO_SRCDIR): Add
2995 common/mips-linux-watch.h.
2996 (mips-linux-watch.o): New rule.
2997 * common/mips-linux-watch.c: New.
2998 * common/mips-linux-watch.h: New.
2999 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3000 * mips-linux-nat.c: Include mips-linux-watch.h.
3001 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3002 to common/mips-linux-watch.h.
3003 (MAX_DEBUG_REGISTER): Likewise.
3004 (enum pt_watch_style): Likewise.
3005 (struct mips32_watch_regs): Likewise.
3006 (struct mips64_watch_regs): Likewise.
3007 (struct pt_watch_regs): Likewise.
3008 (struct mips_watchpoint): Likewise.
3009 (mips_linux_watch_get_irw_mask): Move to
3010 common/mips-linux-watch.c.
3011 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3012 (mips_linux_watch_get_watchlo): Likewise.
3013 (mips_linux_watch_set_watchlo): Likewise.
3014 (mips_linux_watch_get_watchhi): Likewise.
3015 (mips_linux_watch_set_watchhi): Likewise.
3016 (mips_linux_read_watch_registers): Likewise.
3017 (mips_linux_watch_type_to_irw): Likewise.
3018 (mips_linux_stopped_data_address, fill_mask): Likewise.
3019 (mips_linux_watch_try_one_watch): Likewise.
3020 (mips_linux_watch_populate_regs): Likewise.
3021
b3436450
YQ
30222013-07-27 Yao Qi <yao@codesourcery.com>
3023
3024 * mips-linux-nat.c (get_irw_mask): Rename to ...
3025 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3026 'set' to 'n'. Update function comment. All callers changed.
3027 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3028 function comment. All callers changed.
3029 (get_num_valid): Rename to ...
3030 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3031 'set' to 'n'. Update function comment. All callers changed.
3032 (get_watchlo): Rename to ...
3033 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3034 'set' to 'n'. Update function comment. All callers changed.
3035 (set_watchlo): Rename to ...
3036 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3037 'set' to 'n'. Update function comment. All callers changed.
3038 (get_watchhi): Rename to ...
3039 (mips_linux_watch_get_watchhi): ... this. Update function
3040 comment. All callers changed.
3041 (set_watchhi): Rename to ...
3042 (mips_linux_watch_set_watchhi): ... this. Update function
3043 comment. All callers changed.
3044 (mips_linux_read_watch_registers): Update function comment.
3045 Add new parameters 'lwpid', 'watch_readback', and
3046 'watch_readback_valid'. Update.
3047 (type_to_irw): Rename to ...
3048 (mips_linux_watch_type_to_irw): ... this. Update function
3049 comment. All callers changed.
3050 (fill_mask): Update function comment.
3051 (try_one_watch): Rename to ...
3052 (mips_linux_watch_try_one_watch): ... this. Change the type
3053 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3054 (populate_regs_from_watches): Rename to ...
3055 (mips_linux_watch_populate_regs): ... this. Add parameter
3056 'current_watches'. All callers changed.
3057
9be14b81
YQ
30582013-07-27 Yao Qi <yao@codesourcery.com>
3059
3060 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3061 the code.
3062 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3063 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3064 (struct pt_watch_regs): Likewise.
3065 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3066 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3067 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3068 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3069 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3070
de6f69ad
YQ
30712013-07-27 Yao Qi <yao@codesourcery.com>
3072
3073 * breakpoint.h: Include break-common.h.
3074 (enum target_hw_bp_type): Move to ...
3075 * common/break-common.h: ... here. New.
3076
6f64ef53
PA
30772013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3078
3079 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3080 process group regardless of having tty on stdin.
3081
6107e809
DE
30822013-07-25 Doug Evans <dje@google.com>
3083
3084 * linux-fork.h (detach_fork): Delete.
3085
7fdc1521
TT
30862013-07-25 Tom Tromey <tromey@redhat.com>
3087
3088 PR remote/15256, PR remote/15266:
3089 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3090 * monitor.c (monitor_detach): Use unpush_target.
3091 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3092 * remote-mips.c (mips_detach): Use unpush_target. Don't
3093 call mips_close.
3094 * remote-sim.c (gdbsim_detach): Use unpush_target.
3095 * target.c (pop_target): Remove.
3096 (pop_all_targets_above): Don't call target_close.
3097 (target_close): Assert that the target is unpushed.
3098 * target.h (pop_target): Don't declare.
3099 * tracepoint.c (tfile_open): Use unpush_target.
3100
c22a2b88
TT
31012013-07-25 Tom Tromey <tromey@redhat.com>
3102
3103 * linux-thread-db.c (init_thread_db_ops): Call
3104 complete_target_initialization.
3105 (_initialize_thread_db): Don't call add_target.
3106 * target.c (complete_target_initialization): New function.
3107 (add_target_with_completer): Call it.
3108 * target.h (complete_target_initialization): Declare.
3109
cbb6aada
MK
31102013-07-25 Mark Kettenis <kettenis@gnu.org>
3111
3112 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3113 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3114 (HPPANBSD_SIZEOF_GREGS): New define.
3115 (hppaobsd_supply_gregset): Handle additional registers.
3116 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3117 we provide more registers now.
3118 (hppabsd_supply_gregset): Supply additional registers.
3119 (hppabsd_collect_gregset): Collect additional registers.
3120
17767988
MK
31212013-07-25 Mark Kettenis <kettenis@gnu.org>
3122
3123 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3124 (hppabsd_dwarf2_frame_init_reg): New function.
3125 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3126
fdc8aae8
AB
31272013-07-25 Andrew Burgess <aburgess@broadcom.com>
3128
3129 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3130 'z' format code. Remove error for optimized out values, standard
3131 code will handle these fine.
3132
6fbe845e
AB
31332013-07-25 Andrew Burgess <aburgess@broadcom.com>
3134
3135 * NEWS: Mention new 'z' formatter.
3136 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3137 (_initialize_printcmd): Mention 'z' formatter in help text of the
3138 'x' command.
3139
3373342d
MR
31402013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3141
3142 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3143 formatting.
3144
25f9533e
SDJ
31452013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3146
3147 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3148 interface can evaluate arguments. Fallback to the old mode if it
3149 cannot.
3150 (create_exception_master_breakpoint): Likewise.
3151 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3152 (struct sym_probe_fns elf_probe_fns): Export function above to the
3153 probe interface.
3154 * probe.c (can_evaluate_probe_arguments): New function.
3155 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3156 function pointer.
3157 (can_evaluate_probe_arguments): New function prototype.
3158 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3159 probe interface can evaluate arguments. Fallback to the old mode
3160 if it cannot.
3161 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3162 interface can evaluate arguments. Warning the user if it cannot.
3163 (stap_can_evaluate_probe_arguments): New function.
3164 (struct probe_ops stap_probe_ops): Export function above to the
3165 probe interface.
3166 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3167 New function pointer.
3168
3360c0bf
LM
31692013-07-24 Luis Machado <lgustavo@codesourcery.com>
3170
3171 * Makefile.in (SFILES): Add common/target-common.c.
3172 Add common/target-common.h to headers.
3173 (COMMON_OBS): Add target-common.o.
3174 (target-common.o): New target.
3175 * linux-nat.h (resume_kind): Move to common/target-common.h.
3176 * target.c (target_waitstatus_to_string): Move to
3177 common/target-common.c.
3178 * target.h: Include target-common.h.
3179 (target_waitkind): Move to common/target-common.h.
3180 (target_waitstatus): Likewise.
3181 (TARGET_WNOHANG): Likewise.
3182 * common/target-common.c: New file.
3183 * common/target-common.h: New file.
3184
6656a72d
DE
31852013-07-24 Doug Evans <dje@google.com>
3186
3187 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3188 a warning.
3189
6df81a63
YQ
31902013-07-23 Yao Qi <yao@codesourcery.com>
3191
3192 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3193 parameter 'gdbarch'.
3194 (i386_stack_tramp_frame_sniffer): Caller update.
3195 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3196 parameter 'gdbarch' and 'target'.
3197 (i386_linux_core_read_description): Caller update.
3198 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3199 Likewise.
3200 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3201 declaration.
3202
365156ad
TT
32032013-07-23 Tom Tromey <tromey@redhat.com>
3204
3205 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3206 2013-07-22.
3207
046ac79f
JK
32082013-07-22 Doug Evans <dje@google.com>
3209
3210 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3211 * exec.c (exec_close): Update call to remove_target_sections.
3212 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3213 * solib.c (update_solib_list): Ditto.
3214 (reload_shared_libraries_1): Ditto.
3215 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3216 * target.h (struct target_section): Rename key to owner.
3217 All uses updated.
046ac79f 3218
29b2cc46
TT
32192013-07-22 Tom Tromey <tromey@redhat.com>
3220
3221 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3222
d1160018
TT
32232013-07-22 Tom Tromey <tromey@redhat.com>
3224
3225 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3226 Simplify cleanup handling.
3227
2f324bf6
TT
32282013-07-22 Tom Tromey <tromey@redhat.com>
3229
3230 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3231 on all return paths.
3232
e23b9d6e
UW
32332013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3234
3235 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3236 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3237 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3238
1cf55f60
PM
32392013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3240
3241 * top.c (print_gdb_version): Add help, apropos description and
3242 url to online documentation.
3243
fa876972
HZ
32442013-07-19 Hui Zhu <hui@codesourcery.com>
3245
3246 PR gdb/15692
3247 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3248
1527aea8
YQ
32492013-07-19 Yao Qi <yao@codesourcery.com>
3250
3251 * target.c (update_current_target): Change the default action
3252 of 'to_traceframe_info' from tcomplain to return_zero.
3253 * target.h (struct target_ops) <to_traceframe_info>: Add more
3254 comments.
3255 * valops.c (read_value_memory): Call
3256 traceframe_available_memory unconditionally.
3257
886f230e
YQ
32582013-07-18 Yao Qi <yao@codesourcery.com>
3259
3260 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3261 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3262 symbol without prefix. If found, set its type to
3263 'mst_solib_trampoline'.
3264
16419bae
DE
32652013-07-17 Doug Evans <dje@google.com>
3266
e7045703
DE
3267 * NEWS: Mention "set print raw frame-arguments".
3268 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3269 * stack.c (print_raw_frame_arguments): New static global.
3270 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3271 (_initialize_stack): New command "set/show print raw frame-arguments".
3272 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3273 (set_print_raw, show_print_raw): New functions.
3274 (_initialize_valprint): New prefix command "set/show print raw".
3275 * valprint.h (value_print_options): Improve comments.
3276
453e48a5
DE
3277 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3278 of all *list variables.
3279
16419bae
DE
3280 * gdbcmd.h (togglelist): Delete.
3281 * cli/cli-cmds.c (togglelist): Delete.
3282 (init_cmd_lists): Update.
3283 * cli/cli-cmds.h (togglelist): Delete.
3284
626f2d1c
TT
32852013-07-17 Tom Tromey <tromey@redhat.com>
3286
3287 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3288 dwarf2_per_objfile.
3289
57e6060e
DE
32902013-07-16 Doug Evans <dje@google.com>
3291
3292 * nto-tdep.c (nto_relocate_section_addresses): Update,
3293 target_section.bfd deleted.
3294 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3295 * s390-tdep.c (s390_load): Ditto.
3296 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3297
5ea5559b
AB
32982013-07-16 Andrew Burgess <aburgess@broadcom.com>
3299
3300 * common/format.c (parse_format_string): Add checks for NULL
3301 character before calling strchr.
3302
2b2848e2
DE
33032013-07-16 Doug Evans <dje@google.com>
3304
2c571006
DE
3305 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3306 temp_pathname argument.
3307 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3308 when opening the file fails.
3309
2b2848e2
DE
3310 * target.h (struct target_section): Delete member bfd.
3311 All users updated to use the_bfd_section->owner instead.
3312 * exec.c (add_to_section_table): Assert bfd is expected value.
3313 Remove initialization of target_section.bfd.
3314 (remove_target_sections): Update.
3315 (section_table_available_memory): Update.
3316 (section_table_xfer_memory_partial): Update.
3317 (print_section_info): Update.
3318 (exec_set_section_address): Update.
3319 * record-full.c (record_full_core_xfer_partial): Update.
3320 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3321 * solib-target.c (solib_target_relocate_section_addresses): Update.
3322 * symfile.c (build_section_addr_info_from_section_table): Update.
3323 * target.c (memory_xfer_live_readonly_partial): Update.
3324 (memory_xfer_partial_1): Update.
3325
926bf92d
UW
33262013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3327
3328 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3329 now available for embedded (BookE) and server (BookS) processors,
3330 correct mentions of 'booke' and adjust comments accordingly in order to
3331 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3332 (have_ptrace_booke_interface): Rename function and variable
3333 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3334 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3335 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3336 'hwdebug_point_cmp'. Update all uses.
3337 (booke_find_thread_points_by_tid): Rename function
3338 'booke_find_thread_points_by_tid' to
3339 'hwdebug_find_thread_points_by_tid'. Update all uses.
3340 (booke_insert_point): Rename function 'booke_insert_point' to
3341 'hwdebug_insert_point'. Update all uses.
3342 (booke_remove_point): Rename function 'booke_remove_point' to
3343 'hwdebug_remove_point'. Update all uses.
3344
d929bc19
MR
33452013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3346
3347 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3348 numbers with enum values.
3349
054e8d9e
AA
33502013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3351
3352 PR threads/13217
3353 * thread.c (thread_apply_all_command): Check for valid threads
3354 and thread count.
3355 (thread_array_cleanup): New struct.
3356 (set_thread_refcount): New function.
3357
cf006359
AB
33582013-07-11 Andrew Burgess <aburgess@broadcom.com>
3359
3360 * infcmd.c (default_print_one_register_info): Reuse function
3361 print_hex_chars.
3362
94e36acc
TT
33632013-07-10 Tom Tromey <tromey@redhat.com>
3364
3365 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3366 (ada-exp.o): New target.
3367
915dd369
SDJ
33682013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3369
3370 * mt-tdep.c (mt_registers_info): Call
3371 get_no_prettyformat_print_options instead of
3372 get_raw_print_options (regression by last patch from Doug
3373 Evans).
3374
eca07816
JB
33752013-07-09 Pedro Alves <palves@redhat.com>
3376
3377 Checked in by Joel Brobecker <brobecker@adacore.com>.
3378 * ada-lang.c (coerce_unspec_val_to_type): Use
3379 value_optimized_out_const.
3380 * value.c (value_optimized_out_const): New function.
3381 * value.h (value_optimized_out_const): New declaration.
3382
2a998fc0
DE
33832013-07-09 Doug Evans <dje@google.com>
3384
3385 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3386 Enum values rename as well. All uses updated.
3387 * valprint.h (value_print_options): Rename member pretty to
3388 pretty format. Rename member prettyprint_arrays to
3389 prettyformat_arrays. Rename member prettyprint_structs to
3390 prettyformat_structs. All uses updated.
3391 (get_no_prettyformat_print_options): Renamed from
3392 get_raw_print_options.
3393 * valprint.c (get_no_prettyformat_print_options): Renamed from
3394 get_raw_print_options. All callers updated.
3395 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3396 All callers updated.
3397 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3398 All callers updated.
3399 (_initialize_valprint): Improve help text for "set print pretty" and
3400 "set print arrays".
3401
466c1fca
AB
34022013-07-09 Andrew Burgess <aburgess@broadcom.com>
3403
3404 * value.c (value_bits_valid): Revert previous change, and change
3405 by Pedro on 2013-07-04, due to regressions in
3406 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3407
ad0f0303
AB
34082013-07-08 Andrew Burgess <aburgess@broadcom.com>
3409 Pedro Alves <palves@redhat.com>
3410
3411 * value.c (value_bits_valid): If the value is not lval_computed
3412 or has no check validity handler then the answer is the
3413 optimized_out flag, otherwise defer to the handler.
3414
b187bec1
EZ
34152013-07-06 Eli Zaretskii <eliz@gnu.org>
3416
48d1d6f5
EZ
3417 * top.c (print_gdb_configuration): Explain in output of
3418 --configuration what does "relocatable" mean.
3419
b187bec1
EZ
3420 * main.c (print_gdb_help): Regroup options in the --help text.
3421 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3422 the relevant discussions.
3423
52d361e1
YQ
34242013-07-06 Yao Qi <yao@codesourcery.com>
3425
3426 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3427 Remove parameter 'lsal'.
3428 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3429 to inner block. Caller update.
3430 (base_breakpoint_create_breakpoints_sal): Update.
3431 (bkpt_create_breakpoints_sal): Likewise.
3432 (tracepoint_create_breakpoints_sal): Likewise.
3433 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3434 element 0 of vector 'canonical->sals'.
3435
e1ec1b42
LM
34362013-07-05 Luis Machado <lgustavo@codesourcery.com>
3437
3438 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3439 register number instead of the pseudo register one.
3440 (rs6000_dwarf2_reg_to_regnum): Likewise.
3441
7195e6f0
PA
34422013-07-04 Pedro Alves <palves@redhat.com>
3443
3444 * findvar.c (value_of_register): Use allocate_optimized_out_value
3445 if the register has been optimized out, instead of
3446 set_value_optimized_out.
3447 * frame-unwind.c (frame_unwind_got_optimized): Use
3448 allocate_optimized_out_value.
3449
58722cac
PA
34502013-07-04 Pedro Alves <palves@redhat.com>
3451
3452 * value.c (value_bits_valid): If the value is not lval_computed,
3453 or doesn't have a check_validity hook, assume the value is entirely
3454 valid.
3455
691a26f5
AB
34562013-07-04 Andrew Burgess <aburgess@broadcom.com>
3457
3458 * stack.c (read_frame_arg): No longer fetch lazy values.
3459 * value.c (value_optimized_out): If the value is not already
3460 marked optimized out, and is lazy then fetch it.
3461 (value_primitive_field): Move optimized out check to later in the
3462 function, after we have loaded any lazy values.
3463 (value_fetch_lazy): Use optimized out flag directly rather than
3464 calling optimized_out method.
3465
a58e2656
AB
34662013-07-04 Andrew Burgess <aburgess@broadcom.com>
3467
3468 * valops.c: Don't include "user-regs.h".
3469 (value_fetch_lazy): Moved to value.c.
3470 * value.c: Include "user-regs.h".
3471 (value_fetch_lazy): Moved from valops.c.
3472
bd885420
YQ
34732013-07-04 Yao Qi <yao@codesourcery.com>
3474
3475 Revert:
3476 2013-06-27 Yao Qi <yao@codesourcery.com>
3477
3478 * common/create-version.sh: Update comments. Handle the case
3479 that TARGET_ALIAS is empty.
3480
17ef446e
PA
34812013-07-03 Pedro Alves <palves@redhat.com>
3482
3483 * Makefile.in (config.status): Depend on development.sh.
3484 (aclocal_m4_deps): Add libmcheck.m4.
3485 * acinclude.m4: Include libmcheck.m4.
3486 * configure.ac: Source development.sh instead of setting
3487 'development' here. --enable-libmcheck/--disable-libmcheck code
3488 factored out to GDB_AC_LIBMCHECK. Run it.
3489 * development.sh: New file.
3490 * libmcheck.m4: New file.
3491 * configure: Regenerate.
3492
ac6dd50f
TT
34932013-07-02 Tom Tromey <tromey@redhat.com>
3494
3495 * contrib/ari/update-web-ari.sh: Update for version.in change.
3496
bd1df410
TT
34972013-07-02 Tom Tromey <tromey@redhat.com>
3498
3499 * common/ptid.h: Comment fixes.
3500
4db1a1dc
TT
35012013-07-01 Tom Tromey <tromey@redhat.com>
3502
3503 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3504 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3505 (dwarf2_read_index, create_all_comp_units): Update.
3506
dd9aa048
TT
35072013-07-01 Tom Tromey <tromey@redhat.com>
3508
3509 * configure.ac (build_warnings): Add -Wold-style-definition.
3510 * configure: Rebuild.
3511 * machoread.c (_initialize_machoread): Use "(void)".
3512 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3513 use "(void)".
3514
44d100c3
TT
35152013-07-01 Tom Tromey <tromey@redhat.com>
3516
3517 * configure.ac (build_warnings): Add -Wold-style-declaration.
3518 * configure: Rebuild.
3519 * dsrec.c (make_srec): Use "static const", not "const static".
3520 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3521 not "const static".
3522 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3523 Use "static const", not "const static".
3524 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3525 not "const static".
3526 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3527 not "const static".
3528 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3529 not "const static".
3530 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3531 not "const static".
3532 (v850_dbtrap_breakpoint_from_pc): Likewise.
3533 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3534 not "const static".
3535
2945b807
TT
35362013-07-01 Tom Tromey <tromey@redhat.com>
3537
3538 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3539 * configure: Rebuild.
3540
d8d2a3ee
PA
35412013-07-01 Pedro Alves <palves@redhat.com>
3542
3543 * defs.h: Include "pathmax.h".
3544 * utils.c: Don't include sys/param.h.
3545 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3546 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3547 instead of MAXPATHLEN.
3548 * solib-sunos.c: Don't include sys/param.h.
3549 * xcoffread.c: Don't include sys/param.h.
3550 * bsd-kvm.c: Don't include sys/param.h.
3551 * darwin-nat.c: Don't include sys/param.h.
3552 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3553 * darwin-nat-info.c: Don't include sys/param.h.
3554 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3555 MAXPATHLEN.
3556 * i386obsd-nat.c: Don't include sys/param.h.
3557 * inf-child.c: Don't include sys/param.h.
3558 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3559 * linux-fork.c: Don't include sys/param.h.
3560 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3561 * linux-nat.c: Don't include sys/param.h.
3562 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3563 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3564 * m68klinux-nat.c: Don't include sys/param.h.
3565 * nbsd-nat.c: Don't include sys/param.h.
3566 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3567 * ppc-linux-nat.c: Don't include sys/param.h.
3568 * rs6000-nat.c: Don't include sys/param.h.
3569 * spu-linux-nat.c. Don't include sys/param.h.
3570 * windows-nat.c: Don't include sys/param.h.
3571 * xtensa-linux-nat.c: Don't include sys/param.h.
3572 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3573
38ec2207
PA
35742013-07-01 Pedro Alves <palves@redhat.com>
3575
3576 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3577 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3578 * gnulib/aclocal.m4: Regenerate.
3579 * gnulib/config.in: Regenerate.
3580 * gnulib/configure: Regenerate.
3581 * gnulib/import/pathmax.h: New file.
3582 * gnulib/import/Makefile.am: Regenerate.
3583 * gnulib/import/Makefile.in: Regenerate.
3584 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3585 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3586 * gnulib/import/m4/pathmax.m4: New file.
3587
e655c1a2
PA
35882013-07-01 Pedro Alves <palves@redhat.com>
3589
3590 * configure.ac (GDBINIT): Define, depending on host.
3591 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3592 * top.c (PATH_MAX): Delete fallback definition.
3593 (GDBINIT_FILENAME): Delete.
3594 (gdbinit): Reimplement as const char array set to the GDBINIT
3595 string constant.
3596 * top.h (gdbinit): Make const.
3597 * configure, config.in: Regenerate.
3598
50dd9793
PA
35992013-07-01 Pedro Alves <palves@redhat.com>
3600
3601 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3602 * cli/cli-cmds.h (source_script): Likewise.
3603 * exceptions.c (catch_command_errors_const): New function.
3604 * exceptions.h (catch_command_errors_const): Declare.
3605 * main.c (get_init_files): Make parameters const, and adjust.
3606 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3607 'local_gdbinit' locals const. Adjust to use
3608 catch_command_errors_const.
3609 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3610 'local_gdbinit' locals const.
3611
bc7dea8d
PA
36122013-07-01 Pedro Alves <palves@redhat.com>
3613
3614 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3615 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3616 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3617 <unistd.h>.
3618
8839a007
PA
36192013-07-01 Pedro Alves <palves@redhat.com>
3620
3621 Import the "unistd" gnulib module.
3622 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3623 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3624 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3625 import/m4/unistd_h.m4.
3626 * gnulib/aclocal.m4: Renenerate.
3627 * gnulib/config.in: Renenerate.
3628 * gnulib/configure: Renenerate.
3629 * gnulib/import/Makefile.am: Renenerate.
3630 * gnulib/import/Makefile.in: Renenerate.
3631 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3632 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3633 * gnulib/import/m4/off_t.m4: New file.
3634 * gnulib/import/m4/ssize_t.m4: New file.
3635 * gnulib/import/m4/sys_types_h.m4: New file.
3636 * gnulib/import/m4/unistd_h.m4: New file.
3637 * gnulib/import/sys_types.in.h: New file.
3638 * gnulib/import/unistd.c: New file.
3639 * gnulib/import/unistd.in.h: New file.
3640
8c0da261
PA
36412013-07-01 Pedro Alves <palves@redhat.com>
3642
3643 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3644 defined instead of checking HAVE_UNISTD_H.
3645
3574124b
PA
36462013-07-01 Pedro Alves <palves@redhat.com>
3647
3648 Reimport gnulib from scratch.
3649 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3650 import/m4/onceonly.m4.
3651 * gnulib/aclocal.m4: Renegerate.
3652 * gnulib/config.in: Renegerate.
3653 * gnulib/configure: Renegerate.
3654 * gnulib/import/Makefile.in: Renegerate.
3655 * gnulib/import/extra/update-copyright: Renegerate.
3656 * gnulib/import/m4/onceonly.m4: Delete.
3657
702dc4fd
PA
36582013-07-01 Pedro Alves <palves@redhat.com>
3659
3660 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3661
47e1ce27
JK
36622013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3663
3664 Code cleanup.
3665 * remote.c (async_remote_interrupt_twice): Make it static.
3666 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3667
e82839d4
SDJ
36682013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3669
3670 * ia64-linux-tdep.c: Include <ctype.h>.
3671 (ia64_linux_stap_is_single_operand): New function.
3672 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3673
d6c2da54
TT
36742013-06-28 Tom Tromey <tromey@redhat.com>
3675
3676 * Makefile.in (version.c): Use version.in, not
3677 common/version.in.
3678 * common/create-version.sh: Likewise.
3679 * common/version.in: Move...
3680 * version.in: ...here.
3681
74da6f00
PA
36822013-06-28 Pedro Alves <palves@redhat.com>
3683
3684 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3685 here.
3686 * utils.h (pagination_enabled): Declare.
3687
d32dc48e
PA
36882013-06-28 Pedro Alves <palves@redhat.com>
3689
3690 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3691 Move higher up in file.
3692
0edd9e3b
TT
36932013-06-28 Tom Tromey <tromey@redhat.com>
3694
3695 * tracepoint.c (deprecated_readline_begin_hook)
3696 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3697 declare.
3698
4eb59108
PA
36992013-06-28 Pedro Alves <palves@redhat.com>
3700
3701 PR tui/14880
3702 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3703 checking if they're available.
3704 * value.c (value_available_contents_eq): Change comment.
3705 * value.h (value_available_contents_eq): Expand comment.
3706
97b17156
TT
37072013-06-27 Tom Tromey <tromey@redhat.com>
3708
3709 * target.c (find_run_target): Remove.
3710 * target.h (find_run_target): Remove.
3711
6a3bfc5c
TT
37122013-06-27 Tom Tromey <tromey@redhat.com>
3713
3714 * corelow.c (core_gdbarch): Now static.
3715
c9ef825d
TT
37162013-06-27 Tom Tromey <tromey@redhat.com>
3717
3718 * target.c (target_struct_index): Remove.
3719
e5823f1c
PA
37202013-06-27 Pedro Alves <palves@redhat.com>
3721
3722 * infrun.c: Remove comment describing the 'stepping over runtime
3723 loader dynamic symbol resolution code' mechanism; moved to
3724 gdbint.texinfo.
3725
97f8dd09
PA
37262013-06-27 Pedro Alves <palves@redhat.com>
3727
3728 * exceptions.c (catch_command_errors): Remove spurious space.
3729 * exceptions.h (catch_command_errors): Second parameter is "arg",
3730 not "command".
3731
02b1871e
YQ
37322013-06-27 Yao Qi <yao@codesourcery.com>
3733
3734 * common/create-version.sh: Update comments. Handle the case
3735 that TARGET_ALIAS is empty.
3736
bb1b1cf1
PA
37372013-06-26 Pedro Alves <palves@redhat.com>
3738
3739 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3740 comment.
3741
7b624e71
PA
37422013-06-26 Pedro Alves <palves@redhat.com>
3743
3744 * infrun.c: Update comments on stepping over runtime loader
3745 dynamic symbol resolution code.
3746
74e5a346
SDJ
37472013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3748
3749 * ax-gdb.h (union exp_element): Forward declare.
3750 * parser-defs.h: Include expression.h.
3751
a2fb2cee
MR
37522013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3753
3754 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3755
cdba14e0
DK
37562013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3757
3758 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3759
f30aa5af
DK
37602013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3761
3762 Fix trace-status to output proper start-time and stop-time.
3763 * tracepoint.c (trace_status_command): Fix type of printf arg to
3764 prevent improper type conversion.
3765 (trace_status_mi): Likewise.
3766
1aee363c
MR
37672013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3768
3769 * mips-tdep.c (mips_next_pc): Fix a typo.
3770
3356937a
MR
37712013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3772
3773 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3774
dc673c81
YQ
37752013-06-26 Pedro Alves <pedro@codesourcery.com>
3776 Yao Qi <yao@codesourcery.com>
3777
3778 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3779 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3780 * mi/mi-main.c (print_variable_or_computed): New function.
3781 (mi_cmd_trace_frame_collected): New function.
3782 * tracepoint.c (find_trace_state_variable_by_number): New.
3783 (struct traceframe_info): Move to tracepoint.h
3784 (struct collection_list): Likewise.
3785 (do_collect_symbol): Include locals and arguments in the
3786 collected variables list.
3787 (clear_collection_list): Clear wholly collected variables list
3788 and computed variables list.
3789 (append_exp): New function.
3790 (encode_actions_1): Include variables in the wholly
3791 collected variables list. Include memory ranges and
3792 full-fledged expressions in the computed expressions list.
3793 (encode_actions): Move some code to ...
3794 Return the cleanup chain.
3795 (encode_actions_rsp): ... here. New function.
3796 (get_traceframe_location, get_traceframe_info): Remove static.
3797 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3798 (struct collection_list): Moved from tracepoint.c. Add two
3799 new fields 'wholly_collected' and 'computed'.
3800 (find_trace_state_variable_by_number): Declare.
3801 (encode_actions): Adjust declaration.
3802 (encode_actions_rsp): Declare.
3803 (get_traceframe_info, get_traceframe_location): Declare.
3804
3805 * NEWS: Mention new MI command -trace-frame-collected.
3806
28a93511
YQ
38072013-06-26 Pedro Alves <pedro@codesourcery.com>
3808 Yao Qi <yao@codesourcery.com>
3809
3810 * ctf.c (ctf_traceframe_info): Push trace state variables
3811 present in the trace data into the traceframe info object.
3812 * breakpoint.c (DEF_VEC_I): Remove.
3813 * common/filestuff.c (DEF_VEC_I): Likewise.
3814 * dwarf2loc.c (DEF_VEC_I): Likewise.
3815 * mi/mi-main.c (DEF_VEC_I): Likewise.
3816 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3817 * features/traceframe-info.dtd: Add tvar element and its
3818 attributes.
3819 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3820 (build_traceframe_info): Push trace state variables present in
3821 the trace data into the traceframe info object.
3822 (traceframe_info_start_tvar): New function.
3823 (tvar_attributes): New.
3824 (traceframe_info_children): Add "tvar" element.
3825 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3826
3827 * NEWS: Mention the change in GDB and GDBserver.
3828
ddacd3c8
YQ
38292013-06-26 Pedro Alves <pedro@codesourcery.com>
3830 Yao Qi <yao@codesourcery.com>
3831
3832 * tracepoint.c (trace_dump_command): Move code to ...
3833 (get_traceframe_location): ... here. New.
3834
05796b35
YQ
38352013-06-26 Pedro Alves <pedro@codesourcery.com>
3836 Yao Qi <yao@codesourcery.com>
3837
3838 * tracepoint.c (trace_dump_command): GDB emits an error
3839 instead of a warning when a traceframe is not selected.
3840
cbfa3b61
YQ
38412013-06-26 Pedro Alves <pedro@codesourcery.com>
3842 Yao Qi <yao@codesourcery.com>
3843
3844 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3845 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3846 in collection_list.
3847 (do_clear_collection_list, init_collection_list): New.
3848 (encode_actions): Add local variables 'tracepoint_list' and
3849 'stepping_list'. Call init_collection_list and make cleanup
3850 which calls do_clear_collection_list. Don't call
3851 clear_collection_list.
3852 (_initialize_tracepoint): Delete references to
3853 'tracepoint_list' and 'stepping_list'.
3854
6e2048d3
TT
38552013-06-25 Tom Tromey <tromey@redhat.com>
3856
3857 * common/create-version.sh (date): Use "$", not "$$" in sed
3858 expression.
3859
42059f0e
KB
38602013-06-25 Kevin Buettner <kevinb@redhat.com>
3861
3862 * NEWS (New targets): Add entry for TI MSP430.
3863
a0743c90
YQ
38642013-06-25 Yao Qi <yao@codesourcery.com>
3865
3866 * remote.c (remote_start_remote): Move code to upload tsv
3867 earlier.
3868
9d6e6e84
HZ
38692013-06-25 Yao Qi <yao@codesourcery.com>
3870 Hui Zhu <hui@codesourcery.com>
3871 Pedro Alves <palves@redhat.com>
3872
3873 PR breakpoints/15075
3874 PR breakpoints/15434
3875 * breakpoint.c (bpstat_stop_status): Call
3876 b->ops->after_condition_true.
3877 (update_dprintf_command_list): Don't append "continue" command
3878 to the command list of dprintf breakpoint.
3879 (base_breakpoint_after_condition_true): New function.
3880 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3881 (dprintf_after_condition_true): New function.
3882 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3883 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3884
586cf749
KB
38852013-06-24 Kevin Buettner <kevinb@redhat.com>
3886
3887 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3888 (ALLDEPFILES): Add msp430-tdep.c.
3889 * configure.tgt (msp430*-*-elf): New target.
3890 * msp430-tdep.c: New file.
3891
1bbce132
MR
38922013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3893
3894 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3895 microMIPS synthetic symbols.
3896
3e5d3a5a
MR
38972013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3898
3899 * objfiles.h (pc_in_section): New prototype.
3900 (in_plt_section): Remove name argument, replace prototype with
3901 static inline function.
3902 * mips-tdep.h: Include "objfiles.h".
3903 (in_mips_stubs_section): New function.
3904 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3905 in_solib_call_trampoline member.
3906 (hppa_in_solib_call_trampoline): Remove name argument.
3907 * objfiles.c (pc_in_section): New function.
3908 (in_plt_section): Remove function.
3909 * mips-linux-tdep.c: Include "objfiles.h".
3910 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3911 name argument. Return 1 rather than the low 16-bit halfword of
3912 any instruction examined.
3913 (mips_linux_in_dynsym_resolve_code): Update
3914 mips_linux_in_dynsym_stub call accordingly.
3915 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3916 rather than an equivalent hand-coded sequence.
3917 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3918 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3919 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3920 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3921 in_opd_section.
3922 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3923 on call to tdep->in_solib_call_trampoline.
3924 (hppa_in_solib_call_trampoline): Remove name argument, update
3925 according to in_plt_section change.
3926 (hppa_skip_trampoline_code): Update according to in_plt_section
3927 change.
3928 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3929 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3930 Likewise.
3931 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3932 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3933 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3934 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3935 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3936 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3937 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3938 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3939 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3940 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3941 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3942 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3943 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3944
b9b26a16
JB
39452013-06-24 Joel Brobecker <brobecker@adacore.com>
3946
3947 * common/create-version.sh: Fix expansion of $host_alias
3948 and $target_alias in generation of HOST_NAME and TARGET_NAME
3949 (resp.).
3950
01208463
TT
39512013-06-24 Tom Tromey <tromey@redhat.com>
3952
3953 * common/create-version.sh: New file.
3954 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3955 create-version.sh.
3956 (HFILES_NO_SRCDIR): Use common/version.h.
3957 * version.in: Move to ...
3958 * common/version.in: ... here. Replace date with "DATE".
3959 * version.h: Move to ...
3960 * common/version.h: ... here.
3961
bb6b9a5e
JB
39622013-06-21 Joel Brobecker <brobecker@adacore.com>
3963
3964 * gdb/gnulib/Makefile.in: Update date in copyright header.
3965 * gdb/gnulib/configure.ac: Ditto.
3966 * gdb/gnulib/update-gnulib.sh: Ditto.
3967
c3b18ee7
JB
39682013-06-21 Joel Brobecker <brobecker@adacore.com>
3969
3970 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3971 "gdb/gnulib/import".
3972
85d3b769
WN
39732013-06-21 Will Newton <will.newton@linaro.org>
3974
3975 * doublest.c (ldfrexp): Remove function.
3976 (convert_doublest_to_floatformat): Call frexpl instead of
3977 ldfrexp.
3978
88b48903
WN
39792013-06-21 Will Newton <will.newton@linaro.org>
3980
3981 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3982 * gnulib/aclocal.m4: Regenerate.
3983 * gnulib/config.in: Regenerate.
3984 * gnulib/configure: Regenerate.
3985 * gnulib/import/Makefile.am: Update.
3986 * gnulib/import/Makefile.in: Update.
3987 * gnulib/import/m4/gnulib-cache.m4: Update.
3988 * gnulib/import/m4/gnulib-comp.m4: Update.
3989 * gnulib/import/float+.h: Import.
3990 * gnulib/import/float.c: Import.
3991 * gnulib/import/float.in.h: Import.
3992 * gnulib/import/fpucw.h: Import.
3993 * gnulib/import/frexp.c: Import.
3994 * gnulib/import/frexpl.c: Import.
3995 * gnulib/import/isnan.c: Import.
3996 * gnulib/import/isnand-nolibm.h: Import.
3997 * gnulib/import/isnand.c: Import.
3998 * gnulib/import/isnanl-nolibm.h: Import.
3999 * gnulib/import/isnanl.c: Import.
4000 * gnulib/import/itold.c: Import.
4001 * gnulib/import/m4/exponentd.m4: Import.
4002 * gnulib/import/m4/exponentl.m4: Import.
4003 * gnulib/import/m4/float_h.m4: Import.
4004 * gnulib/import/m4/fpieee.m4: Import.
4005 * gnulib/import/m4/frexp.m4: Import.
4006 * gnulib/import/m4/frexpl.m4: Import.
4007 * gnulib/import/m4/isnand.m4: Import.
4008 * gnulib/import/m4/isnanl.m4: Import.
4009 * gnulib/import/m4/math_h.m4: Import.
4010 * gnulib/import/math.c: Import.
4011 * gnulib/import/math.in.h: Import.
4012
4353c9e6
JK
40132013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4014
4015 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4016 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4017 signature_INTEL_edx comparisons.
4018
e3e06db3
DE
40192013-06-20 Doug Evans <dje@google.com>
4020
6ac97d4c
DE
4021 symtab/15652
4022 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4023 All callers updated.
4024 (open_dwp_file): If we can't find the dwp file, search the basename
4025 in debug-file-directory.
4026
93417882
DE
4027 * dwarf2read.c (struct dwp_file): Fix comment.
4028 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4029
e3e06db3
DE
4030 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4031 better.
4032
0878d0fa
YQ
40332013-06-20 Yao Qi <yao@codesourcery.com>
4034
4035 * breakpoint.c (create_breakpoint): Fix code indentation.
4036
023fa29b
YQ
40372013-06-20 Yao Qi <yao@codesourcery.com>
4038
4039 * breakpoint.c (create_breakpoints_sal_default): Remove
4040 parameter 'lsal'. Update declaration.
4041 (bkpt_create_breakpoints_sal): Caller update.
4042 (tracepoint_create_breakpoints_sal): Likewise.
4043
c898adb7
YQ
40442013-06-20 Pedro Alves <pedro@codesourcery.com>
4045 Yao Qi <yao@codesourcery.com>
4046
4047 * NEWS: Mention the new option '--skip-unavailable' of command
4048 -data-list-register-values.
4049 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4050 --skip-unavailable option. Adjust to use output_register.
4051 (output_register): Add new 'skip_unavailable' parameter.
4052 Handle it.
4053
4d157a3d
MF
40542013-06-19 Mike Frysinger <vapier@gentoo.org>
4055
4056 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4057 common/i386-gcc-cpuid.h.
4058 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4059 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4060 Copy the latest version from upstream gcc.
4061 * common/linux-btrace.c: Include i386-cpuid.h.
4062 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4063 call to i386_cpuid.
4064 (cpu_supports_btrace): Likewise.
4065 * go32-nat.c: Include i386-cpuid.h.
4066 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4067
1ce4db08
DE
40682013-06-19 Doug Evans <dje@google.com>
4069
4070 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4071 (get_section_index): Ditto.
4072
0e4777df
TT
40732013-06-19 Tom Tromey <tromey@redhat.com>
4074
4075 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4076 "dprintf" help.
4077
3190f0c6
DE
40782013-06-18 Doug Evans <dje@google.com>
4079
4080 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4081 before using it.
4082 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4083 Move test of cu_index closer to use. Print complaint if cu_index
4084 is bad.
4085
8b89a20a
JB
40862013-06-18 Joel Brobecker <brobecker@adacore.com>
4087
4088 * machoread.c (oso_vector): Delete this global.
4089 (macho_register_oso): Add new parameter "oso_vector_ptr".
4090 Use it instead of the "oso_vector" global.
4091 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4092 (macho_symfile_read): Use a local oso_vector, to be free'ed
4093 at the end of this function, in place of the old "oso_vector"
4094 global. Update various function calls accordingly. Use one
4095 single cleanup chain for the entire function.
4096
59b0c7c1
JB
40972013-06-18 Joel Brobecker <brobecker@adacore.com>
4098
937c708c 4099 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4100 DWARF2_PER_OBJFILE by uses of DATA instead.
4101
427cd150
TT
41022013-06-18 Tom Tromey <tromey@redhat.com>
4103
4104 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4105 argument.
4106 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4107 Special case signals other than GDB_SIGNAL_TRAP.
4108 (explains_signal_watchpoint): New function.
4109 (base_breakpoint_explains_signal): Add 'sig' argument.
4110 (initialize_breakpoint_ops): Set 'explains_signal' method for
4111 watchpoints.
4112 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4113 signal argument.
4114 (bpstat_explains_signal): Likewise.
4115 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4116
2d57700b
TT
41172013-06-18 Tom Tromey <tromey@redhat.com>
4118
4119 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4120
ac475191
TT
41212013-06-18 Tom Tromey <tromey@redhat.com>
4122
4123 * python/python.c (finish_python_initialization): Decref
4124 'pythondir' on failure path as well.
4125
5bd1ef56
TT
41262013-06-18 Tom Tromey <tromey@redhat.com>
4127
4128 PR symtab/15391:
4129 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4130 after taking bits_to_skip into account. Sign extend byte_offset.
4131 * utils.h (gdb_sign_extend): Declare.
4132 * utils.c (gdb_sign_extend): New function.
4133
92fac807
JK
41342013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4137
2d503272
PM
41382013-06-17 Pierre Muller <muller@sourceware.org>
4139
4140 * corelow.c (core_open): Print GDB signal name instead of target
4141 signal number.
4142
6916fd98
MF
41432013-06-17 Mike Frysinger <vapier@gentoo.org>
4144
4145 * .gitignore: Add /gcore.
4146
9c02c129
DE
41472013-06-13 Doug Evans <dje@google.com>
4148
4149 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4150 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4151
d0548fa2
PM
41522013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4153
4154 * stack.c (backtrace_command_1): Fix indentation.
4155
22128028
JB
41562013-06-11 Joel Brobecker <brobecker@adacore.com>
4157
4158 * window-nat.c (thread_rec): Add missing empty line after
4159 local variable declaration.
4160
2ed3e009
JB
41612013-06-11 Joel Brobecker <brobecker@adacore.com>
4162
4163 * windows-nat.c (thread_rec): Revert format used to print
4164 error code returned by SuspendThread from %d back to %u.
4165
0c3d84be
JB
41662013-06-11 Joel Brobecker <brobecker@adacore.com>
4167
4168 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4169 ID in debug trace.
4170 (get_windows_debug_event): Likewise, for all debug traces.
4171
80e88e1a
JB
41722013-06-11 Joel Brobecker <brobecker@adacore.com>
4173
4174 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4175 warning message.
4176
1edebdbf
YQ
41772013-06-08 Pedro Alves <pedro@codesourcery.com>
4178 Yao Qi <yao@codesourcery.com>
4179
4180 * mi/mi-main.c (get_register): Remove declaration.
4181 (output_register): Declare.
4182 (mi_cmd_data_list_register_values): Remove local variable
4183 'tuple_cleanup'. Move some code into output_register.
4184 (get_register): Renamed to ...
4185 (output_register): ... this. Output the register's
4186 "number" ui_out tuple here.
4187
47d48711
PA
41882013-06-07 Pedro Alves <palves@redhat.com>
4189
4190 * darwin-nat.c: Fix formating in copyright header.
4191 * darwin-nat.h: Likewise.
4192 * gnu-nat.c: Likewise.
4193 * machoread.c: Likewise.
4194
3aee8918
PA
41952013-06-07 Pedro Alves <palves@redhat.com>
4196
5f2b57b5 4197 PR server/14823
3aee8918
PA
4198 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4199 static. Output a global target description pointer.
4200 (init_registers_${name}): Adjust to initialize a
4201 target description structure.
4202
fe8400b4
WN
42032013-06-07 Will Newton <will.newton@linaro.org>
4204
4205 * printcmd.c (build_address_symbolic): Call
4206 gdbarch_addr_bits_remove for text minimal symbols.
4207
20df6206
WN
42082013-06-07 Will Newton <will.newton@linaro.org>
4209
4210 * MAINTAINERS: Add myself to Write After Approval.
4211
aef525cb
YQ
42122013-06-07 Yao Qi <yao@codesourcery.com>
4213
4214 * tracepoint.c (start_tracing): Move code to ...
4215 (trace_reset_local_state): ... here. New.
4216 (disconnect_tracing): Don't call set_current_traceframe,
4217 set_tracepoint_num, and set_traceframe_context. Call
4218 trace_reset_local_state instead.
4219 (tfile_close): Call trace_reset_local_state.
4220 * ctf.c (ctf_close): Likewise.
4221 * remote.c (remote_close): Likewise.
4222 * tracepoint.h (trace_reset_local_state): Declare.
4223
d2415c6c
DE
42242013-06-06 Doug Evans <dje@google.com>
4225
4226 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4227 and fix header docs.
4228
69fc87c2
DE
42292013-06-05 Doug Evans <dje@google.com>
4230 Keith Seitz <keiths@redhat.com>
4231
4232 PR 15519
4233 * cp-namespace.c (find_symbol_in_baseclass): Call
4234 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4235 Check result of call to lookup_symbol_static.
4236 Call lookup_static_symbol_aux unconditionally.
4237 Call check_typedef on base types before accessing them.
4238 (cp_lookup_nested_symbol): Fix comment.
4239
a513d1e8
LM
42402013-06-05 Luis Machado <lgustavo@codesourcery.com>
4241
4242 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4243 minimal symbols pointing to function descriptors.
4244
351a6f02
TT
42452013-06-05 Tom Tromey <tromey@redhat.com>
4246
4247 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4248
5e1b953b 42492013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4250 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4251
4252 * remote.c (remote_wait_as): Restore signal handler before returning
4253 when GDB gets a notification.
4254
f9e14852
GB
42552013-06-04 Gary Benson <gbenson@redhat.com>
4256
8445cbf1 4257 PR 2328
f9e14852
GB
4258 * breakpoint.h (handle_solib_event): Moved function declaration
4259 to solib.h.
4260 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4261 (bpstat_stop_status): Pass new argument to handle_solib_event.
4262 * solib.h (update_solib_breakpoints): New function declaration.
4263 (handle_solib_event): Moved function declaration from
4264 breakpoint.h.
4265 * solib.c (update_solib_breakpoints): New function.
4266 (handle_solib_event): Moved function from breakpoint.c.
4267 Updated to call solib_ops->handle_event if not NULL.
4268 * solist.h (target_so_ops): New fields "update_breakpoints" and
4269 "handle_event".
4270 * infrun.c (set_stop_on_solib_events): New function.
4271 (_initialize_infrun): Use the above for "set
4272 stop-on-solib-events".
4273 (handle_inferior_event): Pass new argument to handle_solib_event.
4274 * solib-svr4.c (probe.h): New include.
4275 (svr4_free_library_list): New forward declaration.
4276 (probe_action): New enum.
4277 (probe_info): New struct.
4278 (probe_info): New static variable.
4279 (NUM_PROBES): New definition.
4280 (svr4_info): New fields "using_xfer", "probes_table" and
4281 "solib_list".
4282 (free_probes_table): New function.
4283 (free_solib_list): New function.
4284 (svr4_pspace_data_cleanup): Free probes table and solib list.
4285 (svr4_copy_library_list): New function.
4286 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4287 (svr4_read_so_list): New parameter "prev_lm".
4288 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4289 (svr4_current_sos): New function.
4290 (probe_and_action): New struct.
4291 (hash_probe_and_action): New function.
4292 (equal_probe_and_action): Likewise.
4293 (register_solib_event_probe): Likewise.
4294 (solib_event_probe_at): Likewise.
4295 (solib_event_probe_action): Likewise.
4296 (solist_update_full): Likewise.
4297 (solist_update_incremental): Likewise.
4298 (disable_probes_interface_cleanup): Likewise.
4299 (svr4_handle_solib_event): Likewise.
4300 (svr4_update_solib_event_breakpoint): Likewise.
4301 (svr4_update_solib_event_breakpoints): Likewise.
4302 (svr4_create_solib_event_breakpoints): Likewise.
4303 (enable_break): Free probes table before creating breakpoints.
4304 Use svr4_create_solib_event_breakpoints to create breakpoints.
4305 (svr4_solib_create_inferior_hook): Free the solib list.
4306 (_initialize_svr4_solib): Initialise
4307 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4308
ced63ec0
GB
43092013-06-04 Gary Benson <gbenson@redhat.com>
4310
4311 * target.h (target_ops): New field
4312 "to_augmented_libraries_svr4_read".
4313 (target_augmented_libraries_svr4_read): New macro.
4314 * target.c (update_current_target): Handle
4315 to_augmented_libraries_svr4_read.
4316 * remote.c (remote_state): New field
4317 "augmented_libraries_svr4_read".
4318 (remote_augmented_libraries_svr4_read_feature): New function.
4319 (remote_protocol_features): Add entry for
4320 "augmented-libraries-svr4-read".
4321 (remote_augmented_libraries_svr4_read): New function.
4322 (init_remote_ops): Initialize
4323 remote_ops.to_augmented_libraries_svr4_read.
4324
7f91dbec
GB
43252013-06-04 Gary Benson <gbenson@redhat.com>
4326
4327 * NEWS: Update.
4328
607ece04
GB
43292013-06-04 Gary Benson <gbenson@redhat.com>
4330
4331 * objfiles.h (inhibit_section_map_updates): New function
4332 declaration.
4333 (resume_section_map_updates): Likewise.
4334 (resume_section_map_updates_cleanup): Likewise.
4335 * objfiles.c (objfile_pspace_info): Removed field
4336 "objfiles_changed_p". New fields "new_objfiles_available",
4337 "section_map_dirty" and "inhibit_updates".
4338 (allocate_objfile): Set new_objfiles_available.
4339 (free_objfile): Set section_map_dirty.
4340 (objfile_relocate1): Likewise.
4341 (in_plt_section): Likewise.
4342 (find_pc_section): Update the conditions under which the
4343 section map will be updated.
4344 (inhibit_section_map_updates): New function.
4345 (resume_section_map_updates): Likewise.
4346 (resume_section_map_updates_cleanup): Likewise.
4347
9ee6a5ac
GB
43482013-06-04 Gary Benson <gbenson@redhat.com>
4349
4350 * probe.h (get_probe_argument_count): New declaration.
4351 (evaluate_probe_argument): Likewise.
4352 * probe.c (get_probe_argument_count): New function.
4353 (evaluate_probe_argument): Likewise.
4354 (probe_safe_evaluate_at_pc): Use the above new functions.
4355
845d4708
AM
43562013-06-04 Alan Modra <amodra@gmail.com>
4357
4358 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4359 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4360 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4361 target mem reads on optional insns.
4362 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4363 ppc_insns_match_pattern calls.
4364 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4365 Add match for power7 thread safety insns, and new order of
4366 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4367 invocation in comment, and update rest of comment.
4368 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4369 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4370 (ppc64_standard_linkage2_target): Update insn offsets.
4371 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4372 stubs first. Update calls.
4373
404e278f
YQ
43742013-06-04 Yao Qi <yao@codesourcery.com>
4375
4376 * solib.c (solib_find): Don't need dir separator if path has
4377 drive spec.
4378
f6aea118
JB
43792013-06-03 Joel Brobecker <brobecker@adacore.com>
4380
4381 Revert (indirectly causes a SIGSEGV):
4382 * machoread.c (macho_symfile_read): Assign first cleanup to
4383 'back_to'.
4384
87967e27
YQ
43852013-06-03 Yao Qi <yao@codesourcery.com>
4386
4387 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4388 mi-parse.c. Make them static.
4389 (mi_all_values): Likewise.
4390 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4391 mi_parse_print_values. Make it external.
4392 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4393 Remove the declarations.
4394 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4395 * mi/mi-parse.h (mi_parse_print_values): Declare.
4396 * mi/mi-cmd-stack.c: Include mi-parse.h.
4397 (parse_print_values): Remove
4398 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4399 of parse_print_values.
4400 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4401
3ca73e0c
YQ
44022013-05-31 Pedro Alves <pedro@codesourcery.com>
4403 Yao Qi <yao@codesourcery.com>
4404
4405 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4406 (encode_actions): Move code to ...
4407 (all_tracepoint_actions_and_cleanup): ... here. New.
4408 (trace_dump_command): Likewise.
4409
4e993a19
TT
44102013-05-30 Tom Tromey <tromey@redhat.com>
4411
4412 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4413
e3b76b4f
TT
44142013-05-30 Tom Tromey <tromey@redhat.com>
4415
4416 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4417 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4418 'old_chain' argument. Add 'parser_result' argument.
4419 (gdb_xml_create_parser_and_cleanup): Remove old version.
4420 (gdb_xml_parse_quick): Update.
4421 (xml_process_xincludes): Update.
4422 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4423 declare.
4424
db26349c
TT
44252013-05-30 Tom Tromey <tromey@redhat.com>
4426
4427 * probe.c (collect_probes): Check arguments for NULL before
4428 calling compile_rx_or_error.
4429 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4430 Remove NULL return.
4431
77f9e713
TT
44322013-05-30 Tom Tromey <tromey@redhat.com>
4433
4434 * infrun.c (adjust_pc_after_break): Introduce an outer null
4435 cleanup.
4436
45475de7
TT
44372013-05-30 Tom Tromey <tromey@redhat.com>
4438
4439 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4440
ac5007fd
TT
44412013-05-30 Tom Tromey <tromey@redhat.com>
4442
4443 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4444 for 'old_chain'. Do not check 'head' before processing
4445 cleanups.
4446
cd82eddc
TT
44472013-05-30 Tom Tromey <tromey@redhat.com>
4448
4449 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4450 "cleanup_tuple".
4451
57cee33a
TT
44522013-05-30 Tom Tromey <tromey@redhat.com>
4453
4454 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4455 inner scope. Unconditionally call do_cleanups.
4456
795d915c
TT
44572013-05-30 Tom Tromey <tromey@redhat.com>
4458
4459 * source.c (find_and_open_source): Call do_cleanups.
4460
1fc3cf4a
TT
44612013-05-30 Tom Tromey <tromey@redhat.com>
4462
4463 * linux-thread-db.c (thread_db_load_search): Unconditionally
4464 call do_cleanups.
4465
e35ac9bf
TT
44662013-05-30 Tom Tromey <tromey@redhat.com>
4467
4468 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4469 for 'cleanup'; instead use a later one.
4470
f3300387
TT
44712013-05-30 Tom Tromey <tromey@redhat.com>
4472
4473 * python/py-breakpoint.c (bppy_get_commands): Use
4474 explicit, unconditional return.
4475 * python/py-frame.c (frapy_read_var): Likewise.
4476 * python/python.c (gdbpy_decode_line): Likewise.
4477
c27e16e3
TT
44782013-05-30 Tom Tromey <tromey@redhat.com>
4479
4480 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4481 do_cleanups on all return paths.
4482
5ae85e44
TT
44832013-05-30 Tom Tromey <tromey@redhat.com>
4484
4485 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4486
73b8d9da
TT
44872013-05-30 Tom Tromey <tromey@redhat.com>
4488
4489 * stabsread.c (read_struct_type): Call do_cleanups along
4490 all return paths.
4491
7d266584
MR
44922013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4493
4494 * mips-linux-tdep.c: Adjust formatting throughout.
4495
0f900f54
TT
44962013-05-30 Tom Tromey <tromey@redhat.com>
4497
4498 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4499 along all return paths.
4500
a991ac28
TT
45012013-05-30 Tom Tromey <tromey@redhat.com>
4502
4503 * symfile.c (find_separate_debug_file): Call do_cleanups
4504 along all return paths.
4505
1abaf042
TT
45062013-05-30 Tom Tromey <tromey@redhat.com>
4507
4508 * symtab.c (search_symbols): Introduce a null cleanup for
4509 'retval_chain'.
4510
edefe1da
TT
45112013-05-30 Tom Tromey <tromey@redhat.com>
4512
4513 * python/py-value.c (valpy_binop): Call do_cleanups before
4514 exiting loop.
4515
54f72dcc
TT
45162013-05-30 Tom Tromey <tromey@redhat.com>
4517
4518 * python/py-prettyprint.c (print_children): Remove extra
4519 do_cleanups call.
4520
af1c6971
TT
45212013-05-30 Tom Tromey <tromey@redhat.com>
4522
4523 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4524 all return paths.
4525
b862ce75
TT
45262013-05-30 Tom Tromey <tromey@redhat.com>
4527
4528 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4529 along all return paths.
4530
e12fefc8
TT
45312013-05-30 Tom Tromey <tromey@redhat.com>
4532
4533 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4534 call do_cleanups.
4535
4867f990
TT
45362013-05-30 Tom Tromey <tromey@redhat.com>
4537
4538 * varobj.c (c_value_of_root): Call do_cleanups along all
4539 return paths.
4540
4fd2d6af
TT
45412013-05-30 Tom Tromey <tromey@redhat.com>
4542
4543 * tracepoint.c (trace_dump_command): Unconditionally call
4544 do_cleanups.
4545
752eb8b4
TT
45462013-05-30 Tom Tromey <tromey@redhat.com>
4547
4548 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4549 do_cleanups earlier.
4550
e42d0aa5
TT
45512013-05-30 Tom Tromey <tromey@redhat.com>
4552
4553 * machoread.c (macho_symfile_read): Assign first cleanup to
4554 'back_to'.
4555
4bbc010a
TT
45562013-05-30 Tom Tromey <tromey@redhat.com>
4557
4558 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4559
b9635925
TT
45602013-05-30 Tom Tromey <tromey@redhat.com>
4561
4562 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4563
25f43500
TT
45642013-05-30 Tom Tromey <tromey@redhat.com>
4565
4566 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4567 call discard_cleanups.
4568 (inf_ptrace_attach): Likewise.
4569
d6a2e54a
TT
45702013-05-30 Tom Tromey <tromey@redhat.com>
4571
4572 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4573 return paths.
4574 (mips_initialize): Likewise.
4575 (common_open): Call do_cleanups.
4576
48be7c1b
TT
45772013-05-30 Tom Tromey <tromey@redhat.com>
4578
4579 * utils.c (internal_vproblem): Call do_cleanups.
4580
e61727ab
TT
45812013-05-30 Tom Tromey <tromey@redhat.com>
4582
4583 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4584
b81b921f
TT
45852013-05-30 Tom Tromey <tromey@redhat.com>
4586
4587 * cli/cli-script.c (setup_user_args): Don't return after error.
4588
fe48dfb1
TT
45892013-05-30 Tom Tromey <tromey@redhat.com>
4590
4591 * somread.c (som_symtab_read): Call do_cleanups.
4592
27833de7
TT
45932013-05-30 Tom Tromey <tromey@redhat.com>
4594
4595 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4596
5b3fca71
TT
45972013-05-30 Tom Tromey <tromey@redhat.com>
4598
4599 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4600 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4601 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4602 * source.c (show_substitute_path_command): Call do_cleanups.
4603 (unset_substitute_path_command, set_substitute_path_command):
4604 Likewise.
4605 * symfile.c (load_command): Call do_cleanups.
4606
af83e3f8
TT
46072013-05-30 Tom Tromey <tromey@redhat.com>
4608
4609 * contrib/cleanup_check.py: New file.
4610 * contrib/gcc-with-excheck: Add option parsing.
4611
564eac42
JB
46122013-05-30 Joel Brobecker <brobecker@adacore.com>
4613
4614 * windows-nat.c (windows_delete_thread): Add missing space
4615 in cast expression.
4616
47902076
HAQ
46172013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4618
4619 * inferior.c (top level): Include tilde.h.
4620 (add_inferior_command): Call tilde_expand on the value of 'exec'
4621 argument.
4622
23da373a
YQ
46232013-05-30 Pedro Alves <pedro@codesourcery.com>
4624 Yao Qi <yao@codesourcery.com>
4625
4626 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4627 Caller update.
4628 (encode_actions): Likewise.
4629 * remote.c (remote_download_tracepoint): Caller update.
4630 * tracepoint.h (encode_actions): Update declaration.
4631
a6e6f791
PA
46322013-05-30 Pedro Alves <palves@redhat.com>
4633
4634 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4635 pointer.
4636
36d25514
YQ
46372013-05-30 Yao Qi <yao@codesourcery.com>
4638
4639 * remote.c (remote_check_symbols): Remove unused parameter
4640 'objfile'.
4641 Declaration update.
4642 (remote_start_remote, remote_new_objfile): Caller update.
4643
62a813cc
YQ
46442013-05-30 Yao Qi <yao@codesourcery.com>
4645
4646 * mi/mi-cmds.c (mi_cmds): Define MI command
4647 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4648 DEF_MI_CMD_CLI.
4649
28439a30
PA
46502013-05-29 Pedro Alves <palves@redhat.com>
4651
4652 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4653 (remote_insert_watchpoint, remote_remove_watchpoint)
4654 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4655 (remote_verify_memory, compare_sections_command)
4656 (remote_search_memory): Set the general process/thread on the
4657 remote side.
4658
6ac1c082
PA
46592013-05-29 Pedro Alves <palves@redhat.com>
4660
4661 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4662 (_initialize_aarch64_tdep): Don't call
4663 initialize_tdesc_aarch64_without_fpu.
4664 * features/Makefile (WHICH): Remove reference to
4665 aarch64-without-fpu.
4666 * features/aarch64-without-fpu.c: Delete file.
4667 * regformats/aarch64-without-fpu.dat: Delete file.
4668
a73e3634
YQ
46692013-05-28 Yao Qi <yao@codesourcery.com>
4670
4671 * tracepoint.c (stringify_collection_list): Remove parameter
4672 'string'.
4673 (encode_actions): Caller update. Remove local variables.
4674
c0ea94eb
YQ
46752013-05-24 Yao Qi <yao@codesourcery.com>
4676
4677 * tracepoint.c (TFILE_PID): Remove.
4678 (tfile_open): Don't add thread and inferior.
4679 (tfile_close): Don't set 'inferior_ptid'. Don't call
4680 exit_inferior_silent.
4681 (tfile_thread_alive): Remove.
4682 (init_tfile_ops): Don't set field 'to_thread_alive' of
4683 tfile_ops.
4684
20d7f211
DE
46852013-05-23 Doug Evans <dje@google.com>
4686
4687 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4688
8658d16d
PA
46892013-05-23 Pedro Alves <palves@redhat.com>
4690
4691 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4692 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4693 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4694 Only define if HAVE_SOCKETS is defined.
4695 * configure.ac: Check for sys/socket.h.
4696 * config.in, configure: Regenerate.
4697
21aa081e
PA
46982013-05-23 Pedro Alves <palves@redhat.com>
4699
4700 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4701 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4702 printing uint32_t variables.
4703
c2d6af84
PA
47042013-05-23 Pedro Alves <palves@redhat.com>
4705
4706 * NEWS: Mention GDBserver range stepping support.
4707
c1e36e3e
PA
47082013-05-23 Yao Qi <yao@codesourcery.com>
4709 Pedro Alves <palves@redhat.com>
4710
4711 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4712 field.
4713 * infcmd.c (step_once, until_next_command): Enable range stepping.
4714 * infrun.c (displaced_step_prepare): Disable range stepping.
4715 (resume): Disable range stepping if stepping over a breakpoint or
4716 we have software watchpoints. If range stepping is enabled,
4717 assert the thread is in the stepping range.
4718 (clear_proceed_status_thread): Clear may_range_step.
4719 (handle_inferior_event): Disable range stepping as soon as we know
4720 the thread that hit the event. Re-enable it whenever we're going
4721 to step with a step range.
4722 * remote.c (struct vCont_action_support) <r>: New field.
4723 (use_range_stepping): New global.
4724 (remote_vcont_probe): Handle 'r' action.
4725 (append_resumption): Append an 'r' action if the thread may range
4726 step.
4727 (show_range_stepping): New function.
4728 (set_range_stepping): New function.
4729 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4730 'set range-stepping' and 'show range-stepping' commands.
4731 * NEWS: Mention range stepping, the new vCont;r action, and the
4732 new "set/show range-stepping" commands.
4733
d458bd84
PA
47342013-05-23 Yao Qi <yao@codesourcery.com>
4735 Pedro Alves <palves@redhat.com>
4736
4737 * remote.c (struct vCont_action_support): New struct.
4738 (struct remote_state) <support_vCont_t>: Remove field.
4739 <vCont_actions_support>: New field.
4740 (remote_vcont_probe, remote_stop_ns): Update.
4741
ce4c476a
PA
47422013-05-23 Yao Qi <yao@codesourcery.com>
4743 Pedro Alves <palves@redhat.com>
4744
4745 * gdbthread.h (pc_in_thread_step_range): New declaration.
4746 * thread.c (pc_in_thread_step_range): New function.
4747 * infrun.c (handle_inferior_event): Use it.
4748
ce70887a
JB
47492013-05-23 Joel Brobecker <brobecker@adacore.com>
4750
4751 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4752 of sprintf.
4753
55b87a52
KS
47542013-05-22 Keith Seitz <keiths@redhat.com>
4755
4756 * ada-lang.c (is_known_support_routine): Add explicit free of
4757 'func_name' from find_frame_funname.
4758 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4759 for func_name from find_frame_funname.
4760 * python/py-frame.c (frapy_name): Add explicit free of
4761 'name' from find_frame_funname.
4762 * stack.c (find_frame_funname): Add comment explaining that
4763 funcp must be freed by the caller.
4764 Return copy of symbol names instead of pointers.
4765 (print_frame): Add a cleanup for 'funname' from
4766 find_frame_funname.
4767 * stack.h (find_frame_funname): Remove "const" from
4768 'funname' parameter.
4769
5f2e6b00
TT
47702013-05-22 Tom Tromey <tromey@redhat.com>
4771
4772 PR c++/15401:
4773 * c-valprint.c (c_value_print): Use value_addr for
4774 references. Convert back to reference type with value_ref.
4775
d85c4847
EZ
47762013-05-22 Eli Zaretskii <eliz@gnu.org>
4777
4778 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4779 unloaded DLL, it will be done by handle_solib_event. See
4780 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4781 details.
4782
54eb231c
PM
47832013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4784
4785 * ui-out.c: Create typedef ui_out_level_p and define vector
4786 operations for that type.
4787 (struct ui_out): Use a vector instead of an array.
4788 (current_level): Return level from a vector.
4789 (push_level): Create a level in a vector.
4790 (pop_level): Delete a level in a vector.
4791 (ui_out_new): Create initial level zero level, and store in a
4792 vector.
4793 (ui_out_destroy): Add vector cleanup.
4794
ac90359c
PA
47952013-05-22 Pedro Alves <palves@redhat.com>
4796
4797 * python/python-internal.h (gdb_Py_DECREF): Tag with
4798 "ARI: editCase function".
4799
6dcc1893
PP
48002013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4801
4802 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4803
c8c735b9
PA
48042013-05-21 Pedro Alves <palves@redhat.com>
4805
4806 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4807 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4808 * python/py-utils.c (py_decref): Don't check for NULL before
4809 calling Py_DECREF.
4810
1915daeb
PA
48112013-05-21 Pedro Alves <palves@redhat.com>
4812
4813 * python/py-utils.c (py_decref): Remove extra braces.
4814 (gdb_pymodule_addobject): Remove extra braces.
4815 * python-internal.h (gdb_Py_DECREF): New static inline function.
4816 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4817
bd9673a4
PW
48182013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * breakpoints.c (detach_breakpoints): Do not
4821 detach breakpoints locations with loc_type bp_loc_other.
4822
ff6009d0
JK
48232013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4824
4825 Workaround Python 2.6.
4826 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4827 a block.
4828
3641da11
JK
48292013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 Code cleanup: constification.
4832 * solib.c (solib_ops): Make return type and ops variable type const.
4833 (set_solib_ops): Make the new_ops parameter and ops variable const.
4834 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4835 (solib_add, solib_keep_data_in_core, clear_solib)
4836 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4837 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4838 const.
4839 * solib.h (set_solib_ops): Make the new_ops parameter const.
4840
776af39e
JB
48412013-05-21 Joel Brobecker <brobecker@adacore.com>
4842
4843 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4844 variable.
4845 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4846 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4847 (SYSTEM_GDBINIT_FILES): New variables.
4848 (all): Add stamp-system-gdbinit.
4849 (stamp-system-gdbinit): New rule.
4850 (clean-system-gdbinit, install-system-gdbinit)
4851 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4852 (install-only): Add dependency on install-system-gdbinit.
4853 (uninstall): Add dependency on uninstall-system-gdbinit.
4854 (clean): Add dependency on clean-system-gdbinit.
4855 * system-gdbinit/elinos.py: New file.
4856 * system-gdbinit/wrs-linux.py: New file.
4857
1509e573
JB
48582013-05-21 Joel Brobecker <brobecker@adacore.com>
4859
4860 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4861
c5867ab6
HZ
48622013-05-21 Hui Zhu <hui@codesourcery.com>
4863
4864 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4865 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4866 * mi/mi-cmd-break.c (ctype.h): New include.
4867 (gdb_obstack.h): New include.
4868 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4869 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4870 (mi_cmd_dprintf_insert): New.
4871 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4872 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4873
7d38e38f
TT
48742013-05-20 Tom Tromey <tromey@redhat.com>
4875
4876 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4877
97b77b39
TT
48782013-05-20 Tom Tromey <tromey@redhat.com>
4879
4880 * python/py-value.c (valpy_get_dynamic_type): Simplify
4881 dynamic_type assignment. Use Py_XINCREF.
4882
53e66479
TT
48832013-05-20 Tom Tromey <tromey@redhat.com>
4884
4885 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4886
dcf87832
TT
48872013-05-20 Tom Tromey <tromey@redhat.com>
4888
4889 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4890 (gdbpy_selected_frame): Move object-construction code
4891 out of TRY_CATCH.
4892
aa36459a
TT
48932013-05-20 Tom Tromey <tromey@redhat.com>
4894
4895 * python/py-arch.c (gdbpy_initialize_arch): Use
4896 gdb_pymodule_addobject.
4897 * python/py-block.c (gdbpy_initialize_blocks): Use
4898 gdb_pymodule_addobject.
4899 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4900 gdb_pymodule_addobject.
4901 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4902 gdb_pymodule_addobject.
4903 * python/py-event.c (gdbpy_initialize_event_generic): Use
4904 gdb_pymodule_addobject.
4905 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4906 gdb_pymodule_addobject.
4907 * python/py-evts.c (add_new_registry): Use
4908 gdb_pymodule_addobject.
4909 (gdbpy_initialize_py_events): Likewise.
4910 * python/py-finishbreakpoint.c
4911 (gdbpy_initialize_finishbreakpoints): Use
4912 gdb_pymodule_addobject.
4913 * python/py-frame.c (gdbpy_initialize_frames): Use
4914 gdb_pymodule_addobject.
4915 * python/py-function.c (gdbpy_initialize_functions): Use
4916 gdb_pymodule_addobject.
4917 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4918 gdb_pymodule_addobject.
4919 * python/py-infthread.c (gdbpy_initialize_thread): Use
4920 gdb_pymodule_addobject.
4921 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4922 gdb_pymodule_addobject.
4923 * python/py-param.c (gdbpy_initialize_parameters): Use
4924 gdb_pymodule_addobject.
4925 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4926 gdb_pymodule_addobject.
4927 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4928 gdb_pymodule_addobject.
4929 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4930 gdb_pymodule_addobject.
4931 * python/py-type.c (gdbpy_initialize_types): Use
4932 gdb_pymodule_addobject.
4933 * python/py-utils.c (gdb_pymodule_addobject): New function.
4934 * python/py-value.c (gdbpy_initialize_values): Use
4935 gdb_pymodule_addobject.
4936 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4937 * python/python.c (_initialize_python): Use
4938 gdb_pymodule_addobject.
4939
3d4a3c3e
TT
49402013-05-20 Tom Tromey <tromey@redhat.com>
4941
4942 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4943 * python/py-param.c (get_set_value, get_show_value): Use
4944 explicit decrefs.
4945 * python/python.c (start_type_printers, apply_type_printers):
4946 Use explicit decrefs.
4947
72ff8829
TT
49482013-05-20 Tom Tromey <tromey@redhat.com>
4949
4950 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4951 incref the module.
4952
02146ba5
TT
49532013-05-20 Tom Tromey <tromey@redhat.com>
4954
4955 * python/python.c (gdbpy_run_events): Decref the result
4956 of PyObject_CallObject.
4957
33ee792f
TT
49582013-05-20 Tom Tromey <tromey@redhat.com>
4959
4960 * python/py-symtab.c (set_sal): Use
4961 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4962 (symtab_and_line_to_sal_object): Update.
4963
fcb49fc8
TT
49642013-05-20 Tom Tromey <tromey@redhat.com>
4965
4966 * python/py-param.c (compute_enum_values): Decref 'item'.
4967
0646da15
TT
49682013-05-20 Tom Tromey <tromey@redhat.com>
4969
4970 * mi/mi-main.c: Include python-internal.h.
4971 (mi_cmd_list_features): Check gdb_python_initialized.
4972 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4973 (python_inferior_exit, python_new_objfile, add_thread_object)
4974 (delete_thread_object, py_free_inferior): Check
4975 gdb_python_initialized.
4976 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4977 gdb_python_initialized.
4978 * python/py-type.c (save_objfile_types): Check
4979 gdb_python_initialized.
4980 * python/python-internal.h (gdb_python_initialized): Declare.
4981 * python/python.c (ensure_python_env): Throw exception if
4982 Python not initialized.
4983 (before_prompt_hook, source_python_script_for_objfile)
4984 (start_type_printers, apply_type_printers,
4985 free_type_printers): Check gdb_python_initialized.
4986 * varobj.c (varobj_get_display_hint)
4987 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4988 (install_new_value_visualizer, varobj_set_visualizer)
4989 (value_get_print_value): Check gdb_python_initialized.
4990
999633ed
TT
49912013-05-20 Tom Tromey <tromey@redhat.com>
4992
4993 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4994 Check errors.
4995 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4996 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4997 Check errors.
4998 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4999 Check errors.
5000 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5001 Check errors.
5002 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5003 Check errors.
5004 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5005 init function to return 'int'.
5006 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5007 Return 'int'. Check errors.
5008 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5009 Check errors.
5010 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5011 Return 'int'. Check errors.
5012 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5013 Check errors.
5014 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5015 Check errors.
5016 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5017 Check errors.
5018 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5019 Check errors.
5020 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5021 Check errors.
5022 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5023 Check errors.
5024 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5025 Check errors.
5026 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5027 Check errors.
5028 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5029 Check errors.
5030 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5031 Check errors.
5032 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5033 Check errors.
5034 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5035 Check errors.
5036 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5037 Check errors.
5038 * python/python-internal.h (gdbpy_initialize_auto_load,
5039 gdbpy_initialize_values, gdbpy_initialize_frames,
5040 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5041 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5042 gdbpy_initialize_blocks, gdbpy_initialize_types,
5043 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5044 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5045 gdbpy_initialize_finishbreakpoints,
5046 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5047 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5048 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5049 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5050 gdbpy_initialize_signal_event,
5051 gdbpy_initialize_breakpoint_event,
5052 gdbpy_initialize_continue_event,
5053 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5054 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5055 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5056 * python/python.c (gdb_python_initialized): New global.
5057 (gdbpy_initialize_events): Return 'int'. Check errors.
5058 (_initialize_python): Check errors. Set
5059 gdb_python_initialized.
5060
18868860
TT
50612013-05-20 Tom Tromey <tromey@redhat.com>
5062
5063 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5064 Decref the reslut of PyObject_CallMethod.
5065
9f4ff0c2
TT
50662013-05-20 Tom Tromey <tromey@redhat.com>
5067
5068 * python/py-event.c (gdbpy_initialize_event_generic): Return
5069 early if PyType_Ready fails.
5070
0d3a2e8a
TT
50712013-05-20 Tom Tromey <tromey@redhat.com>
5072
5073 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5074 as 'default' in the switch.
5075
b86af38a
TT
50762013-05-20 Tom Tromey <tromey@redhat.com>
5077
5078 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5079 get_addr_from_python calls out of TRY_CATCH.
5080 (infpy_write_memory, infpy_search_memory): Likewise.
5081 * python/py-utils.c (get_addr_from_python): Return negative
5082 value on error. Use TRY_CATCH.
5083 * python/python-internal.h (get_addr_from_python): Use
5084 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5085
c127ec58
TT
50862013-05-20 Tom Tromey <tromey@redhat.com>
5087
5088 * python/py-event.c (evpy_emit_event): Decref the
5089 result of PyObject_CallFunctionObjArgs.
5090
ba327838
TT
50912013-05-20 Tom Tromey <tromey@redhat.com>
5092
5093 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5094 Correctly decref.
5095
d8191432
TT
50962013-05-20 Tom Tromey <tromey@redhat.com>
5097
5098 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5099
5d153bd1
TT
51002013-05-20 Tom Tromey <tromey@redhat.com>
5101
5102 * python/py-event.h (gdbpy_initialize_event_generic): Use
5103 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5104 * python/py-evts.c (add_new_registry): Use
5105 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5106 * python/python-internal.h
5107 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5108
56cc411c
TT
51092013-05-20 Tom Tromey <tromey@redhat.com>
5110
5111 * python/py-arch.c (archpy_disassemble): Update.
5112 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5113 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5114 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5115 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5116 macro.
5117 (GDB_PY_HANDLE_EXCEPTION): Update.
5118 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5119
8919e174
TT
51202013-05-20 Tom Tromey <tromey@redhat.com>
5121
5122 * python/python-internal.h (events_object_type): Remove.
5123
9b08f225
TT
51242013-05-20 Tom Tromey <tromey@redhat.com>
5125
f5aee5ee
AM
5126 * python/py-event.h (evpy_emit_event): Use
5127 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5128 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5129 New macro.
9b08f225 5130
f04010ff
TT
51312013-05-20 Tom Tromey <tromey@redhat.com>
5132
5133 * py-evtregistry.c (create_event_object): Decref
5134 eventregistry_object if PyList_New fails.
5135
3919fd96
TT
51362013-05-20 Tom Tromey <tromey@redhat.com>
5137
5138 * py-cmd.c (gdbpy_string_to_argv): Check result of
5139 PyList_New.
5140
0430e8cb
TT
51412013-05-20 Tom Tromey <tromey@redhat.com>
5142
5143 * python/python.c (before_prompt_hook): Add cleanup to
5144 decref 'hook'.
5145
764123e4
TT
51462013-05-20 Tom Tromey <tromey@redhat.com>
5147
5148 * python/py-function.c (fnpy_init): Decref result of
5149 PyObject_GetAttrString.
5150
634c58be
TT
51512013-05-20 Tom Tromey <tromey@redhat.com>
5152
5153 * python/py-threadevent.c (get_event_thread): Use
5154 CPYCHECKER_RETURNS_BORROWED_REF.
5155 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5156 New define.
5157 (pspace_to_pspace_object, objfile_to_objfile_object)
5158 (find_thread_object): Use it.
5159
62eec1a5
TT
51602013-05-20 Tom Tromey <tromey@redhat.com>
5161
5162 * python/py-arch.c (arch_object_type): Use
5163 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5164 * python/py-block.c (block_syms_iterator_object_type):
5165 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5166 * python/py-bpevent.c (breakpoint_event_object_type):
5167 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5168 * python/py-cmd.c (cmdpy_object_type): Use
5169 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5170 * python/py-continueevent.c (continue_event_object_type):
5171 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5172 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5173 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5174 * python/py-events.h (thread_event_object_type):
5175 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5176 * python/py-evtregistry.c (eventregistry_object_type): Use
5177 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5178 * python/py-exitedevent.c (exited_event_object_type):
5179 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5180 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5181 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5182 * python/py-function.c (fnpy_object_type): Use
5183 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5184 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5185 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5186 * python/py-infthread.c (thread_object_type): Use
5187 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5188 * python/py-lazy-string.c (lazy_string_object_type):
5189 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5190 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5191 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5192 * python/py-objfile.c (objfile_object_type): Use
5193 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5194 * python/py-param.c (parmpy_object_type):
5195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5196 * python/py-progspace.c (pspace_object_type):
5197 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5198 * python/py-signalevent.c (signal_event_object_type):
5199 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5200 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5201 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5202 * python/py-type.c (type_object_type, field_object_type)
5203 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5204 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5205 define.
5206 (value_object_type, block_object_type, symbol_object_type)
5207 (event_object_type, stop_event_object_type, breakpoint_object_type)
5208 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5209
81ea8796
AT
52102013-05-20 Andreas Tobler <andreas@fgznet.ch>
5211
5212 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5213 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5214
a2ce51a0
DE
52152013-05-20 Doug Evans <dje@google.com>
5216
5217 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5218 For Fission.
5219 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5220 reading_dwo_directly.
5221 (struct signatured_type): New member dwo_unit.
5222 (struct die_reader_specs): New member comp_dir.
5223 (create_signatured_type_table_from_index): Use malloc for
5224 all_type_units instead of objfile's obstack.
5225 (create_all_type_units): Ditto.
5226 (fill_in_sig_entry_from_dwo_entry): New function.
5227 (add_type_unit): New function.
5228 (lookup_dwo_signatured_type): New function.
5229 (lookup_dwp_signatured_type): New function.
5230 (lookup_signatured_type): New arg cu. All callers updated.
5231 (init_cu_die_reader): Initialize comp_dir.
5232 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5233 Change assert of matching type signatures to call error on mismatch.
5234 (lookup_dwo_unit): Add assert.
5235 (init_tu_and_read_dwo_dies): New function.
5236 (init_cutu_and_read_dies): Call it.
5237 (build_type_unit_groups): Handle case of no type unit groups created.
5238 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5239 (lookup_dwo_cutu): Tweak complaint.
5240 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5241 (dwarf2_per_objfile_free): Free all_type_units.
5242
a25cd31f
JB
52432013-05-20 Joel Brobecker <brobecker@adacore.com>
5244
5245 * windows-nat.c (handle_unload_dll): Add missing empty line.
5246
4d804846
JB
52472013-05-20 Joel Brobecker <brobecker@adacore.com>
5248
5249 * dwarf2read.c (prototyped_function_p): New function.
5250 (read_subroutine_type): Use it.
5251
1c432e72
JB
52522013-05-20 Joel Brobecker <brobecker@adacore.com>
5253
5254 * rs6000-aix-tdep.c: De-indent some example code provided
5255 as a comment.
5256
4feebbdd
EBM
52572013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5258
5259 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5260 region is ok for a hardware watchpoint using the new ptrace interface
5261 on Power servers.
5262
7d0c9981
DE
52632013-05-17 Doug Evans <dje@google.com>
5264
5265 * NEWS: Mention new maintenance commands check-symtabs, and
5266 expand-symtabs, and renamed check-psymtabs.
5267 * psymtab.c (maintenance_check_psymtabs): Renamed from
5268 maintenance_check_symtabs. Only process already-expanded symbol
5269 tables.
5270 (_initialize_psymtab): Update.
5271 * symmisc.c (maintenance_check_symtabs): New function.
5272 (maintenance_expand_name_matcher): New function
5273 (maintenance_expand_file_matcher): New function
5274 (maintenance_expand_symtabs): New function.
5275 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5276 commands.
5277
6cbc7c3d
TT
52782013-05-17 Tom Tromey <tromey@redhat.com>
5279
5280 * python/py-inferior.c (infpy_read_memory): Don't call
5281 PyErr_SetString if PyObject_New fails.
5282 * python/py-frame.c (frame_info_to_frame_object): Don't call
5283 PyErr_SetString if PyObject_New fails.
5284
a48b32c0
L
52852013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5286
5287 * acinclude.m4: Add check for dlopen in libdl.
5288 * configure.ac: Ditto.
5289 * configure: Regenerate.
5290
3de661e6
PM
52912013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5292
5293 * frame.c (frame_stash): Convert to htab.
5294 (frame_addr_hash): New function.
5295 (frame_addr_hash_eq): New function.
5296 (frame_stash_create): Convert function to create
5297 a hash table.
5298 (frame_stash_add): Convert function to add an entry to a hash
5299 table.
5300 (frame_stash_find): Convert function to search the hash table.
5301 (frame_stash_invalidate): Convert function to empty the hash
5302 table.
5303 (get_frame_id): Only add to stash if a frame_id is created.
5304 (_initialize_frame): Call frame_stash_create.
5305
bb4168a9 53062013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5307
5308 * configure.ac: Ensure MIG is available when building for GNU Hurd
5309 hosts.
5310 * configure: Regenerate.
5311
d1be3247
JB
53122013-05-16 Joel Brobecker <brobecker@adacore.com>
5313
5314 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5315
b8fea896
JB
53162013-05-16 Joel Brobecker <brobecker@adacore.com>
5317
5318 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5319 all cleanups are done before returning from this function.
5320
af880d85
JB
53212013-05-15 Joel Brobecker <brobecker@adacore.com>
5322
5323 * utils.h: #include "exceptions.h".
5324 (enum errors): Remove partial declaration.
5325
356a5233
JB
53262013-05-15 Joel Brobecker <brobecker@adacore.com>
5327
5328 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5329 * gdbarch.h, gdbarch.c: Regenerate.
5330 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5331 handling.
5332
5333 * rs6000-aix-tdep.h: New file.
5334 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5335 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5336 "xml-utils.h".
5337 (struct field_info, struct ld_info_desc): New types.
5338 (ld_info32_desc, ld_info64_desc): New static constants.
5339 (struct ld_info): New type.
5340 (rs6000_aix_extract_ld_info): New function.
5341 (rs6000_aix_shared_library_to_xml): Likewise.
5342 (rs6000_aix_ld_info_to_xml): Likewise.
5343 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5344 (rs6000_aix_init_osabi): Add call to
5345 set_gdbarch_core_xfer_shared_libraries_aix.
5346 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5347 Remove "xml-utils.h" include.
5348 (LdInfo): Delete typedef.
5349 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5350 Delete macros.
5351 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5352 Adjust code accordingly.
5353 (rs6000_core_ldinfo): Delete, folded into
5354 rs6000_aix_core_xfer_shared_libraries_aix.
5355 (rs6000_xfer_shared_library): Delete.
5356 (rs6000_xfer_shared_libraries): Reimplement.
5357
742ce053
MM
53582013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5359
5360 * record.c (record_goto_cmdlist): New.
5361 (cmd_record_goto): Split into this ...
5362 (cmd_record_goto_begin): ... this
5363 (cmd_record_goto_end): ... and this.
5364 (_initialize_record): Change "record goto" to prefix command.
5365 Add commands for "record goto begin" and "record goto end".
5366 Add an alias for "record goto start" to "record goto begin".
5367
e93ba630
JK
53682013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5369
5370 * linespec.c (convert_linespec_to_sals): New comment for
5371 SOURCE_FILENAME assignment.
5372
5821aace
JK
53732013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5376 internal_warning.
5377
a1b8c4cc
TT
53782013-05-14 Tom Tromey <tromey@redhat.com>
5379
5380 * eval.c (parse_and_eval_long): Make 'exp' const.
5381 * value.h (parse_and_eval_long): Update.
5382
23b3a2c3
TT
53832013-05-14 Tom Tromey <tromey@redhat.com>
5384
5385 * ui-file.c (gdb_fopen): Make arguments const.
5386 * ui-file.h (gdb_fopen): Make arguments const.
5387
ca623f82
TT
53882013-05-14 Tom Tromey <tromey@redhat.com>
5389
5390 * remote.c (remote_set_trace_notes): Make arguments const.
5391 * target.c (update_current_target): Update cast.
5392 * target.h (to_set_trace_notes): Make arguments const.
5393
503ebb2c
TT
53942013-05-14 Tom Tromey <tromey@redhat.com>
5395
5396 * go32-nat.c (go32_terminal_info): Make 'args' const.
5397 * inferior.h (child_terminal_info): Update.
5398 * inflow.c (child_terminal_info): Make 'args' const.
5399 * target.c (default_terminal_info): Make 'args' const.
5400 (debug_to_terminal_save_ours): Likewise.
5401 * target.h (struct target_ops) <to_terminal_info>: Make argument
5402 const.
5403
85e1311a
TT
54042013-05-13 Tom Tromey <tromey@redhat.com>
5405
5406 * gcore.c (create_gcore_bfd): Make 'filename' const.
5407 * gcore.h (create_gcore_bfd): Make 'filename' const.
5408 * record-full.c (record_full_save): Make 'recfilename' const.
5409 * target.c (target_save_record): Make 'filename' const.
5410 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5411 const.
5412 (target_save_record): Likewise.
5413
d62bfeaf
TT
54142013-05-13 Tom Tromey <tromey@redhat.com>
5415
f5aee5ee 5416 PR gdb/15338:
d62bfeaf
TT
5417 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5418 ranges section has been read.
5419
ac1ca910
TT
54202013-05-13 Tom Tromey <tromey@redhat.com>
5421
5422 PR exp/15364:
5423 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5424 STRUCTOP_PTR>: Return a not_lval value for
5425 EVAL_AVOID_SIDE_EFFECTS.
5426 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5427 for EVAL_AVOID_SIDE_EFFECTS.
5428
36d1c68c
JB
54292013-05-13 Joel Brobecker <brobecker@adacore.com>
5430
5431 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5432 floating point registers to register type before storing
5433 value.
5434 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5435 Likewise.
5436
21ff4686
TT
54372013-05-10 Joel Brobecker <brobecker@adacore.com>
5438 Tom Tromey <tromey@redhat.com>
5439
5440 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5441 New functions.
5442 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5443 Declare.
5444 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5445 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5446 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5447 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5448
d3685d60
TT
54492013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5450 Tom Tromey <tromey@redhat.com>
5451
5452 PR build/15414:
5453 * configure: Rebuild.
5454 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5455 with -Wno-format.
5456
eb9fe518
PA
54572013-05-10 Pedro Alves <palves@redhat.com>
5458
5459 * remote.c (_initialize_remote): Fix spelling of
5460 qXfer:traceframe-info:read packet in packet config command.
5461
9779ab84
PA
54622013-05-10 David Taylor <dtaylor@emc.com>
5463
5464 PR remote/15455
5465
5466 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5467 "QTro" at start of packet.
5468
060cfbef
JB
54692013-05-10 Joel Brobecker <brobecker@adacore.com>
5470
5471 * solib-aix.c (solib_aix_relocate_section_addresses):
5472 For the .bss section action, apply the same offset as
5473 the .data section.
5474
ab1c4e88
JB
54752013-05-10 Joel Brobecker <brobecker@adacore.com>
5476
5477 * solib-aix.c (solib_aix_relocate_section_addresses):
5478 Remove FIXME comment.
5479
c1357578
JB
54802013-05-10 Joel Brobecker <brobecker@adacore.com>
5481
5482 PR tdep/15420:
5483 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5484 New functions, directly copied from sparc-sol-thread.c.
5485 * sparc-sol-thread.c: Delete.
5486 * configure.ac: Remove code handling sparc-solaris-thread.c.
5487 * configure: Regenerate.
5488
1e611234
PM
54892013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5490
5491 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5492 filter logic.
5493 (backtrace_command): Add "no-filters" option parsing.
5494 (_initialize_stack): Alter help to reflect "no-filters" option.
5495 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5496 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5497 (py-frame.o): Add target
5498 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5499 filter files.
5500 * python/python.h: Add new frame filter constants, and flag enum.
5501 (apply_frame_filter): Add definition.
5502 * python/python.c (apply_frame_filter): New non-Python
5503 enabled function.
5504 * python/py-utils.c (py_xdecref): New function.
5505 (make_cleanup_py_xdecref): Ditto.
5506 * python/py-objfile.c: Declare frame_filters dictionary.
5507 (objfpy_dealloc): Add frame_filters dealloc.
5508 (objfpy_new): Initialize frame_filters attribute.
5509 (objfile_to_objfile_object): Ditto.
5510 (objfpy_get_frame_filters): New function.
5511 (objfpy_set_frame_filters): New function.
5512 * python/py-progspace.c: Declare frame_filters dictionary.
5513 (pspy_dealloc): Add frame_filters dealloc.
5514 (pspy_new): Initialize frame_filters attribute.
5515 (pspacee_to_pspace_object): Ditto.
5516 (pspy_get_frame_filters): New function.
5517 (pspy_set_frame_filters): New function.
5518 * python/py-framefilter.c: New file.
5519 * python/lib/gdb/command/frame_filters.py: New file.
5520 * python/lib/gdb/frames.py: New file.
5521 * python/lib/gdb/__init__.py: Initialize global frame_filters
5522 dictionary
5523 * python/lib/gdb/FrameDecorator.py: New file.
5524 * python/lib/gdb/FrameIterator.py: New file.
5525 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5526 * mi/mi-cmds.h: Declare.
5527 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5528 --no-frame-filter logic, and Python frame filter logic.
5529 (stack_enable_frame_filters): New function.
5530 (parse_no_frame_option): Ditto.
5531 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5532 filter logic.
5533 (mi_cmd_stack_list_locals): Ditto.
5534 (mi_cmd_stack_list_args): Ditto.
5535 (mi_cmd_stack_list_variables): Ditto.
5536 * NEWS: Add frame filter note.
5537
2cb9c859
DE
55382013-05-09 Doug Evans <dje@google.com>
5539
6bf667bb
DE
5540 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5541 All callers updated.
5542 (syms_from_objfile): Ditto. Make static.
5543 (symbol_file_add_with_addrs): Renamed from
5544 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5545 num_offsets. All callers updated.
5546 * symfile.h (syms_from_objfile): Delete.
5547
2cb9c859
DE
5548 * symfile.c (decrement_reading_symtab): Add assert.
5549 (increment_reading_symtab): Ditto.
5550
40aea477
JB
55512013-05-09 Joel Brobecker <brobecker@adacore.com>
5552
5553 * source.c (forward_search_command): Replace call to getc
5554 by call to fgetc.
5555 (reverse_search_command): Likewise.
5556
680d1742
DE
55572013-05-08 Doug Evans <dje@google.com>
5558
5559 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5560 matching test.
5561
17e760ae
JB
55622013-05-08 Joel Brobecker <brobecker@adacore.com>
5563
5564 * sol-thread.c (info_cb): Factorize the code a little.
5565
c0f5f490
JB
55662013-05-08 Joel Brobecker <brobecker@adacore.com>
5567
5568 * sol-thread.c (info_cb): Rework the output of the "maintenance
5569 info sol-threads" command a bit.
5570
5d74e061
JB
55712013-05-08 Joel Brobecker <brobecker@adacore.com>
5572
5573 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5574 Replace ti.ti_startfunc by ti.ti_pc.
5575
814a3ff7
JB
55762013-05-08 Joel Brobecker <brobecker@adacore.com>
5577
5578 * solib-aix.c (solib_aix_free_library_list): New function
5579 for the case where HAVE_LIBEXPAT is not defined.
5580
58ce7251
SDJ
55812013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5582
5583 PR breakpoints/15413:
5584 * breakpoint.c (condition_completer): Simplify the code to
5585 disconsider multiple locations of breakpoints when completing the
5586 "condition" command.
5587
be8b1ea6
PM
55882013-05-07 Pierre Muller <muller@sourceware.org>
5589
5590 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5591 instead of <sys/wait.h>.
5592
1e52bda6
PM
55932013-05-07 Pierre Muller <muller@sourceware.org>
5594
5595 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5596 trailing new line from warning message.
5597
27fd0c6b
PM
55982013-05-07 Pierre Muller <muller@sourceware.org>
5599
5600 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5601 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5602
e228ac87
JB
56032013-05-07 Joel Brobecker <brobecker@adacore.com>
5604
5605 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5606 error message (ARI fix).
5607
56082013-05-07 Joel Brobecker <brobecker@adacore.com>
5609
5610 * features/library-list-aix.dtd: Replace library-list by
5611 library-list-aix.
5612 * rs6000-nat.c: Replace library-list by library-list-aix
5613 throughout.
5614 * solib-aix.c: Likewise.
5615
56162013-05-07 Joel Brobecker <brobecker@adacore.com>
5617
5618 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5619 Renames TARGET_OBJECT_AIX_LIBRARIES.
5620 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5621 TARGET_OBJECT_LIBRARIES_AIX throughout.
5622 * solib-aix.c: Likwise.
5623
26a4dda9
YQ
56242013-05-07 Yao Qi <yao@codesourcery.com>
5625
5626 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5627 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5628
3582629f
YQ
56292013-05-07 Yao Qi <yao@codesourcery.com>
5630
5631 * solib-dsbt.c (enable_break): Declare.
5632 (dsbt_current_sos): Remove call to enable_break2.
5633 (enable_break2): Rename to enable_break. Set solib breakpoint
5634 on '_dl_debug_state'.
5635 (enable_break): Remove.
5636
aacbb8a5
LM
56372013-05-07 Luis Machado <lgustavo@codesourcery.com>
5638
5639 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5640 debug state prior to replicating existing hardware watchpoints or
5641 breakpoints.
5642
0c013353
JK
56432013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5644
5645 * gcore.c (gcore_create_callback): Ignore sections with
5646 separate_debug_objfile_backlink != NULL.
5647
a1217d97
SL
56482013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5649 Andrew Jenner <andrew@codesourcery.com>
5650 Chung-Lin Tang <cltang@codesourcery.com>
5651 Julian Brown <julian@codesourcery.com>
5652
5653 Based on the nios2-elf port from Altera Corporation.
5654
5655 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5656 nios2-linux-tdep.o.
5657 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5658 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5659 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5660 * nios2-tdep.h: New.
5661 * nios2-tdep.c: New.
5662 * nios2-linux-tdep.c: New.
5663 * features/Makefile (WHICH): Add nios2-linux.
5664 (nios2-linux-expedite): Set.
5665 * features/nios2-cpu.xml: New.
5666 * features/nios2.xml: New.
5667 * features/nios2-linux.xml: New.
5668 * features/nios2.c: New (autogenerated).
5669 * features/nios2-linux.c: New (autogenerated).
5670 * regformats/nios2-linux.dat: New (autogenerated).
5671 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5672 and commands.
5673
0892cb63
DE
56742013-05-06 Doug Evans <dje@google.com>
5675
3b7bacac
DE
5676 * symfile.c: Whitespace cleanup.
5677
0892cb63
DE
5678 * solist.h (struct target_so_ops): New member clear_so.
5679 * solib-svr4.c (svr4_clear_so): New function.
5680 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5681 * solib.c (clear_so): Renamed from free_so_symbols.
5682 All callers updated. Call target clear_so if it exists.
5683
40501e00
TT
56842013-05-06 Tom Tromey <tromey@redhat.com>
5685
5686 * ada-lang.c (ada_value_primitive_packed_val): Don't
5687 call value_incref.
5688 * value.c (set_value_parent): Incref the new parent and decref
5689 the old parent.
5690 (value_copy, value_primitive_field): Use set_value_parent.
5691
b6807d98
TT
56922013-05-06 Tom Tromey <tromey@redhat.com>
5693
5694 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5695 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5696 if needed.
5697 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5698 * dwarf2read.c (write_constant_as_bytes)
5699 (dwarf2_fetch_constant_bytes): New functions.
5700
3aef2284
TT
57012013-05-06 Tom Tromey <tromey@redhat.com>
5702
5703 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5704 parameters.
5705 (dwarf2_const_value_attr): Update.
5706
66f65e2b
TT
57072013-05-06 Tom Tromey <tromey@redhat.com>
5708
5709 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5710 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5711 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5712 Remove declaration.
5713
7919a973
TT
57142013-05-06 Tom Tromey <tromey@redhat.com>
5715
5716 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5717 objfile's obstack.
5718
a7bfba49
DE
57192013-05-06 Doug Evans <dje@google.com>
5720
3189cb12
DE
5721 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5722 * stabsread.h (process_one_symbol): Update declaration.
5723 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5724 * elfread.c (elf_symfile_relocate_probe): Ditto.
5725 * psymtab.c (relocate_psymtabs): Ditto.
5726 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5727 (objfile_relocate): Ditto.
5728 * objfiles.h (objfile_relocate): Update declaration.
5729 * symfile.c (relative_addr_info_to_section_offsets): Constify
5730 addrs parameter.
5731 (default_symfile_offsets): Ditto.
5732 (syms_from_objfile_1): Constify offsets parameter.
5733 (syms_from_objfile): Ditto.
5734 (symbol_file_add_with_addrs_or_offsets): Ditto.
5735 (symfile_map_offsets_to_segments): Constify data parameter.
5736 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5737 delta parameters of member relocate.
5738 (struct sym_probe_fns): Constify new_offsets,
5739 delta parameters of member sym_relocate_probe.
5740 (struct sym_fns): Constify section_addr_info parameter of member
5741 sym_offsets.
5742 (relative_addr_info_to_section_offsets): Update declaration.
5743 (default_symfile_offsets): Ditto.
5744 (syms_from_objfile): Ditto.
5745 (symfile_map_offsets_to_segments): Ditto.
5746
a7bfba49
DE
5747 * symfile.c (syms_from_objfile_1): Use correct section count when
5748 objfile->sf == NULL.
5749
5f8e0b8f
MF
57502013-05-06 Mike Frysinger <vapier@gentoo.org>
5751
5752 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5753
ea52d893
DE
57542013-05-06 Doug Evans <dje@google.com>
5755
5756 * psympriv.h (struct partial_symtab): Augment comment for member
5757 section_offsets.
5758
4d1eb6b4
JB
57592013-05-06 Joel Brobecker <brobecker@adacore.com>
5760
5761 Reimplement shared library support on ppc-aix...
5762 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5763 * features/library-list-aix.dtd: New file.
5764 * solib-aix.h, solib-aix.c: New file.
5765 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5766 (rs6000_find_toc_address_hook): Delete.
5767 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5768 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5769 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5770 "xml-utils.h".
5771 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5772 (vmap_symtab, fixup_breakpoints): Delete.
5773 (rs6000_xfer_shared_libraries): New function.
5774 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5775 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5776 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5777 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5778 (rs6000_xfer_shared_library): New function.
5779 (find_toc_address): Delete.
5780 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5781 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5782 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5783 before creating minimal symbol. Adjust function description
5784 accordingly.
5785 (scan_xcoff_symtab): Replace call to
5786 prim_record_minimal_symbol_and_info by call to
5787 record_minimal_symbol.
5788 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5789 around default_symfile_offsets.
5790 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5791 powerpc-aix targets.
5792 * config/rs6000/nm-rs6000.h: Delete.
5793 * config/powerpc/aix.mh (NAT_FILE): Delete.
5794 (NATDEPFILES): Remove xcoffsolib.o.
5795 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5796 (ALL_TARGET_OBS): Add solib-aix.o.
5797 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5798 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5799 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5800 * xcoffsolib.h, xcoffsolib.c: Delete.
5801
5802 * solib.c (reload_shared_libraries): Remove reference to
5803 SOLIB_CREATE_INFERIOR_HOOK.
5804 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5805 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5806 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5807 comment.
5808 * corelow.c (deprecated_core_resize_section_table): Delete.
5809 * exec.c: Remove include of xcoffsolib.h".
5810 (map_vmap, vmap): Delete.
5811 (exec_close_1): Remove references to vmap.
5812 (exec_file_attach): Remove vmap handling code, and reference
5813 to DEPRECATED_IBM6000_TARGET.
5814 (bfdsec_to_vmap): Delete.
5815 (exec_files_info): Remove block of code handling VMAP.
5816 * infcmd.c (post_create_inferior): Remove reference to
5817 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5818 * infrun.c (follow_exec): Remove reference to
5819 SOLIB_CREATE_INFERIOR_HOOK.
5820 * stack.c (print_frame): Remove reference to PC_SOLIB.
5821 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5822 (dsbt_relocate_main_executable): Likewise.
5823 * solib-frv.c (frv_current_sos): Likewise.
5824
0c4f667c
JB
58252013-05-06 Joel Brobecker <brobecker@adacore.com>
5826
5827 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5828 to target_write_memory and target_read_memory.
5829
726ce67c
JB
58302013-05-06 Joel Brobecker <brobecker@adacore.com>
5831
5832 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5833 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5834
c8c9911f
JB
58352013-05-06 Joel Brobecker <brobecker@adacore.com>
5836
5837 * darwin-nat.c: Replace all "%x" instances in format strings
5838 into "0x%x" throughout.
5839
fda184b6
JB
58402013-05-06 Joel Brobecker <brobecker@adacore.com>
5841
5842 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5843 gdb_assert by call to MACH_CHECK_ERROR.
5844 (darwin_attach_pid): Raise an error rather than a failed
5845 assertion when various system calls failed. Report a warning
5846 instead of raising a failed assertion when PREV_NOT is not NULL
5847 after call to mach_port_request_notification.
5848 (darwin_ptrace_me): Raise an error rather than a failed
5849 assertion when read returns nonzero.
5850
d1d69afb
JB
58512013-05-06 Joel Brobecker <brobecker@adacore.com>
5852
5853 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5854
dc90b24d
JK
58552013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5856
5857 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5858
faab9922
JK
58592013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5860
5861 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5862 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5863 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5864 a stale cleanup. Fix double free of NAME.
5865
e0ea48a0
EZ
58662013-05-04 Eli Zaretskii <eliz@gnu.org>
5867
5868 * windows-nat.c (windows_delete_thread): Accept an additional
5869 argument, the thread's exit code, and announce thread death when
5870 print_thread_events is non-zero and we are deleting a thread that
5871 is not the main thread.
5872 (get_windows_debug_event): Pass thread exit code to
5873 windows_delete_thread.
5874
83b2706a
KB
58752013-05-03 Kevin Buettner <kevinb@redhat.com>
5876
5877 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5878 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5879 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5880 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5881 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5882 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5883 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5884 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5885 (gdbarch_tdep): New struct.
5886 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5887 E_NUM_REGS.
5888 (v850e3v5_register_name): New function.
5889 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5890 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5891 code handling the struct return conventions for the RH850 ABI.
5892 Update all callers.
5893 (v850_eight_byte_align_p): New function.
5894 (v850_push_call_dummy): Push structs by value, not by reference
5895 for the RH850 ABI. Add support for eight byte alignment.
5896 (v850_dbtrap_breakpoint_from_pc): New function.
5897 (v850_gdbarch_init): Add ABI detection code. Register
5898 v850e3v5_register_name for the v850e3v5 architecture. Set the
5899 number of registers for v850e3v5. Register
5900 v850_dbtrap_breakpoint_from_pc as appropriate.
5901 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5902
d445b2f6
DE
59032013-05-03 Doug Evans <dje@google.com>
5904
5905 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5906 of bfd_count_sections.
5907 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5908 * symfile.c (default_symfile_offsets): Ditto.
5909 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5910 one entry, not bfd_count_sections entries.
5911
b3ce41ea
KB
59122013-05-03 Kevin Buettner <kevinb@redhat.com>
5913
5914 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5915 `save' and `restore' register groups. Don't include SPL
5916 or SPH in these groups.
5917 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5918 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5919 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5920 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5921 dwarf2_append_unwinders().
5922
96f7d3f1
PW
59232013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5924
5925 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5926 ignore SIGINT and SIGTRAP in case these internal signals are
5927 caught explicitely.
5928
b9dd1947
JB
59292013-05-01 Joel Brobecker <brobecker@adacore.com>
5930
5931 * darwin-nat.c (darwin_read_write_inferior): Change types
5932 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5933 of copy_count to "mach_msg_type_number_t".
5934 (darwin_read_dyld_info): Change type of parameter
5935 rdaddr to "gdb_byte *".
5936
4ca18a63
JB
59372013-05-01 Joel Brobecker <brobecker@adacore.com>
5938
5939 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5940 of &info->load_map from "char *" to "gdb_byte *".
5941
2b692d32
JB
59422013-05-01 Joel Brobecker <brobecker@adacore.com>
5943
5944 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5945 from "char *" to "gdb_byte *".
5946 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5947
a98c29a0
DE
59482013-04-30 Doug Evans <dje@google.com>
5949
6a506a2d
DE
5950 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5951 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5952 DWO stub. If DWO isn't found, just use stub.
5953 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5954
a98c29a0
DE
5955 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5956 calling init_cutu_and_read_dies.
5957
f92b06da
WT
59582013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5959
5960 * target-descriptions.c (maint_print_c_tdesc_cmd):
5961 Add case to parse structures as register types and
5962 bitfields.
5963
95eebdcc
WT
59642013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5965
5966 * MAINTAINERS (Write After Approval): Add myself to the list.
5967
019c1128
JB
59682013-04-30 Joel Brobecker <brobecker@adacore.com>
5969
5970 * sol-thread.c (rw_common): Change type of parameter "buf"
5971 to "gdb_byte *".
5972 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5973 rw_common to "gdb_byte *" instead of "char *".
5974
5812197c
JB
59752013-04-30 Joel Brobecker <brobecker@adacore.com>
5976
5977 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5978 of local variable msym to const struct bound_minimal_symbol.
5979 Adjust use accordingly.
5980 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5981
ecccb813
TS
59822013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5983
5984 * i386gnu-nat.c (CREG_OFFSET): New macro.
5985 (creg_offset): New array.
5986 (CREG_ADDR): Use creg_offset instead of reg_offset.
5987
f1d02dd4 59882013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5989
5990 * mep-tdep.c (mep_write_pc): Delete.
5991 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5992 Add call to set_gdbarch_pc_regnum.
5993
f1d02dd4 59942013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5995
5996 * common/filestuff.c: Replace #include <dirent.h> by
5997 #include "gdb_dirent.h".
5998
f1d02dd4 59992013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6000
6001 * common/filestuff.c: Replace #include <sys/stat.h> by
6002 #include "gdb_stat.h".
6003
b385a60d
PM
60042013-04-29 Pierre Muller <muller@sourceware.org>
6005
6006 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6007 editCase function rule.
6008 (get_DW_AT_signature_type): Likewise.
6009
d27b54ad
JB
60102013-04-29 Joel Brobecker <brobecker@adacore.com>
6011
6012 * m32r-tdep.c (m32r_write_pc): Delete.
6013 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6014 Add call to set_gdbarch_pc_regnum.
6015
47d21dc5
PM
60162013-04-29 Pierre Muller <muller@sourceware.org>
6017
6018 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6019
9056882e
JB
60202013-04-29 Joel Brobecker <brobecker@adacore.com>
6021
6022 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6023
7ee4732a
YQ
60242013-04-28 Yao Qi <yao@codesourcery.com>
6025
6026 * solib-dsbt.c (fetch_loadmap): Re-indent.
6027 (displacement_from_map, enable_break2): Likewise.
6028 (dsbt_relocate_section_addresses): Likewise.
6029
2260af53 60302013-04-26 Joel Brobecker <brobecker@adacore.com>
6031
6032 GDB 7.6 released.
6033
ff546935
TT
60342013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6035
6036 PR corefiles/14983:
6037 * dwarf2read.c (process_full_comp_unit): Always create a static
6038 block.
6039
40fb6c5e
HZ
60402013-04-25 Hui Zhu <hui@codesourcery.com>
6041
6042 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6043 to loc->cmd_bytecode.
6044
74e04d1c
DE
60452013-04-24 Doug Evans <dje@google.com>
6046
6047 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6048
3cf62c1d
KS
60492013-04-22 Keith Seitz <keiths@redhat.com>
6050
6051 * tracepoint.c (trace_save): Call the writer's start method.
6052
bf9e4d0c
MB
60532013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6054
6055 PR gdb/10462
6056 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6057 before argument.
6058
5d71132c
TT
60592013-04-23 Tom Tromey <tromey@redhat.com>
6060
6061 * common/filestuff.c: Check USE_WIN32API before including
6062 sys/socket.h.
6063 (HAVE_F_GETFD): New define.
6064 (mark_cloexec): Check HAVE_F_GETFD.
6065 (gdb_open_cloexec): Change 'mode' to unsigned long.
6066 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6067 (gdb_pipe_cloexec): Check HAVE_PIPE.
6068 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6069 long.
6070
a11cfd87
HZ
60712013-04-23 Hui Zhu <hui@codesourcery.com>
6072
6073 PR gdb/15293
a11cfd87
HZ
6074 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6075
2d9442cc
HZ
60762013-04-23 Hui Zhu <hui@codesourcery.com>
6077
6078 PR gdb/15165
2d9442cc
HZ
6079 * breakpoint.c (dprintf_print_recreate): New.
6080 (save_breakpoints): Let it not save dprintf commands.
6081 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6082
614c279d
TT
60832013-04-22 Tom Tromey <tromey@redhat.com>
6084
6085 PR gdb/7912:
6086 * Makefile.in (SFILES): Add filestuff.c
6087 (COMMON_OBS): Add filestuff.o.
6088 (filestuff.o): New target.
6089 * auto-load.c (auto_load_objfile_script_1): Use
6090 gdb_fopen_cloexec.
6091 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6092 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6093 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6094 * common/agent.c (gdb_connect_sync_socket): Use
6095 gdb_socket_cloexec.
6096 * common/filestuff.c: New file.
6097 * common/filestuff.h: New file.
6098 * common/linux-osdata.c (linux_common_core_of_thread)
6099 (command_from_pid, commandline_from_pid, print_source_lines)
6100 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6101 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6102 gdb_fopen_cloexec.
6103 * common/linux-procfs.c (linux_proc_get_int)
6104 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6105 * config.in, configure: Rebuild.
6106 * configure.ac: Don't check for sys/socket.h. Check for
6107 fdwalk, pipe2.
6108 * corelow.c (core_open): Use gdb_open_cloexec.
6109 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6110 * fork-child.c (fork_inferior): Call close_most_fds.
6111 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6112 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6113 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6114 Use gdb_fopen_cloexec.
6115 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6116 gdb_open_cloexec.
6117 (linux_async_pipe): Use gdb_pipe_cloexec.
6118 * remote-fileio.c (remote_fileio_func_open): Use
6119 gdb_open_cloexec.
6120 * remote.c (remote_file_put, remote_file_get): Use
6121 gdb_fopen_cloexec.
6122 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6123 close_most_fds.
6124 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6125 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6126 * solib.c (solib_find): Use gdb_open_cloexec.
6127 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6128 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6129 (tfile_open): Use gdb_open_cloexec.
6130 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6131 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6132 * xml-support.c (xml_fetch_content_from_file): Use
6133 gdb_fopen_cloexec.
6134 * main.c (captured_main): Call notice_open_fds.
6135
5fda2332
EBM
61362013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6137
6138 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6139 'char *' to 'gdb_byte *'.
6140 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6141 'gdb_byte'.
6142
eb6c553b
YQ
61432013-04-22 Yao Qi <yao@codesourcery.com>
6144
6145 * infrun.c: Fix typo in comment.
6146
9991b207
SDJ
61472013-04-22 Andrew Haley <aph@redhat.com>
6148
6149 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6150 instead of "long".
6151
8b4833e3
YQ
61522013-04-20 Yao Qi <yao@codesourcery.com>
6153
6154 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6155 'char *' to 'gdb_byte *'. Cast the return value of
6156 'bt_ctf_get_char_array' to 'gdb_byte *'.
6157
bd3f3b55
PA
61582013-04-19 Pedro Alves <palves@redhat.com>
6159
6160 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6161 -Wpointer-sign.
6162 * configure: Regenerate.
6163
c49e7f76
PA
61642013-04-19 Pedro Alves <palves@redhat.com>
6165
6166 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6167 'void *'.
6168
12ff8552
PA
61692013-04-19 Pedro Alves <palves@redhat.com>
6170
6171 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6172 Change type of 'myaddr' parameter to gdb_byte pointer.
6173 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6174 to 'long long' pointer instead of to 'unsigned long long'.
6175 (monitor_write_memory_block, monitor_read_memory_single)
6176 (monitor_read_memory): Change type of 'myaddr' parameter to
6177 gdb_byte pointer.
6178
9c37696b
PA
61792013-04-19 Pedro Alves <palves@redhat.com>
6180
6181 * record.c (validate_history_size): Make parameter 'setting'
6182 unsigned.
6183
a398505b
PA
61842013-04-19 Pedro Alves <palves@redhat.com>
6185
6186 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6187 to 'gdb_byte *'.
6188
9f8afa72
PA
61892013-04-19 Pedro Alves <palves@redhat.com>
6190
6191 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6192 local to int.
6193
c714b426
PA
61942013-04-19 Pedro Alves <palves@redhat.com>
6195
6196 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6197 * ada-tasks.c (read_fat_string_value): Likewise.
6198
507a579c
PA
61992013-04-19 Pedro Alves <palves@redhat.com>
6200
6201 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6202 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6203 'offset', and adjust.
6204
f9d83a0b
PA
62052013-04-19 Pedro Alves <palves@redhat.com>
6206
6207 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6208 (read_index_from_section): Add cast to 'char *'.
6209
745eb4fd
PA
62102013-04-19 Pedro Alves <palves@redhat.com>
6211
6212 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6213
db5be46f
PA
62142013-04-19 Pedro Alves <palves@redhat.com>
6215
6216 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6217
0f928d68
PA
62182013-04-19 Pedro Alves <palves@redhat.com>
6219
6220 * record-full.c (record_full_get_bookmark): Change local 'ret'
6221 type to char * and add cast to gdb_byte *.
6222 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6223 string.
6224 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6225
89f6d837
PA
62262013-04-19 Pedro Alves <palves@redhat.com>
6227
6228 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6229 * python/py-prettyprint.c (print_string_repr): Change type of
6230 'output' local to char *. Add cast to gdb_byte * in
6231 LA_PRINT_STRING call.
6232 (print_children): Change type of 'output' local to char *.
6233 * python/py-value.c (valpy_string): Add cast to const char * in
6234 PyUnicode_Decode call.
6235
ce6ec7d8
PA
62362013-04-19 Pedro Alves <palves@redhat.com>
6237
6238 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6239 and change its type to 'const char *'. Adjust.
6240 (mips_send_packet): Add cast to 'char *', and remove cast to
6241 'unsigned char *'.
6242 (mips_receive_packet): Remove cast to 'unsigned char *'.
6243 (mips_load_srec): Use bfd_byte.
6244 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6245 (pmon_checkset): Make 'value' parameter unsigned.
6246
fda0389f
PA
62472013-04-19 Pedro Alves <palves@redhat.com>
6248
6249 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6250
bc20a4af
PA
62512013-04-19 Pedro Alves <palves@redhat.com>
6252
6253 * remote.c (remote_write_bytes_aux, compare_sections_command)
6254 (remote_read_qxfer)
6255 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6256 (remote_hostio_readlink, remote_bfd_iovec_pread)
6257 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6258 binary buffer, and char when buffer is used as string.
6259 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6260 (trace_save, tfile_open, traceframe_walk_blocks)
6261 (tfile_fetch_registers): Likewise.
6262
c628b528
PA
62632013-04-19 Pedro Alves <palves@redhat.com>
6264
6265 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6266 buffer and size_t size. Adjust.
6267 * ser-base.h (ser_base_write): Adjust.
6268 * ser-go32.c (cnts): Change type to size_t.
6269 (dos_write): Change prototype -- take 'void *'
6270 buffer and size_t size. Adjust.
6271 (dos_info): Print elements of 'cnts' as unsigned long.
6272 * serial.c (serial_write): Likewise.
6273 * serial.h (serial_write): Adjust.
6274 (struct serial_ops) <write>: Change prototype -- take 'void *'
6275 buffer and size_t size. Adjust.
6276
51a5cd90
PA
62772013-04-19 Pedro Alves <palves@redhat.com>
6278
6279 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6280 gdb_byte *.
6281 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6282
a9933661
PA
62832013-04-19 Pedro Alves <palves@redhat.com>
6284
6285 * alpha-tdep.c (alpha_extract_return_value): Use
6286 regcache_cooked_read_unsigned to read 'v0'.
6287
19afdd07
PA
62882013-04-19 Pedro Alves <palves@redhat.com>
6289
6290 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6291 parameters 'at', 'as' and 'offset' to uint32_t.
6292
96b32e50
PA
62932013-04-19 Pedro Alves <palves@redhat.com>
6294
6295 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6296 'is64' to signed 'int'.
6297
eb1bd1fb
PA
62982013-04-19 Pedro Alves <palves@redhat.com>
6299
6300 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6301 parameter to int *.
6302
463920bf
PA
63032013-04-19 Pedro Alves <palves@redhat.com>
6304
6305 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6306 'insnbuf' buffer type to unsigned int[].
6307
70242eb1
PA
63082013-04-19 Pedro Alves <palves@redhat.com>
6309
6310 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6311
9d1dd0e2
PA
63122013-04-19 Pedro Alves <palves@redhat.com>
6313
6314 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6315 unsigned long *.
6316
44096aee
PA
63172013-04-19 Pedro Alves <palves@redhat.com>
6318
6319 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6320 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6321 UINT_MAX.
6322 * mips-tdep.c (heuristic_fence_post): Change type to int.
6323 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6324
e4286e57
PA
63252013-04-19 Pedro Alves <palves@redhat.com>
6326
6327 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6328 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6329 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6330
001f13d8
PA
63312013-04-19 Pedro Alves <palves@redhat.com>
6332
6333 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6334 it to get a string view of the byte buffer.
6335 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6336 type to gdb_byte *. Adjust.
6337 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6338 Change local to char *.
6339 * solib-darwin.c (find_program_interpreter): Change return type to
6340 char *. Adjust.
6341 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6342 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6343 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6344 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6345 * solib-svr4.c (find_program_interpreter): Change return type to
6346 char *. Adjust.
6347 (enable_break): Change local 'interp_name' to char *.
6348 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6349 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6350 (spu_pseudo_register_write_spu): Use char for string buffer.
6351 Adjust.
6352 (info_spu_event_command, info_spu_signal_command): Add casts to
6353 'char *'.
6354
948f8e3d
PA
63552013-04-19 Pedro Alves <palves@redhat.com>
6356
6357 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6358 gdb_byte[].
6359 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6360 * ada-lang.c (ada_value_assign): Use gdb_byte.
6361 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6362 (alphanbsd_sigtramp_offset): Use gdb_byte.
6363 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6364 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6365 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6366 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6367 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6368 * arm-tdep.c (arm_stub_unwind_sniffer)
6369 (arm_displaced_init_closure): Use gdb_byte.
6370 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6371 (arm_default_thumb_le_breakpoint)
6372 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6373 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6374 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6375 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6376 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6377 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6378 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6379 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6380 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6381 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6382 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6383 (cris_store_return_value, cris_extract_return_value): Use
6384 gdb_byte.
6385 (constraint): Change type of parameter to char * from signed
6386 char*. Use gdb_byte.
6387 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6388 of local buffer to gdb_byte *.
6389 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6390 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6391 (add_address_entry): Change type of local buffer to gdb_byte[].
6392 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6393 (frv_push_dummy_call): Use gdb_byte.
6394 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6395 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6396 (hppa_hpux_supply_save_state): Use gdb_byte.
6397 * hppa-tdep.c (hppa32_push_dummy_call)
6398 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6399 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6400 (slotN_contents, replace_slotN_contents): Change type of parameter
6401 to gdb_byte *.
6402 (fetch_instruction, ia64_pseudo_register_write)
6403 (ia64_register_to_value, ia64_value_to_register)
6404 (ia64_extract_return_value, ia64_store_return_value)
6405 (ia64_push_dummy_call): Use gdb_byte.
6406 * m32c-tdep.c (m32c_return_value): Remove cast.
6407 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6408 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6409 gdb_byte.
6410 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6411 * mn10300-tdep.c (mn10300_store_return_value)
6412 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6413 gdb_byte.
6414 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6415 (moxie_process_record): Remove casts.
6416 * ppc-ravenscar-thread.c (supply_register_at_address)
6417 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6418 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6419 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6420 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6421 * remote.c (compare_sections_command): Use gdb_byte.
6422 * score-tdep.c (score7_free_memblock): Change type of parameter to
6423 gdb_byte *.
6424 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6425 gdb_byte *. Use gdb_byte.
6426 (sh_push_dummy_call_fpu): Use gdb_byte.
6427 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6428 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6429 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6430 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6431 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6432 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6433 (sh64_store_return_value, sh64_register_convert_to_virtual):
6434 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6435 (sh64_pseudo_register_write): Use gdb_byte.
6436 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6437 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6438 buffer.
6439 (irix_current_sos): Use gdb_byte.
6440 * solib-som.c (som_current_sos): Use gdb_byte.
6441 * sparc-ravenscar-thread.c (supply_register_at_address)
6442 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6443 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6444 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6445 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6446 'gdb_byte *'.
6447 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6448 'gdb_byte *'.
6449 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6450 * xstormy16-tdep.c (xstormy16_extract_return_value)
6451 (xstormy16_store_return_value): Change parameter type to
6452 'gdb_byte *'. Adjust.
6453 (xstormy16_push_dummy_call): Use gdb_byte.
6454 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6455 (call0_analyze_prologue, execute_code): Use gdb_byte.
6456
433730c9
PA
64572013-04-19 Vladimir Kargov <kargov@gmail.com>
6458 Pedro Alves <palves@redhat.com>
6459
6460 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6461 value contents.
6462
ac9ec31b
DE
64632013-04-17 Doug Evans <dje@google.com>
6464
6465 * dwarf2read.c (struct signatured_type): New member type.
6466 (struct attribute): Replace member signatured_type with signature.
6467 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6468 (read_call_site_scope): Call follow_die_ref instead of
6469 follow_die_ref_or_sig.
6470 (read_structure_type): Rewrite handling of signatured types.
6471 (read_enumeration_type): Ditto.
6472 (read_attribute_value): Update.
6473 (build_error_marker_type): New function.
6474 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6475 Don't call error for bad types, just build an error marker type.
6476 (dump_die_shallow): Update.
6477 (follow_die_sig_1): Renamed from follow_die_sig.
6478 Don't call error for bad types, instead return NULL.
6479 (follow_die_sig): New function.
6480 (get_signatured_type, get_DW_AT_signature_type): New functions.
6481
e546e8bb
YZ
64822013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6483
6484 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6485 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6486 function.
e546e8bb 6487
ab116149
YQ
64882013-04-17 Yao Qi <yao@codesourcery.com>
6489
6490 * top.c (print_gdb_configuration): Print configure-time
6491 parameter on using libbabeltrace or not.
6492
488a42b8
PA
64932013-04-16 Pedro Alves <palves@redhat.com>
6494
6495 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6496
f5fb825b
PA
64972013-04-16 Pedro Alves <palves@redhat.com>
6498
85d494ea 6499 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6500 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6501
e1154999
PA
65022013-04-16 Pedro Alves <palves@redhat.com>
6503
6504 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6505 * common/glibc_thread_db.h: ... this new file ...
6506 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6507
e3b50a7f
PA
65082013-04-16 Will Newton <will.newton@gmail.com>
6509 Pedro Alves <palves@redhat.com>
6510
6511 PR build/11881
6512
6513 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6514 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6515 HAVE_THREAD_DB_H.
6516
1c2e4450
PA
65172013-04-16 Pedro Alves <palves@redhat.com>
6518 Eli Zaretskii <eliz@gnu.org>
6519
6520 * NEWS: Mention "set foo unlimited".
6521
4031ecc5
DE
65222013-04-15 Doug Evans <dje@google.com>
6523
19c3d4c9
DE
6524 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6525 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6526 (create_dwo_cu_reader): Renamed from
6527 create_dwo_debug_info_hash_table_reader.
6528 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6529 Remove support for multiple CUs in a DWO file.
6530 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6531
4031ecc5
DE
6532 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6533 instead of phex.
6534 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6535 (create_dwo_in_dwp): Ditto.
6536
b340913d
TT
65372013-04-15 Tom Tromey <tromey@redhat.com>
6538
6539 * NEWS: Move recent entries into "since 7.6" section.
6540
cc16e6c9
TT
65412013-04-15 Tom Tromey <tromey@redhat.com>
6542
6543 PR c++/13588:
6544 * NEWS: Update.
6545 * break-catch-throw.c (struct exception_catchpoint)
6546 <exception_rx, pattern>: New fields.
6547 (fetch_probe_arguments, dtor_exception_catchpoint)
6548 (check_status_exception_catchpoint)
6549 (print_one_detail_exception_catchpoint): New functions.
6550 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6551 Compile regular expression if needed.
6552 (extract_exception_regexp): New function.
6553 (catch_exception_command_1): Use extract_exception_regexp.
6554 (compute_exception): Use fetch_probe_arguments.
6555 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6556 and check_status fields.
6557 * cp-abi.c (cplus_typename_from_type_info): New function.
6558 * cp-abi.h (cplus_typename_from_type_info): Declare.
6559 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6560 * gdb_regex.h (compile_rx_or_error): Declare.
6561 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6562 comment.
6563 (init_gnuv3_ops): Set get_type_from_type_info field.
6564 * probe.c (compile_rx_or_error): Move...
6565 * utils.c (compile_rx_or_error): ... here.
6566
72f1fe8a
TT
65672013-04-15 Tom Tromey <tromey@redhat.com>
6568
6569 PR c++/15176:
6570 * NEWS: Update.
6571 * break-catch-throw.c (compute_exception): New function.
6572 (exception_funcs): New global.
6573 (_initialize_break_catch_throw): Create $_exception.
6574 * cp-abi.c (cplus_type_from_type_info): New function.
6575 * cp-abi.h (cplus_type_from_type_info): Declare.
6576 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6577 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6578 (gnuv3_get_type_from_type_info): New functions.
6579 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6580
fc4746a2
TT
65812013-04-15 Tom Tromey <tromey@redhat.com>
6582
6583 * break-catch-throw.c (struct exception_names): New.
6584 (exception_functions): Change type.
6585 (re_set_exception_catchpoint): Look for SDT probes.
6586
15a73f56
TT
65872013-04-15 Tom Tromey <tromey@redhat.com>
6588
6589 PR c++/10119:
6590 * break-catch-throw.c (exception_functions): New global.
6591 (gnu_v3_exception_catchpoint_ops): Move earlier.
6592 (struct exception_catchpoint): New.
6593 (classify_exception_breakpoint): Rewrite.
6594 (re_set_exception_catchpoint): New function.
6595 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6596 Allocate a struct exception_catchpoint.
6597 (catch_exception_command_1): Update.
6598 (initialize_throw_catchpoint_ops): Set 're_set' method.
6599
916703c0
TT
66002013-04-15 Tom Tromey <tromey@redhat.com>
6601
6602 * Makefile.in (SFILES): Add break-catch-throw.c
6603 (COMMON_OBS): Add break-catch-throw.o.
6604 * break-catch-throw.c: New file.
6605 * breakpoint.c: Move exception-catching code to new file.
6606 (ep_parse_optional_if_clause): No longer static.
6607 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6608
6e72ca20
TT
66092013-04-15 Tom Tromey <tromey@redhat.com>
6610
6611 PR c++/9065:
6612 * NEWS: Update.
6613 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6614 * c-exp.y (TYPEID): New token.
6615 (exp): Add new TYPEID productions.
6616 (ident_tokens): Add "typeid".
6617 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6618 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6619 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6620 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6621 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6622 case.
6623 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6624 (build_std_type_info_type, gnuv3_get_typeid_type)
6625 (gnuv3_get_typeid): New functions.
6626 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6627 new fields on ABI object.
6628 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6629 * std-operator.def (OP_TYPEID): New.
6630
715c6909
TT
66312013-04-15 Tom Tromey <tromey@redhat.com>
6632
6633 * elfread.c (elf_symtab_read): Install versioned symbol under
6634 unversioned name as well.
6635
8de20a37
TT
66362013-04-15 Tom Tromey <tromey@redhat.com>
6637
6638 PR c++/11990:
6639 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6640 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6641 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6642 (gdb_demangle): New function.
6643 * cp-support.h (gdb_demangle): Declare.
6644 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6645 (dwarf2_name): Use gdb_demangle.
6646 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6647 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6648 suffixes from name.
6649 (gnuv3_print_method_ptr): Use gdb_demangle.
6650 * jv-lang.c (java_demangle): Use gdb_demangle.
6651 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6652 * language.c (unk_lang_demangle): Use gdb_demangle.
6653 * symtab.c (symbol_find_demangled_name)
6654 (demangle_for_lookup): Use gdb_demangle.
6655
591f19e8
TT
66562013-04-15 Tom Tromey <tromey@redhat.com>
6657
6658 PR c++/12824:
6659 * NEWS: Update.
6660 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6661 New constant.
6662 (classify_exception_breakpoint): New function.
6663 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6664 (print_mention_exception_catchpoint)
6665 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6666 (catch_exception_command_1): Handle "rethrow" catchpoint.
6667 (catch_rethrow_command): New function.
6668 (_initialize_breakpoint): Add "catch rethrow" command.
6669
4d40cad2
PM
66702013-04-15 Pierre Muller <muller@sourceware.org>
6671
6672 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6673 set_gdbarch_write_pc as deprecated anymore.
6674
30bcb456
JB
66752013-04-15 Joel Brobecker <brobecker@adacore.com>
6676
6677 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6678 declarations.
6679
da9160e4
YQ
66802013-04-13 Yao Qi <yao@codesourcery.com>
6681
6682 * ctf.c (_initialize_ctf): Include "completer.h".
6683 Call add_target_with_completer instead of add_target.
6684
39ed5604
JK
66852013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6686
6687 Fix GDB regression related to PR binutils/14813.
6688 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6689 * minidebug.c (lzma_close): Add return value comment.
6690 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6691 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6692 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6693
66942013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6695
6696 * config.in: Regenerate.
6697
d521ce57
TT
66982013-04-12 Tom Tromey <tromey@redhat.com>
6699
6700 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6701 const.
6702 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6703 (struct die_reader_specs) <buffer>: Likewise.
6704 (die_reader_func_ftype): Make 'info_ptr' const.
6705 (struct line_header) <include_dirs, statement_program_start,
6706 statement_program_end>: Now const.
6707 (struct file_entry) <name>: Likewise.
6708 (struct partial_die_info) <sibling>: Likewise.
6709 (struct dwarf_block) <data>: Likewise.
6710 (dwarf2_read_section): Remove cast.
6711 (dwarf2_get_section_info): Make 'bufp' const.
6712 (read_index_from_section): Constify.
6713 (dw2_get_file_names_reader): Make 'info_ptr' const.
6714 (dw2_get_primary_filename_reader): Likewise.
6715 (read_comp_unit_head): Make 'info_ptr' and return type const.
6716 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6717 Likewise.
6718 (read_abbrev_offset): Constify.
6719 (dwarf2_create_include_psymtab): Make 'name' const.
6720 (create_debug_types_hash_table): Update.
6721 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6722 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6723 Constify.
6724 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6725 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6726 (read_comp_units_from_section): Constify.
6727 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6728 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6729 const.
6730 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6731 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6732 (create_dwp_hash_table, dwarf2_ranges_read)
6733 (dwarf2_record_block_ranges): Constify.
6734 (read_die_and_children, read_die_and_siblings_1)
6735 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6736 const.
6737 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6738 (abbrev_table_read_table): Constify.
6739 (load_partial_dies): Make 'info_ptr' const.
6740 (read_partial_die, read_attribute_value, read_attribute): Make
6741 'info_ptr' and return type const.
6742 (read_address, read_initial_length)
6743 (read_checked_initial_length_and_offset, read_offset)
6744 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6745 const.
6746 (read_direct_string): Make 'buf' and return type const.
6747 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6748 (read_indirect_string): Make return type const.
6749 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6750 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6751 'info_ptr' const.
6752 (read_str_index): Make return type const.
6753 (add_include_dir): Make 'include_dir' const.
6754 (add_file_name): Make 'name' const.
6755 (dwarf_decode_line_header): Constify.
6756 (psymtab_include_file_name): Make return type const.
6757 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6758 (dwarf2_start_subfile): Make 'filename' const.
6759 (dwarf2_const_value_attr): Make 'bytes' const.
6760 (read_signatured_type_reader): Make 'info_ptr' const.
6761 (decode_locdesc): Constify.
6762 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6763 const.
6764 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6765 'mac_end', and return type const.
6766 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6767 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6768 type const.
6769 (per_cu_header_read_in): Constify.
6770 * symfile.h (dwarf2_get_section_info): Update.
6771
d47a1bc1
TT
67722013-04-12 Tom Tromey <tromey@redhat.com>
6773
6774 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6775
6eaaf48b
EZ
67762013-04-12 Eli Zaretskii <eliz@gnu.org>
6777
fc4c25bf 6778 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6779 * top.c (print_gdb_configuration): New function, displays the
6780 details about GDB configure-time parameters.
6781 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6782 * cli/cli-cmds.c (show_configuration): New function.
6783 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6784 * main.c (captured_main) <print_configuration>: New static var.
6785 <long_options>: Use it.
6786 If --configuration was given, call print_gdb_configuration.
6787
b292c783
JK
67882013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6789 Pedro Alves <palves@redhat.com>
6790
6791 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6792 (generated_files): Add gcore.
6793 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6794 HAVE_NATIVE_GCORE_HOST.
6795 (gcore): New.
6796 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6797 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6798 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6799 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6800 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6801 Add HAVE_NATIVE_GCORE_HOST.
6802 * configure: Regenerate.
6803 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6804 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6805 AC_CONFIG_FILES for gcore.
6806 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6807 gdb_have_gcore.
6808 * gdb_gcore.sh: Rename to ...
6809 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6810 and GCORE_TRANSFORM_NAME substitutions.
6811
c96b3c4f
JK
6812 Fix parsing tabs in ${gdb_target_obs}.
6813 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6814
d6cb50a2
JK
68152013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6816
6817 * remote.c (unpush_and_perror): Add output message final dot.
6818
cf2cb5ec
YQ
68192013-04-11 Yao Qi <yao@codesourcery.com>
6820
6821 * tracepoint.c (tfile_interp_line): Fit parameters line and
6822 utpp in one line.
6823
07293be4
JB
68242013-04-10 Joel Brobecker <brobecker@adacore.com>
6825
6826 * solib.c (solib_map_sections): Remove code overwriting
6827 SO->SO_NAME with the bfd's filename.
6828
f81d1120
PA
68292013-04-10 Pedro Alves <palves@redhat.com>
6830
6831 * cli/cli-decode.c (integer_unlimited_completer): New function.
6832 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6833 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6834 completer.
6835 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6836 (is_unlimited_literal): New function.
6837 (do_set_command): Handle literal "unlimited" arguments.
6838 * frame.c (_initialize_frame) <set backtrace limit>: Document
6839 "unlimited".
6840 * printcmd.c (_initialize_printcmd) <set print
6841 max-symbolic-offset>: Add help text.
6842 * record-full.c (_initialize_record_full) <set record full
6843 insn-number-max>: Likewise.
6844 * record.c (_initialize_record) <set record
6845 instruction-history-size, set record function-call-history-size>:
6846 Add help text.
6847 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6848 help text.
6849 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6850 Likewise.
6851 * source.c (_initialize_source) <set listsize>: Add help text.
6852 * utils.c (initialize_utils) <set height, set width>: Likewise.
6853 <set pagination>: Mention "set height unlimited".
6854 * valprint.c (_initialize_valprint) <set print elements, set print
6855 repeats>: Document "unlimited".
6856
2f9d54cf
PA
68572013-04-10 Pedro Alves <palves@redhat.com>
6858
6859 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6860 instead of disconnect_tracing.
6861 * infcmd.c (detach_command, disconnect_command): Call
6862 query_if_trace_running. Adjust.
6863 * top.c: Include "tracepoint.h".
6864 (quit_target): Delete. Contents moved ...
6865 (quit_force): ... here. Wrap each stage of teardown in
6866 TRY_CATCH. Call disconnect_tracing before detaching.
6867
393fd4c3
YQ
68682013-04-10 Hui Zhu <hui@codesourcery.com>
6869 Yao Qi <yao@codesourcery.com>
6870
6871 * configure.ac: Check libbabeltrace is installed.
6872 * config.in: Regenerate.
6873 * configure: Regenerate.
6874 * Makefile.in (LIBBABELTRACE): New.
6875 (CLIBS): Add LIBBABELTRACE.
6876 * ctf.c: Include "exec.h".
6877 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6878 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6879 (ctf_save_metadata_header): Define new type aliases in
6880 metadata.
6881 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6882 in metadata. Start a new faked packet for trace status.
6883 (ctf_write_status): Write trace status to CTF.
6884 (ctf_write_uploaded_tsv): Write TSV to CTF.
6885 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6886 (ctf_write_definition_end): End the faked packet.
6887
6888 (ctx, ctf_iter, trace_dirname): New.
6889 (start_pos): New variable.
6890 (ctf_destroy, ctf_open_dir, ctf_open): New.
6891 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6892 macros.
6893 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6894 (ctf_fetch_registers, ctf_xfer_partial): New.
6895 (ctf_get_trace_state_variable_value): New.
6896 (ctf_get_tpnum_from_frame_event): New.
6897 (ctf_get_traceframe_address): New.
6898 (ctf_trace_find, ctf_has_stack): New.
6899 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6900 (ctf_get_trace_status, ctf_read_status): New.
6901 (_initialize_ctf): New.
6902 * tracepoint.c (get_tracepoint_number): New
6903 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6904 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6905 * tracepoint.h: ... here.
6906 (get_tracepoint_number): Declare it.
6907 (get_uploaded_tsv): Declare it.
6908
6909 * NEWS: Mention new configure option.
6910
5c2b4418
HZ
69112013-04-10 Pedro Alves <palves@redhat.com>
6912 Hui Zhu <hui@codesourcery.com>
6913
6914 * breakpoint.c (dprintf_re_set): New.
6915 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6916 to dprintf_re_set.
6917
a5c66735
JB
69182013-04-09 Joel Brobecker <brobecker@adacore.com>
6919
6920 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6921 Remove solib-svr4.o from the list.
6922
9e77999c
JB
69232013-04-09 Joel Brobecker <brobecker@adacore.com>
6924
6925 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6926 Use gdb_assert_not_reached instead of invalid boolean expression.
6927
1927e618
PA
69282013-04-09 Pedro Alves <palves@redhat.com>
6929
6930 * remote.c (unpush_and_perror): New function.
6931 (readchar, remote_serial_write): Use it.
6932
10782d74
MM
69332013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6934
6935 * NEWS: Mention new btrace RSP packets.
6936
4c8429ef
TT
69372013-04-08 Tom Tromey <tromey@redhat.com>
6938
6939 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6940 long.
6941
8625fc1b
TT
69422013-04-08 Tom Tromey <tromey@redhat.com>
6943
6944 * maint.c (print_bfd_section_info): Print the section index.
6945 * symmisc.c (dump_msymbols): Print the section index.
6946
e27d198c
TT
69472013-04-08 Tom Tromey <tromey@redhat.com>
6948
6949 PR symtab/8424:
6950 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6951 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6952 * breakpoint.c (resolve_sal_pc): Update.
6953 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6954 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6955 (minsym_lookup_iterator_cb): Use it.
6956 (default_read_var_value): Update.
6957 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6958 Update.
6959 * infcmd.c (jump_command): Update.
6960 * linespec.c (minsym_found): Update.
6961 * maint.c (maintenance_translate_address): Update.
6962 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6963 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6964 * parse.c (write_exp_msymbol): Update.
6965 * printcmd.c (address_info): Update.
6966 * psymtab.c (find_pc_sect_psymbol): Update.
6967 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6968 SYMBOL_OBJ_SECTION.
6969 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6970 Don't initialize SYMBOL_OBJ_SECTION.
6971 * spu-tdep.c (spu_catch_start): Update.
6972 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6973 * symmisc.c (dump_msymbols, print_symbol): Update.
6974 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6975 how fallback section is computed.
6976 (fixup_symbol_section): Update.
6977 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6978 Update.
6979 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6980 Initialize SYMBOL_SECTION.
6981 * symtab.h (struct general_symbol_info) <section>: Update comment.
6982 <obj_section>: Remove.
6983 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6984 (SYMBOL_OBJFILE): New macro.
6985
e6dc44a8
TT
69862013-04-08 Tom Tromey <tromey@redhat.com>
6987
6988 * coffread.c (record_minimal_symbol): Update.
6989 * dbxread.c (record_minimal_symbol): Update.
6990 * elfread.c (record_minimal_symbol): Update.
6991 * machoread.c (macho_symtab_add_minsym): Update.
6992 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6993 Update.
6994 * minsyms.c (prim_record_minimal_symbol): Update.
6995 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6996 argument.
6997 (prim_record_minimal_symbol_and_info): Likewise.
6998 * minsyms.h (prim_record_minimal_symbol_full)
6999 (prim_record_minimal_symbol_and_info): Update.
7000 * symtab.c (allocate_symbol, initialize_symbol)
7001 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7002 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7003 Update.
7004
36192a8d
TT
70052013-04-08 Tom Tromey <tromey@redhat.com>
7006
7007 PR symtab/8423:
7008 * solib-som.c (som_solib_section_offsets): Use BFD section
7009 indices. Set offsets for all sections.
7010 * somread.c (som_symtab_read): Compute BFD section for
7011 symbol. Use prim_record_minimal_symbol_and_info.
7012 (som_symfile_read): Fix comment.
7013 (struct find_section_offset_arg): New.
7014 (find_section_offset, set_section_index): New functions.
7015 (som_symfile_offsets): Use set_section_index to compute
7016 section indices.
7017
65cf3563
TT
70182013-04-08 Tom Tromey <tromey@redhat.com>
7019
7020 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7021 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7022 gdb_bfd_section_index.
7023 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7024 New functions.
7025 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7026 Declare.
7027 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7028 Update.
7029 * objfiles.c (add_to_objfile_sections_full): New function.
7030 (add_to_objfile_sections): Use it.
7031 (build_section_table): Rewrite.
7032 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7033 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7034 (struct objfile) <sections>: Update comment.
7035 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7036 is NULL.
7037 (ALL_OBJSECTIONS): Use it.
7038 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7039 * solib-frv.c (frv_relocate_main_executable): Update.
7040 * solib-target.c (solib_target_relocate_section_addresses):
7041 Use gdb_bfd_section_index.
7042 * symfile.c (build_section_addr_info_from_section_table):
7043 Use gdb_bfd_section_index.
7044 (build_section_addr_info_from_bfd, place_section): Likewise.
7045 * symtab.c (fixup_section): Update.
7046 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7047
7cbd4a93
TT
70482013-04-08 Tom Tromey <tromey@redhat.com>
7049
7050 * minsyms.h (struct bound_minimal_symbol): New.
7051 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7052 Remove objfile argument.
7053 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7054 Return bound_minimal_symbol.
7055 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7056 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7057 Return bound_minimal_symbol.
7058 (in_gnu_ifunc_stub): Update.
7059 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7060 Remove 'objfile_p' argument.
7061 (lookup_solib_trampoline_symbol_by_pc): Update.
7062 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7063 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7064 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7065 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7066 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7067 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7068 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7069 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7070 stack.c, symtab.c, tui/tui-disasm.c: Update.
7071
f85f34ed
TT
70722013-04-08 Tom Tromey <tromey@redhat.com>
7073
7074 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7075 Use symbol's obstack, not an objfile.
7076 * coffread.c (process_coff_symbol): Update.
7077 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7078 * jv-lang.c (add_class_symbol): Update.
7079 * mdebugread.c (new_symbol): Update.
7080 * minsyms.c (prim_record_minimal_symbol_full)
7081 (terminate_minimal_symbol_table): Update.
7082 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7083 * stabsread.c (define_symbol, read_enum_type): Update.
7084 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7085 Handle Ada specially.
7086 (symbol_set_language): Add 'obstack' argument.
7087 (symbol_set_names): Update.
7088 (symbol_natural_name, symbol_demangled_name): Always use
7089 ada_decode_symbol.
7090 * symtab.h (struct general_symbol_info)
7091 <language_specific::obstack>: New field.
7092 <ada_mangled>: New field.
7093 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7094 (symbol_set_language): Update.
7095
ccde22c0
TT
70962013-04-08 Tom Tromey <tromey@redhat.com>
7097
7098 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7099 Take an obstack, not an objfile.
7100 (symbol_set_names): Update.
7101 * symtab.h (symbol_set_demangled_name): Update.
7102
e623cf5d
TT
71032013-04-08 Tom Tromey <tromey@redhat.com>
7104
7105 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7106 allocate_symbol.
7107 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7108 (read_func_scope): Call allocate_template_symbol.
7109 (new_symbol_full): Call allocate_symbol.
7110 * jit.c (finalize_symtab): Call allocate_symbol.
7111 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7112 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7113 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7114 (common_block_end): Call allocate_symbol.
7115 * symtab.c (allocate_symbol, initialize_symbol)
7116 (allocate_template_symbol): New functions.
7117 * symtab.c (allocate_symbol, initialize_symbol)
7118 (allocate_template_symbol): Declare.
7119 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7120
f6de8ec2
PA
71212013-04-08 Pedro Alves <palves@redhat.com>
7122 Keith Seitz <keiths@redhat.com>
7123
7124 * breakpoint.c (create_breakpoint): Rename
7125 "parse_condition_and_thread" parameter to "parse_arg". Update
7126 describing comment. If !PARSE_ARG, then error out if ARG is not
7127 the empty string after extracting the location.
7128 * breakpoint.h (create_breakpoint): Rename
7129 "parse_condition_and_thread" parameter to "parse_arg".
7130
f65ce5fb
AR
71312013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7132
7133 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7134
cc5925ad
YQ
71352013-04-07 Yao Qi <yao@codesourcery.com>
7136
7137 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7138 and 'addr2' to CORE_ADDR.
7139 * target.c (update_current_target): Update.
7140 * target.h (struct target_ops) <to_trace_find>: Change parameter
7141 type to CORE_ADDR.
7142 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7143 'addr2' to CORE_ADDR.
7144 (tfile_trace_find): Likewise.
7145 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7146 Change local variable 'addr' to type CORE_ADDR.
7147 * tracepoint.h (tfind_1): Update declaration.
7148
d9ac0664
EZ
71492013-04-06 Eli Zaretskii <eliz@gnu.org>
7150
7151 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7152 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7153 Include main.h.
7154
7155 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7156 here...
7157 * main.h (windows_get_absolute_argv0): ...to here.
7158
02142a6c
DE
71592013-04-05 Doug Evans <dje@google.com>
7160
7161 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7162 (read_cutu_die_from_dwo): Add comments.
7163 (read_structure_type): Update comment.
7164 (read_enumeration_type, read_namespace_type): Update comment.
7165 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7166
43662968
JK
71672013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7168
7169 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7170 * Makefile.in (gdb.z): Remove.
7171 (install-only): Remove $(man1dir) and gdb.1 installation.
7172 * gdb.1: Remove.
7173
9ead1b84
JK
71742013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7175
7176 Fix compatibility with Linux kernel 3.8.3.
7177 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7178 to more inner block. Remove parsing of NUMBER from outer block.
7179 Parse NUMBER only if KEYWORD has been identified.
7180
d1794952
JK
71812013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7182
7183 Fix variable name shadowing.
7184 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7185 filename to mapsfilename and update its uses.
7186
9025569e
EZ
71872013-04-05 Eli Zaretskii <eliz@gnu.org>
7188
7189 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7190 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7191 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7192 details of the problem.
7193
c9a6ce02
PA
71942013-04-04 Pedro Alves <palves@redhat.com>
7195 Hui Zhu <hui@codesourcery.com>
7196
7197 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7198 tracepoint, reset its STEP_COUNT and call validate_actionline.
7199
5ff888ce
DE
72002013-04-03 Doug Evans <dje@google.com>
7201
bf6af496
DE
7202 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7203 read_die_and_siblings.
7204 (read_die_and_siblings): New function.
7205 (read_cutu_die_from_dwo): Dump die if requested.
7206 (read_die_and_children): Call read_full_die_1 and
7207 read_die_and_siblings_1.
7208 (read_full_die): Dump die if requested.
7209
7210 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7211
0ac5b59e
DE
7212 * dwarf2read.c (struct dwo_file): New member comp_dir.
7213 Rename member name to dwo_name. All uses updated.
7214 (hash_dwo_file): Include comp_dir in computation.
7215 (eq_dwo_file): Ditto.
7216 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7217 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7218
5ff888ce
DE
7219 * psymtab.c (read_psymtabs_with_fullname): Don't call
7220 psymtab_to_fullname if the basenames are different.
7221
ec83d211
JK
72222013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7223
7224 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7225 New entry about "fullname" presence.
7226
4f4352f7
PA
72272013-04-03 Pedro Alves <palves@redhat.com>
7228
7229 * NEWS: Mention x86_64/Cygwin as new native configuration.
7230
3d1d5ea3
DE
72312013-04-02 Doug Evans <dje@google.com>
7232
7233 * dwarf2read.c (read_structure_type): Fix typo in comment.
7234
be9a8770
PA
72352013-04-02 Pedro Alves <palves@redhat.com>
7236
7237 * NEWS: Mention "set/show debug aarch64", "set/show debug
7238 coff-pe-read" and "set/show debug mach-o".
7239
a46c1e42
PA
72402013-04-02 Pedro Alves <palves@redhat.com>
7241
7242 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7243
3ad18b19
EZ
72442013-04-02 Eli Zaretskii <eliz@gnu.org>
7245
7246 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7247 gdb_string.h is now in common/.
7248
e9f1758d
PA
72492013-04-02 Pedro Alves <palves@redhat.com>
7250
7251 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7252 under "New options".
7253
049dc89b
JK
72542013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 Revert this patch:
7257 PR gdb/15275
7258 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7259
c33e31fd
PA
72602013-04-02 Pedro Alves <palves@redhat.com>
7261
7262 PR gdb/15275
7263
7264 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7265 (remote_serial_write): New function.
7266 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7267
ea5f3910
JW
72682013-04-01 Jiong Wang <jiwang@tilera.com>
7269
7270 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7271 "New targets" sections.
ea5f3910 7272
5c6fa7ab
DE
72732013-04-01 Doug Evans <dje@google.com>
7274
c0f78cd4
DE
7275 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7276 (process_enumeration_scope): Simplify.
7277
0186c6a7
DE
7278 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7279 type_unit_group ...
7280 (struct signatured_type): ... to here.
7281 (sig_type_ptr): New typedef.
7282 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7283 out of union 't'. All uses updated.
7284 (dw2_get_file_names_reader): Assert not called for a type unit.
7285 (dw2_get_file_names): Assert not called for a type unit or type
7286 unit group.
7287 (build_type_psymtabs_reader): Assert called for a type unit.
7288 (build_type_psymtab_dependencies): Assert called for a type unit group.
7289
5c6fa7ab
DE
7290 * dwarf2read.c (free_dwo_file): Add comment.
7291 (dwarf2_per_objfile_free): Unref dwp bfd.
7292
b3c0ad67 72932013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7294
7295 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7296 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7297 (read_pe_exported_syms): Remove unused 'exportix'.
7298 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7299 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7300 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7301
e2df1547
AR
73022013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7303
7304 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7305 (print_it_watchpoint): Remove unused 'bl'.
7306 (say_where): Remove unused 'uiout'.
7307 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7308 (bkpt_breakpoint_hit): Remove unused 'b'.
7309 (internal_bkpt_print_it): Remove unused 'uiout'.
7310 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7311
d81e75c0
TD
73122013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7313
7314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7315 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7316
5a8b3f62
DE
73172013-03-29 Doug Evans <dje@google.com>
7318
ab5088bf
DE
7319 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7320 Delete arg is_dwp. All callers updated.
7321 (open_dwp_file): New function.
7322 (open_and_init_dwp_file): Call it.
7323 (get_dwp_file): New function.
7324 (lookup_dwo_cutu): Call it.
7325
a8ad1e57
DE
7326 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7327 unnecessary, cleanup.
7328
6296d8c1
DE
7329 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7330
b0c7bfa9
DE
7331 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7332 (lookup_dwo_unit): New function.
7333 (init_cutu_and_read_dies): Move DWO handling to new functions.
7334
c88ee1f0
DE
7335 * dwarf2read.c (struct signatured_type): Tweak comment.
7336 (struct dwo_unit): Tweak comment.
7337 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7338 (create_dwo_debug_info_hash_table): Tweak comment.
7339 (dwarf2_per_cu_offset_and_type): Tweak comment.
7340
5a8b3f62
DE
7341 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7342 missing .debug_types section.
7343
9852c492
YQ
73442013-03-29 Yao Qi <yao@codesourcery.com>
7345
7346 * corelow.c: Include "completer.h".
7347 (_initialize_corelow): Call add_target_with_completer with
7348 argument 'filename_completer'.
7349 * tracepoint.c: Likewise.
7350 * exec.c (_initialize_exec): Likewise.
7351 * target.c (add_target): Rename to ...
7352 (add_target_with_completer): ... this. Call set_cmd_completer
7353 if parameter completer is not NULL.
7354 (add_target): New.
7355 * target.h: Include "command.h".
7356 (add_target_with_completer): Declare it.
7357
af312be7
JB
73582013-03-28 Joel Brobecker <brobecker@adacore.com>
7359
7360 * coffread.c (is_import_fixup_symbol): New function.
7361 (record_minimal_symbol): Use is_import_fixup_symbol to
7362 detect import fixup symbols, and discard them.
7363
8a0459fd
DE
73642013-03-28 Doug Evans <dje@google.com>
7365
0349ea22
DE
7366 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7367 types hash table until we know we need it.
7368
f652bce2
DE
7369 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7370 index numbers.
7371
e4a48d9d
DE
7372 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7373 All callers updated.
7374 (dw2_print_stats): Print #read CUs too.
7375 (dump_die_shallow): Print signatured types better.
7376
8a0459fd
DE
7377 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7378 info_or_types_section to section. All uses updated.
7379 (struct dwo_unit): Ditto.
7380
bd3eecc3
PA
73812013-03-28 Pedro Alves <palves@redhat.com>
7382
7383 * NEWS (New options): New section.
7384 (New options): Mention set/show remote trace-status-packet.
7385 * remote.c (PACKET_qTStatus): New enumeration value.
7386 (remote_get_trace_status): Skip sending qTStatus if the packet is
7387 disabled. Use packet_ok.
7388 (_initialize_remote): Register a configuration command for
7389 qTStatus packet.
7390
41245087
DE
73912013-03-28 Doug Evans <dje@google.com>
7392
7edbb660
DE
7393 * symfile.c (find_separate_debug_file): Add comment.
7394 (terminate_after_last_dir_separator): Tweak comment.
7395
0018ea6f
DE
7396 * dwarf2read.c (create_partial_symtab): Add forward decl.
7397 (create_partial_symtab): Move to be closer to other psymtab functions.
7398 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7399
ca69b9e6
DE
7400 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7401 (compute_symtab_includes): Remove unnecessary forward declaration.
7402 (die_needs_namespace): Add comment marking group of functions for
7403 dwarf2 name computation.
7404
a9375afe
DE
7405 * typeprint.c (_initialize_typeprint): Improve type help text.
7406
41245087
DE
7407 * python/python.c (finish_python_initialization): Provide suggestion
7408 for how to tell gdb to find its python files.
7409
7f7cc265
PA
74102013-03-28 Pedro Alves <palves@redhat.com>
7411
7412 PR gdb/15294
7413
7414 * source.c (_initialize_source): Change back "set listsize" to an
7415 integer command.
7416
ec21308c
JK
74172013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7418
7419 PR gdb/15275
7420 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7421
840a9a1f
PA
74222013-03-27 Pedro Alves <palves@redhat.com>
7423
7424 * top.c (history_size): Rename to ...
7425 (history_size_setshow_var): ... this. Add comment.
7426 (show_commands): Use readline's 'history_length' instead of
7427 computing the history length by calling history_get in a loop.
7428 (set_history_size_command): Error out for sizes over INT_MAX.
7429 Restore previous history size on invalid size.
7430 (init_history): If HISTSIZE is negative, leave the history size as
7431 zero. Add comments.
7432 (init_main): Adjust.
7433
826ecc4d
PA
74342013-03-27 Pedro Alves <palves@redhat.com>
7435
7436 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7437 coff_pe_read" command to "set debug coff-pe-read".
7438
0ccfeeae
MM
74392013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7440
7441 * record.c (command_size_to_target_size): Fix size comparison.
7442 Change parameter type from pointer to integer to integer.
7443 Update all users.
7444
40653b35
PM
74452013-03-27 Pierre Muller <muller@sourceware.org>
7446
7447 * windows-nat.c (handle_output_debug_string): Avoid typecast
7448 from integer of different size warning.
7449
c62fa0e2
JB
74502013-03-26 Joel Brobecker <brobecker@adacore.com>
7451
7452 * windows-nat.c (handle_output_debug_string): Add empty line
7453 after local block variable definition.
7454
2c619be2
PA
74552013-03-26 Pedro Alves <palves@redhat.com>
7456
7457 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7458 (net_open): Make 'polls' local unsigned.
7459
1b493192
PA
74602013-03-26 Pedro Alves <palves@redhat.com>
7461
7462 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7463 a zuinteger command instead of uinteger.
7464
7ee70bf5
PA
74652013-03-26 Pedro Alves <palves@redhat.com>
7466
7467 * record-full.c (record_full_insn_num): Make it unsigned.
7468 (record_full_check_insn_num, record_full_message)
7469 (record_full_registers_change, record_full_xfer_partial): Remove
7470 record_full_insn_max_num check (it's always != 0).
7471 (record_full_info, record_full_restore): Use %u as format string.
7472 (): Use %u as format string.
7473 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7474 check (it's always != 0).
7475
dfd1f9bb
PA
74762013-03-26 Pedro Alves <palves@redhat.com>
7477
7478 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7479 and "set dcache size" commands zuinteger instead of uinteger.
7480
addb4faf
PA
74812013-03-26 Pedro Alves <palves@redhat.com>
7482
7483 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7484 command zuinteger instead of uinteger.
7485
b75bf488
PA
74862013-03-26 Pedro Alves <palves@redhat.com>
7487
7488 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7489 zuinteger instead of uinteger.
7490
42c634cb
PA
74912013-03-26 Pedro Alves <palves@redhat.com>
7492
7493 * record.c (record_insn_history_size_setshow_var)
7494 (record_call_history_size_setshow_var): New globals.
7495 (command_size_to_target_size): New function.
7496 (cmd_record_insn_history, cmd_record_call_history): Use
7497 command_size_to_target_size instead of cast.
7498 (validate_history_size, set_record_insn_history_size)
7499 (set_record_call_history_size): New functions.
7500 (_initialize_record): Install set_record_insn_history_size and
7501 set_record_call_history_size as "set" hooks of "set record
7502 instruction-history-size" and "set record
7503 function-call-history-size".
7504
1fb2e2b5
PA
75052013-03-26 Pedro Alves <palves@redhat.com>
7506
7507 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7508 use with history_max_entries use. Remove FIXME note.
7509
99c819ee
MM
75102013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7511
7512 * record-btrace.c (record_btrace_close): Call
7513 record_btrace_auto_disable.
7514
9f9e404c
JB
75152013-03-25 Joel Brobecker <brobecker@adacore.com>
7516
7517 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7518
ebcdfe33
DE
75192013-03-25 Doug Evans <dje@google.com>
7520
7521 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7522
24955f63
TT
75232013-03-25 Tom Tromey <tromey@redhat.com>
7524
7525 PR symtab/11462:
7526 * c-exp.y (exp): Add new productions for destructors after '.' and
7527 '->'.
7528 (write_destructor_name): New function.
7529
fce632b6
TT
75302013-03-25 Tom Tromey <tromey@redhat.com>
7531
7532 PR c++/9197:
7533 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7534 value_struct_elt, not lookup_struct_elt_type.
7535 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7536 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7537 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7538
a4341769
YQ
75392013-03-25 Yao Qi <yao@codesourcery.com>
7540
7541 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7542 instead of '_mkdir'.
7543
b5981e5a
EZ
75442013-03-23 Eli Zaretskii <eliz@gnu.org>
7545
7546 * windows-nat.c (windows_get_absolute_argv0): New function.
7547 * windows-nat.h: Add its prototype.
7548
7549 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7550 Use IS_DIR_SEPARATOR instead of looking for a character inside
7551 SLASH_STRING. Include filenames.h.
7552 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7553 relocate_gdb_directory works when passed gdb_program_name.
7554 Include windows-nat.h.
7555
598d3636
JK
75562013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7557
7558 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7559 * remote.c (trace_error): Remove the special handling of '2'.
7560 (readchar) <SERIAL_EOF>
7561 (readchar) <SERIAL_ERROR>
7562 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7563 (remote_get_trace_status): Call throw_exception if EX is
7564 TARGET_CLOSE_ERROR.
7565 * utils.c (perror_with_name): Rename to ...
7566 (throw_perror_with_name): ... here. New parameter errcode, describe it
7567 in the function comment.
7568 (perror_with_name): New function wrapper.
7569 * utils.h (enum errors): New stub declaration.
7570 (throw_perror_with_name): New declaration.
7571
82b821e9
PA
75722013-03-22 Pedro Alves <palves@redhat.com>
7573 Yao Qi <yao@codesourcery.com>
7574 Mark Kettenis <kettenis@gnu.org>
7575
7576 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7577 Don't let the user set the value to UINT_MAX directly.
7578 <var_integer>: Don't let the user set the value to INT_MAX
7579 directly.
7580
78a095c3
JK
75812013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 * remote.c (remote_unpush_target): New function.
7584 (remote_open_1): Remove two pop_target calls, update one comment, add
7585 comment to target_preopen call. Replace pop_target call by
7586 remote_unpush_target call.
7587 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7588 pop_target calls by remote_unpush_target calls.
7589
3e74e146
PA
75902013-03-22 Pedro Alves <palves@redhat.com>
7591
7592 * linux-nat.c (linux_child_follow_fork): Don't call
7593 linux_enable_event_reporting.
7594 (linux_handle_extended_wait): Don't call
7595 linux_enable_event_reporting.
7596
a2213dca
PA
75972013-03-22 Pedro Alves <palves@redhat.com>
7598
7599 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7600 use it to rewrite the trampoline buffers with type gdb_byte[], and
7601 undefine the macro. Remove char* cast.
7602
bd712aed
DE
76032013-03-21 Doug Evans <dje@google.com>
7604
7605 New commands "mt set per-command {space,time,symtab} {on,off}".
7606 * NEWS: Add entry.
7607 * event-top.c: #include "maint.h".
7608 * main.c: #include "maint.h".
7609 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7610 timeval-utils.h, maint.h, cli/cli-setshow.h.
7611 (per_command_time, per_command_space): New static globals.
7612 (per_command_symtab): New static global.
7613 (per_command_setlist, per_command_showlist): New static globals.
7614 (struct cmd_stats): Move here from utils.c.
7615 (set_per_command_time): Renamed from set_display_time in utils.c
7616 and moved here. All callers updated.
7617 (set_per_command_space): Renamed from set_display_space in utils.c
7618 and moved here. All callers updated.
7619 (count_symtabs_and_blocks): New function.
7620 (report_command_stats): Moved here from utils.c. Add support for
7621 printing symtab stats. Only print data if enabled before command
7622 executed.
7623 (make_command_stats_cleanup): Ditto.
7624 (sert_per_command_cmd, show_per_command_cmd): New functions.
7625 (_initialize_maint_cmds): Add new commands
7626 mt set per-command {space,time,symtab} {on,off}.
7627 * maint.h: New file.
7628 * top.c: #include "maint.h".
7629 * utils.c (reset_prompt_for_continue_wait_time): New function.
7630 (get_prompt_for_continue_wait_time): New function.
7631 * utils.h (reset_prompt_for_continue_wait_time): Declare
7632 (get_prompt_for_continue_wait_time): Declare.
7633 (make_command_stats_cleanup): Moved to maint.h.
7634 (set_display_time, set_display_space): Moved to maint.h and renamed
7635 to set_per_command_time, set_per_command_space.
7636 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7637 parse_binary_operation and made non-static. Don't call error,
7638 just return an error marker. All callers updated.
7639 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7640
d76488d8
TT
76412013-03-21 Tom Tromey <tromey@redhat.com>
7642
7643 * symfile.c (alloc_section_addr_info): Update header. Don't set
7644 'num_sections' field.
7645 (build_section_addr_info_from_section_table): Set 'num_sections'.
7646 (build_section_addr_info_from_bfd): Likewise.
7647 (build_section_addr_info_from_objfile): Remove dead loop
7648 condition.
7649 (free_section_addr_info): Unconditionally call xfree.
7650 (relative_addr_info_to_section_offsets, addrs_section_sort)
7651 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7652 condition.
7653 (syms_from_objfile_1): Remove dead 'if' condition. Check
7654 'num_sections'.
7655 (add_symbol_file_command): Set 'num_sections'.
7656 * symfile-mem.c (symbol_file_add_from_memory): Set
7657 'num_sections'.
7658 * somread.c (som_symfile_offsets): Remove dead loop condition.
7659 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7660 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7661
a72e5169 76622013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7663
7664 * tracepoint.h (decode_agent_options): Add 'trace_string'
7665 argument.
7666 * tracepoint.c (decode_agent_options): Add 'trace_string'
7667 argument.
7668 (validate_actionline): Update.
7669 (collect_symbol): Add 'trace_string' argument.
7670 (struct add_local_symbols_data) <trace_string>: New field.
7671 (do_collect_symbol): Update.
7672 (add_local_symbols): Add 'trace_string' argument.
7673 (encode_actions_1): Update.
7674 (trace_dump_actions): Update.
7675 * dwarf2loc.c (access_memory): Update.
7676 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7677 * ax-general.c (new_agent_expr): Update.
7678 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7679 (gen_trace_for_return_address): Add argument.
7680 (trace_kludge, trace_string_kludge): Remove.
7681 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7682 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7683 (gen_trace_for_var): Add 'trace_string' argument.
7684 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7685 (gen_printf, agent_eval_command_one): Update.
7686
b2f83c08
TT
76872013-03-21 Tom Tromey <tromey@redhat.com>
7688
7689 PR exp/15109:
7690 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7691 Handle FILENAME token.
7692
9507860e
TT
76932013-03-21 Tom Tromey <tromey@redhat.com>
7694
7695 * c-exp.y (YYPRINT): Define.
7696 (c_print_token): New function.
7697
e403aa4b
TT
76982013-03-21 Tom Tromey <tromey@redhat.com>
7699
7700 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7701
af307d6a
YQ
77022013-03-21 Yao Qi <yao@codesourcery.com>
7703
7704 * ctf.c: Include "gdb_stat.h".
7705 [USE_WIN32API]: New macro 'mkdir'.
7706 (ctf_start): Use permission bits macros if they are defined.
7707
fb81d016
KS
77082013-03-20 Keith Seitz <keiths@redhat.com>
7709
7710 * breakpoint.h (struct breakpoint): Add comment to
7711 extra_string indicating that this member is mallod'd.
7712 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7713
ef0026f0
PA
77142013-03-20 Pedro Alves <palves@redhat.com>
7715
7716 PR gdb/15289
7717
7718 * cli/cli-setshow.c (do_set_command)
7719 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7720 the result of parsing the command argument. Throw error if the
7721 value is greater than UINT_MAX. Print the invalid value with
7722 plongest.
7723 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7724 result of parsing the command argument. Throw error if the value
7725 is greater than INT_MAX, not greater or equal. Also throw error
7726 if the value is less than INT_MIN. Print the invalid value with
7727 plongest.
7728 <var_zuinteger_unlimited>: Throw error if the value is greater
7729 than INT_MAX, not greater or equal.
7730 (do_show_command) <var_integer, var_zinteger,
7731 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7732
24d6c2a0
TT
77332013-03-20 Tom Tromey <tromey@redhat.com>
7734
7735 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7736 if possible.
7737 * dwarf2read.c (read_func_scope): Remove old FIXME.
7738 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7739 not LOC_COMPUTED.
7740 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7741 Unconditionally call via computed ops, if possible.
7742 * printcmd.c (address_info): Unconditionally call via computed ops,
7743 if possible.
7744 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7745 if possible.
7746 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7747 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7748 if possible.
7749
f1e6e072
TT
77502013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7751 Tom Tromey <tromey@redhat.com>
7752
7753 PR symtab/8421:
7754 * coffread.c (coff_register_index): New global.
7755 (process_coff_symbol, coff_read_enum_type): Set
7756 SYMBOL_ACLASS_INDEX.
7757 (_initialize_coffread): Initialize new global.
7758 * dwarf2loc.c (locexpr_find_frame_base_location)
7759 (dwarf2_block_frame_base_locexpr_funcs)
7760 (loclist_find_frame_base_location)
7761 (dwarf2_block_frame_base_loclist_funcs): New.
7762 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7763 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7764 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7765 (dwarf2_block_frame_base_loclist_funcs): New.
7766 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7767 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7768 globals.
7769 (read_func_scope): Update.
7770 (fixup_go_packaging, mark_common_block_symbol_computed)
7771 (var_decode_location, new_symbol_full, dwarf2_const_value):
7772 Set SYMBOL_ACLASS_INDEX.
7773 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7774 (_initialize_dwarf2_read): Initialize new globals.
7775 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7776 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7777 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7778 globals.
7779 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7780 (_initialize_mdebugread): Initialize new globals.
7781 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7782 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7783 (stab_register_index, stab_regparm_index): New globals.
7784 (define_symbol, read_enum_type, common_block_end): Set
7785 SYMBOL_ACLASS_INDEX.
7786 (_initialize_stabsread): Initialize new globals.
7787 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7788 globals.
7789 (MAX_SYMBOL_IMPLS): New define.
7790 (register_symbol_computed_impl, register_symbol_block_impl)
7791 (register_symbol_register_impl)
7792 (initialize_ordinary_address_classes): New functions.
7793 (_initialize_symtab): Call initialize_ordinary_address_classes.
7794 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7795 (struct symbol_impl): New.
7796 (SYMBOL_ACLASS_BITS): New define.
7797 (struct symbol) <aclass, ops>: Remove fields.
7798 <aclass_index>: New field.
7799 (symbol_impls): Declare.
7800 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7801 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7802 (register_symbol_computed_impl, register_symbol_block_impl)
7803 (register_symbol_register_impl): Declare.
7804 (struct symbol_computed_ops): Add location_has_loclist.
7805 (struct symbol_block_ops): New.
7806 (SYMBOL_BLOCK_OPS): New.
7807 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7808
dbccfd4c
TT
78092013-03-20 Tom Tromey <tromey@redhat.com>
7810
7811 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7812 (print_partial_symbols, recursively_search_psymtabs): Use
7813 PSYMBOL_CLASS.
7814
e3f1ad4f
PM
78152013-03-20 Pierre Muller <muller@sourceware.org>
7816
7817 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7818 addtion, subtraction, multiplication and division binary operator.
7819
460014f5
JK
78202013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7821
7822 Code cleanup.
7823 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7824 * bsd-kvm.c (bsd_kvm_close): Likewise.
7825 * bsd-uthread.c (bsd_uthread_close): Likewise.
7826 * corelow.c (core_close): Likewise.
7827 (core_close_cleanup): Remove parameter quitting from a caller.
7828 * event-top.c (async_disconnect): Likewise.
7829 * exec.c (exec_close_1): Remove parameter quitting.
7830 * go32-nat.c (go32_close): Likewise.
7831 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7832 parameter quitting from a caller.
7833 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7834 variable.
7835 (mips_linux_close): Remove parameter quitting. Remove parameter
7836 quitting from a caller.
7837 * monitor.c (monitor_close): Remove parameter quitting.
7838 * monitor.h (monitor_close): Likewise.
7839 * record-btrace.c (record_btrace_close): Likewise.
7840 * record-full.c (record_full_close): Likewise.
7841 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7842 it also from fprintf_unfiltered.
7843 * remote-mips.c (mips_close): Remove parameter quitting.
7844 (mips_detach): Remove parameter quitting from a caller.
7845 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7846 (gdbsim_close): Remove duplicate function comment. Remove parameter
7847 quitting and remove it also from printf_filtered.
7848 * remote.c (remote_close): Remove parameter quitting.
7849 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7850 * target.c (update_current_target): Remove parameter int from to_close
7851 de_fault.
7852 (push_target, unpush_target, pop_target): Remove parameter quitting from
7853 a caller.
7854 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7855 Remove parameter quitting from a caller.
7856 (target_preopen): Remove parameter quitting from a caller.
7857 (target_close): Remove parameter quitting. Remove parameter quitting
7858 from a caller two times. Remove parameter quitting also from
7859 fprintf_unfiltered.
7860 * target.h (struct target_ops): Remove parameter quitting and as int
7861 from fields to_xclose and to_close.
7862 (extern struct target_ops current_target):
7863 (target_close, pop_all_targets): Remove parameter quitting. Update the
7864 comment.
7865 (pop_all_targets_above): Remove parameter quitting.
7866 * top.c (quit_target): Remove parameter quitting from a caller.
7867 * tracepoint.c (tfile_close): Remove parameter quitting.
7868 * windows-nat.c (windows_close): Remove parameter quitting.
7869
35a7120b
CV
78702013-03-20 Corinna Vinschen <vinschen@redhat.com>
7871
7872 * windows-nat.c (handle_output_debug_string): Replace call
7873 to string_to_core_addr with call to strtoull.
7874
8249a5a9
YQ
78752013-03-20 Yao Qi <yao@codesourcery.com>
7876
7877 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7878 and write it to CTF metadata.
7879
2c15ef43
CV
78802013-03-19 Corinna Vinschen <vinschen@redhat.com>
7881
7882 * windows-nat.c (handle_output_debug_string): Change type of n to
7883 SIZE_T to avoid crash on 64 bit systems.
7884
1cdd3232
EZ
78852013-03-17 Eli Zaretskii <eliz@gnu.org>
7886
7887 * python/python-internal.h (HAVE_SNPRINTF)
7888 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7889 about redefinition of snprintf by pyerrors.h.
7890
3cb2ab1a
SE
78912013-03-15 Steve Ellcey <sellcey@mips.com>
7892
7893 * remote-sim.c (sim_command_completer): Make char arguments const.
7894
9ce98649
TT
78952013-03-15 Tom Tromey <tromey@redhat.com>
7896
7897 PR c++/15116:
7898 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7899
dccee2de
TT
79002013-03-14 Tom Tromey <tromey@redhat.com>
7901
7902 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7903 New fields.
7904 (get_file_crc): Move from symfile.c.
7905 (gdb_bfd_crc): New function.
7906 * gdb_bfd.h (gdb_bfd_crc): Declare.
7907 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7908 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7909 (separate_debug_file_exists): Use gdb_bfd_crc.
7910
cc0ea93c
TT
79112013-03-14 Tom Tromey <tromey@redhat.com>
7912
7913 * symfile.c (get_debug_link_info): Remove.
7914 (find_separate_debug_file_by_debuglink): Use
7915 bfd_get_debug_link_info.
7916
08c23b0d
TT
79172013-03-14 Tom Tromey <tromey@redhat.com>
7918
7919 * symtab.c (error_in_psymtab_expansion): New function.
7920 (lookup_symbol_aux_quick)
7921 (basic_lookup_transparent_type_quick): Remove "last resort"
7922 code. Use error_in_psymtab_expansion.
7923
288e77a7
JK
79242013-03-14 Doug Evans <dje@google.com>
7925 Jan Kratochvil <jan.kratochvil@redhat.com>
7926
7927 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7928 any successful compare_filenames_for_search or FILENAME_CMP.
7929 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7930 * symtab.c (iterate_over_some_symtabs): Likewise.
7931
8f1b8b82
JK
79322013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7933
7934 * source.c (print_source_lines_base): Make a local copy of
7935 symtab_to_fullname.
7936
23eb71e4
JK
79372013-03-14 Hui Zhu <hui_zhu@mentor.com>
7938 Jan Kratochvil <jan.kratochvil@redhat.com>
7939
7940 * source.c (print_source_lines_base): Suppress "file" for TUI.
7941
bb869963
SDJ
79422013-03-14 Keith Seitz <keiths@redhat.com>
7943 Alan Matsuoka <alanm@redhat.com>
7944
7945 PR c++/15203
7946 PR c++/15210
7947 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7948 TYPE_CODE_METHOD.
7949 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7950 symbols.
7951
d6682f9e
YQ
79522013-03-14 Yao Qi <yao@codesourcery.com>
7953
7954 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7955 status to tfile if trace is stopped by command 'tstop'.
7956
a22fa6e4
YQ
79572013-03-14 Yao Qi <yao@codesourcery.com>
7958
7959 * tracepoint.c (tfile_write_status): Write trace notes and user
7960 name into tfile if they are not NULL.
7961
d0353e76
YQ
79622013-03-14 Hui Zhu <hui@codesourcery.com>
7963 Yao Qi <yao@codesourcery.com>
7964
7965 * Makefile.in (REMOTE_OBS): Add ctf.o.
7966 (SFILES): Add ctf.c.
7967 (HFILES_NO_SRCDIR): Add ctf.h.
7968 * ctf.c, ctf.h: New files.
7969 * tracepoint.c: Include 'ctf.h'.
7970 (collect_pseudocommand): Remove static.
7971 (trace_save_command): Parse option "-ctf".
7972 Produce different trace file writers per option.
7973 Adjust output message.
7974 (trace_save_tfile, trace_save_ctf): New.
7975 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7976 * mi/mi-main.c: Include 'ctf.h'.
7977 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7978 trace_save_tfile or trace_save_ctf.
7979 * NEWS: Mention these changes.
7980
3f43bc09
YQ
79812013-03-14 Yao Qi <yao@codesourcery.com>
7982
7983 * tracepoint.c (trace_file_writer_xfree): New.
7984 (struct tfile_writer_data): New.
7985 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7986 (tfile_write_header, tfile_write_regblock_type): New.
7987 (tfile_write_status, tfile_write_uploaded_tsv): New.
7988 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7989 (tfile_write_raw_data, (tfile_end): New.
7990 (tfile_write_ops): New global variable.
7991 (TRACE_WRITE_R_BLOCK): New macro.
7992 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7993 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7994 (TRACE_WRITE_V_BLOCK): New macro.
7995 (trace_save): Add extra one parameter WRITER. Make it static.
7996 Use WRITER to writer trace.
7997 (tfile_trace_file_writer_new): New.
7998 (trace_save_command): Caller update.
7999 (trace_save_tfile): Write trace data in TFILE format.
8000 * tracepoint.h (struct trace_frame_write_ops): New.
8001 (struct trace_file_write_ops): New.
8002 (struct trace_file_writer): New.
8003 (trace_save): Remove its declaration.
8004 (trace_save_tfile): Declare it.
8005 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8006 instead of trace_save.
8007
58665b40
PA
80082013-03-13 Pedro Alves <palves@redhat.com>
8009
8010 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8011
10217050
PA
80122013-03-13 Pedro Alves <palves@redhat.com>
8013
8014 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8015 commented out code.
8016 * demangle.c (current_demangling_style_string): Make it const.
8017 (set_demangling_command): Assert the demangling style is known.
8018 Remove all handling of unknown styles. Set
8019 'current_demangling_style_string' to an element of the
8020 demangling_style_names array.
8021 (set_demangling_style): Delete.
8022 (_initialize_demangler): Set current_demangling_style_string to the
8023 element of the demangling_style_names array that corresponds to
8024 the default demangling style. Remove FIXME note. Don't call
8025 set_demangling_style.
8026 * gdb-demangle.h (set_demangling_style): Remove declaration.
8027
6f937416
PA
80282013-03-13 Pedro Alves <palves@redhat.com>
8029
8030 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8031 fields const.
8032 (ada_make_symbol_completion_list): Make "text0" parameter const.
8033 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8034 * breakpoint.c (condition_completer): Make "text" and "word"
8035 parameters const. Adjust.
8036 (check_tracepoint_command): Adjust to validate_actionline
8037 prototype change.
8038 (catch_syscall_completer): Make "text" and "word" parameters
8039 const.
8040 * cli/cli-cmds.c (show_user): Make "comname" local const.
8041 (valid_command_p): Make "command" parameter const.
8042 (alias_command): Make "alias_prefix" and "command_prefix" locals
8043 const.
8044 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8045 (add_alias_cmd): Make "name" and "oldname" parameters const.
8046 Adjust. No longer make copy of OLDNAME.
8047 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8048 (add_setshow_cmd_full, add_setshow_enum_cmd)
8049 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8050 (add_setshow_filename_cmd, add_setshow_string_cmd)
8051 (add_setshow_string_noescape_cmd)
8052 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8053 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8054 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8055 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8056 Make "name" parameter const.
8057 (help_cmd): Rename "command" parameter to "arg". New const local
8058 "command".
8059 (find_cmd): Make "command" parameter const.
8060 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8061 deprecated_cmd_warning prototype change.
8062 (undef_cmd_error): Make "cmdtype" parameter const.
8063 (lookup_cmd): Make "line" parameter const.
8064 (deprecated_cmd_warning): Change type of "text" parameter to
8065 pointer to const char, from pointer to pointer to char. Adjust.
8066 (lookup_cmd_composition): Make "text" parameter const.
8067 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8068 parameters const.
8069 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8070 const.
8071 * cli/cli-script.c (validate_comname): Make "tem" local const.
8072 (define_command): New const local "tem_c". Use it in calls to
8073 lookup_cmd.
8074 (document_command): Make "tem" and "comfull" locals const.
8075 (show_user_1): Make "prefix" and "name" parameters const.
8076 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8077 const.
8078 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8079 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8080 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8081 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8082 (complete_on_enum, add_setshow_enum_cmd)
8083 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8084 (add_setshow_filename_cmd, add_setshow_string_cmd)
8085 (add_setshow_string_noescape_cmd)
8086 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8087 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8088 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8089 Change prototypes, constifying strings.
8090 * completer.c (noop_completer, filename_completer): Make "text"
8091 and "prefix" parameters const.
8092 (location_completer, expression_completer)
8093 (complete_line_internal): Make "text" and "prefix" parameters
8094 const and adjust.
8095 (command_completer, signal_completer): Make "text" and "prefix"
8096 parameters const.
8097 * completer.h (noop_completer, filename_completer)
8098 (expression_completer, location_completer, command_completer)
8099 (signal_completer): Change prototypes.
8100 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8101 parameters const.
8102 * cp-abi.c (cp_abi_completer): Likewise.
8103 * expression.h (parse_expression_for_completion): Change
8104 prototype.
8105 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8106 parameters const.
8107 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8108 * infrun.c (handle_completer): Make "text" and "word" parameters
8109 const.
8110 * interps.c (interpreter_completer): Make "text" and "word"
8111 parameters const.
8112 * language.h (struct language_defn)
8113 <la_make_symbol_completion_list>: Make "text" and "word"
8114 parameters const.
8115 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8116 (parse_exp_in_context): Rename to ...
8117 (parse_exp_in_context_1): ... this.
8118 (parse_exp_in_context): Reimplement, with const hack from
8119 parse_exp_1.
8120 (parse_expression_for_completion): Make "string" parameter const.
8121 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8122 to pointer to const char. Adjust.
8123 (print_command_1): Make "exp" parameter const.
8124 (output_command): Rename to ...
8125 (output_command_const): ... this. Make "exp" parameter const.
8126 (output_command): Reimplement.
8127 (x_command): Adjust.
8128 (display_command): Rename "exp" parameter to "arg". New "exp"
8129 local, const version of "arg".
8130 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8131 "cmd_name" local const.
8132 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8133 call.
8134 (cmdpy_completer): Make "text" and "word" parameters const.
8135 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8136 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8137 const.
8138 * remote.c (_initialize_remote): Make "cmd_name" local const.
8139 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8140 parameters const. Adjust.
8141 (completion_list_add_fields): Make "sym_text", "text" and "word"
8142 parameters const.
8143 (struct add_name_data) <sym_text, text, word>: Make fields const.
8144 (default_make_symbol_completion_list_break_on): Make "text" and
8145 "word" parameters const. Adjust locals.
8146 (default_make_symbol_completion_list)
8147 (make_symbol_completion_list, make_symbol_completion_type)
8148 (make_symbol_completion_list_fn): Make "text" and "word"
8149 parameters const.
8150 (make_file_symbol_completion_list): Make "text", "word" and
8151 "srcfile" parameters const. Adjust locals.
8152 (add_filename_to_list): Make "text" and "word" parameters const.
8153 (struct add_partial_filename_data) <text, word>: Make fields
8154 const.
8155 (make_source_files_completion_list): Make "text" and "word"
8156 parameters const.
8157 * symtab.h (default_make_symbol_completion_list_break_on)
8158 (default_make_symbol_completion_list, make_symbol_completion_list)
8159 (make_symbol_completion_type enum type_code)
8160 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8161 (make_source_files_completion_list): Change prototype.
8162 * top.c (execute_command): Adjust to pass pointer to pointer to
8163 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8164 change.
8165 (set_verbose): Make "cmdname" local const.
8166 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8167 and adjust.
8168 (validate_actionline): Make "line" parameter a pointer to const
8169 char, and adjust.
8170 (encode_actions_1): Make "action_exp" local const, and adjust.
8171 (encode_actions): Adjust.
8172 (replace_comma): Delete.
8173 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8174 const, and adjust. Don't frob the action string while splitting
8175 it at commas. Instead, make a copy of each split substring in
8176 turn.
8177 (trace_dump_command): Adjust to validate_actionline prototype
8178 change.
8179 * tracepoint.h (decode_agent_options, decode_agent_options)
8180 (encode_actions, validate_actionline): Change prototypes.
8181 * valprint.h (output_command): Delete declaration.
8182 (output_command_const): Declare.
8183 * value.c (function_destroyer): Cast const away in xfree call.
8184
a0bcdaa7
PA
81852013-03-13 Pedro Alves <palves@redhat.com>
8186
8187 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8188 rather than casting 'const char * const *' to 'const char **'.
8189 * ada-lex.l (processInt): Make "trailer" local const. Remove
8190 'const char **' cast.
8191 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8192 locals, and use those as strtol output pointer, instead than doing
8193 invalid casts to from 'const char **' to 'char **'.
8194 (_initialize_demangle): Remove cast.
8195 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8196 locals, and use those as strtol output pointer, instead than doing
8197 invalid casts to from 'const char **' to 'char **'.
8198 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8199 casts.
8200 * stap-probe.c (stap_parse_register_operand)
8201 (stap_parse_single_operand): Likewise.
8202
8ddb1965
YQ
82032013-03-13 Yao Qi <yao@codesourcery.com>
8204
8205 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8206 the last matched 'V' blcok in trace frame.
8207
2d450646
JB
82082013-03-12 Joel Brobecker <brobecker@adacore.com>
8209
8210 * NEWS: Create a new section for the next release branch.
8211 Rename the section of the current branch, now that it has
8212 been cut.
8213
b4b79973 82142013-03-12 Joel Brobecker <brobecker@adacore.com>
8215
8216 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8217 * version.in: Bump version to 7.6.50.20130312-cvs.
8218
ee047554
KS
82192013-03-12 Keith Seitz <keiths@redhat.com>
8220
8221 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8222 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8223 Remove temporary copy of input string.
8224 (mi_execute_command_wrapper): Make "cmd" const.
8225 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8226 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8227 Use const strings.
8228 (mi_parse): Make "cmd" const.
8229 Use const strings.
8230 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8231
bbc13ae3
KS
82322013-03-12 Keith Seitz <keiths@redhat.com>
8233
8234 * ada-lang.c (ada_read_renaming_var_value): Pass const
8235 pointer to expression string to parse_exp_1.
8236 (create_excep_cond_exprs): Likewise.
8237 * ax-gdb.c (agent_eval_command_one): Likewise.
8238 (maint_agent_printf_command): Likewise.
8239 Constify much of the string handling/parsing.
8240 * breakpoint.c (set_breakpoint_condition): Pass const
8241 pointer to expression string to parse_exp_1.
8242 (update_watchpoint): Likewise.
8243 (parse_cmd_to_aexpr): Constify string handling.
8244 Pass const pointer to parse_exp_1.
8245 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8246 (find_condition_and_thread): Likewise.
8247 Make TOK const.
8248 (watch_command_1): Make "arg" const.
8249 Constify string handling.
8250 Copy the expression string instead of changing the input
8251 string.
8252 (update_breakpoint_location): Pass const pointer to
8253 parse_exp_1.
8254 * eval.c (parse_and_eval_address): Make "exp" const.
8255 (parse_to_comma_and_eval): Make "expp" const.
8256 (parse_and_eval): Make "exp" const.
8257 * expression.h (parse_expression): Make argument const.
8258 (parse_exp_1): Make first argument const.
8259 * findcmd.c (parse_find_args): Treat "args" as const.
8260 * linespec.c (parse_linespec): Pass const pointer to
8261 linespec_expression_to_pc.
8262 (linespec_expression_to_pc): Make "exp_ptr" const.
8263 * parse.c (parse_exp_1): Make "stringptr" const.
8264 Make a copy of the expression to pass to parse_exp_in_context until
8265 this whole interface can be constified.
8266 (parse_expression): Make "string" const.
8267 * printcmd.c (ui_printf): Treat "arg" as const.
8268 Handle const strings.
8269 * tracepoint.c (validate_actionline): Pass const pointer to
8270 all calls to parse_exp_1.
8271 (encode_actions_1): Likewise.
8272 * value.h (parse_to_comma_and_eval): Make argument const.
8273 (parse_and_eval_address): Likewise.
8274 (parse_and_eval): Likewise.
8275 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8276 (varobj_set_value): Likewise.
8277 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8278 constify string handling.
8279 Pass const pointers to parse_and_eval_address and
8280 parse_to_comman_and_eval.
8281 * cli/cli-utils.c (skip_to_space): Rename to ...
8282 (skip_to_space_const): ... this. Handle const strings.
8283 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8284 skip_to_space_const.
8285 (skip_to_space_const): Declare.
8286 * common/format.c (parse_format_string): Make "arg" const.
8287 Handle const strings.
8288 * common/format.h (parse_format_string): Make "arg" const.
8289 * gdbserver/ax.c (ax_printf): Make "format" const.
8290 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8291 of the expression string.
8292
f3cec7e6
HZ
82932013-03-12 Hui Zhu <hui@codesourcery.com>
8294
8295 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8296
9df7235c
HZ
82972013-03-12 Yao Qi <yao@codesourcery.com>
8298 Hui Zhu <hui@codesourcery.com>
8299
8300 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8301 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8302 DW_OP_deref_size.
8303
82d049ab
PH
83042013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8305
5f8e0b8f
MF
8306 * ada-lex.l (rules): Only recognize 'thread' as a
8307 delimiter when followed by numerals, as for c-exp.y.
8308 Use new rewind_to_char function to rewind the input for
8309 expression-delimiting tokens.
8310 (rewind_to_char): New function.
82d049ab 8311
8c1fb155
JK
83122013-03-11 Pedro Alves <palves@redhat.com>
8313 Jan Kratochvil <jan.kratochvil@redhat.com>
8314
8315 * configure: Regenerate.
8316 * configure.ac (check dynamic export flag): Link python test with
8317 $PYTHON_LIBS.
8318
cc81e1c6
DE
83192013-03-11 Doug Evans <dje@google.com>
8320 Keith Seitz <keiths@redhat.com>
8321
8322 * linespec.c (find_linespec_symbols): Call find_function_symbols
8323 first, and then call lookup_prefix_sym/find_method.
8324
39086a0e
PA
83252013-03-11 Pedro Alves <palves@redhat.com>
8326
8327 * charset.c (convert_between_encodings): Don't cast between
8328 different pointer to pointer types. Instead, make the 'inp' local
8329 be of the type iconv expects.
8330 (wchar_iterate): Don't cast between different pointer to pointer
8331 types. Instead, use new pointer local of the type iconv expects.
8332 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8333 Add new local of type char pointer, and use it to get a
8334 char/string view of the byte buffer, instead of casting between
8335 pointer to pointer types.
8336
90585175
HAQ
83372013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8338
8339 * remote.c (remote_set_trace_buffer_size): Move != operator
8340 to the start of next line to fix an ARI warning.
8341
59ea5688
MM
83422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8343
8344 * NEWS: Add record changes.
8345
946287b7
MM
83462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8347
8348 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8349 the instruction history disassembly.
8350 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8351 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8352
afedecd3
MM
83532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8354
8355 * Makefile.in (SFILES): Add record-btrace.c
8356 (COMMON_OBS): Add record-btrace.o
8357 * record-btrace.c: New.
8358 * objfiles.c: Include btrace.h.
8359 (free_objfile): call btrace_free_objfile.
8360
15984c13
MM
83612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8362
8363 * target.c (target_call_history, target_call_history_from,
8364 target_call_history_range): New.
8365 * target.h (target_ops) <to_call_history, to_call_history_from,
8366 to_call_history_range>: New fields.
8367 (target_call_history, target_call_history_from,
8368 target_call_history_range): New declaration.
8369 * record.c (get_call_history_modifiers, cmd_record_call_history,
8370 record_call_history_size): New.
8371 (_initialize_record): Add the "record function-call-history" command.
8372 Add "set/show record function-call-history-size" commands.
8373 * record.h (record_print_flag): New.
8374
67c86d06
MM
83752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8376
8377 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8378 to_insn_history_range>: New fields.
8379 (target_insn_history): New.
8380 (target_insn_history_from): New.
8381 (target_insn_history_range): New.
8382 * target.c (target_insn_history): New.
8383 (target_insn_history_from): New.
8384 (target_insn_history_range): New.
8385 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8386 (record_insn_history_size): New.
8387 (get_insn_number): New.
8388 (get_context_size): New.
8389 (no_chunk): New.
8390 (get_insn_history_modifiers): New.
8391 (cmd_record_insn_history): New.
8392 (_initialize_record): Add "set/show record instruction-history-size"
8393 command. Add "record instruction-history" command.
8394
7c1687a9
MM
83952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8396
8397 * record.h (record_disconnect): New.
8398 (record_detach): New.
8399 (record_mourn_inferior): New.
8400 (record_kill): New.
8401 * record-full.c (record_disconnect, record_detach,
8402 record_mourn_inferior, record_kill): Move to...
8403 * record.c: ...here.
8404 (DEBUG): New.
8405 (record_stop): New.
8406 (record_unpush): New.
8407 (cmd_record_stop): Call record_stop. Replace unpush_target
8408 call with record_unpush call.
8409 (record_disconnect, record_detach): Assert that the target
8410 is of record stratum. Call record_unpush, record_stop, and
8411 DEBUG.
8412 (record_mourn_inferior, record_kill): Assert that the target
8413 is of record stratum. Call record_unpush and DEBUG.
8414
25ea693b
MM
84152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8416
8417 * record-full.h, record-full.c (record_memory_query): Rename
8418 to ...
8419 (record_full_memory_query): ...this. Update all users.
8420 (record_arch_list_add_reg): Rename to ...
8421 (record_full_arch_list_add_reg): ...this. Update all users.
8422 (record_arch_list_add_mem): Rename to ...
8423 (record_full_arch_list_add_mem): ...this. Update all users.
8424 (record_arch_list_add_end): Rename to ...
8425 (record_full_arch_list_add_end): ...this. Update all users.
8426 (record_gdb_operation_disable_set): Rename to ...
8427 (record_full_gdb_operation_disable_set): ...this.
8428 Update all users.
8429
88d1aa9d
MM
84302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8431
8432 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8433 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8434 (RECORD_IS_REPLAY): Renamed to ...
8435 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8436 (RECORD_FILE_MAGIC): Renamed to ...
8437 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8438 (record_mem_entry): Renamed to ...
8439 (record_full_mem_entry): ... this. Updated all users.
8440 (record_reg_entry): Renamed to ...
8441 (record_full_reg_entry): ... this. Updated all users.
8442 (record_end_entry): Renamed to ...
8443 (record_full_end_entry): ... this. Updated all users.
8444 (record_type) <record_end, record_reg, record_mem>: Renamed
8445 to ...
8446 (record_full_type) <record_full_end, record_full_reg,
8447 record_full_mem>: ... this. Updated all users.
8448 (record_entry): Renamed to ...
8449 (record_full_entry): ... this. Updated all users.
8450 (record_core_buf_entry): Renamed to ...
8451 (record_full_core_buf_entry): ... this. Updated all users.
8452 (record_core_regbuf): Renamed to ...
8453 (record_full_core_regbuf): ... this. Updated all users.
8454 (record_core_start): Renamed to ...
8455 (record_full_core_start): ... this. Updated all users.
8456 (record_core_end): Renamed to ...
8457 (record_full_core_end): ... this. Updated all users.
8458 (record_core_buf_list): Renamed to ...
8459 (record_full_core_buf_list): ... this. Updated all users.
8460 (record_first): Renamed to ...
8461 (record_full_first): ... this. Updated all users.
8462 (record_list): Renamed to ...
8463 (record_full_list): ... this. Updated all users.
8464 (record_arch_list_head): Renamed to ...
8465 (record_full_arch_list_head): ... this. Updated all users.
8466 (record_arch_list_tail): Renamed to ...
8467 (record_full_arch_list_tail): ... this. Updated all users.
8468 (record_stop_at_limit): Renamed to ...
8469 (record_full_stop_at_limit): ... this. Updated all users.
8470 (record_insn_max_num): Renamed to ...
8471 (record_full_insn_max_num): ... this. Updated all users.
8472 (record_insn_num): Renamed to ...
8473 (record_full_insn_num): ... this. Updated all users.
8474 (record_insn_count): Renamed to ...
8475 (record_full_insn_count): ... this. Updated all users.
8476 (record_ops): Renamed to ...
8477 (record_full_ops): ... this. Updated all users.
8478 (record_core_ops): Renamed to ...
8479 (record_full_core_ops): ... this. Updated all users.
8480 (set_record_cmdlist): Renamed to ...
8481 (set_record_full_cmdlist): ... this. Updated all users.
8482 (show_record_cmdlist): Renamed to ...
8483 (show_record_full_cmdlist): ... this. Updated all users.
8484 (record_cmdlist): Renamed to ...
8485 (record_full_cmdlist): ... this. Updated all users.
8486 (record_beneath_to_resume_ops): Renamed to ...
8487 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8488 (record_beneath_to_resume): Renamed to ...
8489 (record_full_beneath_to_resume): ... this. Updated all users.
8490 (record_beneath_to_wait_ops): Renamed to ...
8491 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8492 (record_beneath_to_wait): Renamed to ...
8493 (record_full_beneath_to_wait): ... this. Updated all users.
8494 (record_beneath_to_store_registers_ops): Renamed to ...
8495 (record_full_beneath_to_store_registers_ops): ... this.
8496 Updated all users.
8497 (record_beneath_to_store_registers): Renamed to ...
8498 (record_full_beneath_to_store_registers): ... this.
8499 Updated all users.
8500 (record_beneath_to_xfer_partial_ops): Renamed to ...
8501 (record_full_beneath_to_xfer_partial_ops): ... this.
8502 Updated all users.
8503 (record_beneath_to_xfer_partial): Renamed to ...
8504 (record_full_beneath_to_xfer_partial): ... this.
8505 Updated all users.
8506 (record_beneath_to_insert_breakpoint): Renamed to ...
8507 (record_full_beneath_to_insert_breakpoint): ... this.
8508 Updated all users.
8509 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8510 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8511 Updated all users.
8512 (record_beneath_to_stopped_data_address): Renamed to ...
8513 (record_full_beneath_to_stopped_data_address): ... this.
8514 Updated all users.
8515 (record_beneath_to_async): Renamed to ...
8516 (record_full_beneath_to_async): ... this. Updated all users.
8517 (record_goto_insn): Renamed to ...
8518 (record_full_goto_insn): ... this. Updated all users.
8519 (record_save): Renamed to ...
8520 (record_full_save): ... this. Updated all users.
8521 (record_reg_alloc): Renamed to ...
8522 (record_full_reg_alloc): ... this. Updated all users.
8523 (record_reg_release): Renamed to ...
8524 (record_full_reg_release): ... this. Updated all users.
8525 (record_mem_alloc): Renamed to ...
8526 (record_full_mem_alloc): ... this. Updated all users.
8527 (record_mem_release): Renamed to ...
8528 (record_full_mem_release): ... this. Updated all users.
8529 (record_end_alloc): Renamed to ...
8530 (record_full_end_alloc): ... this. Updated all users.
8531 (record_end_release): Renamed to ...
8532 (record_full_end_release): ... this. Updated all users.
8533 (record_entry_release): Renamed to ...
8534 (record_full_entry_release): ... this. Updated all users.
8535 (record_list_release): Renamed to ...
8536 (record_full_list_release): ... this. Updated all users.
8537 (record_list_release_following): Renamed to ...
8538 (record_full_list_release_following): ... this.
8539 Updated all users.
8540 (record_list_release_first): Renamed to ...
8541 (record_full_list_release_first): ... this. Updated all users.
8542 (record_arch_list_add): Renamed to ...
8543 (record_full_arch_list_add): ... this. Updated all users.
8544 (record_get_loc): Renamed to ...
8545 (record_full_get_loc): ... this. Updated all users.
8546 (record_check_insn_num): Renamed to ...
8547 (record_full_check_insn_num): ... this. Updated all users.
8548 (record_arch_list_cleanups): Renamed to ...
8549 (record_full_arch_list_cleanups): ... this. Updated all users.
8550 (record_message): Renamed to ...
8551 (record_full_message): ... this. Updated all users.
8552 (record_message_wrapper): Renamed to ...
8553 (record_full_message_wrapper): ... this. Updated all users.
8554 (record_message_wrapper_safe): Renamed to ...
8555 (record_full_message_wrapper_safe): ... this. Updated all users.
8556 (record_gdb_operation_disable): Renamed to ...
8557 (record_full_gdb_operation_disable): ... this. Updated all users.
8558 (record_hw_watchpoint): Renamed to ...
8559 (record_full_hw_watchpoint): ... this. Updated all users.
8560 (record_exec_insn): Renamed to ...
8561 (record_full_exec_insn): ... this. Updated all users.
8562 (record_restore): Renamed to ...
8563 (record_full_restore): ... this. Updated all users.
8564 (record_async_inferior_event_token): Renamed to ...
8565 (record_full_async_inferior_event_token): ... this.
8566 Updated all users.
8567 (record_async_inferior_event_handler): Renamed to ...
8568 (record_full_async_inferior_event_handler): ... this.
8569 Updated all users.
8570 (record_core_open_1): Renamed to ...
8571 (record_full_core_open_1): ... this. Updated all users.
8572 (record_open_1): Renamed to ...
8573 (record_full_open_1): ... this. Updated all users.
8574 (record_open): Renamed to ...
8575 (record_full_open): ... this. Updated all users.
8576 (record_close): Renamed to ...
8577 (record_full_close): ... this. Updated all users.
8578 (record_resume_step): Renamed to ...
8579 (record_full_resume_step): ... this. Updated all users.
8580 (record_resumed): Renamed to ...
8581 (record_full_resumed): ... this. Updated all users.
8582 (record_execution_dir): Renamed to ...
8583 (record_full_execution_dir): ... this. Updated all users.
8584 (record_resume): Renamed to ...
8585 (record_full_resume): ... this. Updated all users.
8586 (record_get_sig): Renamed to ...
8587 (record_full_get_sig): ... this. Updated all users.
8588 (record_sig_handler): Renamed to ...
8589 (record_full_sig_handler): ... this. Updated all users.
8590 (record_wait_cleanups): Renamed to ...
8591 (record_full_wait_cleanups): ... this. Updated all users.
8592 (record_wait_1): Renamed to ...
8593 (record_full_wait_1): ... this. Updated all users.
8594 (record_wait): Renamed to ...
8595 (record_full_wait): ... this. Updated all users.
8596 (record_stopped_by_watchpoint): Renamed to ...
8597 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8598 (record_disconnect): Renamed to ...
8599 (record_full_disconnect): ... this. Updated all users.
8600 (record_detach): Renamed to ...
8601 (record_full_detach): ... this. Updated all users.
8602 (record_mourn_inferior): Renamed to ...
8603 (record_full_mourn_inferior): ... this. Updated all users.
8604 (record_kill): Renamed to ...
8605 (record_full_kill): ... this. Updated all users.
8606 (record_stopped_data_address): Renamed to ...
8607 (record_full_stopped_data_address): ... this. Updated all users.
8608 (record_registers_change): Renamed to ...
8609 (record_full_registers_change): ... this. Updated all users.
8610 (record_store_registers): Renamed to ...
8611 (record_full_store_registers): ... this. Updated all users.
8612 (record_xfer_partial): Renamed to ...
8613 (record_full_xfer_partial): ... this. Updated all users.
8614 (record_breakpoint): Renamed to ...
8615 (record_full_breakpoint): ... this. Updated all users.
8616 (record_breakpoint_p): Renamed to ...
8617 (record_full_breakpoint_p): ... this. Updated all users.
8618 (record_breakpoints): Renamed to ...
8619 (record_full_breakpoints): ... this. Updated all users.
8620 (record_sync_record_breakpoints): Renamed to ...
8621 (record_full_sync_record_breakpoints): ... this.
8622 Updated all users.
8623 (record_init_record_breakpoints): Renamed to ...
8624 (record_full_init_record_breakpoints): ... this.
8625 Updated all users.
8626 (record_insert_breakpoint): Renamed to ...
8627 (record_full_insert_breakpoint): ... this. Updated all users.
8628 (record_remove_breakpoint): Renamed to ...
8629 (record_full_remove_breakpoint): ... this. Updated all users.
8630 (record_can_execute_reverse): Renamed to ...
8631 (record_full_can_execute_reverse): ... this. Updated all users.
8632 (record_get_bookmark): Renamed to ...
8633 (record_full_get_bookmark): ... this. Updated all users.
8634 (record_goto_bookmark): Renamed to ...
8635 (record_full_goto_bookmark): ... this. Updated all users.
8636 (record_async): Renamed to ...
8637 (record_full_async): ... this. Updated all users.
8638 (record_can_async_p): Renamed to ...
8639 (record_full_can_async_p): ... this. Updated all users.
8640 (record_is_async_p): Renamed to ...
8641 (record_full_is_async_p): ... this. Updated all users.
8642 (record_execution_direction): Renamed to ...
8643 (record_full_execution_direction): ... this. Updated all users.
8644 (record_info): Renamed to ...
8645 (record_full_info): ... this. Updated all users.
8646 (record_delete): Renamed to ...
8647 (record_full_delete): ... this. Updated all users.
8648 (record_is_replaying): Renamed to ...
8649 (record_full_is_replaying): ... this. Updated all users.
8650 (record_goto_entry): Renamed to ...
8651 (record_full_goto_entry): ... this. Updated all users.
8652 (record_goto_begin): Renamed to ...
8653 (record_full_goto_begin): ... this. Updated all users.
8654 (record_goto_end): Renamed to ...
8655 (record_full_goto_end): ... this. Updated all users.
8656 (record_goto): Renamed to ...
8657 (record_full_goto): ... this. Updated all users.
8658 (init_record_ops): Renamed to ...
8659 (init_record_full_ops): ... this. Updated all users.
8660 (record_core_resume): Renamed to ...
8661 (record_full_core_resume): ... this. Updated all users.
8662 (record_core_kill): Renamed to ...
8663 (record_full_core_kill): ... this. Updated all users.
8664 (record_core_fetch_registers): Renamed to ...
8665 (record_full_core_fetch_registers): ... this. Updated all users.
8666 (record_core_prepare_to_store): Renamed to ...
8667 (record_full_core_prepare_to_store): ... this. Updated all users.
8668 (record_core_store_registers): Renamed to ...
8669 (record_full_core_store_registers): ... this. Updated all users.
8670 (record_core_xfer_partial): Renamed to ...
8671 (record_full_core_xfer_partial): ... this. Updated all users.
8672 (record_core_insert_breakpoint): Renamed to ...
8673 (record_full_core_insert_breakpoint): ... this. Updated all users.
8674 (record_core_remove_breakpoint): Renamed to ...
8675 (record_full_core_remove_breakpoint): ... this. Updated all users.
8676 (record_core_has_execution): Renamed to ...
8677 (record_full_core_has_execution): ... this. Updated all users.
8678 (init_record_core_ops): Renamed to ...
8679 (init_record_full_core_ops): ... this. Updated all users.
8680 (cmd_record_restore): Renamed to ...
8681 (cmd_record_full_restore): ... this. Updated all users.
8682 (record_save_cleanups): Renamed to ...
8683 (record_full_save_cleanups): ... this. Updated all users.
8684 (cmd_record_start): Renamed to ...
8685 (cmd_record_full_start): ... this. Updated all users.
8686 (set_record_insn_max_num): Renamed to ...
8687 (set_record_full_insn_max_num): ... this. Updated all users.
8688 (set_record_command): Renamed to ...
8689 (set_record_full_command): ... this. Updated all users.
8690 (show_record_command): Renamed to ...
8691 (show_record_full_command): ... this. Updated all users.
8692 (_initialize_record): Renamed to ...
8693 (_initialize_record_full): ... this. Updated all users.
8694
d02ed0bb
MM
86952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8696
8697 * record.h: Split into this and ...
8698 * record-full.h: ... this.
8699 * record.c: Split into this and ...
8700 * record-full.c: ... this.
8701 * target.h (target_ops): Add new fields to_info_record,
8702 to_save_record, to_delete_record, to_record_is_replaying,
8703 to_goto_record_begin, to_goto_record_end, to_goto_record.
8704 (target_info_record): New.
8705 (target_save_record): New.
8706 (target_supports_delete_record): New.
8707 (target_delete_record): New.
8708 (target_record_is_replaying): New.
8709 (target_goto_record_begin): New.
8710 (target_goto_record_end): New.
8711 (target_goto_record): New.
8712 * target.c (target_info_record): New.
8713 (target_save_record): New.
8714 (target_supports_delete_record): New.
8715 (target_delete_record): New.
8716 (target_record_is_replaying): New.
8717 (target_goto_record_begin): New.
8718 (target_goto_record_end): New.
8719 (target_goto_record): New.
8720 * record.h: Declare struct cmd_list_element.
8721 (record_cmdlist): New declaration.
8722 (set_record_cmdlist): New declaration.
8723 (show_record_cmdlist): New declaration.
8724 (info_record_cmdlist): New declaration.
8725 (cmd_record_goto): New declaration.
8726 * record.c: Remove unnecessary includes.
8727 Include inferior.h.
8728 (cmd_record_goto): Remove declaration.
8729 (record_cmdlist): Now extern. Initialize.
8730 (set_record_cmdlist): Now extern. Initialize.
8731 (show_record_cmdlist): Now extern. Initialize.
8732 (info_record_cmdlist): Now extern. Initialize.
8733 (find_record_target): New.
8734 (require_record_target): New.
8735 (cmd_record_start): Update.
8736 (cmd_record_delete): Remove target-specific code.
8737 Call target_delete_record.
8738 (cmd_record_stop): Unpush any record target.
8739 (set_record_insn_max_num): Move to record-full.c
8740 (set_record_command): Add comment.
8741 (show_record_command): Add comment.
8742 (info_record_command): Update comment.
8743 Remove target-specific code.
8744 Call the record target's to_info_record.
8745 (cmd_record_start): New.
8746 (cmd_record_goto): Now extern.
8747 Remove target-specific code.
8748 Call target_goto_begin, target_goto_end, or target_goto.
8749 (_initialize_record): Move record target ops initialization to
8750 record-full.c.
8751 Change "record" command help text.
8752 Move "record restore", "record set", and "record show" commands to
8753 record-full.c.
8754 * Makefile.in (SFILES): Add record-full.c.
8755 (HFILES_NO_SRCDIR): Add record-full.h.
8756 (COMMON_OBS): Add record-full.o.
8757 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8758 * arm-tdep.c: Include record-full.h.
8759 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8760 * i386-tdep.c: Include record-full.h.
8761 * infrun.c: Include record-full.h.
8762 * linux-record.c: Include record-full.h.
8763 * moxie-tdep.c: Include record-full.h.
8764 * record-full.c: Include record-full.h.
8765 Change module comment.
8766 (set_record_full_cmdlist): New.
8767 (show_record_full_cmdlist): New.
8768 (record_full_cmdlist): New.
8769 (record_goto_insn): New declaration.
8770 (record_save): New declaration.
8771 (record_check_insn_num): Change query string.
8772 (record_info): New.
8773 (record_delete): New.
8774 (record_is_replaying): New.
8775 (record_goto_entry): New.
8776 (record_goto_begin): New.
8777 (record_goto_end): New.
8778 (record_goto): New.
8779 (init_record_ops): Update.
8780 (init_record_core_ops): Update.
8781 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8782 (cmd_record_start): New.
8783 (set_record_insn_max_num): Moved from record.c
8784 (set_record_full_command): New.
8785 (show_record_full_command): New.
8786 (_initialize_record_full): New.
8787
b48d48eb
MM
87882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8789
8790 * target.h (add_deprecated_target_alias): New.
8791 * target.c (add_deprecated_target_alias): New.
8792
a950d57c
MM
87932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8794
8795 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8796 and signal.h.
8797 (linux_supports_btrace): Add kernel and
8798 cpuid check.
8799 (kernel_supports_btrace): New function.
8800 (cpu_supports_btrace): New function.
8801 (intel_supports_btrace): New function.
8802
9accd112
MM
88032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8804
8805 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8806 * remote.c: Include btrace.h.
8807 (struct btrace_target_info): New struct.
8808 (remote_supports_btrace): New function.
8809 (send_Qbtrace): New function.
8810 (remote_enable_btrace): New function.
8811 (remote_disable_btrace): New function.
8812 (remote_teardown_btrace): New function.
8813 (remote_read_btrace): New function.
8814 (init_remote_ops): Add btrace ops.
8815 (enum <unnamed>): Add btrace packets.
8816 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8817 (_initialize_remote): Add packet configuration for branch tracing.
8818
c12a2917
MM
88192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8820
8821 * features/btrace.dtd: New file.
8822 * Makefile.in (XMLFILES): Add btrace.dtd.
8823 * btrace.h (parse_xml_btrace): New declaration.
8824 * btrace.c: Include xml-support.h.
8825 (parse_xml_btrace): New function.
8826 (parse_xml_btrace_block): New function.
8827 (block_attributes): New struct.
8828 (btrace_attributes): New struct.
8829 (btrace_children): New struct.
8830 (btrace_elements): New struct.
8831
3e3aea48
MM
88322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8833
8834 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8835 (amd64_linux_enable_btrace): New.
8836 (amd64_linux_disable_btrace): New.
8837 (amd64_linux_teardown_btrace): New.
8838 (_initialize_amd64_linux_nat): Initialize btrace ops.
8839 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8840 (i386_linux_enable_btrace): New.
8841 (i386_linux_disable_btrace): New.
8842 (i386_linux_teardown_btrace): New.
8843 (_initialize_i386_linux_nat): Initialize btrace ops.
8844 * config/i386/linux.mh: Add linux-btrace.o.
8845 * config/i386/linux64.mh: Add linux-btrace.o.
8846
7c97f91e
MM
88472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8848
8849 * common/linux_btrace.h: New file.
8850 * common/linux_btrace.c: New file.
8851 * Makefile.in (SFILES): Add btrace.c.
8852 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8853 (COMMON_OBS): Add btrace.o.
8854 (linux-btrace.o): New rule.
8855
1999790b 88562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8857
8858 * target.h: Include btrace.h.
8859 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8860 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8861 * target.c (target_supports_btrace): New function.
8862 (target_enable_btrace): New function.
8863 (target_disable_btrace): New function.
8864 (target_teardown_btrace): New function.
8865 (target_read_btrace): New function.
8866 * btrace.h: New file.
8867 * btrace.c: New file.
8868 * Makefile.in: Add btrace.c.
8869 * gdbthread.h: Include btrace.h.
8870 (struct thread_info): Add btrace field.
8871 * thread.c: Include btrace.h.
8872 (clear_thread_inferior_resources): Call target_teardown_btrace.
8873 * common/btrace-common.h: New file.
8874
61a31a67
JK
88752013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8876
8877 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8878 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8879 kill_status to outer block.
8880
05c56a9d
JK
88812013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 Fix entry-values if the callee called a noreturn function.
8884 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8885 get_frame_address_in_block. Add new comment.
8886
9112db09
JK
88872013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8888
8889 Fix entry-values in C++ across CUs.
8890 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8891 lookup_minimal_symbol. Add a comment.
8892 * dwarf2read.c
8893 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8894 DW_AT_linkage_name.
8895
9b67fcec
YQ
88962013-03-08 Yao Qi <yao@codesourcery.com>
8897
8898 * tracepoint.c (_initialize_tracepoint): Indent the code.
8899
6221be90
PA
89002013-03-08 Pedro Alves <palves@redhat.com>
8901
8902 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8903 (parse_find_args, find_command): Change type of pattern buffer
8904 locals to 'gdb_byte *'.
8905
be9a119c 89062013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8907 Hafiz Abid Qadeer <abidh@codesourcery.com>
8908
8909 * NEWS: Mention set and show trace-buffer-size commands.
8910 Mention new packet.
8911 * target.h (struct target_ops): New method
8912 to_set_trace_buffer_size.
8913 (target_set_trace_buffer_size): New macro.
8914 * target.c (update_current_target): Set up new method.
8915 * tracepoint.c (trace_buffer_size): New global.
8916 (start_tracing): Send it to the target.
8917 (set_trace_buffer_size): New function.
8918 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8919 * remote.c (remote_set_trace_buffer_size): New function.
8920 (_initialize_remote): Use it.
8921 (QTBuffer:size) New remote command.
8922 (PACKET_QTBuffer_size): New enum.
8923 (remote_protocol_features): Add an entry for
8924 PACKET_QTBuffer_size.
8925
7da3ab79
TT
89262013-03-08 Tom Tromey <tromey@redhat.com>
8927
8928 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8929 variable.
8930
0c1f71e7
PA
89312013-03-07 Pedro Alves <palves@redhat.com>
8932
8933 * target.c (target_read_stralloc, target_fileio_read_alloc):
8934 *Cast pointer to 'gdb_byte *' in target call.
8935
c8af03a2
PA
89362013-03-07 Pedro Alves <palves@redhat.com>
8937
8938 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8939 call.
8940
529480d0
KS
89412013-03-07 Keith Seitz <keiths@redhat.com>
8942
8943 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8944 (trace_pass_command): Likewise.
8945 * cli/cli-cmds.c: Include cli/cli-utils.h.
8946 (source_command): Use skip-spaces.
8947 (disassemble_command): Likewise.
8948 * findcmd.c: Include cli/cli-utils.h.
8949 (parse_find_args): Use skip_spaces.
8950 * go32-nat.c: Include cli/cli-utils.h.
8951 (go32_sldt): Use skip_spaces.
8952 (go32_sgdt): Likewise.
8953 (go32_sidt): Likewise.
8954 (go32_pde): Likewise.
8955 (go32_pte): Likewise.
8956 (go32_pte_for_address): Likewise.
8957 * infcmd.c: Include cli/cli-utils.h.
8958 (registers_info): Use skip_spaces.
8959 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8960 (linux_info_proc): Likewise.
8961 * linux-thread-db.c: Include cli/cli-utils.h.
8962 (info_auto_load_libthread_db): Use skip_spaces_const.
8963 * m32r-rom.c: Include cli/cli-utils.h.
8964 (m32r_upload_command): Use skip_spaces.
8965 * maint.c: Include cli/cli-utils.h.
8966 (maintenance_translate_address): Use skip_spaces.
8967 * mi/mi-parse.c: Include cli/cli-utils.h.
8968 (mi_parse_argv): Use skip_spaces.
8969 (mi_parse): Likewise.
8970 * minsyms.c: Include cli/cli-utils.h.
8971 (msymbol_hash_iw): Use skip_spaces_const.
8972 * objc-lang.c: Include cli/cli-utils.h.
8973 (parse_selector): Use skip_spaces.
8974 (parse_method): Likewise.
8975 * python/python.c: Include cli/cli-utils.h.
8976 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8977 (python_command)[HAVE_PYTHON]: Likewise.
8978 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8979 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8980 (m32r_load): Use skip_spaces.
8981 * serial.c: Include cli/cli-utils.h.
8982 (serial_open): Use skip_spaces_const.
8983 * stack.c: Include cli/cli-utils.h.
8984 (parse_frame_specification_1): Use skip_spaces_const.
8985 * symfile.c: Include cli/cli-utils.h.
8986 (set_ext_lang_command): Use skip_spaces.
8987 * symtab.c: Include cli/cli-utils.h.
8988 (rbreak_command): Use skip_spaces.
8989 * thread.c (thread_name_command): Use skip_spaces.
8990 * tracepoint.c (validate_actionline): Use skip_spaces.
8991 (encode_actions_1): Likewise.
8992 (trace_find_range_command): Likewise.
8993 (trace_find_outside_command): Likewise.
8994 (trace_dump_actions): Likewise.
8995
ac91cd70
PA
89962013-03-07 Pedro Alves <palves@redhat.com>
8997
8998 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8999 * expprint.c (print_subexp_standard): Likewise.
9000 * utils.c (host_char_to_target): Likewise.
9001 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9002 * varobj.c (value_get_print_value): Change type of local to char*.
9003 Cast it gdb_byte * in call to language printer.
9004
2898e560
PA
90052013-03-07 Pedro Alves <palves@redhat.com>
9006
9007 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9008 gdb_byte *'.
9009 (make_wchar_iterator): Remove cast to char*.
9010 (wchar_iterate): Change type of local.
9011
a09b4448
PA
90122013-03-07 Pedro Alves <palves@redhat.com>
9013
9014 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9015 for 'regcache->register_status'.
9016
20ced3e4
PA
90172013-03-07 Pedro Alves <palves@redhat.com>
9018
c2d6a675 9019 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9020 int.
9021
fe106009
PA
90222013-03-07 Pedro Alves <palves@redhat.com>
9023
9024 * stap-probe.c (handle_stap_probe): Add cast to char*.
9025
8ac2c12b
PA
90262013-03-07 Pedro Alves <palves@redhat.com>
9027
9028 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9029 RECORD_MSGRCV>: Pass a signed variable to
9030 regcache_raw_read_signed, instead of an unsigned one.
9031
99f0a309
PA
90322013-03-07 Pedro Alves <palves@redhat.com>
9033
9034 * remote-notif.c (notif_debug): Change type to int.
9035 * remote-notif.h (notif_debug): Likewise.
9036
964b8317
PA
90372013-03-07 Pedro Alves <palves@redhat.com>
9038
9039 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9040
f0cc8ad4
PA
90412013-03-07 Pedro Alves <palves@redhat.com>
9042
9043 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9044 * remote.h (hex2bin, bin2hex): ... here.
9045 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9046
77dec115
EZ
90472013-03-07 Eli Zaretskii <eliz@gnu.org>
9048
9049 * utils.c (initialize_utils): Improve doc strings of "set/show
9050 width", "set/show height", and "set/show pagination".
9051
741d92cf
KS
90522013-03-06 Keith Seitz <keiths@redhat.com>
9053
9054 * ax-gdb.c (gen_printf): Make FORMAT const.
9055 * ax-gdb.h (gen_printf): Likewise.
9056 * ax-general.c (ax_string): Make STR const.
9057 * ax.h (ax_string): Likewise.
9058
7b6c814e
DE
90592013-03-06 Doug Evans <dje@google.com>
9060
9061 * elfread.c (elf_symfile_read): Move debugging printf to more
9062 logical location.
9063
634334ab
PA
90642013-03-06 Pedro Alves <palves@redhat.com>
9065
9066 * python/py-utils.c (target_string_to_unicode): Delete function.
9067 * python/python-internal.h (target_string_to_unicode): Delete
9068 declaration.
9069
e482a1a7
PM
90702013-03-06 Pierre Muller <muller@sourceware.org>
9071
9072 * linespec.c (get_current_search_block): ARI fix, use (void)
9073 for empty parameter list.
9074
4eeaa230
DE
90752013-03-05 Doug Evans <dje@google.com>
9076
9077 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9078 of old ada_lookup_symbol_list. In !full_search case, don't
9079 search superblocks.
9080 (ada_lookup_symbol_list): Delete arg full_search, all callers
9081 updated. Call ada_lookup_symbol_list_worker.
9082 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9083 * ada-lang.h (ada_lookup_symbol_list): Update.
9084 * language.h (language_defn): Update comment for
9085 la_iterate_over_symbols.
9086 * linespec.c (iterate_over_file_blocks): New function.
9087 (iterate_over_all_matching_symtabs): Call it.
9088 (lookup_prefix_sym): Ditto.
9089 (get_current_search_block): New function.
9090 (get_search_block): Delete.
9091 (find_label_symbols): Call get_current_search_block.
9092 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9093 * symtab.c (iterate_over_symbols): Don't search superblocks.
9094
b69b1fb1
YQ
90952013-03-05 Yao Qi <yao@codesourcery.com>
9096
9097 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9098 parameter VAR's type from "unsigned int" to "int".
9099 * command.h (var_zuinteger_unlimited): Update its comments.
9100 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9101
3c095f49
CV
91022013-03-05 Corinna Vinschen <vinschen@redhat.de>
9103
9104 * NEWS: Mention new target x86_64-*-cygwin*.
9105
b5b0b0af
CV
91062013-03-05 Corinna Vinschen <vinschen@redhat.de>
9107
9108 * configure.host: Add x86_64-*-cygwin* as host.
9109 * configure.tgt: Add x86_64-*-cygwin* as target.
9110 * config/i386/cygwin64.mh: New file.
9111
f6f99966
JK
91122013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9115
33f448b1
JK
91162013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9117
9118 * linespec.c (struct linespec_canonical_name): New.
9119 (struct linespec_state): Change canonical_names type to it.
9120 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9121 xrealloc element size. Initialize the different CANONICAL fields.
9122 (canonical_to_fullform): New.
9123 (filter_results): Use it. Add variables canonical, fullform and
9124 cleanup.
9125 (struct decode_line_2_item, decode_line_2_compare_items): New.
9126 (decode_line_2): Remove variables iter and item_names, add variables
9127 items and items_count. Modify the code for these new variables.
9128
feb14725
CV
91292013-03-04 Corinna Vinschen <vinschen@redhat.com>
9130
9131 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9132 calling do_cleanup.
9133
e83b17ba
HZ
91342013-03-04 Luis Machado <lgustavo@codesourcery.com>
9135
9136 * tracepoint.c (build_traceframe_info): Add code for byte order.
9137
a2d13a0d
KB
91382013-03-02 Kevin Buettner <kevinb@redhat.com>
9139
8dddcae8
KB
9140 * v850-tdep.c: (v850e2_register_name): Revise system register
9141 names to match current V850E2M architecture specifications.
9142 Update register number enum comments too.
f5aee5ee 9143
d79e58d8
JW
91442013-03-01 Jiong Wang <jiwang@tilera.com>
9145 Pedro Alves <palves@redhat.com>
9146
9147 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9148 to END_ADDR.
9149 (tilegx_skip_prologue): Limit prologue analysis to section end.
9150
c4be5165
JK
91512013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9152
9153 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9154 use it.
9155
e362b510
PA
91562013-03-01 Pedro Alves <palves@redhat.com>
9157
9158 Use gdb_byte for bytes from the program being debugged.
9159
9160 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9161 Change type of local 'buf' to gdb_byte.
9162 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9163 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9164 * cris-tdep.c (cris_sigcontext_addr)
9165 (cris_sigtramp_frame_unwind_cache): Likewise.
9166 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9167 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9168 Likewise.
9169 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9170 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9171 (hppa32_hpux_search_dummy_call_sequence)
9172 (hppa_hpux_supply_save_state): Likewise.
9173 * hppa-linux-tdep.c (insns_match_pattern)
9174 (hppa_linux_find_global_pointer): Likewise.
9175 * hppa-tdep.c (hppa_in_function_epilogue_p)
9176 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9177 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9178 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9179 (i386fbsd_collect_uthread): Likewise.
9180 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9181 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9182 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9183 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9184 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9185 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9186 (ia64_libunwind_frame_prev_register)
9187 (ia64_libunwind_sigtramp_frame_this_id)
9188 (ia64_find_global_pointer_from_dynamic_section)
9189 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9190 (ia64_unwind_pc): Likewise.
9191 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9192 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9193 (m68hc11_extract_return_value): Likewise.
9194 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9195 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9196 (mep_get_insn, mep_push_dummy_call): Likewise.
9197 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9198 (mips_linux_in_dynsym_stub): Likewise.
9199 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9200 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9201 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9202 to gdb_byte.
9203 * remote-mips.c (mips_set_register): Likewise.
9204 * remote-sim.c (gdbsim_fetch_register): Likewise.
9205 * score-tdep.c (score7_fetch_inst): Change type of parameter
9206 'memblock' and local 'buf' to gdb_byte.
9207 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9208 Change type of local 'buf' to gdb_byte. Adjust.
9209 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9210 to gdb_byte**.
9211 (score7_analyze_prologue): Change type of 'memblock' and
9212 'memblock_ptr' locals to gdb_byte*.
9213 * sh64-tdep.c (sh64_extract_return_value)
9214 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9215 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9216 * solib-pa64.c (pa64_solib_create_inferior_hook)
9217 (pa64_open_symbol_file_object): Remove local 'buf'.
9218 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9219 (som_open_symbol_file_object): Likewise.
9220 * solib-spu.c (spu_current_sos): Likewise.
9221 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9222 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9223 (spu_store_registers): Likewise.
9224 * target.c (debug_print_register): Likewise.
9225 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9226 * xstormy16-tdep.c (xstormy16_store_return_value)
9227 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9228 (xstormy16_find_jmp_table_entry): Likewise.
9229
75cc61ca 92302013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9231
9232 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9233 (tilegx_gdbarch_init): Install it.
9234
ddb08e9c
TT
92352013-02-28 Tom Tromey <tromey@redhat.com>
9236
9237 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9238 PyLong_Check.
9239
62d7fb51
DE
92402013-02-28 Doug Evans <dje@google.com>
9241
9242 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9243 * python/python.c (gdbpy_find_pc_line): Ditto.
9244
c4a9e8b4
TT
92452013-02-28 Tom Tromey <tromey@redhat.com>
9246
9247 * contrib/excheck.py: New file.
9248 * contrib/exsummary.py: New file.
9249 * contrib/gcc-with-excheck: New file.
9250
7f6a5dde
TT
92512013-02-28 Tom Tromey <tromey@redhat.com>
9252
9253 * python/python.c (gdbpy_print_stack): Call begin_line and
9254 fprintf_filtered inside TRY_CATCH.
9255
9e974e55
TT
92562013-02-28 Tom Tromey <tromey@redhat.com>
9257
9258 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9259 inside TRY_CATCH.
9260
dd5fa3e7
TT
92612013-02-28 Tom Tromey <tromey@redhat.com>
9262
9263 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9264 frame_object_to_frame_info inside TRY_CATCH.
9265
86a3263f
TT
92662013-02-28 Tom Tromey <tromey@redhat.com>
9267
9268 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9269 TRY_CATCH.
9270
81b52a3a
TT
92712013-02-28 Tom Tromey <tromey@redhat.com>
9272
9273 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9274
d50a0ce2
CV
92752013-02-27 Corinna Vinschen <vinschen@redhat.com>
9276
9277 * windows-nat.c: Throughout, fix format strings and casts of
9278 printf-like functions to avoid type related warnings on all
9279 platforms.
9280 (handle_output_debug_string): Fetch context information address
9281 from debug string using string_to_core_addr.
9282
e1f58301
JW
92832013-02-27 Jiong Wang <jiwang@tilera.com>
9284
9285 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9286 * regformats/reg-tilegx32.dat: New.
9287
4fcd89fc
JW
92882013-02-27 Jiong Wang <jiwang@tilera.com>
9289
9290 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9291
748d24e6
JW
92922013-02-27 Jiong Wang <jiwang@tilera.com>
9293
9294 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9295
6c8e944d
YQ
92962013-02-27 Yao Qi <yao@codesourcery.com>
9297 Pedro Alves <palves@redhat.com>
9298
9299 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9300 pc/tp/range/outside, look for the next trace frame instead of
9301 always starting from frame 0.
6c8e944d 9302
acd7db30
AG
93032013-02-26 Anthony Green <green@moxielogic.com>
9304
9305 * configure.tgt: Add support for moxie-*-rtems* target.
9306
025e6dce
PA
93072013-02-25 Pedro Alves <palves@redhat.com>
9308
9309 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9310 warning text.
9311
ca9c94ef
MR
93122013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9313
9314 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9315 if $fp is used as the virtual frame pointer.
9316
24c274a1
AM
93172013-02-23 Alan Modra <amodra@gmail.com>
9318
9319 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9320 symbol size.
9321 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9322 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9323 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9324 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9325
bfada189
JK
93262013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9327
9328 Code cleanup.
9329 * elfread.c (build_id_bfd_get): Make the return type const.
9330 (build_id_verify): Make the check parameter const.
9331 (build_id_to_debug_filename): Make the build_id parameter and variable
9332 data const.
9333 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9334
c0355132
AM
93352013-02-21 Alan Modra <amodra@gmail.com>
9336
9337 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9338
9f44fbc0
SCR
93392013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9340
9341 Add a new method 'disassemble' to gdb.Architecture class.
9342 * python/py-arch.c (archpy_disassmble): Implementation of the
9343 new method gdb.Architecture.disassemble.
9344 (arch_object_methods): Add entry for the new method.
9345
b74ea3eb
JW
93462013-02-20 Jiong Wang <jiwang@tilera.com>
9347
9348 * MAINTAINERS (Write After Approval): Add myself to the list.
9349
61a672f1
PA
93502013-02-19 Pedro Alves <palves@redhat.com>
9351
9352 Garbage collect 'struct monitor_ops'::load_routine.
9353
9354 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9355 * monitor.c (monitor_load): No longer call
9356 current_monitor->load_routine.
9357 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9358 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9359 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9360
40e397df
PA
93612013-02-19 Pedro Alves <palves@redhat.com>
9362
9363 PR gdb/15161
9364
9365 Harmonize with generic_load.
9366
9367 * monitor.c: Include "readline/readline.h".
9368 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9369 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9370 long/strtol for the 'load_offset' local. Error out if no argument
9371 is given or if too many arguments are given. Tilde expand the
9372 passed in file name.
9373
f698ca8e
KT
93742013-02-19 Kai Tietz <ktietz@redhat.com>
9375
9376 PR gdb/15161
9377 * symfile.c (load_section_data): Change type of load_offset
9378 to CORE_ADDR.
9379 (generic_load): User strtoulst instead of strtoul for conversion
9380 of load_offset.
9381
3361b059
WL
93822013-02-19 Jiong Wang <jiwang@tilera.com>
9383
9384 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9385 for return address, "lr" register, saved on stack.
9386 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9387 after we invoke tilegx_analyze_prologue.
9388
3e9d5130
WL
93892013-02-19 Jiong Wang <jiwang@tilera.com>
9390
bb1bcd86
WL
9391 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9392
3361b059 93932013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9394
b74ea3eb 9395 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9396
4aaf2503
WL
93972013-02-19 Jiong Wang <jiwang@tilera.com>
9398
b74ea3eb 9399 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9400 (tilegx_write_pc): New function.
9401 (tilegx_cannot_reference_register): Return zero if REGNO
9402 is TILEGX_FAULTNUM_REGNUM.
9403 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9404 (tilegx_register_name): Add handling of "faultnum" register.
9405 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9406 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9407 handling of TILEGX_FAULTNUM_REGNUM.
9408 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9409
bc23a956
WL
94102013-02-19 Jiong Wang <jiwang@tilera.com>
9411
9412 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9413 should be aligned to 64bit.
bc23a956 9414
42f45f1a
KT
94152013-02-19 Kai Tietz <ktietz@redhat.com>
9416
9417 * windows-nat.c (windows_xfer_memory): Fix debug-output
9418 for LLP64.
9419
6ce4c112
LL
94202013-02-19 Lei Liu <lei.liu2@windriver.com>
9421
9422 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9423 Don't check DSP register number if HAVE_DSP is not set.
9424
30e8ee25
AM
94252013-02-19 Alan Modra <amodra@gmail.com>
9426
9427 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9428 throughout file instead.
9429 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9430 Don't xmalloc return value.
9431 (build_id_verify): Similarly. Don't xfree.
9432 (build_id_to_debug_filename): Update.
9433 (find_separate_debug_file_by_buildid): Update, don't xfree.
9434
4c9ad8c2
TT
94352013-02-18 Tom Tromey <tromey@redhat.com>
9436
9437 PR gdb/15102:
9438 * dwarf2read.c (read_subrange_type): Use result of
9439 'check_typedef'.
9440
983dc440
YQ
94412013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9442
9443 * frame.c: Remove one extra white space after #include
9444 directive.
9445
7fb2b84a
JK
94462013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9447
9448 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9449
edceb2a9
JK
94502013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9453 and dir commands into an if block.
9454
e81b7af8
TT
94552013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9456
9457 * python/py-breakpoint (struct pybp_code): Use int instead of
9458 enum type_code.
9459
f5911ea1
HAQ
94602013-02-15 Pedro Alves <pedro@codesourcery.com>
9461 Hafiz Abid Qadeer <abidh@codesourcery.com>
9462
9463 * NEWS: Mention new field "trace-file".
9464 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9465 (tfile_open): Record the trace file's filename in the trace
9466 status.
9467 (tfile_files_info): Mention the name of the trace file.
9468 Check the "filename" field explicitely.
9469 (trace_status_command): Explicitely check "filename" field.
9470 (trace_find_command): Ditto.
9471 (trace_find_pc_command): Ditto.
9472 (trace_find_tracepoint_command): Ditto.
9473 (trace_find_line_command): Ditto.
9474 (trace_find_range_command): Ditto.
9475 (trace_find_outside_command): Ditto.
9476 * tracepoint.h (struct trace_status) <from_file>: Rename it
9477 to "filename" and make it hold the trace file's filename
9478 instead of a boolean.
9479 * remote.c (remote_get_trace_status): Initialize "filename"
9480 field with NULL instead of 0.
9481
796cb314
YQ
94822013-02-15 Yao Qi <yao@codesourcery.com>
9483
9484 * remote.c: Fix a typo.
9485
42e79b1d
PM
94862013-02-14 Pierre Muller <muller@sourceware.org>
9487
9488 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9489
baea0dae
PA
94902013-02-14 Pedro Alves <palves@redhat.com>
9491
9492 * utils.c (savestring): Don't #undef it. Move function to
9493 common/common-utils.c.
9494 * common/common-utils.c: Include gdb_string.h.
9495 (savestring): Move here from utils.c.
9496 * common/common-utils.h (savestring): Declare.
9497
57c3b6ed
PA
94982013-02-14 Pedro Alves <palves@redhat.com>
9499
9500 * utils.c (savestring): Rename parameter 'size' to 'len'.
9501
d6c44983
YZ
95022013-02-14 Pedro Alves <palves@redhat.com>
9503 Yufeng Zhang <yufeng.zhang@arm.com>
9504
9505 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9506 (aarch64_inferior_data, struct aarch64_inferior_data):
9507 Delete.
9508 (struct aarch64_process_info): New.
9509 (aarch64_process_list): New global.
9510 (aarch64_find_process_pid, aarch64_add_process)
9511 (aarch64_process_info_get): New functions.
9512 (aarch64_inferior_data_get): Delete.
9513 (aarch64_process_info_get): New function.
9514 (aarch64_forget_process): New function.
9515 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9516 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9517 aarch64_get_debug_reg_state.
9518 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9519 instead of linux_nat_iterate_watchpoint_lwps.
9520 (aarch64_linux_new_fork): New function.
9521 (aarch64_linux_child_post_startup_inferior): Use
9522 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9523 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9524 (aarch64_linux_remove_hw_breakpoint)
9525 (aarch64_handle_aligned_watchpoint)
9526 (aarch64_handle_unaligned_watchpoint)
9527 (aarch64_linux_insert_watchpoint)
9528 (aarch64_linux_remove_watchpoint)
9529 (aarch64_linux_stopped_data_address): Adjust to pass the current
9530 process id to aarch64_debug_reg_state.
9531 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9532 linux_nat_new_fork hook, and aarch64_forget_process as
9533 linux_nat_forget_process hook; remove the call to
9534 register_inferior_data_with_cleanup.
9535
4819b3f8
PA
95362013-02-14 Pedro Alves <palves@redhat.com>
9537
9538 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9539 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9540 lval_memory.
9541
1773c82c
HAQ
95422013-02-14 Pedro Alves <pedro@codesourcery.com>
9543 Hafiz Abid Qadeer <abidh@codesourcery.com>
9544
9545 * tracepoint.h (validate_trace_state_variable_name): Declare.
9546 * tracepoint.c (validate_trace_state_variable_name): New.
9547 (trace_variable_command): Parse the trace state variable's name
9548 without using parse_expression. Do several validations.
9549 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9550 trace state variable's name with parse_expression. Validate it.
9551
53778a97
YQ
95522013-02-14 Yao Qi <yao@codesourcery.com>
9553
9554 * infcmd.c (breakpoint_proceeded): Remove it.
9555
7b3ae3a6
YQ
95562013-02-14 Yao Qi <yao@codesourcery.com>
9557
9558 * tracepoint.c (end_actions_pseudocommand): Make it static.
9559 (while_stepping_pseudocommand): Likewise.
9560 * tracepoint.h (end_actions_pseudocommand): Remove the
9561 declaration.
9562 (while_stepping_pseudocommand): Likewise.
9563
64580925
YQ
95642013-02-14 Yao Qi <yao@codesourcery.com>
9565
9566 * cli/cli-decode.c (help_cmd): Remove the declaration of
9567 "cmdlist".
9568 (help_all): Likewise.
9569
26cb8b7c
PA
95702013-02-13 Pedro Alves <palves@redhat.com>
9571
9572 * amd64-linux-nat.c (update_debug_registers_callback):
9573 Update comment.
9574 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9575 iterate_over_lwps.
9576 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9577 i386_debug_reg_state.
9578 (amd64_linux_new_fork): New function.
9579 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9580 linux_nat_new_fork hook, and i386_forget_process as
9581 linux_nat_forget_process hook.
9582 * i386-linux-nat.c (update_debug_registers_callback):
9583 Update comment.
a8256ea1 9584 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9585 iterate_over_lwps.
9586 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9587 i386_debug_reg_state.
9588 (i386_linux_new_fork): New function.
9589 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9590 linux_nat_new_fork hook, and i386_forget_process as
9591 linux_nat_forget_process hook.
9592 * i386-nat.c (i386_init_dregs): Delete.
9593 (i386_inferior_data, struct i386_inferior_data):
9594 Delete.
9595 (struct i386_process_info): New.
9596 (i386_process_list): New global.
9597 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9598 New functions.
9599 (i386_inferior_data_get): Delete.
9600 (i386_process_info_get): New function.
9601 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9602 (i386_forget_process): New function.
9603 (i386_cleanup_dregs): Rewrite.
9604 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9605 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9606 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9607 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9608 to i386_debug_reg_state.
9609 (i386_use_watchpoints): Don't register inferior data.
9610 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9611 adjust comment.
9612 (i386_forget_process): Declare.
9613 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9614 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9615 New static globals.
9616 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9617 (add_initial_lwp): New, factored out from ...
9618 (add_lwp): ... this. Don't check the number of lwps before
9619 calling linux_nat_new_thread.
9620 (linux_nat_iterate_watchpoint_lwps): Delete.
9621 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9622 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9623 forks and vforks.
9624 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9625 initial lwp.
9626 (linux_nat_kill, linux_nat_mourn_inferior): Call
9627 linux_nat_forget_process.
9628 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9629 (linux_nat_forget_process): New functions.
9630 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9631 type.
9632 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9633 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9634 types.
9635 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9636 (linux_nat_forget_process): New declarations.
9637
9638 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9639 (amd64fbsd_mourn_inferior): New function.
9640 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9641 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9642
5befea72
MS
96432013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9644
55015247
YQ
9645 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9646 Adding _().
5befea72 9647
1d3ffd6b
MS
96482013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9649
9650 * aarch64-linux-nat.c (debug_reg_change_callback)
9651 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9652 %s and phex().
9653
6eb04473
MS
96542013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9655
9656 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9657 with LONGEST.
9658
a016fc87
HAQ
96592013-02-13 Pedro Alves <palves@redhat.com>
9660 Hafiz Abid Qadeer <abidh@codesourcery.com>
9661
9662 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9663
e234dfaf
TT
96642013-02-12 Tom Tromey <tromey@redhat.com>
9665
9666 PR symtab/11464:
9667 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9668 NAME return.
9669 (classify_inner_name): Remove 'first_name' argument, add
9670 'context'. Remove unused variable.
9671 (yylex): Explicitly maintain the context type. Exit loop earlier
9672 if NAME result is seen.
9673
0b1afbb3
PA
96742013-02-12 Pedro Alves <palves@redhat.com>
9675
9676 * amd64-darwin-tdep.c: Add (C) after Copyright.
9677 * cli/cli-cmds.h: Ditto.
9678 * cli/cli-decode.c: Ditto.
9679 * cli/cli-decode.h: Ditto.
9680 * cli/cli-dump.c: Ditto.
9681 * cli/cli-dump.h: Ditto.
9682 * cli/cli-interp.c: Ditto.
9683 * cli/cli-logging.c: Ditto.
9684 * cli/cli-script.c: Ditto.
9685 * cli/cli-script.h: Ditto.
9686 * cli/cli-setshow.c: Ditto.
9687 * cli/cli-setshow.h: Ditto.
9688 * cli/cli-utils.c: Ditto.
9689 * cli/cli-utils.h: Ditto.
9690 * config/alpha/nm-osf3.h: Ditto.
9691 * config/djgpp/djconfig.sh: Ditto.
9692 * config/i386/nm-fbsd.h: Ditto.
9693 * config/i386/nm-i386gnu.h: Ditto.
9694 * config/nm-linux.h: Ditto.
9695 * config/nm-nto.h: Ditto.
9696 * config/rs6000/nm-rs6000.h: Ditto.
9697 * config/sparc/nm-sol2.h: Ditto.
9698 * darwin-nat-info.c: Ditto.
9699 * dfp.c: Ditto.
9700 * dfp.h: Ditto.
9701 * gdb-demangle.h: Ditto.
9702 * i386-darwin-nat.c: Ditto.
9703 * i386-darwin-tdep.c: Ditto.
9704 * linux-fork.h: Ditto.
9705 * m32c-tdep.c: Ditto.
9706 * microblaze-linux-tdep.c: Ditto.
9707 * microblaze-rom.c: Ditto.
9708 * microblaze-tdep.c: Ditto.
9709 * microblaze-tdep.h: Ditto.
9710 * mips-linux-tdep.h: Ditto.
9711 * ppc-ravenscar-thread.c: Ditto.
9712 * ppc-ravenscar-thread.h: Ditto.
9713 * prologue-value.c: Ditto.
9714 * prologue-value.h: Ditto.
9715 * ravenscar-thread.c: Ditto.
9716 * ravenscar-thread.h: Ditto.
9717 * sparc-ravenscar-thread.c: Ditto.
9718 * sparc-ravenscar-thread.h: Ditto.
9719 * tilegx-linux-tdep.c: Ditto.
9720 * unwind_stop_reasons.def: Ditto.
9721 * windows-nat.h: Ditto.
9722 * xtensa-linux-tdep.c: Ditto.
9723 * xtensa-xtregs.c: Ditto.
9724 * regformats/regdat.sh: Ditto.
9725 * regformats/regdef.h: Ditto.
9726
6c01dd94
PA
97272013-02-12 Pedro Alves <palves@redhat.com>
9728
9729 * break-catch-sig.c: Update copyright years.
9730
b65a2bd9
SCR
97312013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9732
9733 Add support for a destructor for ui_out data and use it to
9734 provide a ui_out destructor.
9735 * ui-out.h: Declare the new ui_out destructor.
9736 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9737 * ui-out.c (default_data_destroy): Add a default data destructor
9738 which does nothing.
9739 (default_ui_out_impl): Set the new data_destroy field to
9740 default_data_destroy
9741 (uo_data_destroy): Local function which invokes the data
9742 destructor if present.
9743 (clear_table): Local function which clears the table data of a
9744 ui_out object.
9745 (ui_out_destroy): Public function which frees a ui_out object.
9746 (ui_out_table_end): Use the new clear_table function.
9747 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9748 NULL.
9749 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9750 to NULL.
9751
c2792f5a
DE
97522013-02-11 Doug Evans <dje@google.com>
9753
9754 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9755 (printf_decfloat): New function. Broken out from ui_printf.
9756 Remove unnecessary code to shift the entire format string down.
9757 (printf_pointer): New function.
9758 (ui_printf): Code to print C strings, wide C strings, decfloats,
9759 and pointers moved to separate functions.
9760
d9e98382
SDJ
97612013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9762
9763 * valops.c (value_assign): Handling bitfield offset in
9764 `lval_internalvar_component' case.
9765
4ff3ce77
DE
97662013-02-08 Doug Evans <dje@google.com>
9767
9768 * common/format.c (parse_format_string): Fix whitespace.
9769
901900c4
MGD
97702013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9771
9772 * stack.c (return_command): Work around uninitialized variable
9773 warning.
9774
b5dbc8d4
YZ
97752013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9776
9777 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9778 number of the registers from 36 to 34.
9779
51d66578
MS
97802013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9781
9782 * NEWS: Mention new AArch64 native and target support.
9783
176b1c95
MS
97842013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9785
9786 * MAINTAINERS (Write After Approval): Add myself.
9787
9d19df75
MS
97882013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9789 Marcus Shawcroft <marcus.shawcroft@arm.com>
9790 Nigel Stephens <nigel.stephens@arm.com>
9791 Yufeng Zhang <yufeng.zhang@arm.com>
9792
9793 * aarch64-linux-nat.c: New file.
9794 * config/aarch64/linux.mh: New file.
9795 * configure.host: Add AArch64.
9796 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9797
7e1e0340
DE
97982013-02-07 Doug Evans <dje@google.com>
9799
9800 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9801 disassemble command.
9802
45e25a36
MS
98032013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9804
9805 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9806 set_gdbarch_fetch_tls_load_module_address.
9807
bbfdfe1c
DM
98082013-02-06 David S. Miller <davem@davemloft.net>
9809
9810 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9811 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9812 * value.c (struct_return_convention): New function.
9813 (using_struct_return): Implement in terms of struct_return_convention.
9814 * value.h (struct_return_convention): Declare.
9815 * stack.c (return_command): Allow successful overriding of the return
9816 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9817
bc9abe4a
TT
98182013-02-06 Tom Tromey <tromey@redhat.com>
9819
9820 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9821 outside of TRY_CATCH.
9822
134a2066
YQ
98232013-02-06 Yao Qi <yao@codesourcery.com>
9824
9825 * mi/mi-interp.c: Include "tracepoint.h".
9826 (mi_tsv_modified): Declare.
9827 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9828 (mi_interpreter_init): Call observer_attach_tsv_modified.
9829 (mi_tsv_modified): New.
9830 (mi_tsv_created, mi_tsv_deleted): Update.
9831 * tracepoint.c (trace_variable_command): Call
9832 observer_notify_tsv_modified if the initial value of tsv is
9833 changed.
9834 (delete_trace_state_variable): Call
9835 observer_notify_tsv_deleted earlier.
9836 (trace_variable_command): Caller update.
9837 (create_tsv_from_upload): Likewise.
9838 * observer.sh: Declare "struct trace_state_variable".
9839
9840 * NEWS: Mention the new MI notification "=tsv-modified".
9841
59be2b6a
DE
98422013-02-05 Doug Evans <dje@google.com>
9843
9844 * completer.c (location_completer): Fix typo in comment.
9845
d30113d4
JK
98462013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9847
9848 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9849 ADDRESS sorted.
9850
14ac654f
MS
98512013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9852
9853 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9854 Refactor if statement to avoid trailing || operator.
9855
543bf33d
AT
98562013-02-05 Andreas Tobler <andreast@fgznet.ch>
9857
9858 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9859
dc18f110
AT
98602013-02-04 Andreas Tobler <andreast@fgznet.ch>
9861
9862 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9863 * configure.host: Add powerpc*-*-freebsd* target.
9864 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9865 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9866 * config/powerpc/fbsd.mh: New file.
9867
b3ac9c77
SDJ
98682013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9869 Denys Vlasenko <dvlasenk@redhat.com>
9870 Pedro Alves <palves@redhat.com>
9871
9872 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9873 (struct elf_internal_linux_prpsinfo): Forward declare.
9874 * gdbarch.h, gdbarch.c: Regenerate.
9875 * linux-tdep.c: Include `cli/cli-utils.h'.
9876 (linux_fill_prpsinfo): New function.
9877 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9878 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9879 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9880 depending on gdbarch pointer bitness.
9881 * ppc-linux-tdep.c: Include elf-bfd.h.
9882 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9883 on 32-bit.
9884
176eb98c
MS
98852013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9886 Marcus Shawcroft <marcus.shawcroft@arm.com>
9887 Nigel Stephens <nigel.stephens@arm.com>
9888 Yufeng Zhang <yufeng.zhang@arm.com>
9889
9890 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9891
cf0dbd6f
MS
98922013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9893 Marcus Shawcroft <marcus.shawcroft@arm.com>
9894 Nigel Stephens <nigel.stephens@arm.com>
9895 Yufeng Zhang <yufeng.zhang@arm.com>
9896
9897 * aarch64-newlib-tdep.c: New file.
9898 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9899 aarch64*-*-elf.
9900 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9901 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9902 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9903 * osabi.c (gdb_osabi_names): Add "Newlib".
9904
1ae3db19
MS
99052013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9906 Marcus Shawcroft <marcus.shawcroft@arm.com>
9907 Nigel Stephens <nigel.stephens@arm.com>
9908 Yufeng Zhang <yufeng.zhang@arm.com>
9909
9910 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9911 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9912 * aarch64-linux-tdep.c: New file.
9913 * aarch64-linux-tdep.h: New file.
9914 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9915 * configure.tgt: Add aarch64-none-linux-gnu.
9916
07b287a0
MS
99172013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9918 Marcus Shawcroft <marcus.shawcroft@arm.com>
9919 Nigel Stephens <nigel.stephens@arm.com>
9920 Yufeng Zhang <yufeng.zhang@arm.com>
9921
9922 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9923 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9924 (ALLDEPFILES): Add aarch64-tdep.c.
9925 * aarch64-tdep.c: New file.
9926 * aarch64-tdep.h: New file.
9927 * configure.tgt: Add AArch64.
9928 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9929 (aarch64-expedite): New definition.
9930 * features/aarch64-core.xml: New file.
9931 * features/aarch64-fpu.xml: New file.
9932 * features/aarch64-without-fpu.c: New file (generated).
9933 * features/aarch64-without-fpu.xml: New file.
9934 * features/aarch64.c: New file (generated).
9935 * features/aarch64.xml: New file.
9936 * regformats/aarch64-without-fpu.dat: New file (generated).
9937 * regformats/aarch64.dat: New file (generated).
9938
0f1b18ab
JK
99392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9940
9941 * contrib/expect-read1.c: New file.
9942 * contrib/expect-read1.sh: New file.
9943
233d95b5
JK
99442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9945
9946 * dwarf2read.c (file_file_name): New function with code from
9947 file_full_name.
9948 (file_full_name): Move most of the code to file_file_name.
9949 (macro_start_file): Rename variable full_name to file_name and use
9950 file_file_name for it. Add comp_dir parameter to new_macro_table.
9951 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9952 macro_source_file->filename access by macro_source_fullname call.
9953 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9954 caller.
9955 * macrotab.c (struct macro_table): New field comp_dir.
9956 (macro_include): New variables link_fullname and source_fullname.
9957 Replace any macro_source_file->filename access by macro_source_fullname
9958 call.
9959 (macro_lookup_inclusion): Remove the partial filenames checking code.
9960 (check_for_redefinition): New variables source_fullname and
9961 found_key_fullname. Replace any macro_source_file->filename access by
9962 macro_source_fullname call.
9963 (macro_undef): New variables source_fullname and key_fullname. Replace
9964 any macro_source_file->filename access by macro_source_fullname call.
9965 (macro_lookup_definition): New variables retval and source_fullname.
9966 Replace any macro_source_file->filename access by macro_source_fullname
9967 call.
9968 (foreach_macro): New variable key_fullname. Replace any
9969 macro_source_file->filename access by macro_source_fullname call.
9970 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9971 macro_source_file->filename access by macro_source_fullname call.
9972 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9973 (macro_source_fullname): New function.
9974 * macrotab.h (struct macro_source_file): Extent the filename field
9975 comment.
9976 (new_macro_table): New parameter comp_dir, add a comment for it.
9977 (macro_source_fullname): new declaration.
9978
da235a7c
JK
99792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9980
9981 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9982 this_real_name to outer block. Use it also for
9983 compare_filenames_for_search.
9984 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9985 with dw2_get_real_path for file_matcher, considering also
9986 BASENAMES_MAY_DIFFER.
9987 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9988
fbd9ab74
JK
99892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9990
9991 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9992 to the file_matcher parameter. Pass 0 to it.
9993 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9994 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9995 NULL psymtab_to_fullname result.
9996 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9997 an expected filename instead.
9998 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9999 file_matcher parameter. Call also psymtab_to_fullname, after newly
10000 considering BASENAMES_MAY_DIFFER.
10001 * source.c (rewrite_source_path): Remove static.
10002 * source.h (rewrite_source_path): New declaration.
10003 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10004 the expand_symtabs_matching field. Comment it.
10005 * symtab.c (file_matches): New function comment. Add parameter
10006 basenames, implement it.
10007 (search_symbols_file_matches): Add basenames parameter. Update the
10008 file_matches caller.
10009 (search_symbols): Match FILES also against symtab_to_fullname.
10010 Optimize it for BASENAMES_MAY_DIFFER.
10011
56d397a3
JK
100122013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 * source.c (print_source_lines_base): Print for TUI also "fullname".
10015 * tui/tui-data.c (init_content_element): Change tui_locator_element
10016 field to full_name.
10017 * tui/tui-data.h (struct tui_locator_element): Likewise.
10018 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10019 tui_update_locator_filename calls to tui_update_locator_fullname.
10020 Replace symtab->filename refererence by symtab_to_fullname call.
10021 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10022 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10023 field to full_name. Replace symtab->filename refererence by
10024 symtab_to_fullname call.
10025 (tui_show_symtab_source): Rename parameter to fullname. Change
10026 tui_locator_element field to full_name.
10027 * tui/tui-stack.c: Include source.h.
10028 (tui_set_locator_filename): Rename the declaration to ...
10029 (tui_set_locator_fullname): ... here. Rename its parameter to
10030 fullname, updates its comment.
10031 (tui_set_locator_info): Rename its parameter to fullname.
10032 (tui_set_locator_filename): Rename the definition to ...
10033 (tui_set_locator_fullname): ... here. Rename its parameter to
10034 fullname, updates its comment. Change tui_locator_element field to
10035 full_name.
10036 (tui_set_locator_info): Rename its parameter to fullname.
10037 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10038 (tui_update_locator_filename): Rename to ...
10039 (tui_update_locator_fullname): ... here. Rename callee to
10040 tui_set_locator_fullname.
10041 (tui_show_frame_info): Replace symtab->filename refererence by
10042 symtab_to_fullname call.
10043 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10044 (tui_update_locator_fullname): ... here.
10045 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10046 tui_update_locator_fullname. Replace symtab->filename refererence by
10047 symtab_to_fullname call.
10048 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10049 Rename the callee to tui_update_locator_fullname.
10050 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10051
05cba821
JK
100522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10055 by symtab_to_filename_for_display calls.
10056 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10057 (clear_command): New variable sal_fullname, initialize it. Replace
10058 compare_filenames_for_search by filename_cmp with sal_fullname.
10059 (say_where, update_static_tracepoint): Replace symtab->filename
10060 refererences by symtab_to_filename_for_display calls.
10061 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10062 Likewise.
10063 * dwarf2read.c: Include source.h.
10064 (fixup_go_packaging): Replace symtab->filename refererences by
10065 symtab_to_filename_for_display calls.
10066 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10067 Replace symtab->filename refererences by symtab_to_filename_for_display
10068 calls.
10069 (create_sals_line_offset, convert_linespec_to_sals): New variable
10070 fullname, initialize it, replace symtab->filename reference by the
10071 variable.
10072 * linux-fork.c: Include source.h.
10073 (info_checkpoints_command): Replace symtab->filename refererences by
10074 symtab_to_filename_for_display calls.
10075 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10076 by symtab_to_filename_for_display calls.
10077 * mdebugread.c: Include source.h.
10078 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10079 symtab_to_filename_for_display calls.
10080 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10081 (mi_cmd_file_list_exec_source_files): Likewise.
10082 * printcmd.c: Include source.h.
10083 (build_address_symbolic): Replace symtab->filename refererences by
10084 symtab_to_filename_for_display calls.
10085 * psymtab.c (partial_map_symtabs_matching_filename)
10086 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10087 with psymtab_to_fullname.
10088 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10089 by symtab_to_filename_for_display calls.
10090 (stpy_get_filename): New variable filename, initialize it, use instead
10091 of symtab->filename refererences.
10092 (salpy_str): Make variable filename const char *. Replace
10093 symtab->filename refererences by symtab_to_filename_for_display calls.
10094 * skip.c: Include source.h and filenames.h.
10095 (skip_file_command): Remove const from the symtab variable. Replace
10096 symtab->filename refererences by symtab_to_fullname call.
10097 (function_name_is_marked_for_skip): New variables searched_for_fullname
10098 and fullname. Use them to search also with symtab's fullname.
10099 * source.c (find_source_lines): Replace symtab->filename refererences
10100 by symtab_to_filename_for_display calls.
10101 (print_source_lines_base): New variable filename, use it instead of
10102 symtab->filename. Replace symtab->filename refererences by
10103 symtab_to_filename_for_display calls.
10104 (line_info, forward_search_command): Replace symtab->filename
10105 refererences by symtab_to_filename_for_display calls.
10106 (reverse_search_command): Replace symtab->filename refererences by
10107 symtab_to_filename_for_display calls. New variable filename for it.
10108 * stack.c (frame_info): Likewise.
10109 * symmisc.c: Include source.h.
10110 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10111 (maintenance_info_symtabs): Replace symtab->filename refererences by
10112 symtab_to_filename_for_display calls.
10113 * symtab.c (iterate_over_some_symtabs): Call
10114 compare_filenames_for_search also with symtab_to_fullname.
10115 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10116 symtab->filename refererences by symtab_to_filename_for_display calls.
10117 (find_line_symtab): Replace symtab->filename refererences by
10118 symtab_to_filename_for_display calls.
10119 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10120 (print_symbol_info): Make the last parameter const char *. New
10121 variable s_filename. Use it in the function.
10122 (symtab_symbol_info): Make the last_filename variable const char *.
10123 Replace symtab->filename refererences by symtab_to_filename_for_display
10124 calls.
10125 (rbreak_command): New variable fullname. Use it. Replace
10126 symtab->filename refererence by symtab_to_filename_for_display call.
10127 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10128 (print_one_static_tracepoint_marker): Replace symtab->filename
10129 refererences by symtab_to_filename_for_display calls.
10130 * tui/tui-source.c (tui_set_source_content): New variables filename and
10131 s_filename. Replace symtab->filename refererences by this variable.
10132 Replace other symtab->filename refererences by
10133 symtab_to_filename_for_display calls.
10134
1b56eb55
JK
101352013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10136 Jan Kratochvil <jan.kratochvil@redhat.com>
10137
10138 Add a new variable that controls a way in which filenames are
10139 displayed.
10140 * NEWS (set filename-display): New entry.
10141 * source.c (filename_display_basename, filename_display_relative)
10142 (filename_display_absolute, filename_display_kind_names)
10143 (filename_display_string, show_filename_display_string)
10144 (symtab_to_filename_for_display): New.
10145 (_initialize_source): Added initialization of 'filename-display'
10146 variable.
10147 * source.h (symtab_to_filename_for_display): Added declaration.
10148 * stack.c (print_frame): Added new variable and calling of a new
10149 function and condition with this variable. Changed third argument of
10150 calling of a function.
10151
aa079c93
JK
101522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10153
10154 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10155 Rename field reference filename to fullname.
10156 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10157 fullname. New comment for it.
10158 * tui/tui-source.c (tui_set_source_content): Rename field reference
10159 filename to fullname. Initialize field by symtab_to_fullname now.
10160 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10161 reference filename to fullname. Use symtab_to_fullname during
10162 comparison.
10163
652a8996
JK
101642013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10165
10166 Code cleanup.
10167 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10168 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10169 filename to fullname. Rename variable this_name to this_fullname.
10170 Lowercase FILENAME_CMP call.
10171 (dw2_find_symbol_file): New comment for the returned string.
10172 (dwarf2_gdb_index_functions): Rename the function to
10173 dw2_expand_symtabs_with_fullname.
10174 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10175 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10176 fullname.
10177 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10178 * symfile.h (struct quick_symbol_functions): Rename field
10179 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10180 parameter filename to fullname. Document returned string meaning for
10181 find_symbol_file.
10182 * symtab.c (find_line_symtab): Rename the called function to
10183 expand_symtabs_with_fullname.
10184
af529f8f
JK
101852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10186
10187 Code cleanup.
10188 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10189 call of filename_cmp with compare_filenames_for_search.
10190 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10191 is_abs, unify the call of FILENAME_CMP with
10192 compare_filenames_for_search. New gdb_asserts for real_path and name.
10193 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10194 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10195 * symfile.h (struct quick_symbol_functions): Extend the comment for
10196 map_symtabs_matching_filename.
10197 * symtab.c (compare_filenames_for_search): Remove the function comment
10198 relative path requirement. Handle absolute filenames, with a comment.
10199 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10200 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10201 real_path and name. Unify the call of compare_filenames_for_search
10202 with FILENAME_CMP.
10203 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10204
2f202fde
JK
102052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 Code cleanup.
10208 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10209 source_file references by symtab field references. Remove variables
10210 sal and fullname.
10211 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10212 (clear_command, say_where): Replace bp_location field source_file
10213 references by symtab field references.
10214 (bp_location_dtor): Remove the source_file reference.
10215 (update_static_tracepoint): Replace bp_location field source_file
10216 references by symtab field references.
10217 (breakpoint_free_objfile): New function.
10218 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10219 Replace the field source_file by field symtab, extend its comment.
10220 (breakpoint_free_objfile): New declaration.
10221 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10222 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10223 field source_file references by symtab field references.
10224
f5b95b50
JK
102252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 Replace xfullpath calls by gdb_realpath calls.
10228 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10229 function comment.
10230 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10231 Remove it from the iterate_over_some_symtabs call.
10232 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10233 Remove it from the dw2_map_expand_apply calls, remove a block handling
10234 it.
10235 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10236 Remove it from the iterate_over_some_symtabs call.
10237 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10238 Remove it from the partial_map_expand_apply calls, remove a block
10239 handling it. Drop gdb_realpath call and cleanups from the real_path
10240 handling.
10241 * source.c (openp): Drop the comment part about xfullpath. Replace
10242 xfullpath calls by gdb_realpath calls.
10243 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10244 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10245 from method map_symtabs_matching_filename and its comment.
10246 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10247 gdb_realpath call.
10248 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10249 remove it also from the function comment, remove a block handling it.
10250 Drop gdb_realpath call and cleanups from the real_path handling.
10251 (iterate_over_symtabs): Drop variable full_path and its use.
10252 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10253 * utils.c (xfullpath): Remove.
10254 * utils.h (xfullpath): Remove.
10255
d78489bf
AT
102562013-02-01 Andreas Tobler <andreast@fgznet.ch>
10257
10258 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10259 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10260 (ALLDEPFILES): Add ppc64-tdep.c.
10261 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10262 ppc64-tdep.o to gdb_target_obs.
10263 * ppc64-tdep.h: New file.
10264 * ppc64-tdep.c: New file.
10265 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10266 ppc-linux-tdep.c to here.
10267 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10268 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10269 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10270 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10271 from ppc-linux-tdep.c to here.
10272 (ppc64_convert_from_func_ptr_addr): Rename from
10273 ppc64_linux_convert_from_func_ptr_addr to
10274 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10275 here.
10276 * rs6000-tdep.c:
10277 (read_insn): Move from ppc-linux-tdep.c to here.
10278 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10279 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10280 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10281 Removed above functions.
10282 (ppc_linux_init_abi): Adjust.
10283
8db60374
AR
102842013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10285
10286 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10287
f2e5f4ce
AR
102882013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10289
10290 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10291
c1f7d745
PA
102922013-02-01 Pedro Alves <palves@redhat.com>
10293
10294 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10295 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10296
8a92335b
JK
102972013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10298
10299 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10300 files with no separate debug info.
10301 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10302 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10303 only for files with no separate debug info.
10304
8eacb197
TT
103052013-01-31 Tom Tromey <tromey@redhat.com>
10306
10307 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10308 change type.
10309 (struct jit_program_space_data): Rename from jit_inferior_data.
10310 Update comments.
10311 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10312 Change return type. Attach data to program space.
10313 (jit_program_space_data_cleanup): Rename from
10314 jit_inferior_data_cleanup; change argument type.
10315 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10316 change type.
10317 (jit_register_code): Update.
10318 (jit_update_inferior_cache): Remove.
10319 (jit_breakpoint_deleted): Get jit data from the location's program
10320 space.
10321 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10322 'ps_data', change type.
10323 (jit_inferior_init, jit_breakpoint_re_set_internal)
10324 (jit_event_handler): Update.
10325 (free_objfile_data): Get data from objfile's program space.
10326 (_initialize_jit): Update.
10327
f25c0135
TT
103282013-01-31 Tom Tromey <tromey@redhat.com>
10329
10330 PR gdb/13987:
10331 * jit.c (struct jit_inferior_data) <cached_code_address,
10332 jit_breakpoint>: New fields.
10333 (jit_breakpoint_re_set_internal): Fix logging. Only create
10334 breakpoint if cached address has changed.
10335 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10336 functions.
10337 (_initialize_jit): Register breakpoint deleted observer.
10338
974a734b
AR
103392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10340
10341 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10342 (save_infcall_suspend_state): Ifdef out unused inf.
10343 (restore_infcall_suspend_state): Ifdef out unused inf.
10344 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10345 (jit_frame_sniffer): Remove unused inf_data.
10346
df54f8eb
AR
103472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10348
10349 * c-exp.y (classify_inner_name): Remove unused type.
10350 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10351 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10352 need_escape.
10353 (c_get_string): Remove unused kind.
10354 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10355
5799c0b9
AR
103562013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10357
10358 * charset.c (intermediate_encoding): Remove unused i.
10359 * completer.c (signal_completer): Remove unused i.
10360 * continuations.c (discard_my_continuations_1): Remove unused
10361 continuation_ptr.
10362 * corelow.c (core_close): Remove unuseD name.
10363 (get_core_siginfo): Remove unused pid.
10364 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10365 i, cps.
10366 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10367 (loclist_describe_location): Remove unused first.
10368 * event-top.c (command_line_handler): Remove unused got_eof.
10369 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10370 (resize_section_table): Remove unused old_value.
10371 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10372 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10373 * i386-tdep.c (i386_process_record): Remove unused rex.
10374 * infcmd.c (get_return_value): Remove unused uiout.
10375 * jv-lang.c (type_from_class): Remove unused is_array.
10376 * jv-valprint.c (java_val_print): Remove unused i.
10377 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10378 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10379 * m2-typeprint.c (m2_print_type): Remove unused code.
10380 * macroexp.c (get_character_constant): Remove unused body_start.
10381 (macro_stringify): Remove unused result.
10382 * objc-lang.c (find_methods): Remove unused gdbarch.
10383 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10384 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10385 * stack.c (print_frame_args): Remove unused summary.
10386 * thread.c (thread_apply_command): Remove unused p.
10387 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10388 * valops.c (search_struct_method): Remove unused skip.
10389 * valprint.c (generic_val_print): Remove unused byte_order.
10390 * varobj.c (varobj_update): Remove unused changed.
10391 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10392 (alias_command): Remove unused c.
10393 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10394 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10395 format.
10396 (mi_cmd_data_write_memory): Remove unused word_format.
10397 (mi_cmd_data_write_memory_bytes): Remove unused r.
10398 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10399 p_start, p_end.
10400 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10401 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10402 line_width.
10403
c656bca5
AR
104042013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10405
10406 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10407 * symtab.c (iterate_over_symtabs): Remove unused s.
10408 (find_pc_sect_symtab): Remove unused pspAce.
10409 (find_pc_sect_line): Remove unused alt_symtab.
10410 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10411 (completion_list_add_name): Remove unused newsize.
10412
7078baeb
TT
104132013-01-31 Tom Tromey <tromey@redhat.com>
10414
10415 PR c++/14998:
10416 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10417 TYPE_CODE_FUNC.
10418
c2e8b827
AR
104192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10420
10421 * target.c (target_read_string): Remove unused origlen.
10422
0e43993a
AR
104232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10424
10425 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10426 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10427 * ax-general.c (ax_print): Remove unused is_float.
10428 * blockframe.c (block_innermost_frame): Remove unused start, end.
10429 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10430
765a97ab
AR
104312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10432
10433 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10434 (svr4_read_so_list): Remove unused lmo.
10435 * solib-target.c (solib_target_relocate_section_addresses): Remove
10436 unused flags.
10437
a99dad3d
TT
104382013-01-30 Tom Tromey <tromey@redhat.com>
10439
10440 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10441
3bff1ecd
TT
104422013-01-30 Tom Tromey <tromey@redhat.com>
10443
10444 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10445 * utils.c (gnu_debuglink_crc32): Remove.
10446 * utils.h (gnu_debuglink_crc32): Don't declare.
10447
7d455152
TT
104482013-01-30 Tom Tromey <tromey@redhat.com>
10449
10450 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10451 (read_structure_type, read_enumeration_type): Remove cast.
10452
abee88f2
TT
104532013-01-30 Tom Tromey <tromey@redhat.com>
10454
10455 * dwarf2read.c (read_namespace_type): Remove cast.
10456 (read_typedef): Likewise.
10457
8d9878a4
TT
104582013-01-29 Tom Tromey <tromey@redhat.com>
10459
10460 * dwarf2read.c (free_dwo_file): Remove assert.
10461
a543d2a9
TT
104622013-01-29 Tom Tromey <tromey@redhat.com>
10463
10464 * value.c (deprecated_set_value_modifiable): Remove.
10465 * value.h (deprecated_set_value_modifiable): Remove.
10466
bed911e5
DE
104672013-01-28 Doug Evans <dje@google.com>
10468
10469 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10470 to addresses from dwo files.
10471
28c64fc2
SCR
104722013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10473
10474 * valops.c (find_overload_match): Remove unused argument 'lax'.
10475 * value.h: Remove unused argument 'lax' from the declaration of
10476 find_overload_match.
10477 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10478 to find_overload_match.
10479 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10480 argument to find_overload_match.
10481
4d4ec4e5
TT
104822013-01-25 Tom Tromey <tromey@redhat.com>
10483
10484 * dwarf2read.c (processing_has_namespace_info): Remove.
10485 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10486 (process_die, read_func_scope, dwarf2_start_symtab)
10487 (new_symbol_full): Update.
10488
195a3f6c
TT
104892013-01-25 Tom Tromey <tromey@redhat.com>
10490
10491 * cp-namespace.c (cp_set_block_scope): Remove.
10492 * cp-support.h (cp_set_block_scope): Remove.
10493 * dbxread.c: Include block.h.
10494 (cp_set_block_scope): New function.
10495 (process_one_symbol): Update.
10496 * dwarf2read.c (read_func_scope): Use block_set_scope.
10497
8ba0730a
PA
104982013-01-25 Pedro Alves <palves@redhat.com>
10499
10500 * remote.c (add_current_inferior_and_thread): Tweak comment.
10501
12aaed36
TT
105022013-01-25 Tom Tromey <tromey@redhat.com>
10503
10504 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10505 (cp_add_using_directive): Add 'copy_names' argument.
10506 * cp-support.h (cp_add_using_directive): Update.
10507 (struct using_direct) <import_src, import_dest, alias,
10508 declaration>: Now const.
10509 * dwarf2read.c (read_import_statement): Use obconcat.
10510 Don't copy names passed to cp_add_using_directive.
10511
7fc75ca7
TT
105122013-01-25 Tom Tromey <tromey@redhat.com>
10513
10514 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10515
3405876a
PA
105162013-01-25 Pedro Alves <palves@redhat.com>
10517
10518 * remote.c (stop_reply_extract_thread): New.
10519 (add_current_inferior_and_thread): New parameter 'wait_status'.
10520 Handle it.
10521 (remote_start_remote): Pass wait status to
10522 add_current_inferior_and_thread.
10523 (extended_remote_run): Update comment.
10524 (extended_remote_create_inferior_1): Pass wait status to
10525 add_current_inferior_and_thread.
10526
8954db33
AB
105272013-01-25 Andrew Burgess <aburgess@broadcom.com>
10528 Ulrich Weigand <uweigand@de.ibm.com>
10529
10530 * valarith.c (value_vector_widen): New function for replicating a
10531 scalar into a vector.
10532 (value_binop): Use value_vector_widen to widen scalar to vector
10533 rather than casting, this better matches gcc C behaviour.
10534 * valops.c (value_casst): Update logic for casting between vector
10535 types, and for casting from scalar to vector, try to match gcc C
10536 behaviour.
10537 * value.h (value_vector_widen): Declare.
10538 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10539 function, handle special case for casting scalar to vector.
10540 (opencl_relop): Use opencl_value_cast.
10541 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10542 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10543 in order to use opencl_value_cast.
10544
843b20dc
YQ
105452013-01-25 Yao Qi <yao@codesourcery.com>
10546
10547 * event-loop.c: Include "queue.h".
10548 (gdb_event_p): New typedef.
10549 (DECLARE_QUEUE_P): Use.
10550 (DEFINE_QUEUE_P): Use.
10551 (async_queue_event): Remove.
10552 (gdb_event_xfree): New.
10553 (initialize_event_loop): New.
10554 (process_event): Use QUEUE macros.
10555 (event_queue): Remove.
10556 (gdb_wait_for_event): Caller update.
10557 (check_async_event_handlers): Likewise.
10558 (poll_timers): Likewise.
10559 * event-loop.h (initialize_event_loop): Declare.
10560 * event-loop.c (gdb_event_xfree): New.
10561 * top.c (gdb_init): Call initialize_event_loop.
10562
20ad8856
YQ
105632013-01-25 Yao Qi <yao@codesourcery.com>
10564
10565 * event-loop.c (async_queue_event): Remove one parameter
10566 'position'. Remove code handling 'position' == TAIL.
10567 (gdb_wait_for_event): Caller update.
10568 (check_async_event_handlers): Caller update.
10569 (poll_timers): Caller update.
10570 * event-loop.h (enum queue_position): Remove.
10571
3bbbe775
MK
105722013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10573
10574 * MAINTAINERS: Update my email.
10575
a87d9ac4
YQ
105762013-01-25 Yao Qi <yao@codesourcery.com>
10577
10578 * main.c (print_gdb_help): Remove "--epoch" from the help
10579 message.
10580
2077afdd
TD
105812013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10582
10583 * symtab.c (skip_prologue_using_sal): Consider a file
10584 change the same as an increased line number
10585
63da4037
TD
105862013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10587
30e8ee25 10588 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10589
45e6c716
TT
105902013-01-24 Tom Tromey <tromey@redhat.com>
10591
10592 * ada-lang.h (ada_decode_symbol): Make return type const.
10593 * ada-lang.c (ada_decode_symbol): Likewise.
10594
b1ae631a
DE
105952013-01-23 Doug Evans <dje@google.com>
10596
10597 * linespec.c (find_linespec_symbols): Make static.
10598
55a78401
SDJ
105992013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10600
10601 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10602 type on float conversion for complex type.
10603
bea883fd
SCR
106042013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10605
10606 Add a new class gdb.Architecture which exposes GDB's
10607 internal representation of architecture via GDB Python API.
10608 * Makefile.in: Add entries corresponding to the new file
10609 python/py-arch.c.
10610 * NEWS (Python Scripting): Add entries for the new class
10611 gdb.Architecture and the new method gdb.Frame.architecture.
10612 * python/py-arch.c: Implement gdb.Architecture class.
10613 * python/py-frame.c (frapy_arch): Implement the method
10614 gdb.Frame.architecture().
10615 (frame_object_methods): Add 'architecture' to the method table.
10616 * python/python-internal.h: Add declarations of new utility
10617 functions.
10618 * python/python.c (_initialize_python): Initialize
10619 gdb.Architecture class.
10620
796a7ff8
DE
106212013-01-23 Doug Evans <dje@google.com>
10622
10623 Work around binutils/15021.
10624 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10625 type_unit_group out of union s. All uses updated.
10626 (read_index_from_section): Watch for index version 8.
10627 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10628 an imported symtab.
10629 (write_psymtabs_to_index): Increment version number to 8.
10630
0928e93d
PA
106312013-01-22 Pedro Alves <palves@redhat.com>
10632
10633 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10634 user-visible.
10635
9c97429f
PA
106362013-01-22 Pedro Alves <palves@redhat.com>
10637
10638 * annotate.c (annotate_breakpoints_changed): Rename to ...
10639 (annotate_breakpoints_invalid): ... this. Make static.
10640 (breakpoint_changed): Adjust.
10641 (_initialize_annotate): Always install the observers. Install a
10642 "breakpoint_created" observer.
10643 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10644 * breakpoint.c (set_breakpoint_condition)
10645 (breakpoint_set_commands, do_map_commands_command)
10646 (init_raw_breakpoint, clear_command, set_ignore_count)
10647 (enable_breakpoint_disp): No longer call
10648 annotate_breakpoints_changed.
10649
bd00c694
PA
106502013-01-22 Pedro Alves <palves@redhat.com>
10651
10652 * annotate.c: Include "inferior.h".
10653 (frames_invalid_emitted)
10654 (breakpoints_invalid_emitted): New globals.
10655 (async_background_execution_p): New function.
10656 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10657 emitting the annotation if it has already been emitted.
10658 (annotate_display_prompt): New function.
10659 * annotate.h (annotate_display_prompt): New declaration.
10660 * event-top.c: Include annotate.h.
10661 (display_gdb_prompt): Call annotate_display_prompt.
10662
187d10dd
PA
106632013-01-22 Pedro Alves <palves@redhat.com>
10664
10665 * annotate.c (ignore_count_changed): Delete.
10666 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10667 (annotate_ignore_count_change): Delete.
10668 (annotate_stopped): Don't emit a delayed breakpoints-changed
10669 annotation.
10670 * annotate.h (annotate_ignore_count_change): Delete.
10671 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10672 annotate_ignore_count_change.
10673
d84cf7eb
TT
106742013-01-22 Tom Tromey <tromey@redhat.com>
10675
10676 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10677 require_rvalue for a register location.
10678
8f1d5693
MK
106792013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10680
10681 * breakpoint.c (print_one_breakpoint_location): Add MI
10682 field 'thread-groups' when printing a breakpoint.
10683 (output_thread_groups): New function.
10684
aa6199c6
SCR
106852013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10686
10687 * python/lib/gdb/commands/explore.py
10688 (CompoundExplorer.explore_expr): Correct the name of a method
10689 being invoked.
10690 (ExploreTypeCommand.invoke): Add a missing 'return'.
10691
d2afef13
TT
106922013-01-21 Tom Tromey <tromey@redhat.com>
10693
10694 * gdb_obstack.h (obconcat): Move declaration here, from...
10695 * symfile.h (obconcat): ... here.
10696 * gdb_obstack.c: New file.
10697 (obconcat): Move from...
10698 * symfile.c (obconcat): ... here.
10699 * Makefile.in (SFILES): Add gdb_obstack.c.
10700 (COMMON_OBS): Add gdb_obstack.o.
10701
10f0c4bb
TT
107022013-01-21 Tom Tromey <tromey@redhat.com>
10703
10704 * symfile.h (obsavestring): Don't declare.
10705 * symfile.c (obsavestring): Remove.
10706 * ada-exp.y: Use obstack_copy0, not obsavestring.
10707 * ada-lang.c: Use obstack_copy0, not obsavestring.
10708 * coffread.c: Use obstack_copy0, not obsavestring.
10709 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10710 * dbxread.c: Use obstack_copy0, not obsavestring.
10711 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10712 * jit.c: Use obstack_copy0, not obsavestring.
10713 * mdebugread.c: Use obstack_copy0, not obsavestring.
10714 * psymtab.c: Use obstack_copy0, not obsavestring.
10715 * stabsread.c: Use obstack_copy0, not obsavestring.
10716 * xcoffread.c: Use obstack_copy0, not obsavestring.
10717
86f62fd7
TT
107182013-01-21 Tom Tromey <tromey@redhat.com>
10719
10720 * dwarf2read.c (fixup_go_packaging): Save package name
10721 on objfile obstack.
10722 * gdbtypes.c (init_type): Don't copy name.
10723
15d034d0
TT
107242013-01-21 Tom Tromey <tromey@redhat.com>
10725
10726 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10727 const.
10728 (struct attribute) <u.str>: Now const.
10729 (struct fnfieldlist) <name>: Now const.
10730 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10731 (partial_die_parent_scope): Make return type const.
10732 (partial_die_full_name, add_partial_symbol): Update.
10733 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10734 'name' const.
10735 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10736 (read_file_scope, read_func_scope, dwarf2_add_field)
10737 (dwarf2_add_member_fn, read_structure_type)
10738 (process_enumeration_scope, read_array_type, read_module_type)
10739 (read_base_type, read_subrange_type): Update.
10740 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10741 (new_symbol_full, guess_full_die_structure_name): Update.
10742 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10743 (dwarf2_name): Return const type.
10744 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10745 const.
10746
748e18ae
TT
107472013-01-21 Tom Tromey <tromey@redhat.com>
10748
10749 * gdbtypes.c (init_type): Make 'name' const.
10750 * gdbtypes.h (init_type): Update.
10751
46212e0b
TT
107522013-01-21 Tom Tromey <tromey@redhat.com>
10753
10754 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10755 (start_symtab): Make 'name' and 'dirname' const. Use
10756 set_last_source_file.
10757 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10758 (last_source_file): Define. Now static.
10759 (set_last_source_file, get_last_source_file): New functions.
10760 * buildsym.h (last_source_file): Don't declare.
10761 (start_symtab): Update.
10762 (set_last_source_file, get_last_source_file): Declare.
10763 * coffread.c (complete_symtab): Use set_last_source_file.
10764 (coff_end_symtab): Likewise.
10765 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10766 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10767 set_last_source_file.
10768 (process_one_symbol): Use get_last_source_file.
10769 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10770 (psymtab_to_symtab_1): Use get_last_source_file.
10771 * xcoffread.c (process_linenos): Use get_last_source_file.
10772 (complete_symtab): Use set_last_source_file.
10773 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10774 (scan_xcoff_symtab): Use set_last_source_file.
10775
9d2ceabe
TT
107762013-01-21 Tom Tromey <tromey@redhat.com>
10777
10778 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10779 (symbol_set_names): Remove casts. Handle field const-ness.
10780
cfc594ee
TT
107812013-01-21 Tom Tromey <tromey@redhat.com>
10782
10783 * dwarf2read.c (new_symbol_full): Remove cast.
10784 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10785 * symtab.h (symbol_set_demangled_name): Update.
10786
5484b13a
TT
107872013-01-21 Tom Tromey <tromey@redhat.com>
10788
10789 * main.c (captured_main): Call bfd_init.
10790
1605ef26
TT
107912013-01-21 Tom Tromey <tromey@redhat.com>
10792
10793 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10794 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10795 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10796 * NEWS: Update.
10797
3b74cdc3
JK
107982013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10799
10800 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10801
5a352474
JK
108022013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10803
10804 Fix gdb.fortran/common-block.exp crash in PIE mode.
10805 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10806 LOC_COMMON_BLOCK.
10807 * f-valprint.c (info_common_command_for_block): Expect
10808 LOC_COMMON_BLOCK in gdb_assert.
10809 * symtab.h (struct general_symbol_info): Update comment for the
10810 common_block member.
10811 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10812 (enum address_class): New member LOC_COMMON_BLOCK.
10813
c60797fd
DB
108142013-01-18 David Blaikie <dblaikie@gmail.com>
10815
10816 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10817
46f35228
TT
108182013-01-18 Tom Tromey <tromey@redhat.com>
10819
10820 PR c++/14999:
10821 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10822 Call require_rvalue.
10823
257e7a09
YQ
108242013-01-18 Yao Qi <yao@codesourcery.com>
10825
10826 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10827 (dbx_read_symtab): New declaration.
10828 (dbx_psymtab_to_symtab): Delete.
10829 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10830 Rename parameter PST to SELF. Exchanged two parameters.
10831 (start_psymtab): Caller update.
10832 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10833 (dwarf2_read_symtab): New declaration.
10834 (dwarf2_psymtab_to_symtab): Delete.
10835 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10836 Rename parameter PST to SELF. Exchanged two parameters.
10837 (create_partial_symtab): Caller update.
10838 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10839 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10840 Rename parameter PST to SELF. Exchanged two parameters.
10841 (parse_partial_symbols, new_psymtab): Caller update.
10842 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10843 two parameters.
10844 * psymtab.c (psymtab_to_symtab): Caller update.
10845 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10846 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10847 Rename parameter PST to SELF. Exchanged two parameters.
10848 (xcoff_start_psymtab): Caller update.
10849
0de5618e
YQ
108502013-01-18 Yao Qi <yao@codesourcery.com>
10851
10852 * infrun.c (proceed): Rename local variable 'oneproc' to
10853 'force_step'.
10854
5c04624b
DE
108552013-01-17 Doug Evans <dje@google.com>
10856
848e3e78
DE
10857 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10858 (dw2_build_type_unit_groups): Delete. All uses updated.
10859
5c04624b
DE
10860 * symtab.h (struct symbol_search): Add comment.
10861
d84fca2c
JK
108622013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 * symtab.c (compare_filenames_for_search): New comment for
10865 HAS_DRIVE_SPEC.
10866
6108433d
TT
108672013-01-17 Tom Tromey <tromey@redhat.com>
10868
10869 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10870
c89ffd86
JK
108712013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10874 initialize it by existing make_cleanup. Call new do_cleanups.
10875
db2b2972
TT
108762013-01-17 Tom Tromey <tromey@redhat.com>
10877
10878 * cp-abi.c (cp_abi_completer): New function.
10879 (_initialize_cp_abi): Set completer for "set cp-abi".
10880
be7d37a2
TT
108812013-01-17 Tom Tromey <tromey@redhat.com>
10882
10883 * mem-break.c: Remove obsolete comment.
10884 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10885
c9fb1240
SD
108862012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10887
10888 * jit.c (jit_reader_load_command): Interpret the jit reader name
10889 as an absolute path if it begins with a forward slash.
10890
db334a01
SD
108912012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10892
10893 PR gdb/14550
10894
10895 * jit.c (finalize_symtab): Ensure that only the global block has a
10896 NULL superblock.
10897
7d928dac
PA
108982013-01-17 Pedro Alves <palves@redhat.com>
10899
10900 * acinclude.m4: Include ../config/plugins.m4,
10901 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10902 * Makefile.in (aclocal_m4_deps): Update.
10903 * aclocal.m4: Renegerate.
10904
fb8cf7c5
DE
109052013-01-16 Doug Evans <dje@google.com>
10906
10907 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10908
ab04a2af
TT
109092013-01-16 Pedro Alves <palves@redhat.com>
10910 Tom Tromey <tromey@redhat.com>
10911
10912 PR cli/7221:
10913 * NEWS: Add "catch signal".
10914 * breakpoint.c (base_breakpoint_ops): No longer static.
10915 (bpstat_explains_signal): New function.
10916 (init_catchpoint): No longer static.
10917 (base_breakpoint_explains_signal): New function.
10918 (base_breakpoint_ops): Initialize new field.
10919 * breakpoint.h (enum bpstat_signal_value): New.
10920 (struct breakpoint_ops) <explains_signal>: New field.
10921 (bpstat_explains_signal): Remove macro, declare as function.
10922 (base_breakpoint_ops, init_catchpoint): Declare.
10923 * break-catch-sig.c: New file.
10924 * inferior.h (signal_catch_update): Declare.
10925 * infrun.c (signal_catch): New global.
10926 (handle_syscall_event): Update for change to
10927 bpstat_explains_signal.
10928 (handle_inferior_event): Likewise. Always handle random signals
10929 via bpstats.
10930 (signal_cache_update): Check signal_catch.
10931 (signal_catch_update): New function.
10932 (_initialize_infrun): Initialize signal_catch.
10933 * Makefile.in (SFILES): Add break-catch-sig.c.
10934 (COMMON_OBS): Add break-catch-sig.o.
10935
8ac3646f
TT
109362013-01-16 Tom Tromey <tromey@redhat.com>
10937
10938 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10939 (print_one_catch_solib, print_one_catch_syscall)
10940 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10941 "catch-type".
10942
5a18e302
YQ
109432013-01-16 Yao Qi <yao@codesourcery.com>
10944
10945 * printcmd.c (current_display_number): Make it static.
10946
3f01d0d0
YQ
109472013-01-16 Yao Qi <yao@codesourcery.com>
10948
10949 * infcmd.c (step_once): Don't check '!single_inst' as it was
10950 checked before.
10951
1ed59174
JK
109522013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10955
44478ab3
TT
109562013-01-14 Tom Tromey <tromey@redhat.com>
10957
10958 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10959 set command.
10960 * command.h (add_setshow_string_noescape_cmd): Update.
10961 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10962 (complete_set_gnutarget): New function.
10963 (_initialize_core): Set the "set gnutarget" completer.
10964
06d66ee9
TT
109652013-01-14 Tom Tromey <tromey@redhat.com>
10966
10967 PR symtab/14442:
10968 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10969 (c_type_print_modifier): Likewise.
10970 * dwarf2read.c (read_tag_restrict_type): New function.
10971 (read_type_die_1): Handle DW_TAG_restrict_type.
10972 * gdbtypes.c (make_restrict_type): New function.
10973 (recursive_dump_type): Handle TYPE_RESTRICT.
10974 * gdbtypes.h (enum type_flag_values): Renumber.
10975 (enum type_instance_flag_value): Add
10976 TYPE_INSTANCE_FLAG_RESTRICT.
10977 (TYPE_RESTRICT): New macro.
10978 (make_restrict_type): Declare.
10979
c9bf0622
TT
109802013-01-14 Tom Tromey <tromey@redhat.com>
10981
10982 PR symtab/14931:
10983 * psymtab.c (struct psymtab_state): New.
10984 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10985 functions.
10986 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10987 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10988
44d594fd
PA
109892013-01-14 Richard Sharman <richard_sharman@mitel.com>
10990 Pedro Alves <palves@redhat.com>
10991
10992 PR remote/14786
10993
10994 * remote.c (remote_threads_info): Make a copy of the reply from
10995 qfThreadInfo and use that instead of rs->buf.
10996
442e4d9c
YQ
109972013-01-14 Yao Qi <yao@codesourcery.com>
10998
10999 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11000 (dbx_psymtab_to_symtab): Likewise.
11001 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11002 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11003 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11004
5b12a61c
JK
110052013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11006
11007 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11008 make_cleanup_restore_current_language. Call set_language. Move
11009 OLD_CHAIN and INNER_CHAIN cleanups.
11010 * utils.c (do_restore_current_language)
11011 (make_cleanup_restore_current_language): New functions.
11012 * utils.h (make_cleanup_restore_current_language): New declaration.
11013
f0a4b570
JK
110142013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11015
11016 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11017 non-existing files.
11018
57b3c00c
JK
11019 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11020 non-existing files if FILENAME is already absolute.
11021
daefa854
JK
110222013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11023
11024 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11025 fputs_filtered. Append trailing newline.
11026
ca9c6ee2
YQ
110272013-01-11 Yao Qi <yao@codesourcery.com>
11028 Stan Shebs <stan@codesourcery.com>
11029
11030 * psymtab.c (init_psymbol_list): Clarify the comment.
11031
f28045c2
YQ
110322013-01-11 Yao Qi <yao@codesourcery.com>
11033
11034 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11035 (update_dprintf_command_list): Assert that 'printf_line' is
11036 non-null. Remove condition check.
11037
da5132d3
JK
110382013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11039
11040 Code cleanup.
11041 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11042 type const char *.
11043 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11044 const char *.
11045 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11046
843e694d
AG
110472013-01-09 Anthony Green <green@moxielogic.com>
11048
11049 * cp-abi.c (cplus_print_vtable): Don't return value from void
11050 function.
11051 * ada-lang.c (re_set_catch_assert): Ditto.
11052
da51c347
DE
110532013-01-09 Doug Evans <dje@google.com>
11054
11055 * symfile.h (quick_symbol_functions): Delete member
11056 pre_expand_symtabs_matching. All uses removed.
11057 * dwarf2read.c (dw2_lookup_symbol): Implement.
11058 (dw2_do_expand_symtabs_matching): Delete.
11059 (dw2_pre_expand_symtabs_matching): Delete.
11060 (struct dw2_symtab_iterator): New type.
11061 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11062 (dw2_expand_symtabs_for_function): Rewrite.
11063 (dwarf2_gdb_index_functions): Update.
11064 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11065 (psym_functions): Update.
11066
b2259038
TT
110672013-01-09 Tom Tromey <tromey@redhat.com>
11068
11069 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11070 * configure: Rebuild.
11071 * configure.ac: Add somread.o to the build if BFD has SOM
11072 support.
11073 * somread.c: Include som/aout.h, not syms.h.
11074 (som_symtab_read): Use som_external_symbol_dictionary_record.
11075 Unpack records manually.
11076 (_initialize_somread): Declare.
11077
bdad4180
MF
110782012-01-08 Mike Frysinger <vapier@gentoo.org>
11079
11080 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11081 Cast return_address to 64bits.
11082
03cdf680
HZ
110832013-01-08 Hui Zhu <hui_zhu@mentor.com>
11084
11085 * printcmd.c: Remove define of function output_command.
11086 * tracepoint.c: Remove extern of function output_command.
11087 * valprint.h: (output_command): New extern.
11088
8a808554
TT
110892013-01-07 Tom Tromey <tromey@redhat.com>
11090
11091 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11092 Remove.
11093 (objc_language_defn): Use c_printchar, c_printstr,
11094 c_emit_char.
11095
e93a8774
TT
110962013-01-07 Tom Tromey <tromey@redhat.com>
11097
11098 PR cli/7719:
11099 * NEWS: Update.
11100 * ada-valprint.c (printstr, print_field_values): Remove
11101 "inspect_it" code.
11102 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11103 code.
11104 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11105 code.
11106 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11107 * main.c (captured_main): Remove "epoch" argument.
11108 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11109 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11110 * p-valprint.c (pascal_object_print_value_fields): Remove
11111 "inspect_it" code.
11112 * printcmd.c (print_command_1): Remove 'inspect' argument.
11113 (print_command, call_command): Update.
11114 (inspect_command): Remove.
11115 (_initialize_printcmd): Make "inspect" an alias for "print".
11116 * top.c (epoch_interface): Remove.
11117 * top.h (epoch_interface): Remove.
11118 * valprint.c (user_print_options): Update.
11119 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11120 * valprint.h (struct value_print_options) <inspect_it>: Remove
11121 field.
11122
111232013-01-04 Tom Tromey <tromey@redhat.com>
11124
11125 * valprint.h (read_string): Add 'extern'.
11126
b967eb24
JB
111272013-01-07 Joel Brobecker <brobecker@adacore.com>
11128
11129 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11130 used to decide whether to define darwin_read_dyld_info or not.
11131
78a8b30e
PM
111322013-01-03 Pierre Muller <muller@sourceware.org>
11133
11134 * main.c (relocate_gdb_directory): Avoid calling stat function
11135 if DIR is empty.
11136
50da2f25
YQ
111372013-01-03 Yao Qi <yao@codesourcery.com>
11138
11139 * psymtab.c (fixup_psymbol_section): Update declaration.
11140 (fixup_psymbol_section): Remove code returning value.
11141
e7e8980f
YQ
111422013-01-03 Yao Qi <yao@codesourcery.com>
11143
11144 * symtab.h: Remove some out of date comments.
11145 (enum exception_event_kind): Move it ...
11146 * breakpoint.c: ... here.
11147
569283d4
MF
111482013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11149
9f9d9a96 11150 PR gdb/14405
569283d4
MF
11151 * darwin-nat.c (darwin_read_dyld_info): Only build if
11152 TASK_DYLD_INFO_COUNT is defined.
11153 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11154 TASK_DYLD_INFO_COUNT is defined.
11155
2e36fbea
TT
111562013-01-02 Tom Tromey <tromey@redhat.com>
11157
11158 * symfile.h (struct ecoff_debug_hack): Remove.
11159 * objfiles.c: Don't include mdebugread.h.
11160
4f05add4
TT
111612013-01-02 Tom Tromey <tromey@redhat.com>
11162
11163 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11164 * configure.ac: Check for Mach-O support in BFD. Update
11165 CONFIG_OBS.
11166 * configure: Rebuild.
11167
def63ff0
TT
111682013-01-02 Tom Tromey <tromey@redhat.com>
11169
11170 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11171 * configure.ac: Use GDB_AC_CHECK_BFD.
11172 * configure: Rebuild.
11173
60c5dd93
MK
111742013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11175
11176 * MAINTAINERS: Update my email.
11177
6e58437e
JB
111782013-01-01 Joel Brobecker <brobecker@adacore.com>
11179
11180 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11181
627fe805
JB
111822013-01-01 Joel Brobecker <brobecker@adacore.com>
11183
11184 * rs6000-nat.c (bss_data_overlap): New function.
11185 (vmap_symtab): Use it to adjust the .bss section's offset.
11186
28e7fd62
JB
111872013-01-01 Joel Brobecker <brobecker@adacore.com>
11188
11189 Update year range in copyright notice of all files.
11190
e93a8774 111912013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11192
11193 * top.c (print_gdb_version): Update copyright year.
11194
72b20e9c 11195For older changes see ChangeLog-2012.
c906108c
SS
11196\f
11197Local Variables:
11198mode: change-log
11199left-margin: 8
11200fill-column: 74
11201version-control: never
57da7796 11202coding: utf-8
c906108c 11203End:
This page took 2.303938 seconds and 4 git commands to generate.