Rename field 'lang' to 'lang_ops'.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca20d462
YQ
12013-10-27 Yao Qi <yao@codesourcery.com>
2
3 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
4 (varobj_create, varobj_get_path_expr): Update.
5 (varobj_value_has_mutated, varobj_update): Likewise.
6 (create_child_with_value, new_root_variable): Likewise.
7 (number_of_children, name_of_variable): Likewise.
8 (value_of_child, my_value_of_variable): Likewise.
9 (varobj_value_is_changeable_p): Likewise.
10
a53b64ea
YQ
112013-10-25 Yao Qi <yao@codesourcery.com>
12
13 * language.h (struct lang_varobj_ops): Declare.
14 (struct language_defn) <la_varobj_ops>: New field.
15 * ada-lang.c: Include "varobj.h"
16 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
17 ada_varobj_ops.
18 * c-lang.c: Include "varobj.h"
19 (c_language_defn): Initialize field 'la_varobj_ops' with
20 c_varobj_ops.
21 (cplus_language_defn): Initialize field 'la_varobj_ops' with
22 cplus_varobj_ops.
23 (asm_language_defn): Initialize field 'la_varobj_ops' with
24 default_varobj_ops.
25 (minimal_language_defn): Likewise.
26 * d-lang.c (d_language_defn): Likewise.
27 * f-lang.c (f_language_defn): Likewise.
28 * go-lang.c (go_language_defn): Likewise.
29 * m2-lang.c (m2_language_defn): Likewise.
30 * objc-lang.c (objc_language_defn): Likewise.
31 * opencl-lang.c (opencl_language_defn): Likewise.
32 * p-lang.c (pascal_language_defn): Likewise.
33 * language.c (unknown_language_defn): Likewise.
34 (auto_language_defn): Likewise.
35 (local_language_defn): Likewise.
36 * jv-lang.c (java_language_defn): Initialize field
37 'la_varobj_ops' with java_varobj_ops.
38 * varobj.c (varobj_create): Update.
39 * varobj.h (default_varobj_ops): Define macro.
40
686d4def
PA
412013-10-25 Pedro Alves <palves@redhat.com>
42
43 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
44 static field value.
45 (cp_print_static_field): If the value is entirely optimized out,
46 print <optimized out> here.
47 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
48 static field value.
49 * p-valprint.c (pascal_object_print_static_field): If the value is
50 entirely optimized out, print <optimized out> here.
51 * valops.c (do_search_struct_field)
52 (value_struct_elt_for_reference): No longer handle a NULL static
53 field value.
54 * value.c (value_static_field): Return an optimized out value
55 instead of NULL.
56
6c177e28
YQ
572013-10-25 Yao Qi <yao@codesourcery.com>
58
59 * remote.c (remote_traceframe_info): Return early if
60 traceframe is not selected.
61
98322bfa
YQ
622013-10-25 Yao Qi <yao@codesourcery.com>
63
64 * tracepoint.c (traceframe_fun): Remove.
65 (traceframe_sal): Remove.
66 (set_traceframe_context): Add local variables.
67
6ba1f115
JB
682013-10-25 Joel Brobecker <brobecker@adacore.com>
69
70 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
71 and parameter name.
72
bbe769cc
MR
732013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
74
75 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
76 failure from register information collection.
77
72ee4495 782013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
79
80 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
81 member.
82 (linux_corefile_thread_callback): Update accordingly.
83 (linux_make_corefile_notes): Likewise.
84
98882a26
PA
852013-10-24 Pedro Alves <palves@redhat.com>
86
87 * NEWS (New options): Mention set/show startup-with-shell.
88 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
89 instead of 3.
90 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
91 startup-with-shell'.
92 (show_startup_with_shell): New function.
93 (_initialize_fork_child): Register the set/show startup-with-shell
94 commands.
95 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
96 * inf-ttrace.c (inf_ttrace_him): Remove comment.
97 * procfs.c (procfs_init_inferior): Remove comment.
98 * infcmd.c (startup_with_shell): New global.
99 * inferior.h (startup_with_shell): Declare global.
100 (STARTUP_WITH_SHELL): Delete.
101 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
102
c9737c08
PA
1032013-10-23 Pedro Alves <palves@redhat.com>
104
105 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
106 * common/signals.c: Include "gdb_assert.h".
107 (signals): New field 'symbol'.
108 (SET): Use the 'symbol' parameter.
109 (gdb_signal_to_symbol_string): New function.
110 * infrun.c (handle_inferior_event) <random signal>: In debug
111 output, print the random signal enum as string in addition to its
112 number.
113 * target/waitstatus.c (target_waitstatus_to_string): Print the
114 signal's enum value as string instead of the (POSIX) signal name.
115
f60db4f0
GB
1162013-10-23 Gary Benson <gbenson@redhat.com>
117
118 PR 16013
119 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
120 from 32 to 18. Adjusted fscanf format string accordingly.
121 (Avoids leaving cmd unterminated.)
122 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
123 trun, retn or extra. (Avoids leaving extra unterminated.) Check
124 that local_address and remote_address will not overflow.
125 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
126 leaving dependencies unterminated. Parse size as "%u" to match
127 definition.
128
6d3e7a94
PA
1292013-10-22 Pedro Alves <palves@redhat.com>
130
131 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
132 set ecs->random signal.
133
42ec045f
PA
1342013-10-22 Pedro Alves <palves@redhat.com>
135
136 * infrun.c (keep_going): Update comments.
137
1382013-10-22 Pedro Alves <palves@redhat.com>
139
140 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
141 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
142
1432013-10-22 Pedro Alves <palves@redhat.com>
144
145 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
146 GDB_EXC_BAD_ACCESS.
147 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
148 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
149 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
150 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
151 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
152 (GDB_SIGNAL_LAST): Change description string.
153 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
154 Adjust to signal renaming.
155 * darwin-nat.c (darwin_decode_message): Likewise.
156
c8fde1b1
JM
1572013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
158
159 * MAINTAINERS (Write After Approval): Add myself to the list.
160
e8369a73
AB
1612013-10-18 Andrew Burgess <aburgess@broadcom.com>
162
163 * breakpoint.c (update_watchpoint): If hardware watchpoints are
164 forced off, downgrade them to software watchpoints if possible,
165 and error out if not possible.
166 (watch_command_1): Move watchpoint type selection closer to
167 watchpoint creation, and extend the comments.
168
776f04fa
PA
1692013-10-18 Pedro Alves <palves@redhat.com>
170
171 PR gdb/16062
172 * infrun.c (handle_inferior_event): Keep going if we got a random
173 signal we should not stop for, instead of falling through to the
174 step tests.
175
0c6faab5
YQ
1762013-10-18 Yao Qi <yao@codesourcery.com>
177
178 * c-varobj.c (cplus_number_of_children): Fix indentation.
179
50b34a18
TT
1802013-10-17 Tom Tromey <tromey@redhat.com>
181
182 PR gdb/15995:
183 * printcmd.c (printcmd): Call gdb_flush.
184
5c4c8a59
TT
1852013-10-17 Tom Tromey <tromey@redhat.com>
186
187 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
188 (elf_locate_sections): Update.
189
c4124bf1
YQ
1902013-10-17 Yao Qi <yao@codesourcery.com>
191
192 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
193 * ada-varobj.c: Remove the include of ada-varobj.h.
194 (ada_varobj_get_number_of_children): Declare.
195 (ada_varobj_get_name_of_child): Make it static.
196 (ada_varobj_get_path_expr_of_child): Likewise.
197 (ada_varobj_get_value_of_child): Likewise.
198 (ada_varobj_get_type_of_child): Likewise.
199 (ada_varobj_get_value_of_array_variable): Likewise.
200 * ada-varobj.h: Remove.
201
99ad9427
YQ
2022013-10-17 Yao Qi <yao@codesourcery.com>
203
204 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
205 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
206 * ada-varobj.c: Include "varobj.h".
207 (ada_number_of_children): New. Moved from varobj.c.
208 (ada_name_of_variable, ada_name_of_child): Likewise.
209 (ada_path_expr_of_child, ada_value_of_child): Likewise.
210 (ada_type_of_child, ada_value_of_variable): Likewise.
211 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
212 (ada_varobj_ops): New.
213 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
214 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
215 * gdbtypes.h (get_target_type): Declare.
216 * varobj.c: Remove the inclusion of "ada-varobj.h" and
217 "ada-lang.h".
218 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
219 (ANONYMOUS_UNION_NAME): Likewise.
220 (get_type, get_value_type, get_target_type): Remove declarations.
221 (value_get_print_value, varobj_value_get_print_value): Likewise.
222 (c_number_of_children, c_name_of_variable): Likewise.
223 (c_name_of_child, c_path_expr_of_child): Likewise.
224 (c_value_of_child, c_type_of_child): Likewise.
225 (c_value_of_variable, cplus_number_of_children): Likewise.
226 (cplus_class_num_children, cplus_name_of_variable): Likewise.
227 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
228 (cplus_value_of_child, cplus_type_of_child): Likewise.
229 (cplus_value_of_variable, java_number_of_children): Likewise.
230 (java_name_of_variable, java_name_of_child): Likewise.
231 (java_path_expr_of_child, java_value_of_child): Likewise.
232 (java_type_of_child, java_value_of_variable): Likewise.
233 (ada_number_of_children, ada_name_of_variable): Likewise.
234 (ada_name_of_child, ada_path_expr_of_child): Likewise.
235 (ada_value_of_child, ada_type_of_child): Likewise.
236 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
237 (ada_value_has_mutated): Likewise.
238 (struct language_specific): Move it to varobj.h.
239 (CPLUS_FAKE_CHILD): Move it to varobj.h.
240 (restrict_range): Rename it varobj_restrict_range. Make it extern.
241 Callers update.
242 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
243 Make it extern.
244 (is_anonymous_child): Move it to c-varobj.c and rename to
245 varobj_is_anonymous_child. Caller update.
246 (get_type): Move it to c-varobj.c.
247 (get_value_type): Rename it varobj_get_value_type. Make it
248 extern.
249 (get_target_type): Move it gdbtypes.c.
250 (varobj_formatted_print_options): New function.
251 (value_get_print_value): Rename it to
252 varobj_value_get_print_value and make it extern.
253 (varobj_value_is_changeable_p): Make it extern.
254 (adjust_value_for_child_access): Move it to c-varobj.c.
255 (default_value_is_changeable_p): Rename it to
256 varobj_default_value_is_changeable_p. Make it extern.
257 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
258 (c_name_of_child, c_path_expr_of_child): Likewise.
259 (c_value_of_child, c_type_of_child): Likewise.
260 (c_value_of_variable, cplus_number_of_children): Likewise.
261 (cplus_class_num_children, cplus_name_of_variable): Likewise.
262 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
263 (cplus_value_of_child, cplus_type_of_child): Likewise.
264 (cplus_value_of_variable): Likewise.
265 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
266 (java_name_of_child, java_path_expr_of_child): Likewise.
267 (java_value_of_child, java_type_of_child): Likewise.
268 (java_value_of_variable): Likewise.
269 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
270 (ada_name_of_child, ada_path_expr_of_child): Likewise.
271 (ada_value_of_child, ada_type_of_child): Likewise.
272 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
273 (ada_value_has_mutated): Likewise.
274 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
275 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
276 (c_varobj_ops, cplus_varobj_ops): Declare.
277 (java_varobj_ops, ada_varobj_ops): Declare.
278 (varobj_default_value_is_changeable_p): Declare.
279 (varobj_value_is_changeable_p): Declare.
280 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
281 (varobj_get_path_expr_parent): Declare.
282 (varobj_value_get_print_value): Declare.
283 (varobj_formatted_print_options): Declare.
284 (varobj_restrict_range): Declare.
285
c8a62302
LM
2862013-10-17 Luis Machado <lgustavo@codesourcery.com>
287
288 * target/waitstatus.h (target_waitkind): Remove spurious
289 character from the comments.
290
eade6471
JB
2912013-10-17 Joel Brobecker <brobecker@adacore.com>
292
293 * gdbarch.sh (get_longjmp_target): Add method documentation.
294 * gdbarch.h: Regenerate.
295
5411b26c
TT
2962013-10-16 Tom Tromey <tromey@redhat.com>
297
298 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
299 label.
300
87326c87
LM
3012013-10-16 Luis Machado <lgustavo@codesourcery.com>
302
303 * gcore.in: Call GDB using the full path to the gcore script.
304 Error out if the GDB binary is not found.
305
fd0a4d76
SDJ
3062013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
307
308 PR gdb/16014
309 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
310 sizeof.
311
d92f7ee3
SDJ
3122013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
313
314 PR gdb/16042
315 * target.c (target_disable_btrace): Fix invalid return value for
316 void function.
317 (target_teardown_btrace): Likewise.
318
bb5ce47a
YQ
3192013-10-14 Yao Qi <yao@codesourcery.com>
320
321 * varobj.c (struct varobj): Move most of the fields to
322 varobj.h.
323 (struct varobj_dynamic): New struct.
324 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
325 (varobj_has_more): Likewise.
326 (dynamic_varobj_has_child_method): Likewise.
327 (update_dynamic_varobj_children): Likewise.
328 (varobj_get_num_children): Likewise.
329 (varobj_list_children, varobj_pretty_printed_p): Likewise.
330 (install_new_value_visualizer): Likewise.
331 (install_new_value_visualizer, install_new_value): Likewise.
332 (varobj_update, new_variable, free_variable): Likewise.
333 (my_value_of_variable, value_get_print_value): Likewise.
334 (install_visualizer): Change the type of parameter 'var' to
335 'struct varobjd_dynamic *'. Callers update.
336 * varobj.h (struct varobj): Moved from varobj.c.
337 (struct varobj) <dynamic>: New field.
338
0b76b0ce
SL
3392013-10-13 Sandra Loosemore <sandra@codesourcery.com>
340
341 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
342 as the preferred name of r30.
343 * nios2-linux-tdep.c (reg_offsets): Likewise.
344 * features/nios2-cpu.xml: Likewise.
345 * features/nios2-linux.c: Regenerated.
346 * features/nios2.c: Regenerated.
347 * regformats/nios2-linux.dat: Regenerated.
348
4856b6bc
JK
3492013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 Canonicalize directories for EXEC_FILENAME.
352 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
353 exec_filename.
354 * utils.c (gdb_realpath_keepfile): New function.
355 * utils.h (gdb_realpath_keepfile): New declaration.
356
9b557b58
DE
3572013-10-11 Doug Evans <dje@google.com>
358
359 * Makefile.in (GDBFLAGS): New variable.
360 (run): New rule.
361
ce13fade
JB
3622013-10-11 Joel Brobecker <brobecker@adacore.com>
363
364 * NEWS: Add entry documenting the new "-catch-assert" and
365 "-catch-exception" GDB/MI commands.
366
349774ef
JB
3672013-10-11 Joel Brobecker <brobecker@adacore.com>
368
369 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
370 "enabled".
371 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
372 "enabled". Set B->ENABLE_STATE accordingly.
373 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
374 ada-lang.c.
375 (create_ada_exception_catchpoint): Add declaration.
376 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
377 (create_ada_exception_catchpoint): Make non-static. Add new
378 parameter "disabled". Use it in call to
379 init_ada_exception_breakpoint.
380 (catch_ada_exception_command): Add parameter "enabled" in call
381 to create_ada_exception_catchpoint.
382 (catch_assert_command): Likewise.
383
384 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
385 Add declarations.
386 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
387 "catch-exception" commands.
388 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
389 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
390
761269c8
JB
3912013-10-11 Joel Brobecker <brobecker@adacore.com>
392
393 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
394 "enum exception_catchpoint_kind". Replace the "ex_" prefix
395 of all its enumerates with "ada_". Update the rest of this
396 file throughout.
397
b4a5b78b
JB
3982013-10-11 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-lang.c (ada_decode_exception_location): Delete.
401 (create_ada_exception_catchpoint): Remove arguments "sal",
402 "addr_string" and "ops". Add argument "ex_kind" instead.
403 Adjust implementation accordingly, calling ada_exception_sal
404 to get the entities it no longer gets passed as arguments.
405 Document the function's arguments.
406 (catch_ada_exception_command): Use catch_ada_exception_command_split
407 instead of ada_decode_exception_location, and update call to
408 create_ada_exception_catchpoint.
409 (catch_ada_assert_command_split): Renames
410 ada_decode_assert_location. Remove parameters "addr_string" and
411 "ops", and now returns void. Adjust implementation accordingly.
412 Update the function documentation.
413 (catch_assert_command): Use catch_ada_assert_command_split
414 instead of ada_decode_assert_location. Update call to
415 create_ada_exception_catchpoint.
416
7ad1d32c 4172013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
418
419 * utils.h (perror_warning_with_name): Add declaration.
420 * utils.c (perror_warning_with_name): New function.
421 * cli/cli-cmds.c (source_script_with_search): Add call to
422 perror_warning_with_name if from_tty is nul.
423
7ad1d32c 4242013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
425
426 * utils.c (perror_string): New function, extracted out of
427 throw_perror_with_name.
428 (throw_perror_with_name): Rework to use perror_string.
429
bcc75809
YQ
4302013-10-11 Yao Qi <yao@codesourcery.com>
431
432 * remote.c (discard_pending_stop_replies_in_queue): Update
433 declaration.
434 (struct stop_reply) <rs>: New field.
435 (remove_stop_reply_of_remote_state): New function.
436 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
437 Callers update. Pass remove_stop_reply_of_remote_state to
438 QUEUE_iterate.
439 (remote_parse_stop_reply): Initialize field 'rs'.
440
05feb193
WN
4412013-10-10 Will Newton <will.newton@linaro.org>
442
443 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
444 linux_init_abi.
445
0d12017b
JB
4462013-10-10 Joel Brobecker <brobecker@adacore.com>
447
448 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
449 serial_baud_show_cmd.
450 (_initialize_cli_cmds): Delete the code creating the
451 "set/show remotebaud" commands.
452 * serial.c (baud_rate): Move here from top.c.
453 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
454 (_initialize_serial): Create "set/show serial baud" commands.
455 Add "set/show remotebaud" command aliases.
456 * top.c (baud_rate): Moved to serial.c.
457 * NEWS: Document the new "set/show serial baud" commands,
458 replacing "set/show remotebaud".
459
578d3588
PA
4602013-10-09 Pedro Alves <palves@redhat.com>
461
462 * breakpoint.c (insert_bp_location): Use memory_error_message to
463 build the memory error string.
464 * c-lang.c: Include "gdbcore.h".
465 (c_get_string): Use memory_error to throw error.
466 (target_xfer_memory_error): Delete.
467 (memory_error_message): New, factored out from
468 target_xfer_memory_error.
469 (memory_error): Change parameter type to target_xfer_error.
470 Rewrite.
471 (read_memory): Use memory_error instead of
472 target_xfer_memory_error.
473 * gdbcore.h: Include "target.h".
474 (memory_error): Change parameter type to target_xfer_error.
475 (memory_error_message): Declare function.
476 * target.c (target_read_memory, target_read_stack)
477 (target_write_memory, target_write_raw_memory): Return
478 TARGET_XFER_E_IO on error. Adjust comments.
479 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
480 instead of EIO.
481 * target.h (target_read, target_insert_breakpoint)
482 (target_remove_breakpoint): Adjust comments.
483 * valprint.c (partial_memory_read): Rename parameter, and adjust
484 comment.
485 (val_print_string): Use memory_error_message to build the memory
486 error string.
487
c74e1ccf
JK
4882013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
491 result variable. Rename variable fopen_e_ever_failed to
492 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
493
915215be
PA
4942013-10-09 Pedro Alves <palves@redhat.com>
495
496 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
497 (monitor_write_memory_longlongs, monitor_write_memory_block):
498 Constify 'myaddr' parameter.
499 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
500 helper.
501 (monitor_xfer_partial): New function.
502 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
503 hook. Install a to_xfer_partial hook.
504
acd13123
TT
5052013-10-09 Tom Tromey <tromey@redhat.com>
506
507 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
508 bfd_get_alt_debug_link_info.
509
40135bb1
JK
5102013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 New flag OBJF_NOT_FILENAME.
513 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
514 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
515 allocate_objfile.
516 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
517 symbol_file_add_from_bfd.
518 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
519 allocate_objfile.
520 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
521 NULL.
522 * objfiles.h (OBJF_NOT_FILENAME): New.
523
dc294be5
TT
5242013-10-08 Tom Tromey <tromey@redhat.com>
525
526 * Makefile.in (SFILES): Add build-id.c.
527 (HFILES_NO_SRCDIR): Add build-id.h.
528 * build-id.c: New file, largely from elfread.c. Modified
529 most functions.
530 * build-id.h: New file.
531 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
532 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
533 Search for dwz file using build-id.
534 * elfread.c (build_id_bfd_get, build_id_verify)
535 (build_id_to_debug_filename, find_separate_debug_file): Remove.
536
db230ce3
JB
5372013-10-08 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (compare_names_with_case): Renamed from
540 compare_names, adding a new parameter "casing" and its handling.
541 New function documentation.
542 (compare_names): New function, implemented using
543 compare_names_with_case.
544
6501c98a
JB
5452013-10-08 Joel Brobecker <brobecker@adacore.com>
546
547 * ada-lang.c (ada_exception_sal): Remove advance declaration.
548
84a1243b
TT
5492013-10-07 Tom Tromey <tromey@redhat.com>
550
551 * objfiles.c (free_objfile_per_bfd_storage): Delete the
552 demangled_names_hash.
553 (free_objfile): Don't delete the demangled_names_hash.
554 * objfiles.h (struct objfile_per_bfd_storage)
555 <demangled_names_hash>: New field.
556 (struct objfile) <demangled_names_hash>: Move to
557 objfile_per_bfd_storage.
558 * symfile.c (reread_symbols): Don't delete the
559 demangled_names_hash.
560 * symtab.c (create_demangled_names_hash): Update.
561 (symbol_set_names): Update.
562
1da77581
TT
5632013-10-07 Tom Tromey <tromey@redhat.com>
564
565 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
566 needs_relocations>: New fields.
567 (gdb_bfd_requires_relocations): New function.
568 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
569 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
570 the BFD needs relocations applied.
571
46ecd527
PA
5722013-10-07 Pedro Alves <palves@redhat.com>
573
574 PR breakpoints/11568
575 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
576 the thread list" instead of "gone".
577
0c557179
SDJ
5782013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
579
580 * NEWS: Mention new convenience variable $_exitsignal.
581 * corelow.c (core_open): Reset exit convenience variables. Set
582 $_exitsignal to the uncaught signal which generated the corefile.
583 * infrun.c (handle_inferior_event): Reset exit convenience
584 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
585 (clear_exit_convenience_vars): New function.
586 * inferior.h (clear_exit_convenience_vars): New prototype.
587
1cc47d81
YQ
5882013-10-06 Yao Qi <yao@codesourcery.com>
589
590 * varobj.h: Add comments to enum varobj_languages.
591
73869dc2
DE
5922013-10-04 Doug Evans <dje@google.com>
593
594 Add support for DWP file format version 2.
595 * NEWS: Mention support for DWP file format version 2.
596 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
597 union of asection, containing_section. New fields virtual_offset
598 and is_virtual. Change type of readin filed from int to char.
599 (dwo_sections, dwo_file): Tweak comments.
600 (dwp_v2_section_ids): New enum.
601 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
602 str_offsets, types.
603 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
604 All uses updated.
605 (virtual_v2_dwo_sections): New struct.
606 (dwp_hash_table): New fields version, nr_columns. Change type of
607 section_pool field to a union.
608 (dwp_file): New field version.
609 (dwarf2_has_info): Check for virtual sections.
610 (get_containing_section): New function.
611 (get_section_bfd_owner, get_section_bfd_section): Call it.
612 (dwarf2_locate_sections): Update.
613 (dwarf2_section_empty_p): Update.
614 (dwarf2_read_section): Handle virtual sections.
615 (locate_dwz_sections): Update.
616 (create_dwp_hash_table): Document and handle V2 format.
617 (locate_v1_virtual_dwo_sections): Renamed from
618 locate_virtual_dwo_sections and update. All callers updated.
619 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
620 Delete arg htab. Rename arg section_index to unit_index.
621 All callers updated.
622 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
623 All uses updated.
624 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
625 (lookup_dwo_unit_in_dwp): Add V2 support.
626 (dwarf2_locate_dwo_sections): Update.
627 (dwarf2_locate_common_dwp_sections): Renamed from
628 dwarf2_locate_dwp_sections and update. All callers updated.
629 (dwarf2_locate_v2_dwp_sections): New function.
630 (open_and_init_dwp_file): Add V2 support.
631 (read_str_index): New locals str_section, str_offsets_section.
632
9a2c3737
PA
6332013-10-04 Pedro Alves <palves@redhat.com>
634
635 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
636 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
637 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
638 describing comments with references to ptid.h.
639 * common/ptid.h: Remove intro description of constructors,
640 accessors and predicates.
641 (struct ptid): Reformat.
642 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
643 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
644 describing comments.
645
f5371440
JB
6462013-10-04 Joel Brobecker <brobecker@adacore.com>
647
648 * aix-thread.c (sync_threadlists): Add missing ')' in call
649 to ptid_build.
650
793e1c06
JB
6512013-10-04 Joel Brobecker <brobecker@adacore.com>
652
653 * procfs.c (procfs_init_inferior): Fix typo causing the build
654 to fail.
655
26f0edc1
JB
6562013-10-04 Joel Brobecker <brobecker@adacore.com>
657
658 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
659
5713b9b5
JB
6602013-10-04 Joel Brobecker <brobecker@adacore.com>
661
662 * mi/mi-main.c (run_one_inferior): Add function description.
663 Make ARG a pointer to an integer whose value determines whether
664 we should "run" or "start" the program.
665 (mi_cmd_exec_run): Add handling of the "--start" option.
666 Reject all other command-line options.
667 * NEWS: Add entry for "-exec-run"'s new "--start" option.
668
f48ff2a7
YQ
6692013-10-04 Yao Qi <yao@codesourcery.com>
670
671 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
672 (struct notif_client) <pending_event>: Moved
673 to struct remote_notif_state.
674 <id>: New field.
675 (struct remote_notif_state) <pending_event>: New field.
676 (notif_event_xfree): Declare.
677 * remote-notif.c (handle_notification): Adjust.
678 (notif_event_xfree): New function.
679 (do_notif_event_xfree): Call notif_event_xfree.
680 (remote_notif_state_xfree): Call notif_event_xfree to free
681 each element in field pending_event.
682 * remote.c (discard_pending_stop_replies): Remove declaration.
683 (discard_pending_stop_replies_in_queue): Declare.
684 (remote_close): Call discard_pending_stop_replies_in_queue
685 instead of discard_pending_stop_replies.
686 (remote_start_remote): Adjust.
687 (stop_reply_xfree): Call notif_event_xfree.
688 (notif_client_stop): Adjust initialization.
689 (remote_notif_remove_all): Rename it to ...
690 (remove_stop_reply_for_inferior): ... this. Update comments.
691 Don't check INF is NULL.
692 (discard_pending_stop_replies): Return early if notif_state is
693 NULL. Adjust. Don't check INF is NULL.
694 (remote_notif_get_pending_events): Adjust.
695 (discard_pending_stop_replies_in_queue): New function.
696 (remote_wait_ns): Likewise.
697
5965e028
YQ
6982013-10-04 Yao Qi <yao@codesourcery.com>
699
700 * remote-notif.c (DECLARE_QUEUE_P): Remove.
701 (notif_queue): Remove.
702 (remote_notif_process): Add one parameter 'notif_queue'.
703 Update comments. Callers update.
704 (remote_async_get_pending_events_token): Remove.
705 (remote_notif_register_async_event_handler): Remove.
706 (remote_notif_unregister_async_event_handler): Remove.
707 (handle_notification): Add parameter 'notif_queue'. Update
708 comments. Callers update.
709 (notif_xfree): Remove.
710 (remote_notif_state_allocate): New function.
711 (remote_notif_state_xfree): New function.
712 (_initialize_notif): Remove code to allocate queue.
713 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
714 (struct remote_notif_state): New.
715 (handle_notification): Update declaration.
716 (remote_notif_process): Likewise.
717 (remote_notif_register_async_event_handler): Remove.
718 (remote_notif_unregister_async_event_handler): Remove.
719 (remote_notif_state_allocate): Declare.
720 (remote_notif_state_xfree): Declare.
721 * remote.c (struct remote_state) <notif_state>: New field.
722 (remote_close): Don't call
723 remote_notif_unregister_async_event_handler. Call
724 remote_notif_state_xfree.
725 (remote_open_1): Don't call
726 remote_notif_register_async_event_handler. Call
727 remote_notif_state_allocate.
728
5e5ac9a5
YQ
7292013-10-04 Yao Qi <yao@codesourcery.com>
730
731 * varobj.c (create_child_with_value): Remove 'const' from the
732 type of parameter 'name'.
733 (varobj_add_child): Likewise.
734 (install_dynamic_child): Remove 'const' from the type of
735 parameter 'name'.
736 (varobj_add_child): Likewise.
737 (create_child_with_value): Likewise. Update comments. Don't
738 duplicate 'name'.
739 (update_dynamic_varobj_children): Duplicate 'name'
740 and pass it to install_dynamic_child.
741
06ab7b19
PM
7422013-10-03 Phil Muldoon <pmuldoon@redhat.com>
743
744 * python/py-value.c (convert_value_from_python): Move PyInt_Check
745 conversion logic to occur after PyLong_Check. Comment on order
746 change significance.
747 * python/py-arch.c (archpy_disassemble): Comment on order of
748 conversion for integers and longs.
749
8ae377e8
PA
7502013-10-03 Pedro Alves <palves@redhat.com>
751
752 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
753 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
754 functions. Always test for PTRACE_O_TRACESYSGOOD even if
755 PTRACE_O_TRACEFORK is not supported.
756 (linux_test_for_tracesysgood): New function.
757 (linux_test_for_tracefork): New function, factored out from
758 linux_check_ptrace_features, and also don't kill child_pid here.
759
b1328b1b
TG
7602013-10-03 Tristan Gingold <gingold@adacore.com>
761
762 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
763 Remove verbose error reporting. Use detected state to
764 thread_set_state call.
765 (i386_darwin_dr_get): Fix return type. Remove verbose error
766 report.
767 Remove trailing spaces.
768
901461f8
PA
7692013-10-02 Pedro Alves <palves@redhat.com>
770
771 * cp-valprint.c (cp_print_value_fields): Adjust calls to
772 val_print_optimized_out.
773 * jv-valprint.c (java_print_value_fields): Likewise.
774 * p-valprint.c (pascal_object_print_value_fields): Likewise.
775 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
776 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
777 new optimized out value.
778 * findvar.c (address_from_register): Likewise.
779 * frame.c (put_frame_register): Tweak error string to say the
780 register was not saved, rather than optimized out.
781 * infcmd.c (default_print_one_register_info): Adjust call to
782 val_print_optimized_out. Use value_of_register instead of
783 get_frame_register_value.
784 * mi/mi-main.c (output_register): Use value_of_register instead of
785 get_frame_register_value.
786 * valprint.c (valprint_check_validity): Likewise.
787 (val_print_optimized_out): New value parameter. If the value is
788 lval_register, print <not saved> instead.
789 (value_check_printable, val_print_scalar_formatted): Adjust calls
790 to val_print_optimized_out.
791 * valprint.h (val_print_optimized_out): New value parameter.
792 * value.c (struct value) <optimized_out>: Extend comment.
793 (error_value_optimized_out): New function.
794 (require_not_optimized_out): Use it. Use a different string for
795 lval_register values.
796 * value.h (error_value_optimized_out): New declaration.
797 * NEWS: Mention <not saved>.
798
042a84d9
JB
7992013-10-02 Joel Brobecker <brobecker@adacore.com>
800
801 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
802 strcmp to compare two symtab filenames.
803
6b9780fb
JB
8042013-10-02 Joel Brobecker <brobecker@adacore.com>
805
806 * symtab.c (search_symbols_equal): Delete.
807 (sort_search_symbols_remove_dups): Replace call to
808 search_symbols_equal by call to compare_search_syms,
809 adjusting as necessary.
810
751e7549
PM
8112013-10-02 Phil Muldoon <pmuldoon@redhat.com>
812
813 PR python/15579
814
815 * python/python.c: Document gdb.execute command in Python help.
816
1efd7661
PM
8172013-10-02 Phil Muldoon <pmuldoon@redhat.com>
818
819 * python/py-frame.c (frame_info_to_frame_object): Use
820 gdbpy_convert_exception. Clean up Python object on failure.
821
562fc849
PM
8222013-10-02 Phil Muldoon <pmuldoon@redhat.com>
823
824 * python/lib/gdb/command/frame_filters.py
825 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
826 (ShowFrameFilterPriority.invoke): Ditto.
827
d7561cbb
KS
8282013-10-01 Keith Seitz <keiths@redhat.com>
829
830 * linespec.c (struct ls_parser): Make 'saved_arg' const.
831 (parse_linespec): Make 'argptr' const.
832 Remove temporary cast of 'argptr' to const char **.
833 (decode_line_full): Pass const pointer to parse_linespec.
834 (decode_line_1): Likewise.
835 (decode_objc): Make local variable 'new_argptr' const.
836 (find_function_symbols): Remove temporary cast to char *
837 to find_imps.
838 * objc-lang.c (find_imps): Make argument 'method' const.
839 Return const.
840 * objc-lang.h (find_imps): Likewise.
841
8422013-10-01 Keith Seitz <keiths@redhat.com>
843
844 * completer.c (skip_quoted_chars): Make all arguments const.
845 Return const.
846 (skip_quoted): Likewise.
847 * completer.h (skip_quoted_chars): Likewise.
848 (skip_quoted): Likewise.
849 * defs.h (skip_quoted): Remove duplicate declaration.
850 * jv-exp.y: Include completer.h.
851 (yylex): Remove unneccessary cast to char * fro skip_quoted.
852 * p-exp.y: Include completer.h.
853
8542013-10-01 Keith Seitz <keiths@redhat.com>
855
856 * c-exp.y (parse_number): Make first argument const.
857 Make a copy of the input to manipulate.
858 (c_parse_escape): Make first argument const.
859 Make local variable 'tokptr' const.
860 (parse_string_or_char): Make first two arguments const.
861 (macro_original_text): Make const.
862 (lex_one_token): Make local variable 'tokstart' const.
863 Likewise for local variables named 'p'.
864 Cast away const for struct stoken (temporary).
865 * c-lang.h (c_parse_escpae): Make first argument const.
866 * cli/cli-cmds.c (echo_command): Make local variable 'p'
867 const.
868 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
869 var_string case.
870 * f-exp.y (parse_number): Make first argument const.
871 (match_string_literal): Make local variable 'tokstart'
872 const.
873 (yylex): Make local variable 'p' const.
874 Cast away const for struct stoken (temporary).
875 * go-exp.y (parse_number): Make first argument const.
876 (parse_string_or_char): Likewise.
877 Make local variable 'tokstart' const.
878 (lex_one_token): Likewise for numerous locals called 'p'.
879 Cast away const for struct stoken (temporary).
880 * jv-exp.y (parse_number): Make first argument const.
881 Make local variables 'tokstart' and 'tokptr' const.
882 Cast away const for call to skip_quoted (temporary).
883 (yylex): Make local variable 'p' const.
884 Cast away const for struct stoken (temporary).
885 * m2-exp.y (parse_number): Make local variable 'p' const.
886 (yylex): Likewise for 'tokstart'.
887 Cast away const for struct stoken (temporary).
888 Make local variable 'p' const.
889 * macroexp.c (get_character_constant): Pass a const string
890 to c_parse_escape.
891 (get_string_literal): Likewise.
892 (macro_expand_next): Make first argument const.
893 Cast away const for init_shared_buffer.
894 * macroexp.h (macro_expand_next): Make first argument const.
895 * p-exp.y (yylex): Make a local copy of 'lexptr'.
896 Pass a const string to c_parse_escape.
897 Make local variables 'p' and 'namestart' const.
898 * parse.c (lexptr): Make const.
899 (prev_lexptr): Likewise.
900 (find_template_name_end): Return const.
901 Make argument const, too.
902 (parse_exp_in_context): Make first argument const.
903 Remove the entire const_hack.
904 (parse_exp_in_context_1): Make first argument const.
905 * parser-defs.h (find_template_name_end): Return const.
906 Make argument const, too.
907 (lexptr): Make const.
908 (prev_lexptr): Likewise.
909 * utils.c (parse_escape): Make second argument const.
910 * utils.h (parse_escape): Likewise.
911
9122013-10-01 Keith Seitz <keiths@redhat.com>
913
914 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
915 is now const.
916 (block_lookup): Make 'raw_name' and 'name' const.
917 * ada-lex.l (processString): Update for struct stoken.ptr.
918 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
919 (operator_stoken): Likewise.
920 (lex_one_token): Remove temporary cast to char * for
921 'yylval.sval.ptr'.
922 * f-exp.y (yylex): Likewise.
923 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
924 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
925 * go-exp.y (lex_one_token): Remove temporary cast to char * for
926 'yylval.sval.ptr'.
927 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
928 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
929 * linespec.c (struct ls_parser): Make 'stream' const.
930 (find_parameter_list_end): Make argument 'input' and local
931 variable 'p' const.
932 (linespec_lexer_lex_string): Make local variables 'start' and
933 'p' const.
934 Use skip_spaces_const instead of skip_spaces.
935 (linespec_lexer_peek_token): Make local variable 'saved_stream'
936 const.
937 (parse_linespec): Temporarily cast 'argptr' to const for
938 'parser->lexer.stream'.
939 * m2-exp.y (yylex): Remove temporary cast to char * for
940 'yylval.sval.ptr'.
941 * objc-lang.c (add_msglist): Make local variable 'p' const.
942 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
943 (exp : STRING): Make 'sp' const.
944 (parse_number): Make argument 'p' const.
945 * parser-defs.h (struct stoken): Make 'ptr' const.
946
193a8eac
DE
9472013-10-01 Doug Evans <dje@google.com>
948
949 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
950
2213e2be
YQ
9512013-10-01 Yao Qi <yao@codesourcery.com>
952
953 * varobj.c (c_value_of_root): Remove declaration.
954 (cplus_value_of_root, java_value_of_root): Likewise.
955 (ada_value_of_root): Likewise.
956 (struct language_specific) <value_of_root>: Remove.
957 (languages): Update initialization.
958 (check_scope): Move earlier.
959 (c_value_of_root): Move earlier and rename to ...
960 (value_of_root_1): ... this.
961 (value_of_root): Caller update.
962 (cplus_value_of_root, java_value_of_root): Remove.
963 (ada_value_of_root): Remove.
964
c573f273
YQ
9652013-10-01 Yao Qi <yao@codesourcery.com>
966
967 * varobj.c (varobj_format_string): Remove "unknown".
968 (languages): Remove the first element.
969 * varobj.h (enum varobj_languages): Remove vlang_c.
970
56250258
YQ
9712013-10-01 Yao Qi <yao@codesourcery.com>
972
973 * varobj.c (struct language_specific) <language>: Remove.
974 (languages): Update the initialization.
975
29f9ebfa
YQ
9762013-10-01 Yao Qi <yao@codesourcery.com>
977
978 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
979 "solib-target.h". Include "windows-tdep.h".
980 (arm_wince_init_abi): Call windows_init_abi. Remove call to
981 set_solib_ops and set_gdbarch_has_dos_based_file_system.
982 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
983 windows-tdep.o to gdb_target_obs.
984
64870a42
YQ
9852013-10-01 Yao Qi <yao@codesourcery.com>
986
987 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
988 "solib-target.h".
989 (amd64_windows_init_abi): Don't call set_solib_ops and
990 set_gdbarch_iterate_over_objfiles_in_search_order. Call
991 windows_init_abi instead.
992 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
993 "solib-target.h".
994 (i386_cygwin_init_abi): Don't call set_solib_ops,
995 set_gdbarch_has_dos_based_file_system and
996 set_gdbarch_iterate_over_objfiles_in_search_order. Call
997 windows_init_abi instead.
998 * windows-tdep.c: Include "solib.h" and "solib-target.h".
999 (windows_init_abi): New function.
1000 (windows_iterate_over_objfiles_in_search_order): Make it
1001 static.
1002 * windows-tdep.h (windows_init_abi): Declare.
1003 (windows_iterate_over_objfiles_in_search_order): Remove
1004 declaration.
1005
0aebdefa
JB
10062013-10-01 Jerome Guitton <guitton@adacore.com>
1007
1008 Checked in by Joel Brobecker <brobecker@adacore.com>
1009 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1010 incomplete dictionnary instead of None in case of missing
1011 environment variables.
1012 (elinos_init): in case of an incomplete environment, best
1013 effort to load system libraries instead of abort.
1014
1c8e84b0
JB
10152013-10-01 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-lang.c (ada_has_this_exception_support): Ignore
1018 mst_solib_trampoline minimal symbols.
1019
61d82a0d
TG
10202013-09-30 Tristan Gingold <gingold@adacore.com>
1021
1022 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1023 hardware watchpoint.
1024 (i386_darwin_dr_set): Support 32 and 64 bit states.
1025 (i386_darwin_dr_get): Likewise.
1026 (i386_darwin_dr_set_control): Make static.
1027 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1028 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1029
dfd4cc63
LM
10302013-09-30 Luis Machado <lgustavo@codesourcery.com>
1031
1032 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1033 Replace TIDGET with ptid_get_lwp.
1034 Replace GET_LWP with ptid_get_lwp.
1035 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1036 Replace BUILD_THREAD with ptid_build.
1037 Replace BUILD_LWP with ptid_build.
1038 Replace PIDGET with ptid_get_pid.
1039 Replace TIDGET with ptid_get_lwp.
1040 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1041 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1042 Replace TIDGET with ptid_get_lwp.
1043 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1044 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1045 Replace TIDGET with ptid_get_lwp.
1046 Replace GET_LWP with ptid_get_lwp.
1047 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1048 * auxv.c: Likewise.
1049 * breakpoint.c: Likewise.
1050 * common/ptid.c (ptid_is_pid): Condense check for
1051 null_ptid and minus_one_ptid.
1052 (ptid_lwp_p): New function.
1053 (ptid_tid_p): New function.
1054 * common/ptid.h: Update comments for accessors.
1055 (ptid_lwp_p): New prototype.
1056 (ptid_tid_p): New prototype.
1057 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1058 * gcore.c: Replace PIDGET with ptid_get_pid.
1059 * gdbthread.h: Likewise.
1060 * gnu-nat.c: Likewise.
1061 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1062 Replace TIDGET with ptid_get_lwp.
1063 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1064 * hppanbsd-nat.c: Likewise.
1065 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1066 Replace TIDGET with ptid_get_lwp.
1067 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1068 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1069 * infcmd.c: Likewise.
1070 * inferior.h: Likewise.
1071 * inflow.c: Likewise.
1072 * infrun.c: Likewise.
1073 * linux-fork.c: Likewise.
1074 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1075 Replace GET_PID with ptid_get_pid.
1076 Replace is_lwp with ptid_lwp_p.
1077 Replace GET_LWP with ptid_get_lwp.
1078 Replace BUILD_LWP with ptid_build.
1079
5b4e221c
MF
10802013-09-28 Mike Frysinger <vapier@gentoo.org>
1081
1082 * common/linux-btrace.c: Move sys/syscall.h out of the
1083 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1084 Also check for SYS_perf_event_open before attempting to buid.
1085
57d63ce2
DE
10862013-09-27 Doug Evans <dje@google.com>
1087
19ac8c2e
DE
1088 * dwarf2read.c (dwarf2_section_info): Add comment.
1089 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1090 All uses updated.
1091 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1092 (dwarf2_read_section): Delete unused local "header". Add section
1093 name to error message.
1094 (create_dwo_in_dwp): Tweak comment.
1095 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1096
a32a8923
DE
1097 * dwarf2read.c (die_reader_specs): Tweak comment.
1098 (get_section_bfd_owner, get_section_bfd_section): New functions.
1099 (get_section_name, get_section_file_name): New functions.
1100 (get_section_id, get_section_flags): New functions.
1101 (*): Use new functions to access section fields.
1102
57d63ce2
DE
1103 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1104 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1105 arg "htab". All callers updated.
1106 (create_debug_types_hash_table): Remove redundant copy of
1107 abbrev_section.
1108 (create_dwo_in_dwp): Tweak comments.
1109 (read_str_index): Tweak comment. Record dwarf form name in static
1110 local.
1111
3736004f
PA
11122013-09-27 Pedro Alves <palves@redhat.com>
1113
1114 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1115 (remote_filename_p): Add comment.
1116 * remote.c (remote_filename_p): Adjust to use
1117 REMOTE_SYSROOT_PREFIX.
1118 * solib.c (solib_find): When deciding whether we need to add a
1119 directory separator, check whether the sysroot is "remote:"
1120 instead of checking whether the patch has a drive spec. Add
1121 comments.
1122
5b5596ff
PA
11232013-09-27 Pedro Alves <palves@redhat.com>
1124
1125 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1126 Delete fields.
1127 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1128 directly.
1129
b5eef7aa
JK
11302013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 Fix set debug frame output.
1133 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1134 SENTINEL_FRAME entry lower to match enum frame_type order.
1135
5b856f36
PM
11362013-09-26 Pierre Muller <muller@sourceware.org>
1137
1138 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1139 AMD64_R15_REGNUM when a register index is expected.
1140 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1141 Substitute in array.
1142 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1143 (amd64_push_arguments): Substitute in integer_regnum array.
1144
ade7ed9e
DE
11452013-09-25 Doug Evans <dje@google.com>
1146
d3e81981
DE
1147 * objfiles.c (allocate_objfile): Move comment to better place.
1148
8fb8eb5c
DE
1149 New option "set debug symfile on".
1150 * NEWS: Mention "set debug symfile".
1151 * Makefile.in (SFILES): Add symfile-debug.c.
1152 (COMMON_OBS): Add symfile-debug.o.
1153 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1154 objfile's symbol functions.
1155 * objfiles.h (objfile_set_sym_fns): Declare.
1156 * symfile-debug.c: New file.
1157 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1158 objfile's symbol functions.
1159 (reread_symbols): Ditto.
1160
c256e171
DE
1161 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1162 All uses updated.
1163 (add_symtab_fns): Update prototype.
1164 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1165 (registered_sym_fns): ... this.
1166 (symtab_fns): Update.
1167 (add_symtab_fns): New arg "flavour". All callers updated.
1168 (find_sym_fns): Rewrite to use new sym_fns registry.
1169
f56ce883
DE
1170 * symfile.h (struct sym_fns): Add "objfile" argument to
1171 sym_read_linetable. All uses updated.
1172
20c681d1
DE
1173 * symtab.c (domain_name, search_domain_name): New functions.
1174 * symtab.h (domain_name, search_domain_name): Declare.
1175
ade7ed9e
DE
1176 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1177 map_matching_symbols so objfile is first. All uses updated.
1178 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1179 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1180
7d760051
UW
11812013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1182
1183 PR shlibs/8882
1184 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1185 link map entries.
1186
020f7036
DE
11872013-09-24 Doug Evans <dje@google.com>
1188
1189 * objfiles.c (free_objfile): Move comment.
1190
598402f0
JB
11912013-09-24 Joel Brobecker <brobecker@adacore.com>
1192
1193 * ada-exp.y (string_to_operator): Delete.
1194 (dummy_string_to_ada_operator): Delete.
1195
bf4d6c1c
JB
11962013-09-24 Joel Brobecker <brobecker@adacore.com>
1197
1198 Revert:
1199 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1200 amd64-tdep.c.
1201 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1202 call_dummy_integer_regs, and classify.
1203 * amd64-tdep.h (amd64_classify): Add declaration.
1204 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1205 (amd64_reg_class): Delete, moved to i386-tdep.h.
1206 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1207 Replace call to amd64_classify by call to tdep->classify.
1208 (amd64_push_arguments): Get the list of registers to use for
1209 passing integer parameters from the gdbarch tdep structure,
1210 rather than using a hardcoded one. Replace calls to amd64_classify
1211 by calls to tdep->classify.
1212 (amd64_push_dummy_call): Get the register number used for
1213 the "hidden" argument from tdep->call_dummy_integer_regs.
1214 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1215 and tdep->call_dummy_integer_regs. Set tdep->classify.
1216
849e9755
JB
12172013-09-24 Joel Brobecker <brobecker@adacore.com>
1218
1219 Revert:
1220 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1221 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1222 where tdep->memory_args_by_pointer is non-zero.
1223
c1459fd6
JB
12242013-09-24 Joel Brobecker <brobecker@adacore.com>
1225
1226 Revert:
1227 * i386-tdep.h (struct gdbarch_tdep): Add new field
1228 integer_param_regs_saved_in_caller_frame.
1229 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1230 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1231
20c2e3e0
JB
12322013-09-24 Joel Brobecker <brobecker@adacore.com>
1233
874440b8 1234 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1235 (amd64_windows_classify): Delete.
1236 (amd64_windows_passed_by_integer_register)
1237 (amd64_windows_passed_by_xmm_register)
1238 (amd64_windows_passed_by_pointer)
1239 (amd64_windows_adjust_args_passed_by_pointer)
1240 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1241 (amd64_windows_push_dummy_call): New functions.
1242 (amd64_windows_init_abi): Remove setting of
1243 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1244 tdep->classify, tdep->memory_args_by_pointer and
1245 tdep->integer_param_regs_saved_in_caller_frame.
1246 Add call to set_gdbarch_push_dummy_call.
1247
82bf32bc
JK
12482013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1251 objfile->original_name.
1252
24ba069a
JK
12532013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 Pass down original filename for objfile.
1256 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1257 * elfread.c (elf_symfile_read): Likewise.
1258 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1259 longer set ORIGINAL_NAME.
1260 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1261 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1262 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1263 symbol_file_add_from_bfd call.
1264 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1265 (macho_check_dsym): Add parameter filenamep. Change function comment.
1266 Set *filenamep.
1267 (macho_symfile_read): New variable dsym_filename. Update
1268 macho_check_dsym call. Use it for symbol_file_add_separate.
1269 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1270 it. Use it for objfile->original_name.
1271 (objfile_name): Return OBFD's filename, if available.
1272 * objfiles.h (allocate_objfile): Add new parameter name.
1273 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1274 * symfile-mem.c (symbol_file_add_from_memory): Update
1275 symbol_file_add_from_bfd call.
1276 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1277 comment for it.
1278 (symbol_file_add_with_addrs): New parameter name, add function comment
1279 for it. Remove variable name. Update allocate_objfile call.
1280 (symbol_file_add_separate): New parameter name, add function comment
1281 for it. Update symbol_file_add_with_addrs call.
1282 (symbol_file_add_from_bfd): New parameter name. Update
1283 symbol_file_add_with_addrs call.
1284 (symbol_file_add): Update symbol_file_add_from_bfd call.
1285 (reread_symbols): New variable original_name. Save
1286 objfile->original_name by it.
1287 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1288 second parameter.
1289
4262abfb
JK
12902013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
1292 Code cleanup: Add objfile_name accessor function.
1293 * ada-lang.c (is_known_support_routine): Use objfile_name.
1294 * auto-load.c (source_gdb_script_for_objfile)
1295 (auto_load_objfile_script): Likewise.
1296 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1297 * dbxread.c (dbx_symfile_read): Likewise.
1298 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1299 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1300 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1301 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1302 (lookup_dwp_signatured_type, lookup_dwo_unit)
1303 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1304 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1305 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1306 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1307 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1308 (read_subrange_type, load_partial_dies, read_partial_die)
1309 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1310 (die_containing_type, build_error_marker_type, lookup_die_type)
1311 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1312 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1313 (get_DW_AT_signature_type, write_psymtabs_to_index)
1314 (save_gdb_index_command): Likewise.
1315 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1316 Likewise.
1317 * expprint.c (dump_subexp_body_standard): Likewise.
1318 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1319 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1320 original_name.
1321 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1322 obj_name, use objfile_name for it, use the variable.
1323 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1324 Use objfile_name.
1325 * machoread.c (macho_symtab_read, macho_check_dsym)
1326 (macho_symfile_relocate): Likewise.
1327 * maint.c (maintenance_translate_address): Likewise.
1328 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1329 * minsyms.c (install_minimal_symbols): Likewise.
1330 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1331 original_name.
1332 (filter_overlapping_sections): Use objfile_name.
1333 (objfile_name): New function.
1334 * objfiles.h (struct objfile): Rename field name to original_name.
1335 (objfile_name): New prototype.
1336 * printcmd.c (sym_info, address_info): Use objfile_name.
1337 * probe.c (parse_probes, collect_probes, compare_probes)
1338 (info_probes_for_ops): Likewise.
1339 * progspace.c (clone_program_space): Likewise.
1340 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1341 (maintenance_info_psymtabs): Likewise.
1342 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1343 (source_section_scripts): Likewise.
1344 * python/py-objfile.c (objfpy_get_filename): Likewise.
1345 * python/py-progspace.c (pspy_get_filename): Likewise.
1346 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1347 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1348 * solib.c (solib_read_symbols): Likewise.
1349 * stabsread.c (scan_file_globals): Likewise.
1350 * stap-probe.c (handle_stap_probe): Likewise.
1351 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1352 (find_separate_debug_file_by_debuglink): Likewise.
1353 (reread_symbols): Likewise. Use the objfile field name renamed to
1354 original_name.
1355 (allocate_symtab): Use objfile_name.
1356 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1357 (dump_objfile, dump_msymbols, dump_symtab_1)
1358 (maintenance_print_msymbols, maintenance_print_objfiles)
1359 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1360 * target.c (target_translate_tls_address, target_info): Likewise.
1361 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1362 objfile_name.
1363
4721dc18
JK
13642013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 Code cleanup.
1367 * probe.c (parse_probes): Rename variable objfile_name to
1368 objfile_namestr.
1369
a61d6db8
JK
13702013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1371
1372 Remove solib-sunos.c.
1373 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1374 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1375 * objfiles.c (rt_common_objfile): Remove.
1376 (free_objfile): Remove rt_common_objfile comparison.
1377 * objfiles.h (rt_common_objfile): Remove.
1378 * solib-sunos.c: Remove.
1379 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1380
2659903b
JK
13812013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 Remove a.out NetBSD and OpenBSD hosts.
1384 * NEWS (Removed native configurations): New.
1385 * config/arm/nbsdaout.mh: Remove.
1386 * config/i386/nbsdaout.mh: Remove.
1387 * config/i386/obsdaout.mh: Remove.
1388 * config/m68k/nbsdaout.mh: Remove.
1389 * config/sparc/nbsdaout.mh: Remove.
1390 * config/vax/nbsdaout.mh: Remove.
1391 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1392 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1393 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1394 error.
1395 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1396 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1397 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1398
f60e2d5c
TT
13992013-09-23 Tom Tromey <tromey@redhat.com>
1400
1401 * linespec.c (struct minsym_and_objfile): Remove.
1402 (minsym_and_objfile_d): Remove.
1403 (struct linespec, struct collect_info, linespec_parse_basic)
1404 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1405 (compare_msymbols, find_method, find_function_symbols)
1406 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1407 (add_minsym, search_minsyms_for_name): Update.
1408
d3eaaf66
AB
14092013-09-23 Andrew Burgess <aburgess@broadcom.com>
1410
1411 * regcache.c: Add include of valprint.h.
1412 (dump_endian_bytes): Delete.
1413 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1414
2cc762b5
AB
14152013-09-23 Andrew Burgess <aburgess@broadcom.com>
1416
1417 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1418
96181529
PA
14192013-09-19 Pedro Alves <palves@redhat.com>
1420
1421 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1422 breakpoints.
1423
9b3f3ee6
TS
14242013-09-19 Pedro Alves <palves@redhat.com>
1425 Thomas Schwinge <thomas@codesourcery.com>
1426 Yue Lu <hacklu.newborn@gmail.com>
1427
1428 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1429 Take a gdb_byte pointer instead of a char pointer.
1430
1431 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1432 gnu_xfer_partial helper.
1433 (gnu_xfer_partial): New function.
1434 (gnu_target): Don't install a deprecated_xfer_memory hook.
1435 Install a to_xfer_partial hook.
1436
69150c3d
JK
14372013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 Constification.
1440 * main.c (captured_main): Replace catch_command_errors by
1441 catch_command_errors_const. Twice.
1442 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1443 (symbol_file_add): Make name parameter const.
1444 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1445 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1446 variable name. Change their usage accordingly.
1447 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1448 const.
1449 (symbol_file_add_main): Make args parameter const.
1450
086850b2
UW
14512013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1452 Ulrich Weigand <uweigand@de.ibm.com>
1453
1454 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1455 of c_value member.
1456 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1457
ca08a94c 14582013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1459 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1460
1461 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1462 (gnu_create_inferior)
1463 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1464 (set_sig_thread_cmd): Use the lwpid field of ptids to
1465 store/extract thread ids instead of the tid field.
1466 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1467
e4c6a2c4
AB
14682013-09-18 Andrew Burgess <aburgess@broadcom.com>
1469
1470 * infcmd.c (default_print_one_register_info): Add detection of
1471 optimized out values.
1472 (default_print_registers_info): Switch to using
1473 get_frame_register_value.
1474
58c48e72
MM
14752013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1476
1477 * infrun.c (handle_inferior_event): Check if we know the
1478 function start address before setting a resume breakpoint.
1479
c8d37639
PA
14802013-09-18 Pedro Alves <palves@redhat.com>
1481
1482 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1483 minus_one_ptid instead of looking at the ptid's tid field and
1484 comparing that to -1.
1485
71926e28
AB
14862013-09-18 Andrew Burgess <aburgess@broadcom.com>
1487
1488 * main.h (get_gdb_program_name): Remove extra whitespace.
1489
c88a1531
AB
14902013-09-18 Andrew Burgess <aburgess@broadcom.com>
1491
1492 * main.h (get_gdb_program_name): Add declaration.
1493 * main.c (get_gdb_program_name): Add definition.
1494
4390d890
DE
14952013-09-17 Doug Evans <dje@google.com>
1496
1497 * dwarf2read.c: Move definitions of complaint functions to after
1498 forward declarations of local functions.
1499
49fa26b0
PA
15002013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1501 Pedro Alves <palves@redhat.com>
1502
1503 PR gdb/11568
1504 * breakpoint.c (remove_threaded_breakpoints): New function.
1505 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1506 as thread_exit observer.
1507
08d72866
PA
15082013-09-17 Pedro Alves <palves@redhat.com>
1509
1510 PR gdb/15911
1511 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1512 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1513 * corelow.c (core_open):
1514 * frame.h (print_stack_frame, print_frame_info): New
1515 'set_current_sal' parameter.
1516 * infcmd.c (finish_command, kill_command): Adjust call to
1517 print_stack_frame.
1518 * inferior.c (inferior_command): Likewise.
1519 * infrun.c (normal_stop): Likewise.
1520 * linux-fork.c (linux_fork_context): Likewise.
1521 * record-full.c (record_full_goto_entry, record_full_restore):
1522 Likewise.
1523 * remote-mips.c (common_open): Likewise.
1524 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1525 Use it.
1526 (print_frame_info): New 'set_current_sal' parameter. Set the last
1527 displayed sal depending on the new paremeter instead of looking at
1528 print_what.
1529 (backtrace_command_1, select_and_print_frame, frame_command)
1530 (current_frame_command, up_command, down_command): Adjust call to
1531 print_stack_frame.
1532 * thread.c (print_thread_info, restore_selected_frame)
1533 (do_captured_thread_select): Adjust call to print_stack_frame.
1534 * tracepoint.c (tfind_1): Likewise.
1535 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1536 (mi_cmd_stack_info_frame): Likewise.
1537 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1538 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1539
6bc305f5
SDJ
15402013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1541
1542 * value.c (isvoid_internal_fn): Replace "parameter" with
1543 "argument".
1544
0a7cfe2c
SS
15452013-09-16 Stan Shebs <stan@codesourcery.com>
1546
1547 * README: Update references to writing code for GDB.
1548 * configure.ac (build_warnings): Remove obsolete comment.
1549 * configure: Regenerate.
1550 * gdbarch.sh: Remove references to gdbint.texinfo.
1551 * gdbarch.h: Regenerate.
1552 * gdbtypes.c (objfile_type): Remove comments referencing internals
1553 manual and D10V.
1554
a280dbd1
SDJ
15552013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1556
1557 * NEWS: Mention new convenience function $_isvoid.
1558 * value.c (isvoid_internal_fn): New function.
1559 (_initialize_values): Add new convenience function $_isvoid.
1560
04a83fee
PM
15612013-09-16 Pierre Muller <muller@sourceware.org>
1562
1563 * arm-linux-tdep.c: Add "elf/common.h" header.
1564 Remove AT_HWCAP macro definintion as it is provided in
1565 added include file.
1566 * s390-tdep.c: Remove system header <elf.h>
1567 Add "elf/common.h" header for AT_HWCAP definition.
1568 (s390_core_read_description): Use correct CORE_ADDR
1569 for hwcap local variable used as third parameter
1570 of function target_auxv_search.
1571
88505fac
PM
15722013-09-14 Pierre Muller <muller@sourceware.org>
1573 Tom Tromey <tromey@redhat.com>
1574 Pedro Alves <palves@redhat.com>
1575
1576 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1577 mode if operating system doesn't know O_CLOEXEC.
1578
d3846e71
JK
15792013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 Code cleanup.
1582 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1583 inner block.
1584
4ac33720
UW
15852013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1586
1587 * NEWS: Mention TDB support.
1588 * features/s390-tdb.xml: New file.
1589 * features/s390-te-linux64.xml: New file.
1590 * features/s390x-te-linux64.xml: New file.
1591 * features/Makefile (WHICH): Add new tdescs above.
1592 (s390-te-linux64-expedite): Set.
1593 (s390x-te-linux64-expedite): Set.
1594 * features/s390-te-linux64.c: New file (generated).
1595 * features/s390x-te-linux64.c: New file (generated).
1596 * regformats/s390-te-linux64.dat: New file (generated).
1597 * regformats/s390x-te-linux64.dat: New file (generated).
1598 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1599 (HWCAP_S390_TE): Likewise.
1600 (S390_TDB_DWORD0_REGNUM): Likewise.
1601 (S390_TDB_DWORD0_REGNUM): Likewise.
1602 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1603 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1604 (S390_TDB_ATIA_REGNUM): Likewise.
1605 (S390_TDB_R0_REGNUM): Likewise.
1606 (S390_TDB_R1_REGNUM): Likewise.
1607 (S390_TDB_R2_REGNUM): Likewise.
1608 (S390_TDB_R3_REGNUM): Likewise.
1609 (S390_TDB_R4_REGNUM): Likewise.
1610 (S390_TDB_R5_REGNUM): Likewise.
1611 (S390_TDB_R6_REGNUM): Likewise.
1612 (S390_TDB_R7_REGNUM): Likewise.
1613 (S390_TDB_R8_REGNUM): Likewise.
1614 (S390_TDB_R9_REGNUM): Likewise.
1615 (S390_TDB_R10_REGNUM): Likewise.
1616 (S390_TDB_R11_REGNUM): Likewise.
1617 (S390_TDB_R12_REGNUM): Likewise.
1618 (S390_TDB_R13_REGNUM): Likewise.
1619 (S390_TDB_R14_REGNUM): Likewise.
1620 (S390_TDB_R15_REGNUM): Likewise.
1621 (S390_NUM_REGS): Increase.
1622 (S390_IS_TDBREGSET_REGNUM): New macro.
1623 (s390_regmap_tdb): Declare.
1624 (s390_sizeof_tdbregset): Define.
1625 (tdesc_s390_te_linux64): Declare.
1626 (tdesc_s390x_te_linux64): Likewise.
1627 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1628 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1629 (s390_regmap_tdb): New regmap.
1630 (s390_supply_tdb_regset): New function.
1631 (s390_tdb_regset): New regset.
1632 (s390_linux64v2_regset_sections): Add TDB regset to list.
1633 (s390x_linux64v2_regset_sections): Likewise.
1634 (s390_regset_from_core_section): Recognize TDB core note section.
1635 (s390_core_read_description): If HWCAP indicates TE support,
1636 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1637 (s390_gdbarch_init): Handle TDB regset.
1638 (_initialize_s390_tdep): Initialize new tdescs.
1639 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1640 (have_regset_tdb): New variable.
1641 (s390_native_supply): Support register invalidation.
1642 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1643 (check_regset): Treat ENODATA as "regset exists".
1644 (s390_linux_fetch_inferior_registers): Add TDB.
1645 (s390_read_description): Check for TDB existence and select
1646 appropriate tdesc.
1647 * gdbserver/Makefile.in (clean): Add removal of new makefile
1648 targets.
1649 (s390-te-linux64.c): New makefile target.
1650 (s390x-te-linux64.c): Likewise.
1651 * gdbserver/configure.srv (srv_regobj): Append new objects
1652 s390-te-linux64.o and s390x-te-linux64.o.
1653 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1654 s390x-te-linux64.xml, and s390-tdb.xml.
1655 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1656 declaration.
1657 (tdesc_s390_te_linux64): Likewise.
1658 (init_registers_s390x_te_linux64): Likewise.
1659 (tdesc_s390x_te_linux64): Likewise.
1660 (s390_check_regset): Treat ENODATA as "regset exists".
1661 (s390_arch_setup): Add TDB regset support.
1662 (initialize_low_arch): Initialize registers for new tdescs.
1663
2ccd1468
UW
16642013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1667 (S390_IS_FPREGSET_REGNUM): New macro.
1668 * s390-tdep.c (s390_dwarf_regmap): Make const.
1669 (regnum_is_gpr_full): New function for replacing repeated code.
1670 (s390_pseudo_register_name): Use it.
1671 (s390_pseudo_register_type): Likewise.
1672 (s390_pseudo_register_read): Likewise.
1673 (s390_pseudo_register_write): Likewise.
1674 (s390_unwind_pseudo_register): Likewise.
1675 (s390_regmap_gregset): New format for regmap.
1676 (s390x_regmap_gregset): Likewise.
1677 (s390_regmap_fpregset): Likewise.
1678 (s390_regmap_upper): Likewise.
1679 (s390_regmap_last_break): Likewise.
1680 (s390_regmap_system_call): Likewise.
1681 (s390_supply_regset): Adjust to new regmap format.
1682 (s390_collect_regset): Likewise.
1683 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1684 (s390_native_collect): Likewise.
1685 (supply_gregset): Likewise.
1686 (fill_gregset): Likewise.
1687 (supply_fpregset): Likewise.
1688 (fill_fpregset): Likewise.
1689 (fetch_regset): Likewise.
1690 (store_regset): Likewise.
1691 (s390_linux_fetch_inferior_registers): Likewise.
1692 (s390_linux_fetch_inferior_registers): Likewise.
1693
1aa4cd77
AP
16942013-09-12 Andrew Pinski <apinski@cavium.com>
1695
1696 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1697
d91fab15
UW
16982013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1699
1700 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1701
5a5d8ead
AB
17022013-09-09 Andrew Burgess <aburgess@broadcom.com>
1703
1704 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1705
1385f66c
PA
17062013-09-06 Pedro Alves <palves@redhat.com>
1707
1708 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1709 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1710 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1711 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1712 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1713 gdb_stdlog.
1714
146ec4db
PA
17152013-09-06 Pedro Alves <palves@redhat.com>
1716
1717 * remote-sim.c (dump_mem): Constify buf parameter.
1718 gdbsim_xfer_inferior_memory): Rename to ...
1719 (gdbsim_xfer_memory): ... this. Adjust interface as
1720 target_xfer_partial helper.
1721 (gdbsim_xfer_partial): New function.
1722 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1723 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1724
fcde0081
PA
17252013-09-06 Pedro Alves <palves@redhat.com>
1726
1727 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1728 host_address_to_string, and send debug output to gdb_stdlog.
1729
749c8b38
RW
17302013-09-06 Ricard Wanderlof <ricardw@axis.com>
1731
1732 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1733 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1734 gdb_target_obs for cris target.
1735 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1736 (cris_gdbarch_init): Move calls to
1737 set_gdbarch_fetch_tls_load_module_address and
1738 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1739 Add call to gdbarch_init_osabi.
1740 * cris-linux-tdep.c: New file.
1741 * cris-tdep.h: New file.
1742
43df09d9
AB
17432013-09-06 Andrew Burgess <aburgess@broadcom.com>
1744
1745 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1746 to deprecated_init_ui_hook.
1747
4d09c5b4
AB
17482013-09-06 Andrew Burgess <aburgess@broadcom.com>
1749
1750 * cli/cli-interp.c (_initialize_cli_interp): Add a
1751 command_loop_proc to interp_procs.
1752 * event-top.c (cli_command_loop): Change signature to match
1753 interp_command_loop_ftype.
1754 * event-top.h (cli_command_loop): Same.
1755 * interps.c (interp_new): Require every interpreter to have a
1756 command_loop_proc.
1757 (current_interp_command_loop): Just call the command_loop_proc on
1758 the current interpreter.
1759 * tui/tui-interp.c (_initialize_tui_interp): Add a
1760 command_loop_proc to interp_procs.
1761
8eb3d7b6
RW
17622013-09-06 Ricard Wanderlof <ricardw@axis.com>
1763
1764 * cris-tdep.c (cris_gdbarch_init): Add call to
1765 get_gdbarch_fetch_tls_load_module_address.
1766
18b3c2f5
RW
17672013-09-06 Ricard Wanderlof <ricardw@axis.com>
1768
1769 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1770 (cris_elf_gregset_t): Rename from elf_gregset_t.
1771 (crisv32_elf_gregset_t): Adjust.
1772 (cris_supply_gregset, fetch_core_registers): Adjust.
1773
dc8636ef
RW
17742013-09-06 Ricard Wanderlof <ricardw@axis.com>
1775
1776 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1777
257e6d53
AB
17782013-09-05 Andrew Burgess <aburgess@broadcom.com>
1779
1581d8a7 1780 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1781 references in comments.
1581d8a7 1782 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1783 deprecated_command_loop_hook.
1784 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1785 setup.
1581d8a7 1786 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1787
7c33b57c
PA
17882013-09-05 Pedro Alves <palves@redhat.com>
1789
1790 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1791 local is now int instead of ULONGEST. Print it with %d
1792 instead of paddress.
1793
9f8edbd5
TG
17942013-09-05 Tristan Gingold <gingold@adacore.com>
1795
1796 * MAINTAINERS: Remove avr maintainership.
1797
d5b495b4
PA
17982013-09-05 Pedro Alves <palves@redhat.com>
1799
1800 * findvar.c (value_of_register): Rework in terms of
1801 value_of_register_lazy.
1802
40b91786
MB
18032013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1804
1805 * symfile.c (add_symbol_file_command): Remove trailing
1806 whitespaces and blank line after comment.
1807
6eed1678
PA
18082013-09-05 Pedro Alves <palves@redhat.com>
1809
1810 * tui/tui-regs.c (tui_register_format): Don't look at the
1811 register's name here. Return string representing register
1812 value instead of storing it in the data element.
1813 (tui_get_register): Compare register string representations
1814 instead of register value states and contents.
1815
8eb6bda2
PA
18162013-09-05 Pedro Alves <palves@redhat.com>
1817
1818 PR tui/15933
1819 * tui/tui-regs.c (tui_show_registers): Show registers of the
1820 selected frame, not the current frame.
1821
48b1f08c
RW
18222013-09-05 Ricard Wanderlof <ricardw@axis.com>
1823
1824 * MAINTAINERS (Write After Approval): Add myself to the list.
1825
89e63ee4
DE
18262013-09-04 Doug Evans <dje@google.com>
1827
1828 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1829 (queue_and_load_dwo_tu): New function.
1830 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1831 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1832 Make dependent_cu optional.
1833 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1834 and an older .gdb_index is in use, queue and load all its TUs too.
1835
492c0ab7
JK
18362013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1839 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1840 variable search_flags.
1841 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1842 (OPF_RETURN_REALPATH): ... here.
1843 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1844 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1845 call. Twice.
1846 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1847 openp call.
1848 * solib.c (solib_find): Likewise. Four times.
1849 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1850 in the function comment and for the realpath_fptr variable.
1851 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1852 (find_and_open_source): Likewise. Twice.
1853 * symfile.c (symfile_bfd_open): Likewise, also twice.
1854
23a44de8
DE
18552013-09-04 Doug Evans <dje@google.com>
1856
1857 * progspace.c (save_current_space_and_thread): Remove unnecessary
1858 call to save_current_inferior.
1859
47061676
AB
18602013-09-04 Andrew Burgess <aburgess@broadcom.com>
1861
1862 * sh64-tdep.c (sh64_do_register): Return after printing message
1863 about unavailable register contents.
1864
41dc8db8
MB
18652013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1866 Pedro Alves <palves@redhat.com>
1867
1868 * symfile.c (add_symbol_file_command): Error out on unknown
1869 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1870 options and collapse into single conditional branch.
1871
07107ca6
LM
18722013-09-03 Luis Machado <lgustavo@codesourcery.com>
1873
a7ea61cf 1874 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1875 detach_fork.
1876 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1877 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1878 * inferior.h (detach_fork): Remove.
1879 * infrun.c (detach_fork): Adjust comment and make it
1880 static.
1881 (follow_fork): Pass detach_fork parameter to
1882 target_follow_fork.
1883 * linux-nat.c (linux_child_follow_fork): New parameter
1884 detach_fork.
1885 * target.c (target_follow_fork): New parameter detach_fork.
1886 Pass detach_fork as parameter and print its value.
1887 * target.h (struct target_ops) <to_follow_fork>: New int
1888 parameter.
1889 (target_follow_fork): New parameter detach_fork.
1890
3bec2768
JB
18912013-09-03 Joel Brobecker <brobecker@adacore.com>
1892
1893 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1894 Replace sec->bfd by sec->the_bfd_section->owner.
1895
c01cbb3d
YQ
18962013-09-03 Yao Qi <yao@codesourcery.com>
1897
1898 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1899 from linux_has_shared_address_space.
1900 (linux_has_shared_address_space): Call linux_is_uclinux.
1901 * linux-tdep.h (linux_is_uclinux): Declare.
1902 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1903 linux_is_uclinux.
1904
7b00db47
YQ
19052013-09-03 Yao Qi <yao@codesourcery.com>
1906
1907 * config/djgpp/fnchange.lst: Remove entry of
1908 i386-interix-nat.c and i386-interix-tdep.c.
1909 * configure.ac: Remove '*-*-interix*'.
1910 * configure: Re-generated.
1911 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1912 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1913 obsolete comments.
1914 * osabi.c (gdb_osabi_names): Remove "Interix".
1915
0f9741f2
YQ
19162013-09-03 Yao Qi <yao@codesourcery.com>
1917
1918 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1919
1e038f67
MM
19202013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1921
1922 * record.h (record_print_flag) <record_print_src_line,
1923 record_print_insn_range>: Rename into ...
1924 (record_print_flag) <record_print_src_line,
1925 record_print_insn_range>: ... this. Update all users.
1926
9e52adf9
PM
19272013-09-02 Pierre Muller <muller@sourceware.org>
1928
1929 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1930 error code.
1931
a2388568
PM
19322013-09-02 Pierre Muller <muller@sourceware.org>
1933
1934 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1935 by use of plongest function.
1936
9058cc3a
TG
19372013-09-02 Tristan Gingold <gingold@adacore.com>
1938
1939 * NEWS: Add entry mentioning support for native Windows x64
1940 SEH data.
1941
1942 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1943 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1944 (struct amd64_windows_frame_cache): New struct.
1945 (amd64_windows_w2gdb_regnum): New global.
1946 (pc_in_range, amd64_windows_frame_decode_epilogue)
1947 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1948 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1949 (amd64_windows_frame_this_id): New functions.
1950 (amd64_windows_frame_unwind): New static global.
1951 (amd64_windows_skip_prologue): New function.
1952 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1953 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1954 with amd64_windows_skip_prologue.
1955
3161820b 19562013-08-30 Joel Brobecker <brobecker@adacore.com>
1957
1958 GDB 7.6.1 released.
1959
02457c76
PA
19602013-08-30 Pedro Alves <palves@redhat.com>
1961
1962 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1963 SRC_AND_LOC.
1964
e0162910
PA
19652013-08-30 Pedro Alves <palves@redhat.com>
1966
1967 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1968 warning text.
1969
6391ce51
PA
19702013-08-30 Pedro Alves <palves@redhat.com>
1971
1972 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1973 Adjust arguments to print_stack_frame.
1974
d1da0587
PA
19752013-08-30 Pedro Alves <palves@redhat.com>
1976
1977 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1978
adfd8245
PA
19792013-08-30 Pedro Alves <palves@redhat.com>
1980
1981 * frame.h (show_and_print_stack_frame): Delete declaration.
1982
96d9056e
PM
19832013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1984
1985 PR python/15461
1986
1987 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1988 (archpy_name): Check for valid architecture.
1989 (archpy_disassemble): Ditto.
1990
11cb8762
JB
19912013-08-29 Joel Brobecker <brobecker@adacore.com>
1992
1993 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1994 instead of "long long" in call to ptrace64.
1995
1af12a7d
AB
19962013-08-29 Andrew Burgess <aburgess@broadcom.com>
1997
1998 * mi/mi-interp.c (mi_command_loop): Change signature to match
1999 interp_command_loop_ftype.
2000 (mi1_command_loop): Remove.
2001 (mi2_command_loop): Remove.
2002 (mi3_command_loop): Remove.
2003 (mi_interpreter_resume): Remove setting of
2004 deprecated_command_loop_hook.
2005 (_initialize_mi_interp): Set mi_command_loop as the command loop
2006 callback.
2007
acc900c2
SA
20082013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2009
2010 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2011 value_type.
2012
548b762d
SA
20132013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2014
2015 * value.c (allocate_value_contents): Make static.
2016 * value.h (allocate_value_contents): Remove prototype.
2017
08039c9e
SA
20182013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2019
2020 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2021 of assembling value via allocate_value_lazy and attribute setter.
2022 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2023 assembling value via allocate_value_lazy and attribute setter.
2024 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2025 assembling value via allocate_value_lazy and attribute setter.
2026
314c7de9
SA
20272013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2028
2029 * value.c (value_from_contents_and_address): Replace allocate_value and
2030 memcpy with value_from_contents.
2031
8f28f522
PM
20322013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2033
2034 * python/py-framefilter.c (py_print_frame): Remove usage of
2035 PyString_AsString. Use python_string_to_host_string instead.
2036 Refactor function to work with a string as a new allocation
2037 instead of a pointer.
2038 (py_print_frame): Ditto.
2039 * python/lib/gdb/frames.py (return_list): Cain iterators together
2040 instead of adding them as a list.
2041 (_sort_list): Call return_list, and remove duplicate code.
2042 (execute_frame_filters): Convert iterator to a list with list().
2043 * python/lib/gdb/command/frame_filters.py
2044 (SetFrameFilterPriority._set_filter_priority): Convert priority
2045 attribute to an integer.
2046 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2047 wrapper function __next__.
2048 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2049 define as "str".
2050
8ee002df
PM
20512013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2052
2053 PR python/15752
8ee002df
PM
2054 * python/py-framefilter.c (apply_frame_filter): Check
2055 gdb_python_initialized. Exit if the Python frame-filter code
2056 cannot be initialized.
2057
af4c453a
PM
20582013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2059
2060 PR cli/15842
af4c453a
PM
2061 * top.c (print_gdb_version): Remove erroneous newline after help
2062 text.
2063
bf8793bb
YQ
20642013-08-29 Yao Qi <yao@codesourcery.com>
2065
2066 * varobj.c (install_dynamic_child): Remove trailing space.
2067 Add one blank line after variable declaration.
2068
1f0c4988
JK
20692013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2070
2071 PR gdb/15415
2072 * corefile.c (get_exec_file): Use exec_filename.
2073 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2074 * exec.c (exec_close): Free EXEC_FILENAME.
2075 (exec_file_attach): New variable canonical_pathname. Use
2076 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2077 EXEC_FILENAME.
2078 * exec.h (exec_filename): New.
2079 * inferior.c (print_inferior, inferior_command): Use
2080 PSPACE_EXEC_FILENAME.
2081 * mi/mi-main.c (print_one_inferior): Likewise.
2082 * progspace.c (clone_program_space, print_program_space): Likewise.
2083 * progspace.h (struct program_space): New field pspace_exec_filename.
2084 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2085 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2086
59ee9f94
WN
20872013-08-28 Will Newton <will.newton@linaro.org>
2088
2089 * common/linux-ptrace.c: Include stdint.h unconditionally.
2090
c8a2a419
JK
20912013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2092
2093 Code cleanup.
2094 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2095
ffa4ac95
YQ
20962013-08-28 Yao Qi <yao@codesourcery.com>
2097 Pedro Alves <palves@redhat.com>
2098
2099 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2100 instead of stdio_fileopen.
2101 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2102 .Call stderr_fileopen instead of stdio_fileopen.
2103 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2104 [__MINGW32__] (stderr_file_fputs): New function.
2105 (stderr_fileopen): New function.
2106 * ui-file.h (stderr_fileopen): Declare.
2107
69d751e3
DE
21082013-08-27 Doug Evans <dje@google.com>
2109
2110 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2111 (struct dwarf2_per_cu_data): Ditto.
2112 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2113 (process_imported_unit_die): Ditto.
2114 (follow_die_sig_1): Simplify assert.
2115
44f38867
PA
21162013-08-27 Pedro Alves <palves@redhat.com>
2117
2118 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2119 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2120 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2121 windows_xfer_memory directly.
2122 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2123
d28d46b5
PA
21242013-08-27 Pedro Alves <palves@redhat.com>
2125
2126 * darwin-nat.c (darwin_xfer_memory): Delete.
2127 (_initialize_darwin_inferior): Don't install a
2128 deprecated_xfer_memory method.
2129
6211c335
YQ
21302013-08-27 Pedro Alves <pedro@codesourcery.com>
2131 Yao Qi <yao@codesourcery.com>
2132
2133 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2134 (parse_no_frames_option): Remove.
2135 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2136 (mi_cmd_stack_list_args): Adjust.
2137 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2138 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2139 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2140 Caller update.
2141 (list_args_or_locals): New parameter 'skip_unavailable'.
2142 Handle it.
2143 * valprint.c (scalar_type_p): Rename to ...
2144 (val_print_scalar_type_p): ... this. Make extern.
2145 (val_print, value_check_printable): Adjust.
2146 * valprint.h (val_print_scalar_type_p): Declare.
2147 * value.c (value_entirely_unavailable): New function.
2148 * value.h (value_entirely_unavailable): Declare.
2149
2150 * NEWS: Mention the new option "--skip-unavailable" to MI
2151 commands '-stack-list-locals', '-stack-list-arguments' and
2152 '-stack-list-variables'.
2153
242f1fd7
YQ
21542013-08-27 Yao Qi <yao@codesourcery.com>
2155
2156 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2157 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2158 options.
2159 * mi/mi-getopt.c (mi_getopt): Remove.
2160 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2161 'error_on_unknown'.
2162 (mi_getopt): Call mi_getopt_1.
2163 (mi_getopt_silent): New.
2164 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2165
260b681b
DE
21662013-08-26 Doug Evans <dje@google.com>
2167
779bd270
DE
2168 PR symtab/15885
2169 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2170 .gdb_index is in use.
2171 * symfile.c (reread_symbols): Reset objfile->sf.
2172
52e260a3
DE
2173 * NEWS: Document "mt print objfiles" now takes optional regexp.
2174 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2175 regexp of objfiles to print.
2176 (_initialize_symmisc): Update doc string for "mt print objfiles".
2177
260b681b
DE
2178 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2179 missing debug info checks.
2180
a85c52f2
UW
21812013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2182 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2185 line tables generated by XLC compiled binaries.
2186
4f00dda3
DE
21872013-08-23 Doug Evans <dje@google.com>
2188
db68bbae
DE
2189 * symmisc.c (dump_symtab): Delete prototype.
2190 (dump_msymbols, dump_objfile): Ditto.
2191 (maintenance_info_symtabs): Mark as dont_repeat.
2192 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2193
4f00dda3
DE
2194 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2195 debugging printf to better location.
2196
23d577b0
PA
21972013-08-23 Pedro Alves <palves@redhat.com>
2198
2199 * target.c (target_read_live_memory): Change type of 'ret' local
2200 to LONGEST.
2201
00d84524
PA
22022013-08-23 Pedro Alves <palves@redhat.com>
2203
2204 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2205 (remote_read_bytes): Change return type to LONGEST, and adjust to
2206 return a target_xfer_error on error.
2207 (remote_xfer_memory): Delete.
2208 (remote_flash_write): Change type of 'ret' local to LONGEST.
2209 (remote_xfer_partial, remote_xfer_partial): Adjust.
2210 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2211
1ed3ee94
PM
22122013-08-23 Pierre Muller <muller@sourceware.org>
2213
2214 ARI fix: Push # directives to start of line.
2215 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2216
9eaabc75
MW
22172013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2218
2219 PR gdb/15501
2220 * breakpoint.c (enable_command, disable_command): Iterate over
2221 all specified breakpoint locations.
2222
101158d9
LM
22232013-08-22 Luis Machado <lgustavo@codesourcery.com>
2224
2225 * common/linux-ptrace.c (linux_fork_to_function): Push #
2226 directives to the start of the line.
2227 (linux_check_ptrace_features): Fix warning message to use
2228 the "_" markup.
2229
96d7229d
LM
22302013-08-22 Luis Machado <lgustavo@codesourcery.com>
2231
2232 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2233 nat/linux-waitpid.h.
2234 (linux-waitpid.o): New object file rule.
2235 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2236 (current_ptrace_options): Moved from linux-nat.c.
2237 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2238 parameters.
2239 (linux_fork_to_function): New function.
2240 (linux_grandchild_function): Likewise.
2241 (linux_child_function): Likewise.
2242 (linux_check_ptrace_features): New function, heavily
2243 based on linux-nat.c:linux_test_for_tracefork.
2244 (linux_enable_event_reporting): New function.
2245 (ptrace_supports_feature): Likewise.
2246 (linux_supports_tracefork): Likewise.
2247 (linux_supports_traceclone): Likewise.
2248 (linux_supports_tracevforkdone): Likewise.
2249 (linux_supports_tracesysgood): Likewise.
2250 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2251 gdbserver/linux-low.c.
2252 (linux_enable_event_reporting): New declaration.
2253 (linux_supports_tracefork): Likewise.
2254 (linux_supports_traceclone): Likewise.
2255 (linux_supports_tracevforkdone): Likewise.
2256 (linux_supports_tracesysgood): Likewise.
2257 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2258 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2259 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2260 * config/arm/linux.mh (NATDEPFILES): Likewise.
2261 * config/i386/linux.mh (NATDEPFILES): Likewise.
2262 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2263 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2264 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2265 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2266 * config/mips/linux.mh (NATDEPFILES): Likewise.
2267 * config/pa/linux.mh (NATDEPFILES): Likewise..
2268 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2269 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2270 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2271 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2272 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2273 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2274 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2275 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2276 ptrace's 4th argument's types.
2277 Check the type of PTRACE_TYPE_ARG4.
2278 * configure: Regenerate.
2279 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2280 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2281 (linux_supports_tracefork_flag): Remove.
2282 (linux_supports_tracesysgood_flag): Likewise.
2283 (linux_supports_tracevforkdone_flag): Likewise.
2284 (current_ptrace_options): Moved to
2285 common/linux-ptrace.c.
2286 (linux_tracefork_child): Remove.
2287 (my_waitpid): Remove.
2288 (linux_test_for_tracefork): Renamed to
2289 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2290 (linux_test_for_tracesysgood): Remove.
2291 (linux_supports_tracesysgood): Remove.
2292 (linux_supports_tracefork): Remove.
2293 (linux_supports_tracevforkdone): Remove.
2294 (linux_enable_tracesysgood): Remove.
2295 (linux_enable_event_reporting): Remove.
2296 (linux_init_ptrace): New function.
2297 (linux_child_post_attach): Call linux_init_ptrace.
2298 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2299 (linux_child_follow_fork): Call linux_supports_tracefork
2300 and linux_supports_tracevforkdone.
2301 (linux_child_insert_fork_catchpoint): Call
2302 linux_supports_tracefork.
2303 (linux_child_insert_vfork_catchpoint): Likewise.
2304 (linux_child_set_syscall_catchpoint): Call
2305 linux_supports_tracesysgood.
2306 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2307 * nat/linux-nat.h: New file.
2308 * nat/linux-waitpid.c: New file.
2309 * nat/linux-waitpid.h: New file.
2310
9f948660
SDJ
23112013-08-22 Samuel Bronson <naesten@gmail.com>
2312
2313 ARM Linux support for `catch syscall'.
2314 * syscalls/arm-linux.py: New file.
2315 * syscalls/arm-linux.xml: Likewise.
2316 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2317 (arm_linux_init_abi): Register the new function and syscall xml file.
2318 * data-directory/Makefile.in: Install the new syscall xml file.
2319 * NEWS: Brag about this.
2320
6be7b56e
PA
23212013-08-22 Pedro Alves <palves@redhat.com>
2322
2323 PR gdb/15871
2324 * corefile.c (target_xfer_memory_error): New function.
2325 (memory_error): Defer EIO to target_memory_error.
2326 (read_memory): Use target_xfer_partial, and handle finer-grained
2327 target xfer errors.
2328 * target.c (target_xfer_error_to_string): New function.
2329 (memory_xfer_partial_1): If memory is known to be
2330 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2331 (target_xfer_partial): Make extern.
2332 * target.h (enum target_xfer_error): New enum.
2333 (target_xfer_error_to_string): Declare function.
2334 (target_xfer_partial): Declare function.
2335 (struct target_ops) <xfer_partial>: Adjust describing comment.
2336
bcbec14e
AM
23372013-08-22 Alan Modra <amodra@gmail.com>
2338
2339 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2340 * configure.tgt: Likewise as targets.
2341
fc474241
DE
23422013-08-20 Doug Evans <dje@google.com>
2343
2344 * buildsym.c (subfile_stack): Move here from buildsym.h.
2345 (pending_macros): Ditto.
2346 (get_macro_table): New function.
2347 (buildsym_init): Initialize subfile_stack.
2348 * coffread.c (type_vector,type_vector_length): Moved here from
2349 buildsym.h.
2350 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2351 (coff_symtab_read): Use it.
2352 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2353 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2354 with call to get_macro_table.
2355 * stabsread.c (type_vector,type_vector_length): Moved here from
2356 buildsym.h.
2357 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2358 * buildsym.h (get_macro_table): Declare.
2359
bec71544
TT
23602013-08-20 Tom Tromey <tromey@redhat.com>
2361
2362 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2363 Update.
2364 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2365
0002ad5f
DE
23662013-08-20 Doug Evans <dje@google.com>
2367
2368 * blockframe.c: Remove #include "psymtab.h".
2369 * cp-support.c: Ditto.
2370 * source.c: Ditto.
2371 * stack.c: Ditto.
2372
df302446
TT
23732013-08-20 Tom Tromey <tromey@redhat.com>
2374
2375 PR python/15816:
2376 * exceptions.h (return_mask): Now an enum.
2377 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2378 enum constants.
2379
df6d5441
TT
23802013-08-20 Tom Tromey <tromey@redhat.com>
2381
2382 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2383 get_objfile_arch.
2384 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2385 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2386 * jit.c (jit_object_close_impl): Update.
2387 * jv-lang.c (get_dynamics_objfile): Update.
2388 * linespec.c (add_minsym): Use get_dynamics_objfile.
2389 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2390 (allocate_objfile): Don't initialize 'gdbarch' field.
2391 (get_objfile_arch): Update.
2392 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2393 moved from...
2394 (struct objfile) <gdbarch>: ... here. Remove.
2395 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2396 get_objfile_arch.
2397 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2398
f5aee5ee
AM
23992013-08-20 Alan Modra <amodra@gmail.com>
2400
2401 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2402 for IBM long double nan and inf.
2403 (floatformat_is_negative, floatformat_classify,
2404 floatformat_mantissa): Similarly.
2405 (floatformat_ieee_single, floatformat_ieee_double,
2406 floatformat_ieee_quad, floatformat_arm_ext,
2407 floatformat_ia64_spill): Delete unused vars.
2408 (_initialize_doublest): Delete unused function.
2409 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2410 little-endian variants of floatformat_ibm_long_double.
2411
33b60d58 24122013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2413
33b60d58
LM
2414 * Makefile.in (SFILES): Remove common/target-common.c and
2415 add target/waitstatus.c.
2416 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2417 target/resume.h, target/wait.h and target/waitstatus.h.
2418 (COMMON_OBS): Remove target-common.o and add
2419 waitstatus.o.
2420 (target-common.o): Remove.
2421 (waitstatus.o): New target object file.
2422 * common/target-common.c: Move contents to
2423 target/waitstatus.c and remove.
2424 * common/target-common.h: Move contents to other files and
2425 remove.
2426 (enum resume_kind: Move to target/resume.h.
2427 (TARGET_WNOHANG): Move to target/wait.h.
2428 (enum target_waitkind): Move to target/waitstatus.h.
2429 (struct target_waitstatus): Likewise.
2430 * target.h: Do not include target-common.h and
2431 include target/resume.h, target/wait.h and
2432 target/waitstatus.h.
2433 * target/resume.h: New file.
2434 * target/wait.h: New file.
2435 * target/waitstatus.h: New file.
2436 * target/waitstatus.c: New file.
2437
12696c10
PA
24382013-08-19 Pedro Alves <palves@redhat.com>
2439
2440 * linux-nat.c (linux_test_for_tracefork)
2441 (linux_test_for_tracesysgood, linux_child_follow_fork)
2442 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2443 (linux_nat_wait_1): Extend comment.
2444 (linux_async_pipe): Add comment.
2445
ba89f962
KB
24462013-08-15 Kevin Buettner <kevinb@redhat.com>
2447
2448 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2449 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2450 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2451 Update to account for fact that PC is now a pseudo-register.
2452 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2453 cases for RL78_PC_REGNUM.
2454
35ab155d
MB
24552013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2456
2457 PR cli/15841
2458 * top.c (quit_force): Skip writing history file
2459 if input is not from terminal.
2460
0d031856
TT
24612013-08-14 Tom Tromey <tromey@redhat.com>
2462
2463 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2464 resultthreadlist>: New fields.
2465 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2466 (remote_get_threadlist, remote_threadlist_iterator): Use
2467 new fields. Remove static variables.
2468
ee154bee
TT
24692013-08-14 Tom Tromey <tromey@redhat.com>
2470
2471 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2472 remote_watch_data_address>: New fields.
2473 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2474 (process_stop_reply, remote_wait_as)
2475 (remote_check_watch_resources, remote_stopped_data_address): Update.
2476
88b496c3
TT
24772013-08-14 Tom Tromey <tromey@redhat.com>
2478
2479 * remote.c (struct remote_state) <async_client_callback,
2480 async_client_context>: New fields.
2481 (async_client_callback, async_client_context): Remove.
2482 (remote_async_serial_handler, remote_async): Update.
2483
2f65bcb7
TT
24842013-08-14 Tom Tromey <tromey@redhat.com>
2485
2486 * remote.c (sizeof_pkt): Remove.
2487 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2488
b80fafe3
TT
24892013-08-14 Tom Tromey <tromey@redhat.com>
2490
2491 * remote.c (struct remote_state) <use_threadinfo_query,
2492 use_threadextra_query>: New fields.
2493 (remote_threads_info, remote_threads_extra_info)
2494 (remote_open_1): Update.
2495
8e88304f
TT
24962013-08-14 Tom Tromey <tromey@redhat.com>
2497
2498 * remote.c (struct remote_state) <finished_object,
2499 finished_annex, finished_offset>: New fields.
2500 (remote_read_qxfer): Use remote_state fields; remove static
2501 variables.
2502
280ceea3
TT
25032013-08-14 Tom Tromey <tromey@redhat.com>
2504
2505 * remote.c (struct remote_state) <last_sent_step>:
2506 New field.
2507 (last_sent_step): Remove.
2508 (remote_resume, remote_wait_as): Update.
2509
b73be471
TT
25102013-08-14 Tom Tromey <tromey@redhat.com>
2511
2512 * remote.c (struct remote_state) <last_sent_signal>:
2513 New field.
2514 (last_sent_signal): Remove.
2515 (new_remote_state, remote_resume, remote_wait_as): Update.
2516
5e4a05c4
TT
25172013-08-14 Tom Tromey <tromey@redhat.com>
2518
2519 * remote.c (struct remote_state) <last_program_signals_packet>:
2520 New field.
2521 (last_program_signals_packet): Remove.
2522 (remote_program_signals, remote_open_1): Update.
2523
747dc59d
TT
25242013-08-14 Tom Tromey <tromey@redhat.com>
2525
2526 * remote.c (struct remote_state) <last_pass_packet>:
2527 New field.
2528 (last_pass_packet): Remove.
2529 (remote_pass_signals, remote_open_1): Update.
2530
262e1174
TT
25312013-08-14 Tom Tromey <tromey@redhat.com>
2532
2533 * remote.c (struct remote_state) <remote_traceframe_number>:
2534 New field.
2535 (remote_traceframe_number): Remove.
2536 (new_remote_state, remote_open_1, set_remote_traceframe)
2537 (remote_trace_find): Update.
2538
47f8a51d
TT
25392013-08-14 Tom Tromey <tromey@redhat.com>
2540
2541 * remote.c (struct remote_state) <general_thread, continue_thread>:
2542 New fields.
2543 (general_thread, continue_thread): Remove.
2544 (record_currthread, set_thread, set_general_process)
2545 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2546 (extended_remote_mourn_1): Update.
2547
5d93a237
TT
25482013-08-14 Tom Tromey <tromey@redhat.com>
2549
2550 * remote.c (struct remote_state) <remote_desc>: New field.
2551 (remote_desc): Remove.
2552 (remote_threads_info, remote_threads_extra_info, remote_close)
2553 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2554 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2555 (remote_hostio_send_command, remote_file_put, remote_file_get)
2556 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2557 (remote_async, remote_new_objfile, set_range_stepping): Update.
2558
cf792862
TT
25592013-08-14 Tom Tromey <tromey@redhat.com>
2560
2561 * remote.c (remote_state): Now a pointer.
2562 (get_remote_state_raw): Update.
2563 (new_remote_state): New function.
2564 (_initialize_remote): Use new_remote_state.
2565
dc473cfb
TT
25662013-08-14 Tom Tromey <tromey@redhat.com>
2567
2568 * remote.c (remote_protocol_features): Now const.
2569
85ec6ce7
TT
25702013-08-14 Tom Tromey <tromey@redhat.com>
2571
2572 * remote.c (crc32_table, crc32): Remove.
2573 (remote_verify_memory): Use xcrc32.
2574
73033f12
SDJ
25752013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2576
2577 * value.h (create_internalvar_type_lazy): Adjust prototype
2578 declaration.
2579
5c30d39a
AB
25802013-08-13 Andrew Burgess <aburgess@broadcom.com>
2581
2582 * common/format.c (parse_format_string): Don't allow '#' flag for
2583 pointer arguments in format string.
2584
1a66331e
PM
25852013-08-13 Pierre Muller <muller@sourceware.org>
2586
fde605f3 2587 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2588 if rl_get_screen_size did not return useful values.
2589
b4013987
AA
25902013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2591
2592 PR breakpoints/15117
2593 * linespec.c (linespec_parse_basic): Check for convenience
2594 variable or history value while parsing.
2595
959b6a66
SDJ
25962013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2597
2598 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2599 AVR.
2600 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2601 different signals between the generic Linux kernel implementation
2602 and AVR's.
2603 (avr_linux_gdb_signal_from_target): Delete.
2604 (avr_linux_gdb_signal_to_target): Delete.
2605 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2606
24a55014
DE
26072013-08-09 Doug Evans <dje@google.com>
2608
2609 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2610 entries.
2611
eb14d406
SDJ
26122013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2613
2614 * linux-tdep.c: Define enum with generic signal numbers.
2615 (linux_gdb_signal_from_target): New function.
2616 (linux_gdb_signal_to_target): Likewise.
2617 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2618 methods to the functions above.
2619 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2620 (linux_gdb_signal_to_target): Likewise.
2621 * alpha-linux-tdep.c: Define new enum with signals different
2622 from generic Linux kernel.
2623 (alpha_linux_gdb_signal_from_target): New function.
2624 (alpha_linux_gdb_signal_to_target): Likewise.
2625 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2626 with the functions mentioned above.
2627 * avr-tdep.c: Define enum with differences between Linux kernel
2628 and AVR signals.
2629 (avr_linux_gdb_signal_from_target): New function.
2630 (avr_linux_gdb_signal_to_target): Likewise.
2631 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2632 the functions mentioned above.
2633 * sparc-linux-tdep.c: Define enum with differences between SPARC
2634 and generic Linux kernel signal numbers.
2635 (sparc32_linux_gdb_signal_from_target): New function.
2636 (sparc32_linux_gdb_signal_to_target): Likewise.
2637 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2638 to the functions defined above.
2639 * xtensa-linux-tdep.c: Define enum with differences between
2640 Xtensa and Linux kernel generic signals.
2641 (xtensa_linux_gdb_signal_from_target): New function.
2642 (xtensa_linux_gdb_signal_to_target): Likewise.
2643 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2644 to the functions defined above.
2645 * mips-linux-tdep.c: Define enum with differences between
2646 signals in MIPS and Linux kernel generic ones.
2647 (mips_gdb_signal_to_target): New function.
2648 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2649 only different signals from the Linux kernel generic.
2650 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2651 the functions defined above.
2652 * mips-linux-tdep.h (enum mips_signals): Remove.
2653
156d08c8
PA
26542013-08-09 Pedro Alves <palves@redhat.com>
2655
2656 * avr-tdep.c (XMALLOC): Delete macro.
2657 * cli/cli-dump.c (XMALLOC): Delete macro.
2658
db229724
PA
26592013-08-09 Pedro Alves <palves@redhat.com>
2660
2661 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2662 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2663 (fopen_with_cleanup, add_dump_command): Make static.
2664 * cli/cli-dump.h: Delete file.
2665 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2666 cli/cli-dump.h.
2667
3f12a589
PA
26682013-08-09 Pedro Alves <palves@redhat.com>
2669
2670 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2671 error message.
2672
c718be47
PA
26732013-08-09 Pedro Alves <palves@redhat.com>
2674
156d08c8 2675 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2676 error message.
2677
1e351ed1
PA
26782013-08-09 Pedro Alves <palves@redhat.com>
2679
2680 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2681 (gcore_command): Use tilde_expand here, and when showing the
2682 filename to the user, show the expanded version.
2683
1ed8d800
YQ
26842013-08-09 Yao Qi <yao@codesourcery.com>
2685
2686 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2687 'entryval' is set.
2688
47ecca85
PA
26892013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2690
2691 * gcore.c (create_gcore_bfd): Use tilde_expand.
2692
82a0a75f
YQ
26932013-08-08 Yao Qi <yao@codesourcery.com>
2694
2695 * frame.h (read_frame_local): Declare.
2696 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2697 read_frame_local.
2698 * stack.c (read_frame_local): New.
2699
5c4aa40b
YQ
27002013-08-08 Yao Qi <yao@codesourcery.com>
2701
2702 * mi/mi-cmd-stack.c: Update comments to function
2703 list_args_or_locals.
2704
b93601f3
TT
27052013-08-07 Tom Tromey <tromey@redhat.com>
2706
2707 PR symtab/15028:
2708 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2709 (process_psymtab_comp_unit_reader): Use it.
2710 (process_psymtab_comp_unit): Update. Add "pretend_language"
2711 argument.
2712 (dwarf2_build_psymtabs_hard): Update.
2713 (scan_partial_symbols): Pass CU's language to
2714 process_psymtab_comp_unit.
2715
fa760f46
TT
27162013-08-07 Tom Tromey <tromey@redhat.com>
2717
2718 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2719 (dwarf2_gdb_index_functions): Update.
2720 * psymtab.c (find_symbol_file_from_partial): Remove.
2721 (psym_functions): Update.
2722 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2723 Remove.
2724
bf6d8a91
TT
27252013-08-07 Tom Tromey <tromey@redhat.com>
2726
2727 * symfile.c (set_initial_language): Look up "main" symbol
2728 and use its language.
2729 * symtab.c (find_main_filename): Remove.
2730 * symtab.h (find_main_filename): Remove.
2731
f9125b6c
TT
27322013-08-07 Tom Tromey <tromey@redhat.com>
2733
2734 * dwarf2read.c (recursively_compute_inclusions): Add
2735 "immediate_parent" argument. Set symtab's "user" field
2736 if not set.
2737 (compute_symtab_includes): Update.
2738
fdbb204b
TT
27392013-08-07 Tom Tromey <tromey@redhat.com>
2740
2741 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2742 when adding label symbols.
2743
49de1690
UW
27442013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2745 Ulrich Weigand <uweigand@de.ibm.com>
2746
2747 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2748 * configure.host (powerpc64-*-aix*): Likewise.
2749
b08ee99f
UW
27502013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2751 Ulrich Weigand <uweigand@de.ibm.com>
2752
2753 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2754 is defined.
2755 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2756 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2757 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2758 * configure.ac: Check for ptrace64.
2759 * configure, config.in: Regenerate.
2760
fecf803e
UW
27612013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2762 Ulrich Weigand <uweigand@de.ibm.com>
2763
2764 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2765 Call ptrace64 instead of ptrace if defined.
2766 Add macro addr_ptr to take care of ptrace address argument.
2767 (pdc_read_regs): Likewise.
2768 (pdc_write_regs): Likewise.
2769 (aix_thread_resume): Likewise.
2770 (fetch_regs_kernel_thread): Likewise.
2771 (store_regs_kernel_thread): Likewise.
2772
3bb5e4a8
AB
27732013-08-07 Anton Blanchard <anton@samba.org>
2774
2775 * MAINTAINERS: Add myself to Write After Approval.
2776
12070676
TT
27772013-08-05 Tom Tromey <tromey@redhat.com>
2778
2779 * aix-thread.c (_initialize_aix_thread): Use
2780 complete_target_initialization.
2781 * bsd-uthread.c (_initialize_bsd_uthread): Use
2782 complete_target_initialization.
2783 * dec-thread.c (_initialize_dec_thread): Use
2784 complete_target_initialization.
2785 * ravenscar-thread.c (_initialize_ravenscar): Use
2786 complete_target_initialization.
2787 * sol-thread.c (_initialize_sol_thread): Use
2788 complete_target_initialization.
2789 * spu-multiarch.c (_initialize_spu_multiarch): Use
2790 complete_target_initialization.
2791
7c7b6655
TT
27922013-08-05 Tom Tromey <tromey@redhat.com>
2793
2794 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2795 * ada-lang.c (ada_lookup_simple_minsym): Return
2796 bound_minimal_symbol.
2797 * ada-lang.h (ada_lookup_simple_minsym): Update.
2798 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2799 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2800 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2801 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2802 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2803 * minsyms.c (msymbol_objfile): Remove.
2804 (lookup_minimal_symbol_internal): New function, from
2805 lookup_minimal_symbol.
2806 (lookup_minimal_symbol): Rewrite using
2807 lookup_minimal_symbol_internal.
2808 (lookup_bound_minimal_symbol): New function.
2809 * minsyms.h (msymbol_objfile): Remove.
2810 (lookup_bound_minimal_symbol): Declare.
2811 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2812 * parse.c (write_exp_msymbol): Change parameter to a
2813 bound_minimal_symbol.
2814 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2815 * parser-defs.h (write_exp_msymbol): Update.
2816 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2817 * symfile.c (simple_read_overlay_table): Use
2818 lookup_bound_minimal_symbol.
2819 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2820 (search_symbols): Likewise.
2821 (print_msymbol_info): Take a bound_minimal_symbol argument.
2822 (symtab_symbol_info, rbreak_command): Update.
2823 * symtab.h (struct symbol_search) <msymbol>: Change type
2824 to bound_minimal_symbol.
2825 * valops.c (find_function_in_inferior): Use
2826 lookup_bound_minimal_symbol.
2827 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2828
934b9bac
JK
28292013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 Code cleanup.
2832 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2833 to ...
2834 (async_cleanup_sigint_signal_handler): ... this.
2835 (initialize_sigint_signal_handler): Remove declaration.
2836 (handle_remote_sigint): Rename the declaration to ...
2837 (async_handle_remote_sigint): ... this.
2838 (handle_remote_sigint_twice): Rename the declaration to ...
2839 (async_handle_remote_sigint_twice): ... this.
2840 (async_remote_interrupt, async_remote_interrupt_twice)
2841 (remote_interrupt): Remove the declarations.
2842 (remote_interrupt_twice): Rename the declaration ...
2843 (sync_remote_interrupt_twice): ... this.
2844 (sigint_remote_twice_token): Rename the variable to ...
2845 (async_sigint_remote_twice_token): ... this.
2846 (sigint_remote_token): Rename the variable to ...
2847 (async_sigint_remote_token): ... this.
2848 (initialize_sigint_signal_handler): Rename the function to ...
2849 (async_initialize_sigint_signal_handler): ... this. Update the name
2850 inside.
2851 (handle_remote_sigint): Rename the function to ...
2852 (async_handle_remote_sigint): ... this. Update the names inside.
2853 (handle_remote_sigint_twice): Rename the function to ...
2854 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2855 (cleanup_sigint_signal_handler): Rename the function to ...
2856 (async_cleanup_sigint_signal_handler): ... this.
2857 (remote_interrupt): Rename the function to ...
2858 (sync_remote_interrupt): this. Update the names inside.
2859 (remote_interrupt_twice): Rename the function to ...
2860 (sync_remote_interrupt_twice): this. Update the names inside.
2861 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2862 (_initialize_remote): Update the names inside.
2863
3a1115a0
TT
28642013-08-02 Tom Tromey <tromey@redhat.com>
2865
2866 PR symtab/15719:
2867 * breakpoint.c (update_watchpoint, watchpoint_check)
2868 (watch_command_1): Update.
2869 * eval.c (fetch_subexp_value): Add "preserve_errors"
2870 parameter.
2871 * ppc-linux-nat.c (check_condition): Update.
2872 * value.h (fetch_subexp_value): Update.
2873
58b19776
AB
28742013-08-02 Andrew Burgess <aburgess@broadcom.com>
2875
2876 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2877 add_file_handler.
2878
ec94af83
DE
28792013-08-01 Doug Evans <dje@google.com>
2880
7ee85ab1
DE
2881 PR symtab/15691
2882 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2883 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2884 Add assert of sig_entry->dwo_unit == NULL.
2885 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2886 had already been read.
2887 (read_signatured_type): Set per_cu.tu_read.
2888
b846d303
DE
2889 PR symtab/15695
2890 * valops.c (value_struct_elt): Add missing call to check_typedef.
2891 (value_find_oload_method_list): Ditto.
2892
b52109bc
DE
2893 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2894 effectively, struct symbol_search **.
2895 (make_cleanup_free_search_symbols): Change arg to struct
2896 symbol_search **. All callers updated.
2897 (compare_search_syms): Compare symtab file name and block as well.
2898 (search_symbols_equal): New function.
2899 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2900 New args new_head, new_tail. Result is now void. Remove dups after
2901 sorting the symbols.
2902 (search_symbols): Sort all found symbols once, after all have been
2903 found, and remove duplicates. Simplify cleanup tracking of result.
2904 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2905
ec94af83
DE
2906 Further workarounds for binutils/15021.
2907 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2908 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2909 Watch for duplicate symtabs coming from type units.
2910 (compute_symtab_includes): Update call to
2911 recursively_compute_inclusions. Build vector of included symtabs
2912 instead of per_cus.
2913 * symtab.h (symtab_ptr): New typedef.
2914 (DEF_VEC_P (symtab_ptr)): New VEC type.
2915 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2916 instead.
2917
b2ae85cf
AB
29182013-08-01 Andrew Burgess <aburgess@broadcom.com>
2919
2920 * cli/cli-script.c (script_from_file): Remove use of
2921 error_pre_print.
2922 * main.c (captured_main): Remove use of error_pre_print and
2923 quit_pre_print.
2924 * utils.c (error_pre_print, quit_pre_print): Remove.
2925 * utils.h (error_pre_print, quit_pre_print): Likewise.
2926
645eab03
YQ
29272013-08-01 Yao Qi <yao@codesourcery.com>
2928
2929 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2930 with mi_getopt.
2931 (mi_cmd_stack_list_variables): Likewise.
2932
16f92dd4
AB
29332013-07-31 Andrew Burgess <aburgess@broadcom.com>
2934
2935 * exceptions.c (deprecated_throw_reason): Remove.
2936 * exceptions.h (deprecated_throw_reason): Remove.
2937
13f78033
AB
29382013-07-31 Andrew Burgess <aburgess@broadcom.com>
2939
2940 * remote-mips.c (mips_error): Replace use of
2941 deprecated_throw_reason with throw_verror. Use the error message
2942 passed to mips_error as the error message for throw_verror.
2943
039e3c22
AB
29442013-07-31 Andrew Burgess <aburgess@broadcom.com>
2945
2946 * monitor.c (monitor_interrupt_query): Replace use of
2947 deprecated_throw_reason with quit.
2948 * nto-procfs.c (interrupt_query): Likewise.
2949 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2950 * remote-mips.c (mips_kill): Likewise.
2951 * remote.c (interrupt_query): Likewise.
2952
8150913b
AB
29532013-07-31 Andrew Burgess <aburgess@broadcom.com>
2954
2955 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2956 with call to fatal.
2957
de74e63a
YQ
29582013-07-31 Pedro Alves <pedro@codesourcery.com>
2959 Yao Qi <yao@codesourcery.com>
2960
2961 * tracepoint.c (trace_dump_command): Select the current frame.
2962
247f5c4f
DE
29632013-07-30 Doug Evans <dje@google.com>
2964
2965 * dwarf2read.c (process_queue): Add type signature to debug output.
2966
11b4b7cc
AB
29672013-07-30 Andrew Burgess <aburgess@broadcom.com>
2968
2969 * value.c (value_fetch_lazy): Mark optimized out values as such
2970 rather than raising an error.
2971
b0c54aa5
AB
29722013-07-30 Andrew Burgess <aburgess@broadcom.com>
2973
2974 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2975 before checking which bits of the parent, not the child, value are
2976 valid.
2977
97c85fc6
MB
29782013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2979
2980 PR gdb/15715
2981 * top.c: Include "filenames.h".
2982 (set_history_filename): New function.
2983 (init_main): Install it as set hook of the "set history filename"
2984 command.
2985
ff39bb5e
SA
29862013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2987
2988 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2989 attribute parameter.
2990 (dwarf2_const_value_data): Constify struct attribute parameter.
2991 (dwarf2_const_value): Constify struct attribute parameter.
2992 (dwarf2_const_value_attr): Constify struct attribute parameter.
2993 (lookup_die_type): Constify struct attribute parameter.
2994 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2995 (follow_die_ref_or_sig): Constify struct attribute parameter.
2996 (follow_die_ref): Constify struct attribute parameter.
2997 (follow_die_sig): Constify struct attribute parameter.
2998 (get_DW_AT_signature_type): Constify struct attribute parameter.
2999 (get_type_unit_group): Constify struct attribute parameter.
3000 (fill_in_loclist_baton): Constify struct attribute parameter.
3001 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3002 (type_unit_group): Constify struct attribute parameter.
3003
6e5a29e1
SA
30042013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3005
3006 * dwarf2read.c (attr_form_is_block): Make argument const.
3007 (attr_form_is_section_offset): Make argument const.
3008 (attr_form_is_constant): Make argument const.
3009 (attr_form_is_ref): Make argument const.
3010
7771576e
SA
30112013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3012
3013 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3014 All uses updated.
3015 (attr_form_is_ref): Moved below attr_form_is_constant.
3016
a94e8645
DE
30172013-07-29 Doug Evans <dje@google.com>
3018
bb5291d0
DE
3019 * main.c (captured_command_loop): Tweak comment.
3020
b5419e49
DE
3021 * target.c (target_async_permitted_1): Fix comment.
3022
b2d23133
DE
3023 * symtab.c (iterate_over_some_symtabs): Add comment.
3024
a94e8645
DE
3025 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3026
7a60ad40
YQ
30272013-07-27 Yao Qi <yao@codesourcery.com>
3028
3029 * NEWS: Mention that GDBserver now supports hardware
3030 watchpoints on the MIPS GNU/Linux target.
3031
aaee2056
YQ
30322013-07-27 Yao Qi <yao@codesourcery.com>
3033
3034 * Makefile.in (HFILES_NO_SRCDIR): Add
3035 common/mips-linux-watch.h.
3036 (mips-linux-watch.o): New rule.
3037 * common/mips-linux-watch.c: New.
3038 * common/mips-linux-watch.h: New.
3039 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3040 * mips-linux-nat.c: Include mips-linux-watch.h.
3041 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3042 to common/mips-linux-watch.h.
3043 (MAX_DEBUG_REGISTER): Likewise.
3044 (enum pt_watch_style): Likewise.
3045 (struct mips32_watch_regs): Likewise.
3046 (struct mips64_watch_regs): Likewise.
3047 (struct pt_watch_regs): Likewise.
3048 (struct mips_watchpoint): Likewise.
3049 (mips_linux_watch_get_irw_mask): Move to
3050 common/mips-linux-watch.c.
3051 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3052 (mips_linux_watch_get_watchlo): Likewise.
3053 (mips_linux_watch_set_watchlo): Likewise.
3054 (mips_linux_watch_get_watchhi): Likewise.
3055 (mips_linux_watch_set_watchhi): Likewise.
3056 (mips_linux_read_watch_registers): Likewise.
3057 (mips_linux_watch_type_to_irw): Likewise.
3058 (mips_linux_stopped_data_address, fill_mask): Likewise.
3059 (mips_linux_watch_try_one_watch): Likewise.
3060 (mips_linux_watch_populate_regs): Likewise.
3061
b3436450
YQ
30622013-07-27 Yao Qi <yao@codesourcery.com>
3063
3064 * mips-linux-nat.c (get_irw_mask): Rename to ...
3065 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3066 'set' to 'n'. Update function comment. All callers changed.
3067 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3068 function comment. All callers changed.
3069 (get_num_valid): Rename to ...
3070 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3071 'set' to 'n'. Update function comment. All callers changed.
3072 (get_watchlo): Rename to ...
3073 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3074 'set' to 'n'. Update function comment. All callers changed.
3075 (set_watchlo): Rename to ...
3076 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3077 'set' to 'n'. Update function comment. All callers changed.
3078 (get_watchhi): Rename to ...
3079 (mips_linux_watch_get_watchhi): ... this. Update function
3080 comment. All callers changed.
3081 (set_watchhi): Rename to ...
3082 (mips_linux_watch_set_watchhi): ... this. Update function
3083 comment. All callers changed.
3084 (mips_linux_read_watch_registers): Update function comment.
3085 Add new parameters 'lwpid', 'watch_readback', and
3086 'watch_readback_valid'. Update.
3087 (type_to_irw): Rename to ...
3088 (mips_linux_watch_type_to_irw): ... this. Update function
3089 comment. All callers changed.
3090 (fill_mask): Update function comment.
3091 (try_one_watch): Rename to ...
3092 (mips_linux_watch_try_one_watch): ... this. Change the type
3093 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3094 (populate_regs_from_watches): Rename to ...
3095 (mips_linux_watch_populate_regs): ... this. Add parameter
3096 'current_watches'. All callers changed.
3097
9be14b81
YQ
30982013-07-27 Yao Qi <yao@codesourcery.com>
3099
3100 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3101 the code.
3102 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3103 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3104 (struct pt_watch_regs): Likewise.
3105 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3106 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3107 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3108 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3109 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3110
de6f69ad
YQ
31112013-07-27 Yao Qi <yao@codesourcery.com>
3112
3113 * breakpoint.h: Include break-common.h.
3114 (enum target_hw_bp_type): Move to ...
3115 * common/break-common.h: ... here. New.
3116
6f64ef53
PA
31172013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3118
3119 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3120 process group regardless of having tty on stdin.
3121
6107e809
DE
31222013-07-25 Doug Evans <dje@google.com>
3123
3124 * linux-fork.h (detach_fork): Delete.
3125
7fdc1521
TT
31262013-07-25 Tom Tromey <tromey@redhat.com>
3127
3128 PR remote/15256, PR remote/15266:
3129 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3130 * monitor.c (monitor_detach): Use unpush_target.
3131 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3132 * remote-mips.c (mips_detach): Use unpush_target. Don't
3133 call mips_close.
3134 * remote-sim.c (gdbsim_detach): Use unpush_target.
3135 * target.c (pop_target): Remove.
3136 (pop_all_targets_above): Don't call target_close.
3137 (target_close): Assert that the target is unpushed.
3138 * target.h (pop_target): Don't declare.
3139 * tracepoint.c (tfile_open): Use unpush_target.
3140
c22a2b88
TT
31412013-07-25 Tom Tromey <tromey@redhat.com>
3142
3143 * linux-thread-db.c (init_thread_db_ops): Call
3144 complete_target_initialization.
3145 (_initialize_thread_db): Don't call add_target.
3146 * target.c (complete_target_initialization): New function.
3147 (add_target_with_completer): Call it.
3148 * target.h (complete_target_initialization): Declare.
3149
cbb6aada
MK
31502013-07-25 Mark Kettenis <kettenis@gnu.org>
3151
3152 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3153 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3154 (HPPANBSD_SIZEOF_GREGS): New define.
3155 (hppaobsd_supply_gregset): Handle additional registers.
3156 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3157 we provide more registers now.
3158 (hppabsd_supply_gregset): Supply additional registers.
3159 (hppabsd_collect_gregset): Collect additional registers.
3160
17767988
MK
31612013-07-25 Mark Kettenis <kettenis@gnu.org>
3162
3163 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3164 (hppabsd_dwarf2_frame_init_reg): New function.
3165 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3166
fdc8aae8
AB
31672013-07-25 Andrew Burgess <aburgess@broadcom.com>
3168
3169 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3170 'z' format code. Remove error for optimized out values, standard
3171 code will handle these fine.
3172
6fbe845e
AB
31732013-07-25 Andrew Burgess <aburgess@broadcom.com>
3174
3175 * NEWS: Mention new 'z' formatter.
3176 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3177 (_initialize_printcmd): Mention 'z' formatter in help text of the
3178 'x' command.
3179
3373342d
MR
31802013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3181
3182 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3183 formatting.
3184
25f9533e
SDJ
31852013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3186
3187 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3188 interface can evaluate arguments. Fallback to the old mode if it
3189 cannot.
3190 (create_exception_master_breakpoint): Likewise.
3191 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3192 (struct sym_probe_fns elf_probe_fns): Export function above to the
3193 probe interface.
3194 * probe.c (can_evaluate_probe_arguments): New function.
3195 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3196 function pointer.
3197 (can_evaluate_probe_arguments): New function prototype.
3198 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3199 probe interface can evaluate arguments. Fallback to the old mode
3200 if it cannot.
3201 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3202 interface can evaluate arguments. Warning the user if it cannot.
3203 (stap_can_evaluate_probe_arguments): New function.
3204 (struct probe_ops stap_probe_ops): Export function above to the
3205 probe interface.
3206 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3207 New function pointer.
3208
3360c0bf
LM
32092013-07-24 Luis Machado <lgustavo@codesourcery.com>
3210
3211 * Makefile.in (SFILES): Add common/target-common.c.
3212 Add common/target-common.h to headers.
3213 (COMMON_OBS): Add target-common.o.
3214 (target-common.o): New target.
3215 * linux-nat.h (resume_kind): Move to common/target-common.h.
3216 * target.c (target_waitstatus_to_string): Move to
3217 common/target-common.c.
3218 * target.h: Include target-common.h.
3219 (target_waitkind): Move to common/target-common.h.
3220 (target_waitstatus): Likewise.
3221 (TARGET_WNOHANG): Likewise.
3222 * common/target-common.c: New file.
3223 * common/target-common.h: New file.
3224
6656a72d
DE
32252013-07-24 Doug Evans <dje@google.com>
3226
3227 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3228 a warning.
3229
6df81a63
YQ
32302013-07-23 Yao Qi <yao@codesourcery.com>
3231
3232 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3233 parameter 'gdbarch'.
3234 (i386_stack_tramp_frame_sniffer): Caller update.
3235 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3236 parameter 'gdbarch' and 'target'.
3237 (i386_linux_core_read_description): Caller update.
3238 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3239 Likewise.
3240 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3241 declaration.
3242
365156ad
TT
32432013-07-23 Tom Tromey <tromey@redhat.com>
3244
3245 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3246 2013-07-22.
3247
046ac79f
JK
32482013-07-22 Doug Evans <dje@google.com>
3249
3250 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3251 * exec.c (exec_close): Update call to remove_target_sections.
3252 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3253 * solib.c (update_solib_list): Ditto.
3254 (reload_shared_libraries_1): Ditto.
3255 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3256 * target.h (struct target_section): Rename key to owner.
3257 All uses updated.
046ac79f 3258
29b2cc46
TT
32592013-07-22 Tom Tromey <tromey@redhat.com>
3260
3261 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3262
d1160018
TT
32632013-07-22 Tom Tromey <tromey@redhat.com>
3264
3265 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3266 Simplify cleanup handling.
3267
2f324bf6
TT
32682013-07-22 Tom Tromey <tromey@redhat.com>
3269
3270 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3271 on all return paths.
3272
e23b9d6e
UW
32732013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3274
3275 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3276 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3277 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3278
1cf55f60
PM
32792013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3280
3281 * top.c (print_gdb_version): Add help, apropos description and
3282 url to online documentation.
3283
fa876972
HZ
32842013-07-19 Hui Zhu <hui@codesourcery.com>
3285
3286 PR gdb/15692
3287 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3288
1527aea8
YQ
32892013-07-19 Yao Qi <yao@codesourcery.com>
3290
3291 * target.c (update_current_target): Change the default action
3292 of 'to_traceframe_info' from tcomplain to return_zero.
3293 * target.h (struct target_ops) <to_traceframe_info>: Add more
3294 comments.
3295 * valops.c (read_value_memory): Call
3296 traceframe_available_memory unconditionally.
3297
886f230e
YQ
32982013-07-18 Yao Qi <yao@codesourcery.com>
3299
3300 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3301 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3302 symbol without prefix. If found, set its type to
3303 'mst_solib_trampoline'.
3304
16419bae
DE
33052013-07-17 Doug Evans <dje@google.com>
3306
e7045703
DE
3307 * NEWS: Mention "set print raw frame-arguments".
3308 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3309 * stack.c (print_raw_frame_arguments): New static global.
3310 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3311 (_initialize_stack): New command "set/show print raw frame-arguments".
3312 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3313 (set_print_raw, show_print_raw): New functions.
3314 (_initialize_valprint): New prefix command "set/show print raw".
3315 * valprint.h (value_print_options): Improve comments.
3316
453e48a5
DE
3317 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3318 of all *list variables.
3319
16419bae
DE
3320 * gdbcmd.h (togglelist): Delete.
3321 * cli/cli-cmds.c (togglelist): Delete.
3322 (init_cmd_lists): Update.
3323 * cli/cli-cmds.h (togglelist): Delete.
3324
626f2d1c
TT
33252013-07-17 Tom Tromey <tromey@redhat.com>
3326
3327 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3328 dwarf2_per_objfile.
3329
57e6060e
DE
33302013-07-16 Doug Evans <dje@google.com>
3331
3332 * nto-tdep.c (nto_relocate_section_addresses): Update,
3333 target_section.bfd deleted.
3334 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3335 * s390-tdep.c (s390_load): Ditto.
3336 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3337
5ea5559b
AB
33382013-07-16 Andrew Burgess <aburgess@broadcom.com>
3339
3340 * common/format.c (parse_format_string): Add checks for NULL
3341 character before calling strchr.
3342
2b2848e2
DE
33432013-07-16 Doug Evans <dje@google.com>
3344
2c571006
DE
3345 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3346 temp_pathname argument.
3347 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3348 when opening the file fails.
3349
2b2848e2
DE
3350 * target.h (struct target_section): Delete member bfd.
3351 All users updated to use the_bfd_section->owner instead.
3352 * exec.c (add_to_section_table): Assert bfd is expected value.
3353 Remove initialization of target_section.bfd.
3354 (remove_target_sections): Update.
3355 (section_table_available_memory): Update.
3356 (section_table_xfer_memory_partial): Update.
3357 (print_section_info): Update.
3358 (exec_set_section_address): Update.
3359 * record-full.c (record_full_core_xfer_partial): Update.
3360 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3361 * solib-target.c (solib_target_relocate_section_addresses): Update.
3362 * symfile.c (build_section_addr_info_from_section_table): Update.
3363 * target.c (memory_xfer_live_readonly_partial): Update.
3364 (memory_xfer_partial_1): Update.
3365
926bf92d
UW
33662013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3367
3368 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3369 now available for embedded (BookE) and server (BookS) processors,
3370 correct mentions of 'booke' and adjust comments accordingly in order to
3371 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3372 (have_ptrace_booke_interface): Rename function and variable
3373 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3374 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3375 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3376 'hwdebug_point_cmp'. Update all uses.
3377 (booke_find_thread_points_by_tid): Rename function
3378 'booke_find_thread_points_by_tid' to
3379 'hwdebug_find_thread_points_by_tid'. Update all uses.
3380 (booke_insert_point): Rename function 'booke_insert_point' to
3381 'hwdebug_insert_point'. Update all uses.
3382 (booke_remove_point): Rename function 'booke_remove_point' to
3383 'hwdebug_remove_point'. Update all uses.
3384
d929bc19
MR
33852013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3386
3387 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3388 numbers with enum values.
3389
054e8d9e
AA
33902013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3391
3392 PR threads/13217
3393 * thread.c (thread_apply_all_command): Check for valid threads
3394 and thread count.
3395 (thread_array_cleanup): New struct.
3396 (set_thread_refcount): New function.
3397
cf006359
AB
33982013-07-11 Andrew Burgess <aburgess@broadcom.com>
3399
3400 * infcmd.c (default_print_one_register_info): Reuse function
3401 print_hex_chars.
3402
94e36acc
TT
34032013-07-10 Tom Tromey <tromey@redhat.com>
3404
3405 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3406 (ada-exp.o): New target.
3407
915dd369
SDJ
34082013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3409
3410 * mt-tdep.c (mt_registers_info): Call
3411 get_no_prettyformat_print_options instead of
3412 get_raw_print_options (regression by last patch from Doug
3413 Evans).
3414
eca07816
JB
34152013-07-09 Pedro Alves <palves@redhat.com>
3416
3417 Checked in by Joel Brobecker <brobecker@adacore.com>.
3418 * ada-lang.c (coerce_unspec_val_to_type): Use
3419 value_optimized_out_const.
3420 * value.c (value_optimized_out_const): New function.
3421 * value.h (value_optimized_out_const): New declaration.
3422
2a998fc0
DE
34232013-07-09 Doug Evans <dje@google.com>
3424
3425 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3426 Enum values rename as well. All uses updated.
3427 * valprint.h (value_print_options): Rename member pretty to
3428 pretty format. Rename member prettyprint_arrays to
3429 prettyformat_arrays. Rename member prettyprint_structs to
3430 prettyformat_structs. All uses updated.
3431 (get_no_prettyformat_print_options): Renamed from
3432 get_raw_print_options.
3433 * valprint.c (get_no_prettyformat_print_options): Renamed from
3434 get_raw_print_options. All callers updated.
3435 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3436 All callers updated.
3437 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3438 All callers updated.
3439 (_initialize_valprint): Improve help text for "set print pretty" and
3440 "set print arrays".
3441
466c1fca
AB
34422013-07-09 Andrew Burgess <aburgess@broadcom.com>
3443
3444 * value.c (value_bits_valid): Revert previous change, and change
3445 by Pedro on 2013-07-04, due to regressions in
3446 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3447
ad0f0303
AB
34482013-07-08 Andrew Burgess <aburgess@broadcom.com>
3449 Pedro Alves <palves@redhat.com>
3450
3451 * value.c (value_bits_valid): If the value is not lval_computed
3452 or has no check validity handler then the answer is the
3453 optimized_out flag, otherwise defer to the handler.
3454
b187bec1
EZ
34552013-07-06 Eli Zaretskii <eliz@gnu.org>
3456
48d1d6f5
EZ
3457 * top.c (print_gdb_configuration): Explain in output of
3458 --configuration what does "relocatable" mean.
3459
b187bec1
EZ
3460 * main.c (print_gdb_help): Regroup options in the --help text.
3461 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3462 the relevant discussions.
3463
52d361e1
YQ
34642013-07-06 Yao Qi <yao@codesourcery.com>
3465
3466 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3467 Remove parameter 'lsal'.
3468 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3469 to inner block. Caller update.
3470 (base_breakpoint_create_breakpoints_sal): Update.
3471 (bkpt_create_breakpoints_sal): Likewise.
3472 (tracepoint_create_breakpoints_sal): Likewise.
3473 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3474 element 0 of vector 'canonical->sals'.
3475
e1ec1b42
LM
34762013-07-05 Luis Machado <lgustavo@codesourcery.com>
3477
3478 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3479 register number instead of the pseudo register one.
3480 (rs6000_dwarf2_reg_to_regnum): Likewise.
3481
7195e6f0
PA
34822013-07-04 Pedro Alves <palves@redhat.com>
3483
3484 * findvar.c (value_of_register): Use allocate_optimized_out_value
3485 if the register has been optimized out, instead of
3486 set_value_optimized_out.
3487 * frame-unwind.c (frame_unwind_got_optimized): Use
3488 allocate_optimized_out_value.
3489
58722cac
PA
34902013-07-04 Pedro Alves <palves@redhat.com>
3491
3492 * value.c (value_bits_valid): If the value is not lval_computed,
3493 or doesn't have a check_validity hook, assume the value is entirely
3494 valid.
3495
691a26f5
AB
34962013-07-04 Andrew Burgess <aburgess@broadcom.com>
3497
3498 * stack.c (read_frame_arg): No longer fetch lazy values.
3499 * value.c (value_optimized_out): If the value is not already
3500 marked optimized out, and is lazy then fetch it.
3501 (value_primitive_field): Move optimized out check to later in the
3502 function, after we have loaded any lazy values.
3503 (value_fetch_lazy): Use optimized out flag directly rather than
3504 calling optimized_out method.
3505
a58e2656
AB
35062013-07-04 Andrew Burgess <aburgess@broadcom.com>
3507
3508 * valops.c: Don't include "user-regs.h".
3509 (value_fetch_lazy): Moved to value.c.
3510 * value.c: Include "user-regs.h".
3511 (value_fetch_lazy): Moved from valops.c.
3512
bd885420
YQ
35132013-07-04 Yao Qi <yao@codesourcery.com>
3514
3515 Revert:
3516 2013-06-27 Yao Qi <yao@codesourcery.com>
3517
3518 * common/create-version.sh: Update comments. Handle the case
3519 that TARGET_ALIAS is empty.
3520
17ef446e
PA
35212013-07-03 Pedro Alves <palves@redhat.com>
3522
3523 * Makefile.in (config.status): Depend on development.sh.
3524 (aclocal_m4_deps): Add libmcheck.m4.
3525 * acinclude.m4: Include libmcheck.m4.
3526 * configure.ac: Source development.sh instead of setting
3527 'development' here. --enable-libmcheck/--disable-libmcheck code
3528 factored out to GDB_AC_LIBMCHECK. Run it.
3529 * development.sh: New file.
3530 * libmcheck.m4: New file.
3531 * configure: Regenerate.
3532
ac6dd50f
TT
35332013-07-02 Tom Tromey <tromey@redhat.com>
3534
3535 * contrib/ari/update-web-ari.sh: Update for version.in change.
3536
bd1df410
TT
35372013-07-02 Tom Tromey <tromey@redhat.com>
3538
3539 * common/ptid.h: Comment fixes.
3540
4db1a1dc
TT
35412013-07-01 Tom Tromey <tromey@redhat.com>
3542
3543 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3544 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3545 (dwarf2_read_index, create_all_comp_units): Update.
3546
dd9aa048
TT
35472013-07-01 Tom Tromey <tromey@redhat.com>
3548
3549 * configure.ac (build_warnings): Add -Wold-style-definition.
3550 * configure: Rebuild.
3551 * machoread.c (_initialize_machoread): Use "(void)".
3552 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3553 use "(void)".
3554
44d100c3
TT
35552013-07-01 Tom Tromey <tromey@redhat.com>
3556
3557 * configure.ac (build_warnings): Add -Wold-style-declaration.
3558 * configure: Rebuild.
3559 * dsrec.c (make_srec): Use "static const", not "const static".
3560 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3561 not "const static".
3562 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3563 Use "static const", not "const static".
3564 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3565 not "const static".
3566 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3567 not "const static".
3568 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3569 not "const static".
3570 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3571 not "const static".
3572 (v850_dbtrap_breakpoint_from_pc): Likewise.
3573 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3574 not "const static".
3575
2945b807
TT
35762013-07-01 Tom Tromey <tromey@redhat.com>
3577
3578 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3579 * configure: Rebuild.
3580
d8d2a3ee
PA
35812013-07-01 Pedro Alves <palves@redhat.com>
3582
3583 * defs.h: Include "pathmax.h".
3584 * utils.c: Don't include sys/param.h.
3585 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3586 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3587 instead of MAXPATHLEN.
3588 * solib-sunos.c: Don't include sys/param.h.
3589 * xcoffread.c: Don't include sys/param.h.
3590 * bsd-kvm.c: Don't include sys/param.h.
3591 * darwin-nat.c: Don't include sys/param.h.
3592 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3593 * darwin-nat-info.c: Don't include sys/param.h.
3594 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3595 MAXPATHLEN.
3596 * i386obsd-nat.c: Don't include sys/param.h.
3597 * inf-child.c: Don't include sys/param.h.
3598 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3599 * linux-fork.c: Don't include sys/param.h.
3600 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3601 * linux-nat.c: Don't include sys/param.h.
3602 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3603 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3604 * m68klinux-nat.c: Don't include sys/param.h.
3605 * nbsd-nat.c: Don't include sys/param.h.
3606 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3607 * ppc-linux-nat.c: Don't include sys/param.h.
3608 * rs6000-nat.c: Don't include sys/param.h.
3609 * spu-linux-nat.c. Don't include sys/param.h.
3610 * windows-nat.c: Don't include sys/param.h.
3611 * xtensa-linux-nat.c: Don't include sys/param.h.
3612 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3613
38ec2207
PA
36142013-07-01 Pedro Alves <palves@redhat.com>
3615
3616 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3617 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3618 * gnulib/aclocal.m4: Regenerate.
3619 * gnulib/config.in: Regenerate.
3620 * gnulib/configure: Regenerate.
3621 * gnulib/import/pathmax.h: New file.
3622 * gnulib/import/Makefile.am: Regenerate.
3623 * gnulib/import/Makefile.in: Regenerate.
3624 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3625 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3626 * gnulib/import/m4/pathmax.m4: New file.
3627
e655c1a2
PA
36282013-07-01 Pedro Alves <palves@redhat.com>
3629
3630 * configure.ac (GDBINIT): Define, depending on host.
3631 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3632 * top.c (PATH_MAX): Delete fallback definition.
3633 (GDBINIT_FILENAME): Delete.
3634 (gdbinit): Reimplement as const char array set to the GDBINIT
3635 string constant.
3636 * top.h (gdbinit): Make const.
3637 * configure, config.in: Regenerate.
3638
50dd9793
PA
36392013-07-01 Pedro Alves <palves@redhat.com>
3640
3641 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3642 * cli/cli-cmds.h (source_script): Likewise.
3643 * exceptions.c (catch_command_errors_const): New function.
3644 * exceptions.h (catch_command_errors_const): Declare.
3645 * main.c (get_init_files): Make parameters const, and adjust.
3646 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3647 'local_gdbinit' locals const. Adjust to use
3648 catch_command_errors_const.
3649 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3650 'local_gdbinit' locals const.
3651
bc7dea8d
PA
36522013-07-01 Pedro Alves <palves@redhat.com>
3653
3654 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3655 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3656 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3657 <unistd.h>.
3658
8839a007
PA
36592013-07-01 Pedro Alves <palves@redhat.com>
3660
3661 Import the "unistd" gnulib module.
3662 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3663 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3664 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3665 import/m4/unistd_h.m4.
3666 * gnulib/aclocal.m4: Renenerate.
3667 * gnulib/config.in: Renenerate.
3668 * gnulib/configure: Renenerate.
3669 * gnulib/import/Makefile.am: Renenerate.
3670 * gnulib/import/Makefile.in: Renenerate.
3671 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3672 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3673 * gnulib/import/m4/off_t.m4: New file.
3674 * gnulib/import/m4/ssize_t.m4: New file.
3675 * gnulib/import/m4/sys_types_h.m4: New file.
3676 * gnulib/import/m4/unistd_h.m4: New file.
3677 * gnulib/import/sys_types.in.h: New file.
3678 * gnulib/import/unistd.c: New file.
3679 * gnulib/import/unistd.in.h: New file.
3680
8c0da261
PA
36812013-07-01 Pedro Alves <palves@redhat.com>
3682
3683 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3684 defined instead of checking HAVE_UNISTD_H.
3685
3574124b
PA
36862013-07-01 Pedro Alves <palves@redhat.com>
3687
3688 Reimport gnulib from scratch.
3689 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3690 import/m4/onceonly.m4.
3691 * gnulib/aclocal.m4: Renegerate.
3692 * gnulib/config.in: Renegerate.
3693 * gnulib/configure: Renegerate.
3694 * gnulib/import/Makefile.in: Renegerate.
3695 * gnulib/import/extra/update-copyright: Renegerate.
3696 * gnulib/import/m4/onceonly.m4: Delete.
3697
702dc4fd
PA
36982013-07-01 Pedro Alves <palves@redhat.com>
3699
3700 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3701
47e1ce27
JK
37022013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 Code cleanup.
3705 * remote.c (async_remote_interrupt_twice): Make it static.
3706 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3707
e82839d4
SDJ
37082013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3709
3710 * ia64-linux-tdep.c: Include <ctype.h>.
3711 (ia64_linux_stap_is_single_operand): New function.
3712 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3713
d6c2da54
TT
37142013-06-28 Tom Tromey <tromey@redhat.com>
3715
3716 * Makefile.in (version.c): Use version.in, not
3717 common/version.in.
3718 * common/create-version.sh: Likewise.
3719 * common/version.in: Move...
3720 * version.in: ...here.
3721
74da6f00
PA
37222013-06-28 Pedro Alves <palves@redhat.com>
3723
3724 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3725 here.
3726 * utils.h (pagination_enabled): Declare.
3727
d32dc48e
PA
37282013-06-28 Pedro Alves <palves@redhat.com>
3729
3730 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3731 Move higher up in file.
3732
0edd9e3b
TT
37332013-06-28 Tom Tromey <tromey@redhat.com>
3734
3735 * tracepoint.c (deprecated_readline_begin_hook)
3736 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3737 declare.
3738
4eb59108
PA
37392013-06-28 Pedro Alves <palves@redhat.com>
3740
3741 PR tui/14880
3742 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3743 checking if they're available.
3744 * value.c (value_available_contents_eq): Change comment.
3745 * value.h (value_available_contents_eq): Expand comment.
3746
97b17156
TT
37472013-06-27 Tom Tromey <tromey@redhat.com>
3748
3749 * target.c (find_run_target): Remove.
3750 * target.h (find_run_target): Remove.
3751
6a3bfc5c
TT
37522013-06-27 Tom Tromey <tromey@redhat.com>
3753
3754 * corelow.c (core_gdbarch): Now static.
3755
c9ef825d
TT
37562013-06-27 Tom Tromey <tromey@redhat.com>
3757
3758 * target.c (target_struct_index): Remove.
3759
e5823f1c
PA
37602013-06-27 Pedro Alves <palves@redhat.com>
3761
3762 * infrun.c: Remove comment describing the 'stepping over runtime
3763 loader dynamic symbol resolution code' mechanism; moved to
3764 gdbint.texinfo.
3765
97f8dd09
PA
37662013-06-27 Pedro Alves <palves@redhat.com>
3767
3768 * exceptions.c (catch_command_errors): Remove spurious space.
3769 * exceptions.h (catch_command_errors): Second parameter is "arg",
3770 not "command".
3771
02b1871e
YQ
37722013-06-27 Yao Qi <yao@codesourcery.com>
3773
3774 * common/create-version.sh: Update comments. Handle the case
3775 that TARGET_ALIAS is empty.
3776
bb1b1cf1
PA
37772013-06-26 Pedro Alves <palves@redhat.com>
3778
3779 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3780 comment.
3781
7b624e71
PA
37822013-06-26 Pedro Alves <palves@redhat.com>
3783
3784 * infrun.c: Update comments on stepping over runtime loader
3785 dynamic symbol resolution code.
3786
74e5a346
SDJ
37872013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3788
3789 * ax-gdb.h (union exp_element): Forward declare.
3790 * parser-defs.h: Include expression.h.
3791
a2fb2cee
MR
37922013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3793
3794 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3795
cdba14e0
DK
37962013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3797
3798 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3799
f30aa5af
DK
38002013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3801
3802 Fix trace-status to output proper start-time and stop-time.
3803 * tracepoint.c (trace_status_command): Fix type of printf arg to
3804 prevent improper type conversion.
3805 (trace_status_mi): Likewise.
3806
1aee363c
MR
38072013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3808
3809 * mips-tdep.c (mips_next_pc): Fix a typo.
3810
3356937a
MR
38112013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3812
3813 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3814
dc673c81
YQ
38152013-06-26 Pedro Alves <pedro@codesourcery.com>
3816 Yao Qi <yao@codesourcery.com>
3817
3818 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3819 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3820 * mi/mi-main.c (print_variable_or_computed): New function.
3821 (mi_cmd_trace_frame_collected): New function.
3822 * tracepoint.c (find_trace_state_variable_by_number): New.
3823 (struct traceframe_info): Move to tracepoint.h
3824 (struct collection_list): Likewise.
3825 (do_collect_symbol): Include locals and arguments in the
3826 collected variables list.
3827 (clear_collection_list): Clear wholly collected variables list
3828 and computed variables list.
3829 (append_exp): New function.
3830 (encode_actions_1): Include variables in the wholly
3831 collected variables list. Include memory ranges and
3832 full-fledged expressions in the computed expressions list.
3833 (encode_actions): Move some code to ...
3834 Return the cleanup chain.
3835 (encode_actions_rsp): ... here. New function.
3836 (get_traceframe_location, get_traceframe_info): Remove static.
3837 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3838 (struct collection_list): Moved from tracepoint.c. Add two
3839 new fields 'wholly_collected' and 'computed'.
3840 (find_trace_state_variable_by_number): Declare.
3841 (encode_actions): Adjust declaration.
3842 (encode_actions_rsp): Declare.
3843 (get_traceframe_info, get_traceframe_location): Declare.
3844
3845 * NEWS: Mention new MI command -trace-frame-collected.
3846
28a93511
YQ
38472013-06-26 Pedro Alves <pedro@codesourcery.com>
3848 Yao Qi <yao@codesourcery.com>
3849
3850 * ctf.c (ctf_traceframe_info): Push trace state variables
3851 present in the trace data into the traceframe info object.
3852 * breakpoint.c (DEF_VEC_I): Remove.
3853 * common/filestuff.c (DEF_VEC_I): Likewise.
3854 * dwarf2loc.c (DEF_VEC_I): Likewise.
3855 * mi/mi-main.c (DEF_VEC_I): Likewise.
3856 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3857 * features/traceframe-info.dtd: Add tvar element and its
3858 attributes.
3859 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3860 (build_traceframe_info): Push trace state variables present in
3861 the trace data into the traceframe info object.
3862 (traceframe_info_start_tvar): New function.
3863 (tvar_attributes): New.
3864 (traceframe_info_children): Add "tvar" element.
3865 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3866
3867 * NEWS: Mention the change in GDB and GDBserver.
3868
ddacd3c8
YQ
38692013-06-26 Pedro Alves <pedro@codesourcery.com>
3870 Yao Qi <yao@codesourcery.com>
3871
3872 * tracepoint.c (trace_dump_command): Move code to ...
3873 (get_traceframe_location): ... here. New.
3874
05796b35
YQ
38752013-06-26 Pedro Alves <pedro@codesourcery.com>
3876 Yao Qi <yao@codesourcery.com>
3877
3878 * tracepoint.c (trace_dump_command): GDB emits an error
3879 instead of a warning when a traceframe is not selected.
3880
cbfa3b61
YQ
38812013-06-26 Pedro Alves <pedro@codesourcery.com>
3882 Yao Qi <yao@codesourcery.com>
3883
3884 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3885 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3886 in collection_list.
3887 (do_clear_collection_list, init_collection_list): New.
3888 (encode_actions): Add local variables 'tracepoint_list' and
3889 'stepping_list'. Call init_collection_list and make cleanup
3890 which calls do_clear_collection_list. Don't call
3891 clear_collection_list.
3892 (_initialize_tracepoint): Delete references to
3893 'tracepoint_list' and 'stepping_list'.
3894
6e2048d3
TT
38952013-06-25 Tom Tromey <tromey@redhat.com>
3896
3897 * common/create-version.sh (date): Use "$", not "$$" in sed
3898 expression.
3899
42059f0e
KB
39002013-06-25 Kevin Buettner <kevinb@redhat.com>
3901
3902 * NEWS (New targets): Add entry for TI MSP430.
3903
a0743c90
YQ
39042013-06-25 Yao Qi <yao@codesourcery.com>
3905
3906 * remote.c (remote_start_remote): Move code to upload tsv
3907 earlier.
3908
9d6e6e84
HZ
39092013-06-25 Yao Qi <yao@codesourcery.com>
3910 Hui Zhu <hui@codesourcery.com>
3911 Pedro Alves <palves@redhat.com>
3912
3913 PR breakpoints/15075
3914 PR breakpoints/15434
3915 * breakpoint.c (bpstat_stop_status): Call
3916 b->ops->after_condition_true.
3917 (update_dprintf_command_list): Don't append "continue" command
3918 to the command list of dprintf breakpoint.
3919 (base_breakpoint_after_condition_true): New function.
3920 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3921 (dprintf_after_condition_true): New function.
3922 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3923 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3924
586cf749
KB
39252013-06-24 Kevin Buettner <kevinb@redhat.com>
3926
3927 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3928 (ALLDEPFILES): Add msp430-tdep.c.
3929 * configure.tgt (msp430*-*-elf): New target.
3930 * msp430-tdep.c: New file.
3931
1bbce132
MR
39322013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3933
3934 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3935 microMIPS synthetic symbols.
3936
3e5d3a5a
MR
39372013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3938
3939 * objfiles.h (pc_in_section): New prototype.
3940 (in_plt_section): Remove name argument, replace prototype with
3941 static inline function.
3942 * mips-tdep.h: Include "objfiles.h".
3943 (in_mips_stubs_section): New function.
3944 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3945 in_solib_call_trampoline member.
3946 (hppa_in_solib_call_trampoline): Remove name argument.
3947 * objfiles.c (pc_in_section): New function.
3948 (in_plt_section): Remove function.
3949 * mips-linux-tdep.c: Include "objfiles.h".
3950 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3951 name argument. Return 1 rather than the low 16-bit halfword of
3952 any instruction examined.
3953 (mips_linux_in_dynsym_resolve_code): Update
3954 mips_linux_in_dynsym_stub call accordingly.
3955 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3956 rather than an equivalent hand-coded sequence.
3957 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3958 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3959 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3960 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3961 in_opd_section.
3962 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3963 on call to tdep->in_solib_call_trampoline.
3964 (hppa_in_solib_call_trampoline): Remove name argument, update
3965 according to in_plt_section change.
3966 (hppa_skip_trampoline_code): Update according to in_plt_section
3967 change.
3968 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3969 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3970 Likewise.
3971 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3972 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3973 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3974 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3975 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3976 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3977 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3978 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3979 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3980 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3981 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3982 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3983 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3984
b9b26a16
JB
39852013-06-24 Joel Brobecker <brobecker@adacore.com>
3986
3987 * common/create-version.sh: Fix expansion of $host_alias
3988 and $target_alias in generation of HOST_NAME and TARGET_NAME
3989 (resp.).
3990
01208463
TT
39912013-06-24 Tom Tromey <tromey@redhat.com>
3992
3993 * common/create-version.sh: New file.
3994 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3995 create-version.sh.
3996 (HFILES_NO_SRCDIR): Use common/version.h.
3997 * version.in: Move to ...
3998 * common/version.in: ... here. Replace date with "DATE".
3999 * version.h: Move to ...
4000 * common/version.h: ... here.
4001
bb6b9a5e
JB
40022013-06-21 Joel Brobecker <brobecker@adacore.com>
4003
4004 * gdb/gnulib/Makefile.in: Update date in copyright header.
4005 * gdb/gnulib/configure.ac: Ditto.
4006 * gdb/gnulib/update-gnulib.sh: Ditto.
4007
c3b18ee7
JB
40082013-06-21 Joel Brobecker <brobecker@adacore.com>
4009
4010 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4011 "gdb/gnulib/import".
4012
85d3b769
WN
40132013-06-21 Will Newton <will.newton@linaro.org>
4014
4015 * doublest.c (ldfrexp): Remove function.
4016 (convert_doublest_to_floatformat): Call frexpl instead of
4017 ldfrexp.
4018
88b48903
WN
40192013-06-21 Will Newton <will.newton@linaro.org>
4020
4021 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4022 * gnulib/aclocal.m4: Regenerate.
4023 * gnulib/config.in: Regenerate.
4024 * gnulib/configure: Regenerate.
4025 * gnulib/import/Makefile.am: Update.
4026 * gnulib/import/Makefile.in: Update.
4027 * gnulib/import/m4/gnulib-cache.m4: Update.
4028 * gnulib/import/m4/gnulib-comp.m4: Update.
4029 * gnulib/import/float+.h: Import.
4030 * gnulib/import/float.c: Import.
4031 * gnulib/import/float.in.h: Import.
4032 * gnulib/import/fpucw.h: Import.
4033 * gnulib/import/frexp.c: Import.
4034 * gnulib/import/frexpl.c: Import.
4035 * gnulib/import/isnan.c: Import.
4036 * gnulib/import/isnand-nolibm.h: Import.
4037 * gnulib/import/isnand.c: Import.
4038 * gnulib/import/isnanl-nolibm.h: Import.
4039 * gnulib/import/isnanl.c: Import.
4040 * gnulib/import/itold.c: Import.
4041 * gnulib/import/m4/exponentd.m4: Import.
4042 * gnulib/import/m4/exponentl.m4: Import.
4043 * gnulib/import/m4/float_h.m4: Import.
4044 * gnulib/import/m4/fpieee.m4: Import.
4045 * gnulib/import/m4/frexp.m4: Import.
4046 * gnulib/import/m4/frexpl.m4: Import.
4047 * gnulib/import/m4/isnand.m4: Import.
4048 * gnulib/import/m4/isnanl.m4: Import.
4049 * gnulib/import/m4/math_h.m4: Import.
4050 * gnulib/import/math.c: Import.
4051 * gnulib/import/math.in.h: Import.
4052
4353c9e6
JK
40532013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4056 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4057 signature_INTEL_edx comparisons.
4058
e3e06db3
DE
40592013-06-20 Doug Evans <dje@google.com>
4060
6ac97d4c
DE
4061 symtab/15652
4062 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4063 All callers updated.
4064 (open_dwp_file): If we can't find the dwp file, search the basename
4065 in debug-file-directory.
4066
93417882
DE
4067 * dwarf2read.c (struct dwp_file): Fix comment.
4068 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4069
e3e06db3
DE
4070 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4071 better.
4072
0878d0fa
YQ
40732013-06-20 Yao Qi <yao@codesourcery.com>
4074
4075 * breakpoint.c (create_breakpoint): Fix code indentation.
4076
023fa29b
YQ
40772013-06-20 Yao Qi <yao@codesourcery.com>
4078
4079 * breakpoint.c (create_breakpoints_sal_default): Remove
4080 parameter 'lsal'. Update declaration.
4081 (bkpt_create_breakpoints_sal): Caller update.
4082 (tracepoint_create_breakpoints_sal): Likewise.
4083
c898adb7
YQ
40842013-06-20 Pedro Alves <pedro@codesourcery.com>
4085 Yao Qi <yao@codesourcery.com>
4086
4087 * NEWS: Mention the new option '--skip-unavailable' of command
4088 -data-list-register-values.
4089 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4090 --skip-unavailable option. Adjust to use output_register.
4091 (output_register): Add new 'skip_unavailable' parameter.
4092 Handle it.
4093
4d157a3d
MF
40942013-06-19 Mike Frysinger <vapier@gentoo.org>
4095
4096 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4097 common/i386-gcc-cpuid.h.
4098 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4099 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4100 Copy the latest version from upstream gcc.
4101 * common/linux-btrace.c: Include i386-cpuid.h.
4102 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4103 call to i386_cpuid.
4104 (cpu_supports_btrace): Likewise.
4105 * go32-nat.c: Include i386-cpuid.h.
4106 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4107
1ce4db08
DE
41082013-06-19 Doug Evans <dje@google.com>
4109
4110 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4111 (get_section_index): Ditto.
4112
0e4777df
TT
41132013-06-19 Tom Tromey <tromey@redhat.com>
4114
4115 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4116 "dprintf" help.
4117
3190f0c6
DE
41182013-06-18 Doug Evans <dje@google.com>
4119
4120 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4121 before using it.
4122 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4123 Move test of cu_index closer to use. Print complaint if cu_index
4124 is bad.
4125
8b89a20a
JB
41262013-06-18 Joel Brobecker <brobecker@adacore.com>
4127
4128 * machoread.c (oso_vector): Delete this global.
4129 (macho_register_oso): Add new parameter "oso_vector_ptr".
4130 Use it instead of the "oso_vector" global.
4131 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4132 (macho_symfile_read): Use a local oso_vector, to be free'ed
4133 at the end of this function, in place of the old "oso_vector"
4134 global. Update various function calls accordingly. Use one
4135 single cleanup chain for the entire function.
4136
59b0c7c1
JB
41372013-06-18 Joel Brobecker <brobecker@adacore.com>
4138
937c708c 4139 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4140 DWARF2_PER_OBJFILE by uses of DATA instead.
4141
427cd150
TT
41422013-06-18 Tom Tromey <tromey@redhat.com>
4143
4144 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4145 argument.
4146 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4147 Special case signals other than GDB_SIGNAL_TRAP.
4148 (explains_signal_watchpoint): New function.
4149 (base_breakpoint_explains_signal): Add 'sig' argument.
4150 (initialize_breakpoint_ops): Set 'explains_signal' method for
4151 watchpoints.
4152 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4153 signal argument.
4154 (bpstat_explains_signal): Likewise.
4155 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4156
2d57700b
TT
41572013-06-18 Tom Tromey <tromey@redhat.com>
4158
4159 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4160
ac475191
TT
41612013-06-18 Tom Tromey <tromey@redhat.com>
4162
4163 * python/python.c (finish_python_initialization): Decref
4164 'pythondir' on failure path as well.
4165
5bd1ef56
TT
41662013-06-18 Tom Tromey <tromey@redhat.com>
4167
4168 PR symtab/15391:
4169 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4170 after taking bits_to_skip into account. Sign extend byte_offset.
4171 * utils.h (gdb_sign_extend): Declare.
4172 * utils.c (gdb_sign_extend): New function.
4173
92fac807
JK
41742013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4177
2d503272
PM
41782013-06-17 Pierre Muller <muller@sourceware.org>
4179
4180 * corelow.c (core_open): Print GDB signal name instead of target
4181 signal number.
4182
6916fd98
MF
41832013-06-17 Mike Frysinger <vapier@gentoo.org>
4184
4185 * .gitignore: Add /gcore.
4186
9c02c129
DE
41872013-06-13 Doug Evans <dje@google.com>
4188
4189 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4190 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4191
d0548fa2
PM
41922013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4193
4194 * stack.c (backtrace_command_1): Fix indentation.
4195
22128028
JB
41962013-06-11 Joel Brobecker <brobecker@adacore.com>
4197
4198 * window-nat.c (thread_rec): Add missing empty line after
4199 local variable declaration.
4200
2ed3e009
JB
42012013-06-11 Joel Brobecker <brobecker@adacore.com>
4202
4203 * windows-nat.c (thread_rec): Revert format used to print
4204 error code returned by SuspendThread from %d back to %u.
4205
0c3d84be
JB
42062013-06-11 Joel Brobecker <brobecker@adacore.com>
4207
4208 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4209 ID in debug trace.
4210 (get_windows_debug_event): Likewise, for all debug traces.
4211
80e88e1a
JB
42122013-06-11 Joel Brobecker <brobecker@adacore.com>
4213
4214 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4215 warning message.
4216
1edebdbf
YQ
42172013-06-08 Pedro Alves <pedro@codesourcery.com>
4218 Yao Qi <yao@codesourcery.com>
4219
4220 * mi/mi-main.c (get_register): Remove declaration.
4221 (output_register): Declare.
4222 (mi_cmd_data_list_register_values): Remove local variable
4223 'tuple_cleanup'. Move some code into output_register.
4224 (get_register): Renamed to ...
4225 (output_register): ... this. Output the register's
4226 "number" ui_out tuple here.
4227
47d48711
PA
42282013-06-07 Pedro Alves <palves@redhat.com>
4229
4230 * darwin-nat.c: Fix formating in copyright header.
4231 * darwin-nat.h: Likewise.
4232 * gnu-nat.c: Likewise.
4233 * machoread.c: Likewise.
4234
3aee8918
PA
42352013-06-07 Pedro Alves <palves@redhat.com>
4236
5f2b57b5 4237 PR server/14823
3aee8918
PA
4238 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4239 static. Output a global target description pointer.
4240 (init_registers_${name}): Adjust to initialize a
4241 target description structure.
4242
fe8400b4
WN
42432013-06-07 Will Newton <will.newton@linaro.org>
4244
4245 * printcmd.c (build_address_symbolic): Call
4246 gdbarch_addr_bits_remove for text minimal symbols.
4247
20df6206
WN
42482013-06-07 Will Newton <will.newton@linaro.org>
4249
4250 * MAINTAINERS: Add myself to Write After Approval.
4251
aef525cb
YQ
42522013-06-07 Yao Qi <yao@codesourcery.com>
4253
4254 * tracepoint.c (start_tracing): Move code to ...
4255 (trace_reset_local_state): ... here. New.
4256 (disconnect_tracing): Don't call set_current_traceframe,
4257 set_tracepoint_num, and set_traceframe_context. Call
4258 trace_reset_local_state instead.
4259 (tfile_close): Call trace_reset_local_state.
4260 * ctf.c (ctf_close): Likewise.
4261 * remote.c (remote_close): Likewise.
4262 * tracepoint.h (trace_reset_local_state): Declare.
4263
d2415c6c
DE
42642013-06-06 Doug Evans <dje@google.com>
4265
4266 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4267 and fix header docs.
4268
69fc87c2
DE
42692013-06-05 Doug Evans <dje@google.com>
4270 Keith Seitz <keiths@redhat.com>
4271
4272 PR 15519
4273 * cp-namespace.c (find_symbol_in_baseclass): Call
4274 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4275 Check result of call to lookup_symbol_static.
4276 Call lookup_static_symbol_aux unconditionally.
4277 Call check_typedef on base types before accessing them.
4278 (cp_lookup_nested_symbol): Fix comment.
4279
a513d1e8
LM
42802013-06-05 Luis Machado <lgustavo@codesourcery.com>
4281
4282 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4283 minimal symbols pointing to function descriptors.
4284
351a6f02
TT
42852013-06-05 Tom Tromey <tromey@redhat.com>
4286
4287 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4288
5e1b953b 42892013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4290 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4291
4292 * remote.c (remote_wait_as): Restore signal handler before returning
4293 when GDB gets a notification.
4294
f9e14852
GB
42952013-06-04 Gary Benson <gbenson@redhat.com>
4296
8445cbf1 4297 PR 2328
f9e14852
GB
4298 * breakpoint.h (handle_solib_event): Moved function declaration
4299 to solib.h.
4300 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4301 (bpstat_stop_status): Pass new argument to handle_solib_event.
4302 * solib.h (update_solib_breakpoints): New function declaration.
4303 (handle_solib_event): Moved function declaration from
4304 breakpoint.h.
4305 * solib.c (update_solib_breakpoints): New function.
4306 (handle_solib_event): Moved function from breakpoint.c.
4307 Updated to call solib_ops->handle_event if not NULL.
4308 * solist.h (target_so_ops): New fields "update_breakpoints" and
4309 "handle_event".
4310 * infrun.c (set_stop_on_solib_events): New function.
4311 (_initialize_infrun): Use the above for "set
4312 stop-on-solib-events".
4313 (handle_inferior_event): Pass new argument to handle_solib_event.
4314 * solib-svr4.c (probe.h): New include.
4315 (svr4_free_library_list): New forward declaration.
4316 (probe_action): New enum.
4317 (probe_info): New struct.
4318 (probe_info): New static variable.
4319 (NUM_PROBES): New definition.
4320 (svr4_info): New fields "using_xfer", "probes_table" and
4321 "solib_list".
4322 (free_probes_table): New function.
4323 (free_solib_list): New function.
4324 (svr4_pspace_data_cleanup): Free probes table and solib list.
4325 (svr4_copy_library_list): New function.
4326 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4327 (svr4_read_so_list): New parameter "prev_lm".
4328 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4329 (svr4_current_sos): New function.
4330 (probe_and_action): New struct.
4331 (hash_probe_and_action): New function.
4332 (equal_probe_and_action): Likewise.
4333 (register_solib_event_probe): Likewise.
4334 (solib_event_probe_at): Likewise.
4335 (solib_event_probe_action): Likewise.
4336 (solist_update_full): Likewise.
4337 (solist_update_incremental): Likewise.
4338 (disable_probes_interface_cleanup): Likewise.
4339 (svr4_handle_solib_event): Likewise.
4340 (svr4_update_solib_event_breakpoint): Likewise.
4341 (svr4_update_solib_event_breakpoints): Likewise.
4342 (svr4_create_solib_event_breakpoints): Likewise.
4343 (enable_break): Free probes table before creating breakpoints.
4344 Use svr4_create_solib_event_breakpoints to create breakpoints.
4345 (svr4_solib_create_inferior_hook): Free the solib list.
4346 (_initialize_svr4_solib): Initialise
4347 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4348
ced63ec0
GB
43492013-06-04 Gary Benson <gbenson@redhat.com>
4350
4351 * target.h (target_ops): New field
4352 "to_augmented_libraries_svr4_read".
4353 (target_augmented_libraries_svr4_read): New macro.
4354 * target.c (update_current_target): Handle
4355 to_augmented_libraries_svr4_read.
4356 * remote.c (remote_state): New field
4357 "augmented_libraries_svr4_read".
4358 (remote_augmented_libraries_svr4_read_feature): New function.
4359 (remote_protocol_features): Add entry for
4360 "augmented-libraries-svr4-read".
4361 (remote_augmented_libraries_svr4_read): New function.
4362 (init_remote_ops): Initialize
4363 remote_ops.to_augmented_libraries_svr4_read.
4364
7f91dbec
GB
43652013-06-04 Gary Benson <gbenson@redhat.com>
4366
4367 * NEWS: Update.
4368
607ece04
GB
43692013-06-04 Gary Benson <gbenson@redhat.com>
4370
4371 * objfiles.h (inhibit_section_map_updates): New function
4372 declaration.
4373 (resume_section_map_updates): Likewise.
4374 (resume_section_map_updates_cleanup): Likewise.
4375 * objfiles.c (objfile_pspace_info): Removed field
4376 "objfiles_changed_p". New fields "new_objfiles_available",
4377 "section_map_dirty" and "inhibit_updates".
4378 (allocate_objfile): Set new_objfiles_available.
4379 (free_objfile): Set section_map_dirty.
4380 (objfile_relocate1): Likewise.
4381 (in_plt_section): Likewise.
4382 (find_pc_section): Update the conditions under which the
4383 section map will be updated.
4384 (inhibit_section_map_updates): New function.
4385 (resume_section_map_updates): Likewise.
4386 (resume_section_map_updates_cleanup): Likewise.
4387
9ee6a5ac
GB
43882013-06-04 Gary Benson <gbenson@redhat.com>
4389
4390 * probe.h (get_probe_argument_count): New declaration.
4391 (evaluate_probe_argument): Likewise.
4392 * probe.c (get_probe_argument_count): New function.
4393 (evaluate_probe_argument): Likewise.
4394 (probe_safe_evaluate_at_pc): Use the above new functions.
4395
845d4708
AM
43962013-06-04 Alan Modra <amodra@gmail.com>
4397
4398 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4399 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4400 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4401 target mem reads on optional insns.
4402 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4403 ppc_insns_match_pattern calls.
4404 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4405 Add match for power7 thread safety insns, and new order of
4406 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4407 invocation in comment, and update rest of comment.
4408 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4409 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4410 (ppc64_standard_linkage2_target): Update insn offsets.
4411 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4412 stubs first. Update calls.
4413
404e278f
YQ
44142013-06-04 Yao Qi <yao@codesourcery.com>
4415
4416 * solib.c (solib_find): Don't need dir separator if path has
4417 drive spec.
4418
f6aea118
JB
44192013-06-03 Joel Brobecker <brobecker@adacore.com>
4420
4421 Revert (indirectly causes a SIGSEGV):
4422 * machoread.c (macho_symfile_read): Assign first cleanup to
4423 'back_to'.
4424
87967e27
YQ
44252013-06-03 Yao Qi <yao@codesourcery.com>
4426
4427 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4428 mi-parse.c. Make them static.
4429 (mi_all_values): Likewise.
4430 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4431 mi_parse_print_values. Make it external.
4432 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4433 Remove the declarations.
4434 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4435 * mi/mi-parse.h (mi_parse_print_values): Declare.
4436 * mi/mi-cmd-stack.c: Include mi-parse.h.
4437 (parse_print_values): Remove
4438 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4439 of parse_print_values.
4440 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4441
3ca73e0c
YQ
44422013-05-31 Pedro Alves <pedro@codesourcery.com>
4443 Yao Qi <yao@codesourcery.com>
4444
4445 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4446 (encode_actions): Move code to ...
4447 (all_tracepoint_actions_and_cleanup): ... here. New.
4448 (trace_dump_command): Likewise.
4449
4e993a19
TT
44502013-05-30 Tom Tromey <tromey@redhat.com>
4451
4452 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4453
e3b76b4f
TT
44542013-05-30 Tom Tromey <tromey@redhat.com>
4455
4456 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4457 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4458 'old_chain' argument. Add 'parser_result' argument.
4459 (gdb_xml_create_parser_and_cleanup): Remove old version.
4460 (gdb_xml_parse_quick): Update.
4461 (xml_process_xincludes): Update.
4462 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4463 declare.
4464
db26349c
TT
44652013-05-30 Tom Tromey <tromey@redhat.com>
4466
4467 * probe.c (collect_probes): Check arguments for NULL before
4468 calling compile_rx_or_error.
4469 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4470 Remove NULL return.
4471
77f9e713
TT
44722013-05-30 Tom Tromey <tromey@redhat.com>
4473
4474 * infrun.c (adjust_pc_after_break): Introduce an outer null
4475 cleanup.
4476
45475de7
TT
44772013-05-30 Tom Tromey <tromey@redhat.com>
4478
4479 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4480
ac5007fd
TT
44812013-05-30 Tom Tromey <tromey@redhat.com>
4482
4483 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4484 for 'old_chain'. Do not check 'head' before processing
4485 cleanups.
4486
cd82eddc
TT
44872013-05-30 Tom Tromey <tromey@redhat.com>
4488
4489 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4490 "cleanup_tuple".
4491
57cee33a
TT
44922013-05-30 Tom Tromey <tromey@redhat.com>
4493
4494 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4495 inner scope. Unconditionally call do_cleanups.
4496
795d915c
TT
44972013-05-30 Tom Tromey <tromey@redhat.com>
4498
4499 * source.c (find_and_open_source): Call do_cleanups.
4500
1fc3cf4a
TT
45012013-05-30 Tom Tromey <tromey@redhat.com>
4502
4503 * linux-thread-db.c (thread_db_load_search): Unconditionally
4504 call do_cleanups.
4505
e35ac9bf
TT
45062013-05-30 Tom Tromey <tromey@redhat.com>
4507
4508 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4509 for 'cleanup'; instead use a later one.
4510
f3300387
TT
45112013-05-30 Tom Tromey <tromey@redhat.com>
4512
4513 * python/py-breakpoint.c (bppy_get_commands): Use
4514 explicit, unconditional return.
4515 * python/py-frame.c (frapy_read_var): Likewise.
4516 * python/python.c (gdbpy_decode_line): Likewise.
4517
c27e16e3
TT
45182013-05-30 Tom Tromey <tromey@redhat.com>
4519
4520 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4521 do_cleanups on all return paths.
4522
5ae85e44
TT
45232013-05-30 Tom Tromey <tromey@redhat.com>
4524
4525 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4526
73b8d9da
TT
45272013-05-30 Tom Tromey <tromey@redhat.com>
4528
4529 * stabsread.c (read_struct_type): Call do_cleanups along
4530 all return paths.
4531
7d266584
MR
45322013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4533
4534 * mips-linux-tdep.c: Adjust formatting throughout.
4535
0f900f54
TT
45362013-05-30 Tom Tromey <tromey@redhat.com>
4537
4538 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4539 along all return paths.
4540
a991ac28
TT
45412013-05-30 Tom Tromey <tromey@redhat.com>
4542
4543 * symfile.c (find_separate_debug_file): Call do_cleanups
4544 along all return paths.
4545
1abaf042
TT
45462013-05-30 Tom Tromey <tromey@redhat.com>
4547
4548 * symtab.c (search_symbols): Introduce a null cleanup for
4549 'retval_chain'.
4550
edefe1da
TT
45512013-05-30 Tom Tromey <tromey@redhat.com>
4552
4553 * python/py-value.c (valpy_binop): Call do_cleanups before
4554 exiting loop.
4555
54f72dcc
TT
45562013-05-30 Tom Tromey <tromey@redhat.com>
4557
4558 * python/py-prettyprint.c (print_children): Remove extra
4559 do_cleanups call.
4560
af1c6971
TT
45612013-05-30 Tom Tromey <tromey@redhat.com>
4562
4563 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4564 all return paths.
4565
b862ce75
TT
45662013-05-30 Tom Tromey <tromey@redhat.com>
4567
4568 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4569 along all return paths.
4570
e12fefc8
TT
45712013-05-30 Tom Tromey <tromey@redhat.com>
4572
4573 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4574 call do_cleanups.
4575
4867f990
TT
45762013-05-30 Tom Tromey <tromey@redhat.com>
4577
4578 * varobj.c (c_value_of_root): Call do_cleanups along all
4579 return paths.
4580
4fd2d6af
TT
45812013-05-30 Tom Tromey <tromey@redhat.com>
4582
4583 * tracepoint.c (trace_dump_command): Unconditionally call
4584 do_cleanups.
4585
752eb8b4
TT
45862013-05-30 Tom Tromey <tromey@redhat.com>
4587
4588 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4589 do_cleanups earlier.
4590
e42d0aa5
TT
45912013-05-30 Tom Tromey <tromey@redhat.com>
4592
4593 * machoread.c (macho_symfile_read): Assign first cleanup to
4594 'back_to'.
4595
4bbc010a
TT
45962013-05-30 Tom Tromey <tromey@redhat.com>
4597
4598 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4599
b9635925
TT
46002013-05-30 Tom Tromey <tromey@redhat.com>
4601
4602 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4603
25f43500
TT
46042013-05-30 Tom Tromey <tromey@redhat.com>
4605
4606 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4607 call discard_cleanups.
4608 (inf_ptrace_attach): Likewise.
4609
d6a2e54a
TT
46102013-05-30 Tom Tromey <tromey@redhat.com>
4611
4612 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4613 return paths.
4614 (mips_initialize): Likewise.
4615 (common_open): Call do_cleanups.
4616
48be7c1b
TT
46172013-05-30 Tom Tromey <tromey@redhat.com>
4618
4619 * utils.c (internal_vproblem): Call do_cleanups.
4620
e61727ab
TT
46212013-05-30 Tom Tromey <tromey@redhat.com>
4622
4623 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4624
b81b921f
TT
46252013-05-30 Tom Tromey <tromey@redhat.com>
4626
4627 * cli/cli-script.c (setup_user_args): Don't return after error.
4628
fe48dfb1
TT
46292013-05-30 Tom Tromey <tromey@redhat.com>
4630
4631 * somread.c (som_symtab_read): Call do_cleanups.
4632
27833de7
TT
46332013-05-30 Tom Tromey <tromey@redhat.com>
4634
4635 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4636
5b3fca71
TT
46372013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4640 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4641 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4642 * source.c (show_substitute_path_command): Call do_cleanups.
4643 (unset_substitute_path_command, set_substitute_path_command):
4644 Likewise.
4645 * symfile.c (load_command): Call do_cleanups.
4646
af83e3f8
TT
46472013-05-30 Tom Tromey <tromey@redhat.com>
4648
4649 * contrib/cleanup_check.py: New file.
4650 * contrib/gcc-with-excheck: Add option parsing.
4651
564eac42
JB
46522013-05-30 Joel Brobecker <brobecker@adacore.com>
4653
4654 * windows-nat.c (windows_delete_thread): Add missing space
4655 in cast expression.
4656
47902076
HAQ
46572013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4658
4659 * inferior.c (top level): Include tilde.h.
4660 (add_inferior_command): Call tilde_expand on the value of 'exec'
4661 argument.
4662
23da373a
YQ
46632013-05-30 Pedro Alves <pedro@codesourcery.com>
4664 Yao Qi <yao@codesourcery.com>
4665
4666 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4667 Caller update.
4668 (encode_actions): Likewise.
4669 * remote.c (remote_download_tracepoint): Caller update.
4670 * tracepoint.h (encode_actions): Update declaration.
4671
a6e6f791
PA
46722013-05-30 Pedro Alves <palves@redhat.com>
4673
4674 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4675 pointer.
4676
36d25514
YQ
46772013-05-30 Yao Qi <yao@codesourcery.com>
4678
4679 * remote.c (remote_check_symbols): Remove unused parameter
4680 'objfile'.
4681 Declaration update.
4682 (remote_start_remote, remote_new_objfile): Caller update.
4683
62a813cc
YQ
46842013-05-30 Yao Qi <yao@codesourcery.com>
4685
4686 * mi/mi-cmds.c (mi_cmds): Define MI command
4687 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4688 DEF_MI_CMD_CLI.
4689
28439a30
PA
46902013-05-29 Pedro Alves <palves@redhat.com>
4691
4692 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4693 (remote_insert_watchpoint, remote_remove_watchpoint)
4694 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4695 (remote_verify_memory, compare_sections_command)
4696 (remote_search_memory): Set the general process/thread on the
4697 remote side.
4698
6ac1c082
PA
46992013-05-29 Pedro Alves <palves@redhat.com>
4700
4701 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4702 (_initialize_aarch64_tdep): Don't call
4703 initialize_tdesc_aarch64_without_fpu.
4704 * features/Makefile (WHICH): Remove reference to
4705 aarch64-without-fpu.
4706 * features/aarch64-without-fpu.c: Delete file.
4707 * regformats/aarch64-without-fpu.dat: Delete file.
4708
a73e3634
YQ
47092013-05-28 Yao Qi <yao@codesourcery.com>
4710
4711 * tracepoint.c (stringify_collection_list): Remove parameter
4712 'string'.
4713 (encode_actions): Caller update. Remove local variables.
4714
c0ea94eb
YQ
47152013-05-24 Yao Qi <yao@codesourcery.com>
4716
4717 * tracepoint.c (TFILE_PID): Remove.
4718 (tfile_open): Don't add thread and inferior.
4719 (tfile_close): Don't set 'inferior_ptid'. Don't call
4720 exit_inferior_silent.
4721 (tfile_thread_alive): Remove.
4722 (init_tfile_ops): Don't set field 'to_thread_alive' of
4723 tfile_ops.
4724
20d7f211
DE
47252013-05-23 Doug Evans <dje@google.com>
4726
4727 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4728
8658d16d
PA
47292013-05-23 Pedro Alves <palves@redhat.com>
4730
4731 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4732 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4733 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4734 Only define if HAVE_SOCKETS is defined.
4735 * configure.ac: Check for sys/socket.h.
4736 * config.in, configure: Regenerate.
4737
21aa081e
PA
47382013-05-23 Pedro Alves <palves@redhat.com>
4739
4740 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4741 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4742 printing uint32_t variables.
4743
c2d6af84
PA
47442013-05-23 Pedro Alves <palves@redhat.com>
4745
4746 * NEWS: Mention GDBserver range stepping support.
4747
c1e36e3e
PA
47482013-05-23 Yao Qi <yao@codesourcery.com>
4749 Pedro Alves <palves@redhat.com>
4750
4751 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4752 field.
4753 * infcmd.c (step_once, until_next_command): Enable range stepping.
4754 * infrun.c (displaced_step_prepare): Disable range stepping.
4755 (resume): Disable range stepping if stepping over a breakpoint or
4756 we have software watchpoints. If range stepping is enabled,
4757 assert the thread is in the stepping range.
4758 (clear_proceed_status_thread): Clear may_range_step.
4759 (handle_inferior_event): Disable range stepping as soon as we know
4760 the thread that hit the event. Re-enable it whenever we're going
4761 to step with a step range.
4762 * remote.c (struct vCont_action_support) <r>: New field.
4763 (use_range_stepping): New global.
4764 (remote_vcont_probe): Handle 'r' action.
4765 (append_resumption): Append an 'r' action if the thread may range
4766 step.
4767 (show_range_stepping): New function.
4768 (set_range_stepping): New function.
4769 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4770 'set range-stepping' and 'show range-stepping' commands.
4771 * NEWS: Mention range stepping, the new vCont;r action, and the
4772 new "set/show range-stepping" commands.
4773
d458bd84
PA
47742013-05-23 Yao Qi <yao@codesourcery.com>
4775 Pedro Alves <palves@redhat.com>
4776
4777 * remote.c (struct vCont_action_support): New struct.
4778 (struct remote_state) <support_vCont_t>: Remove field.
4779 <vCont_actions_support>: New field.
4780 (remote_vcont_probe, remote_stop_ns): Update.
4781
ce4c476a
PA
47822013-05-23 Yao Qi <yao@codesourcery.com>
4783 Pedro Alves <palves@redhat.com>
4784
4785 * gdbthread.h (pc_in_thread_step_range): New declaration.
4786 * thread.c (pc_in_thread_step_range): New function.
4787 * infrun.c (handle_inferior_event): Use it.
4788
ce70887a
JB
47892013-05-23 Joel Brobecker <brobecker@adacore.com>
4790
4791 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4792 of sprintf.
4793
55b87a52
KS
47942013-05-22 Keith Seitz <keiths@redhat.com>
4795
4796 * ada-lang.c (is_known_support_routine): Add explicit free of
4797 'func_name' from find_frame_funname.
4798 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4799 for func_name from find_frame_funname.
4800 * python/py-frame.c (frapy_name): Add explicit free of
4801 'name' from find_frame_funname.
4802 * stack.c (find_frame_funname): Add comment explaining that
4803 funcp must be freed by the caller.
4804 Return copy of symbol names instead of pointers.
4805 (print_frame): Add a cleanup for 'funname' from
4806 find_frame_funname.
4807 * stack.h (find_frame_funname): Remove "const" from
4808 'funname' parameter.
4809
5f2e6b00
TT
48102013-05-22 Tom Tromey <tromey@redhat.com>
4811
4812 PR c++/15401:
4813 * c-valprint.c (c_value_print): Use value_addr for
4814 references. Convert back to reference type with value_ref.
4815
d85c4847
EZ
48162013-05-22 Eli Zaretskii <eliz@gnu.org>
4817
4818 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4819 unloaded DLL, it will be done by handle_solib_event. See
4820 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4821 details.
4822
54eb231c
PM
48232013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4824
4825 * ui-out.c: Create typedef ui_out_level_p and define vector
4826 operations for that type.
4827 (struct ui_out): Use a vector instead of an array.
4828 (current_level): Return level from a vector.
4829 (push_level): Create a level in a vector.
4830 (pop_level): Delete a level in a vector.
4831 (ui_out_new): Create initial level zero level, and store in a
4832 vector.
4833 (ui_out_destroy): Add vector cleanup.
4834
ac90359c
PA
48352013-05-22 Pedro Alves <palves@redhat.com>
4836
4837 * python/python-internal.h (gdb_Py_DECREF): Tag with
4838 "ARI: editCase function".
4839
6dcc1893
PP
48402013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4841
4842 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4843
c8c735b9
PA
48442013-05-21 Pedro Alves <palves@redhat.com>
4845
4846 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4847 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4848 * python/py-utils.c (py_decref): Don't check for NULL before
4849 calling Py_DECREF.
4850
1915daeb
PA
48512013-05-21 Pedro Alves <palves@redhat.com>
4852
4853 * python/py-utils.c (py_decref): Remove extra braces.
4854 (gdb_pymodule_addobject): Remove extra braces.
4855 * python-internal.h (gdb_Py_DECREF): New static inline function.
4856 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4857
bd9673a4
PW
48582013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4859
4860 * breakpoints.c (detach_breakpoints): Do not
4861 detach breakpoints locations with loc_type bp_loc_other.
4862
ff6009d0
JK
48632013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4864
4865 Workaround Python 2.6.
4866 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4867 a block.
4868
3641da11
JK
48692013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4870
4871 Code cleanup: constification.
4872 * solib.c (solib_ops): Make return type and ops variable type const.
4873 (set_solib_ops): Make the new_ops parameter and ops variable const.
4874 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4875 (solib_add, solib_keep_data_in_core, clear_solib)
4876 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4877 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4878 const.
4879 * solib.h (set_solib_ops): Make the new_ops parameter const.
4880
776af39e
JB
48812013-05-21 Joel Brobecker <brobecker@adacore.com>
4882
4883 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4884 variable.
4885 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4886 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4887 (SYSTEM_GDBINIT_FILES): New variables.
4888 (all): Add stamp-system-gdbinit.
4889 (stamp-system-gdbinit): New rule.
4890 (clean-system-gdbinit, install-system-gdbinit)
4891 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4892 (install-only): Add dependency on install-system-gdbinit.
4893 (uninstall): Add dependency on uninstall-system-gdbinit.
4894 (clean): Add dependency on clean-system-gdbinit.
4895 * system-gdbinit/elinos.py: New file.
4896 * system-gdbinit/wrs-linux.py: New file.
4897
1509e573
JB
48982013-05-21 Joel Brobecker <brobecker@adacore.com>
4899
4900 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4901
c5867ab6
HZ
49022013-05-21 Hui Zhu <hui@codesourcery.com>
4903
4904 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4905 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4906 * mi/mi-cmd-break.c (ctype.h): New include.
4907 (gdb_obstack.h): New include.
4908 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4909 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4910 (mi_cmd_dprintf_insert): New.
4911 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4912 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4913
7d38e38f
TT
49142013-05-20 Tom Tromey <tromey@redhat.com>
4915
4916 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4917
97b77b39
TT
49182013-05-20 Tom Tromey <tromey@redhat.com>
4919
4920 * python/py-value.c (valpy_get_dynamic_type): Simplify
4921 dynamic_type assignment. Use Py_XINCREF.
4922
53e66479
TT
49232013-05-20 Tom Tromey <tromey@redhat.com>
4924
4925 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4926
dcf87832
TT
49272013-05-20 Tom Tromey <tromey@redhat.com>
4928
4929 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4930 (gdbpy_selected_frame): Move object-construction code
4931 out of TRY_CATCH.
4932
aa36459a
TT
49332013-05-20 Tom Tromey <tromey@redhat.com>
4934
4935 * python/py-arch.c (gdbpy_initialize_arch): Use
4936 gdb_pymodule_addobject.
4937 * python/py-block.c (gdbpy_initialize_blocks): Use
4938 gdb_pymodule_addobject.
4939 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4940 gdb_pymodule_addobject.
4941 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4942 gdb_pymodule_addobject.
4943 * python/py-event.c (gdbpy_initialize_event_generic): Use
4944 gdb_pymodule_addobject.
4945 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4946 gdb_pymodule_addobject.
4947 * python/py-evts.c (add_new_registry): Use
4948 gdb_pymodule_addobject.
4949 (gdbpy_initialize_py_events): Likewise.
4950 * python/py-finishbreakpoint.c
4951 (gdbpy_initialize_finishbreakpoints): Use
4952 gdb_pymodule_addobject.
4953 * python/py-frame.c (gdbpy_initialize_frames): Use
4954 gdb_pymodule_addobject.
4955 * python/py-function.c (gdbpy_initialize_functions): Use
4956 gdb_pymodule_addobject.
4957 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4958 gdb_pymodule_addobject.
4959 * python/py-infthread.c (gdbpy_initialize_thread): Use
4960 gdb_pymodule_addobject.
4961 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4962 gdb_pymodule_addobject.
4963 * python/py-param.c (gdbpy_initialize_parameters): Use
4964 gdb_pymodule_addobject.
4965 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4966 gdb_pymodule_addobject.
4967 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4968 gdb_pymodule_addobject.
4969 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4970 gdb_pymodule_addobject.
4971 * python/py-type.c (gdbpy_initialize_types): Use
4972 gdb_pymodule_addobject.
4973 * python/py-utils.c (gdb_pymodule_addobject): New function.
4974 * python/py-value.c (gdbpy_initialize_values): Use
4975 gdb_pymodule_addobject.
4976 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4977 * python/python.c (_initialize_python): Use
4978 gdb_pymodule_addobject.
4979
3d4a3c3e
TT
49802013-05-20 Tom Tromey <tromey@redhat.com>
4981
4982 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4983 * python/py-param.c (get_set_value, get_show_value): Use
4984 explicit decrefs.
4985 * python/python.c (start_type_printers, apply_type_printers):
4986 Use explicit decrefs.
4987
72ff8829
TT
49882013-05-20 Tom Tromey <tromey@redhat.com>
4989
4990 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4991 incref the module.
4992
02146ba5
TT
49932013-05-20 Tom Tromey <tromey@redhat.com>
4994
4995 * python/python.c (gdbpy_run_events): Decref the result
4996 of PyObject_CallObject.
4997
33ee792f
TT
49982013-05-20 Tom Tromey <tromey@redhat.com>
4999
5000 * python/py-symtab.c (set_sal): Use
5001 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5002 (symtab_and_line_to_sal_object): Update.
5003
fcb49fc8
TT
50042013-05-20 Tom Tromey <tromey@redhat.com>
5005
5006 * python/py-param.c (compute_enum_values): Decref 'item'.
5007
0646da15
TT
50082013-05-20 Tom Tromey <tromey@redhat.com>
5009
5010 * mi/mi-main.c: Include python-internal.h.
5011 (mi_cmd_list_features): Check gdb_python_initialized.
5012 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5013 (python_inferior_exit, python_new_objfile, add_thread_object)
5014 (delete_thread_object, py_free_inferior): Check
5015 gdb_python_initialized.
5016 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5017 gdb_python_initialized.
5018 * python/py-type.c (save_objfile_types): Check
5019 gdb_python_initialized.
5020 * python/python-internal.h (gdb_python_initialized): Declare.
5021 * python/python.c (ensure_python_env): Throw exception if
5022 Python not initialized.
5023 (before_prompt_hook, source_python_script_for_objfile)
5024 (start_type_printers, apply_type_printers,
5025 free_type_printers): Check gdb_python_initialized.
5026 * varobj.c (varobj_get_display_hint)
5027 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5028 (install_new_value_visualizer, varobj_set_visualizer)
5029 (value_get_print_value): Check gdb_python_initialized.
5030
999633ed
TT
50312013-05-20 Tom Tromey <tromey@redhat.com>
5032
5033 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5034 Check errors.
5035 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5036 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5037 Check errors.
5038 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5039 Check errors.
5040 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5041 Check errors.
5042 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5043 Check errors.
5044 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5045 init function to return 'int'.
5046 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5047 Return 'int'. Check errors.
5048 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5049 Check errors.
5050 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5051 Return 'int'. Check errors.
5052 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5053 Check errors.
5054 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5055 Check errors.
5056 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5057 Check errors.
5058 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5059 Check errors.
5060 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5061 Check errors.
5062 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5063 Check errors.
5064 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5065 Check errors.
5066 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5067 Check errors.
5068 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5069 Check errors.
5070 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5071 Check errors.
5072 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5073 Check errors.
5074 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5075 Check errors.
5076 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5077 Check errors.
5078 * python/python-internal.h (gdbpy_initialize_auto_load,
5079 gdbpy_initialize_values, gdbpy_initialize_frames,
5080 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5081 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5082 gdbpy_initialize_blocks, gdbpy_initialize_types,
5083 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5084 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5085 gdbpy_initialize_finishbreakpoints,
5086 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5087 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5088 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5089 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5090 gdbpy_initialize_signal_event,
5091 gdbpy_initialize_breakpoint_event,
5092 gdbpy_initialize_continue_event,
5093 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5094 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5095 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5096 * python/python.c (gdb_python_initialized): New global.
5097 (gdbpy_initialize_events): Return 'int'. Check errors.
5098 (_initialize_python): Check errors. Set
5099 gdb_python_initialized.
5100
18868860
TT
51012013-05-20 Tom Tromey <tromey@redhat.com>
5102
5103 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5104 Decref the reslut of PyObject_CallMethod.
5105
9f4ff0c2
TT
51062013-05-20 Tom Tromey <tromey@redhat.com>
5107
5108 * python/py-event.c (gdbpy_initialize_event_generic): Return
5109 early if PyType_Ready fails.
5110
0d3a2e8a
TT
51112013-05-20 Tom Tromey <tromey@redhat.com>
5112
5113 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5114 as 'default' in the switch.
5115
b86af38a
TT
51162013-05-20 Tom Tromey <tromey@redhat.com>
5117
5118 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5119 get_addr_from_python calls out of TRY_CATCH.
5120 (infpy_write_memory, infpy_search_memory): Likewise.
5121 * python/py-utils.c (get_addr_from_python): Return negative
5122 value on error. Use TRY_CATCH.
5123 * python/python-internal.h (get_addr_from_python): Use
5124 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5125
c127ec58
TT
51262013-05-20 Tom Tromey <tromey@redhat.com>
5127
5128 * python/py-event.c (evpy_emit_event): Decref the
5129 result of PyObject_CallFunctionObjArgs.
5130
ba327838
TT
51312013-05-20 Tom Tromey <tromey@redhat.com>
5132
5133 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5134 Correctly decref.
5135
d8191432
TT
51362013-05-20 Tom Tromey <tromey@redhat.com>
5137
5138 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5139
5d153bd1
TT
51402013-05-20 Tom Tromey <tromey@redhat.com>
5141
5142 * python/py-event.h (gdbpy_initialize_event_generic): Use
5143 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5144 * python/py-evts.c (add_new_registry): Use
5145 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5146 * python/python-internal.h
5147 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5148
56cc411c
TT
51492013-05-20 Tom Tromey <tromey@redhat.com>
5150
5151 * python/py-arch.c (archpy_disassemble): Update.
5152 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5153 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5154 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5155 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5156 macro.
5157 (GDB_PY_HANDLE_EXCEPTION): Update.
5158 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5159
8919e174
TT
51602013-05-20 Tom Tromey <tromey@redhat.com>
5161
5162 * python/python-internal.h (events_object_type): Remove.
5163
9b08f225
TT
51642013-05-20 Tom Tromey <tromey@redhat.com>
5165
f5aee5ee
AM
5166 * python/py-event.h (evpy_emit_event): Use
5167 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5168 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5169 New macro.
9b08f225 5170
f04010ff
TT
51712013-05-20 Tom Tromey <tromey@redhat.com>
5172
5173 * py-evtregistry.c (create_event_object): Decref
5174 eventregistry_object if PyList_New fails.
5175
3919fd96
TT
51762013-05-20 Tom Tromey <tromey@redhat.com>
5177
5178 * py-cmd.c (gdbpy_string_to_argv): Check result of
5179 PyList_New.
5180
0430e8cb
TT
51812013-05-20 Tom Tromey <tromey@redhat.com>
5182
5183 * python/python.c (before_prompt_hook): Add cleanup to
5184 decref 'hook'.
5185
764123e4
TT
51862013-05-20 Tom Tromey <tromey@redhat.com>
5187
5188 * python/py-function.c (fnpy_init): Decref result of
5189 PyObject_GetAttrString.
5190
634c58be
TT
51912013-05-20 Tom Tromey <tromey@redhat.com>
5192
5193 * python/py-threadevent.c (get_event_thread): Use
5194 CPYCHECKER_RETURNS_BORROWED_REF.
5195 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5196 New define.
5197 (pspace_to_pspace_object, objfile_to_objfile_object)
5198 (find_thread_object): Use it.
5199
62eec1a5
TT
52002013-05-20 Tom Tromey <tromey@redhat.com>
5201
5202 * python/py-arch.c (arch_object_type): Use
5203 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5204 * python/py-block.c (block_syms_iterator_object_type):
5205 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5206 * python/py-bpevent.c (breakpoint_event_object_type):
5207 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5208 * python/py-cmd.c (cmdpy_object_type): Use
5209 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5210 * python/py-continueevent.c (continue_event_object_type):
5211 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5212 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5213 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5214 * python/py-events.h (thread_event_object_type):
5215 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5216 * python/py-evtregistry.c (eventregistry_object_type): Use
5217 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5218 * python/py-exitedevent.c (exited_event_object_type):
5219 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5220 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5221 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5222 * python/py-function.c (fnpy_object_type): Use
5223 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5224 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5225 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5226 * python/py-infthread.c (thread_object_type): Use
5227 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5228 * python/py-lazy-string.c (lazy_string_object_type):
5229 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5230 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5231 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5232 * python/py-objfile.c (objfile_object_type): Use
5233 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5234 * python/py-param.c (parmpy_object_type):
5235 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5236 * python/py-progspace.c (pspace_object_type):
5237 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5238 * python/py-signalevent.c (signal_event_object_type):
5239 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5240 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5241 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5242 * python/py-type.c (type_object_type, field_object_type)
5243 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5244 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5245 define.
5246 (value_object_type, block_object_type, symbol_object_type)
5247 (event_object_type, stop_event_object_type, breakpoint_object_type)
5248 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5249
81ea8796
AT
52502013-05-20 Andreas Tobler <andreas@fgznet.ch>
5251
5252 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5253 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5254
a2ce51a0
DE
52552013-05-20 Doug Evans <dje@google.com>
5256
5257 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5258 For Fission.
5259 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5260 reading_dwo_directly.
5261 (struct signatured_type): New member dwo_unit.
5262 (struct die_reader_specs): New member comp_dir.
5263 (create_signatured_type_table_from_index): Use malloc for
5264 all_type_units instead of objfile's obstack.
5265 (create_all_type_units): Ditto.
5266 (fill_in_sig_entry_from_dwo_entry): New function.
5267 (add_type_unit): New function.
5268 (lookup_dwo_signatured_type): New function.
5269 (lookup_dwp_signatured_type): New function.
5270 (lookup_signatured_type): New arg cu. All callers updated.
5271 (init_cu_die_reader): Initialize comp_dir.
5272 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5273 Change assert of matching type signatures to call error on mismatch.
5274 (lookup_dwo_unit): Add assert.
5275 (init_tu_and_read_dwo_dies): New function.
5276 (init_cutu_and_read_dies): Call it.
5277 (build_type_unit_groups): Handle case of no type unit groups created.
5278 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5279 (lookup_dwo_cutu): Tweak complaint.
5280 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5281 (dwarf2_per_objfile_free): Free all_type_units.
5282
a25cd31f
JB
52832013-05-20 Joel Brobecker <brobecker@adacore.com>
5284
5285 * windows-nat.c (handle_unload_dll): Add missing empty line.
5286
4d804846
JB
52872013-05-20 Joel Brobecker <brobecker@adacore.com>
5288
5289 * dwarf2read.c (prototyped_function_p): New function.
5290 (read_subroutine_type): Use it.
5291
1c432e72
JB
52922013-05-20 Joel Brobecker <brobecker@adacore.com>
5293
5294 * rs6000-aix-tdep.c: De-indent some example code provided
5295 as a comment.
5296
4feebbdd
EBM
52972013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5298
5299 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5300 region is ok for a hardware watchpoint using the new ptrace interface
5301 on Power servers.
5302
7d0c9981
DE
53032013-05-17 Doug Evans <dje@google.com>
5304
5305 * NEWS: Mention new maintenance commands check-symtabs, and
5306 expand-symtabs, and renamed check-psymtabs.
5307 * psymtab.c (maintenance_check_psymtabs): Renamed from
5308 maintenance_check_symtabs. Only process already-expanded symbol
5309 tables.
5310 (_initialize_psymtab): Update.
5311 * symmisc.c (maintenance_check_symtabs): New function.
5312 (maintenance_expand_name_matcher): New function
5313 (maintenance_expand_file_matcher): New function
5314 (maintenance_expand_symtabs): New function.
5315 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5316 commands.
5317
6cbc7c3d
TT
53182013-05-17 Tom Tromey <tromey@redhat.com>
5319
5320 * python/py-inferior.c (infpy_read_memory): Don't call
5321 PyErr_SetString if PyObject_New fails.
5322 * python/py-frame.c (frame_info_to_frame_object): Don't call
5323 PyErr_SetString if PyObject_New fails.
5324
a48b32c0
L
53252013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5326
5327 * acinclude.m4: Add check for dlopen in libdl.
5328 * configure.ac: Ditto.
5329 * configure: Regenerate.
5330
3de661e6
PM
53312013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5332
5333 * frame.c (frame_stash): Convert to htab.
5334 (frame_addr_hash): New function.
5335 (frame_addr_hash_eq): New function.
5336 (frame_stash_create): Convert function to create
5337 a hash table.
5338 (frame_stash_add): Convert function to add an entry to a hash
5339 table.
5340 (frame_stash_find): Convert function to search the hash table.
5341 (frame_stash_invalidate): Convert function to empty the hash
5342 table.
5343 (get_frame_id): Only add to stash if a frame_id is created.
5344 (_initialize_frame): Call frame_stash_create.
5345
bb4168a9 53462013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5347
5348 * configure.ac: Ensure MIG is available when building for GNU Hurd
5349 hosts.
5350 * configure: Regenerate.
5351
d1be3247
JB
53522013-05-16 Joel Brobecker <brobecker@adacore.com>
5353
5354 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5355
b8fea896
JB
53562013-05-16 Joel Brobecker <brobecker@adacore.com>
5357
5358 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5359 all cleanups are done before returning from this function.
5360
af880d85
JB
53612013-05-15 Joel Brobecker <brobecker@adacore.com>
5362
5363 * utils.h: #include "exceptions.h".
5364 (enum errors): Remove partial declaration.
5365
356a5233
JB
53662013-05-15 Joel Brobecker <brobecker@adacore.com>
5367
5368 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5369 * gdbarch.h, gdbarch.c: Regenerate.
5370 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5371 handling.
5372
5373 * rs6000-aix-tdep.h: New file.
5374 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5375 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5376 "xml-utils.h".
5377 (struct field_info, struct ld_info_desc): New types.
5378 (ld_info32_desc, ld_info64_desc): New static constants.
5379 (struct ld_info): New type.
5380 (rs6000_aix_extract_ld_info): New function.
5381 (rs6000_aix_shared_library_to_xml): Likewise.
5382 (rs6000_aix_ld_info_to_xml): Likewise.
5383 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5384 (rs6000_aix_init_osabi): Add call to
5385 set_gdbarch_core_xfer_shared_libraries_aix.
5386 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5387 Remove "xml-utils.h" include.
5388 (LdInfo): Delete typedef.
5389 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5390 Delete macros.
5391 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5392 Adjust code accordingly.
5393 (rs6000_core_ldinfo): Delete, folded into
5394 rs6000_aix_core_xfer_shared_libraries_aix.
5395 (rs6000_xfer_shared_library): Delete.
5396 (rs6000_xfer_shared_libraries): Reimplement.
5397
742ce053
MM
53982013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5399
5400 * record.c (record_goto_cmdlist): New.
5401 (cmd_record_goto): Split into this ...
5402 (cmd_record_goto_begin): ... this
5403 (cmd_record_goto_end): ... and this.
5404 (_initialize_record): Change "record goto" to prefix command.
5405 Add commands for "record goto begin" and "record goto end".
5406 Add an alias for "record goto start" to "record goto begin".
5407
e93ba630
JK
54082013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5409
5410 * linespec.c (convert_linespec_to_sals): New comment for
5411 SOURCE_FILENAME assignment.
5412
5821aace
JK
54132013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5414
5415 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5416 internal_warning.
5417
a1b8c4cc
TT
54182013-05-14 Tom Tromey <tromey@redhat.com>
5419
5420 * eval.c (parse_and_eval_long): Make 'exp' const.
5421 * value.h (parse_and_eval_long): Update.
5422
23b3a2c3
TT
54232013-05-14 Tom Tromey <tromey@redhat.com>
5424
5425 * ui-file.c (gdb_fopen): Make arguments const.
5426 * ui-file.h (gdb_fopen): Make arguments const.
5427
ca623f82
TT
54282013-05-14 Tom Tromey <tromey@redhat.com>
5429
5430 * remote.c (remote_set_trace_notes): Make arguments const.
5431 * target.c (update_current_target): Update cast.
5432 * target.h (to_set_trace_notes): Make arguments const.
5433
503ebb2c
TT
54342013-05-14 Tom Tromey <tromey@redhat.com>
5435
5436 * go32-nat.c (go32_terminal_info): Make 'args' const.
5437 * inferior.h (child_terminal_info): Update.
5438 * inflow.c (child_terminal_info): Make 'args' const.
5439 * target.c (default_terminal_info): Make 'args' const.
5440 (debug_to_terminal_save_ours): Likewise.
5441 * target.h (struct target_ops) <to_terminal_info>: Make argument
5442 const.
5443
85e1311a
TT
54442013-05-13 Tom Tromey <tromey@redhat.com>
5445
5446 * gcore.c (create_gcore_bfd): Make 'filename' const.
5447 * gcore.h (create_gcore_bfd): Make 'filename' const.
5448 * record-full.c (record_full_save): Make 'recfilename' const.
5449 * target.c (target_save_record): Make 'filename' const.
5450 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5451 const.
5452 (target_save_record): Likewise.
5453
d62bfeaf
TT
54542013-05-13 Tom Tromey <tromey@redhat.com>
5455
f5aee5ee 5456 PR gdb/15338:
d62bfeaf
TT
5457 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5458 ranges section has been read.
5459
ac1ca910
TT
54602013-05-13 Tom Tromey <tromey@redhat.com>
5461
5462 PR exp/15364:
5463 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5464 STRUCTOP_PTR>: Return a not_lval value for
5465 EVAL_AVOID_SIDE_EFFECTS.
5466 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5467 for EVAL_AVOID_SIDE_EFFECTS.
5468
36d1c68c
JB
54692013-05-13 Joel Brobecker <brobecker@adacore.com>
5470
5471 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5472 floating point registers to register type before storing
5473 value.
5474 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5475 Likewise.
5476
21ff4686
TT
54772013-05-10 Joel Brobecker <brobecker@adacore.com>
5478 Tom Tromey <tromey@redhat.com>
5479
5480 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5481 New functions.
5482 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5483 Declare.
5484 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5485 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5486 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5487 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5488
d3685d60
TT
54892013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5490 Tom Tromey <tromey@redhat.com>
5491
5492 PR build/15414:
5493 * configure: Rebuild.
5494 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5495 with -Wno-format.
5496
eb9fe518
PA
54972013-05-10 Pedro Alves <palves@redhat.com>
5498
5499 * remote.c (_initialize_remote): Fix spelling of
5500 qXfer:traceframe-info:read packet in packet config command.
5501
9779ab84
PA
55022013-05-10 David Taylor <dtaylor@emc.com>
5503
5504 PR remote/15455
5505
5506 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5507 "QTro" at start of packet.
5508
060cfbef
JB
55092013-05-10 Joel Brobecker <brobecker@adacore.com>
5510
5511 * solib-aix.c (solib_aix_relocate_section_addresses):
5512 For the .bss section action, apply the same offset as
5513 the .data section.
5514
ab1c4e88
JB
55152013-05-10 Joel Brobecker <brobecker@adacore.com>
5516
5517 * solib-aix.c (solib_aix_relocate_section_addresses):
5518 Remove FIXME comment.
5519
c1357578
JB
55202013-05-10 Joel Brobecker <brobecker@adacore.com>
5521
5522 PR tdep/15420:
5523 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5524 New functions, directly copied from sparc-sol-thread.c.
5525 * sparc-sol-thread.c: Delete.
5526 * configure.ac: Remove code handling sparc-solaris-thread.c.
5527 * configure: Regenerate.
5528
1e611234
PM
55292013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5530
5531 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5532 filter logic.
5533 (backtrace_command): Add "no-filters" option parsing.
5534 (_initialize_stack): Alter help to reflect "no-filters" option.
5535 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5536 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5537 (py-frame.o): Add target
5538 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5539 filter files.
5540 * python/python.h: Add new frame filter constants, and flag enum.
5541 (apply_frame_filter): Add definition.
5542 * python/python.c (apply_frame_filter): New non-Python
5543 enabled function.
5544 * python/py-utils.c (py_xdecref): New function.
5545 (make_cleanup_py_xdecref): Ditto.
5546 * python/py-objfile.c: Declare frame_filters dictionary.
5547 (objfpy_dealloc): Add frame_filters dealloc.
5548 (objfpy_new): Initialize frame_filters attribute.
5549 (objfile_to_objfile_object): Ditto.
5550 (objfpy_get_frame_filters): New function.
5551 (objfpy_set_frame_filters): New function.
5552 * python/py-progspace.c: Declare frame_filters dictionary.
5553 (pspy_dealloc): Add frame_filters dealloc.
5554 (pspy_new): Initialize frame_filters attribute.
5555 (pspacee_to_pspace_object): Ditto.
5556 (pspy_get_frame_filters): New function.
5557 (pspy_set_frame_filters): New function.
5558 * python/py-framefilter.c: New file.
5559 * python/lib/gdb/command/frame_filters.py: New file.
5560 * python/lib/gdb/frames.py: New file.
5561 * python/lib/gdb/__init__.py: Initialize global frame_filters
5562 dictionary
5563 * python/lib/gdb/FrameDecorator.py: New file.
5564 * python/lib/gdb/FrameIterator.py: New file.
5565 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5566 * mi/mi-cmds.h: Declare.
5567 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5568 --no-frame-filter logic, and Python frame filter logic.
5569 (stack_enable_frame_filters): New function.
5570 (parse_no_frame_option): Ditto.
5571 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5572 filter logic.
5573 (mi_cmd_stack_list_locals): Ditto.
5574 (mi_cmd_stack_list_args): Ditto.
5575 (mi_cmd_stack_list_variables): Ditto.
5576 * NEWS: Add frame filter note.
5577
2cb9c859
DE
55782013-05-09 Doug Evans <dje@google.com>
5579
6bf667bb
DE
5580 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5581 All callers updated.
5582 (syms_from_objfile): Ditto. Make static.
5583 (symbol_file_add_with_addrs): Renamed from
5584 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5585 num_offsets. All callers updated.
5586 * symfile.h (syms_from_objfile): Delete.
5587
2cb9c859
DE
5588 * symfile.c (decrement_reading_symtab): Add assert.
5589 (increment_reading_symtab): Ditto.
5590
40aea477
JB
55912013-05-09 Joel Brobecker <brobecker@adacore.com>
5592
5593 * source.c (forward_search_command): Replace call to getc
5594 by call to fgetc.
5595 (reverse_search_command): Likewise.
5596
680d1742
DE
55972013-05-08 Doug Evans <dje@google.com>
5598
5599 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5600 matching test.
5601
17e760ae
JB
56022013-05-08 Joel Brobecker <brobecker@adacore.com>
5603
5604 * sol-thread.c (info_cb): Factorize the code a little.
5605
c0f5f490
JB
56062013-05-08 Joel Brobecker <brobecker@adacore.com>
5607
5608 * sol-thread.c (info_cb): Rework the output of the "maintenance
5609 info sol-threads" command a bit.
5610
5d74e061
JB
56112013-05-08 Joel Brobecker <brobecker@adacore.com>
5612
5613 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5614 Replace ti.ti_startfunc by ti.ti_pc.
5615
814a3ff7
JB
56162013-05-08 Joel Brobecker <brobecker@adacore.com>
5617
5618 * solib-aix.c (solib_aix_free_library_list): New function
5619 for the case where HAVE_LIBEXPAT is not defined.
5620
58ce7251
SDJ
56212013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5622
5623 PR breakpoints/15413:
5624 * breakpoint.c (condition_completer): Simplify the code to
5625 disconsider multiple locations of breakpoints when completing the
5626 "condition" command.
5627
be8b1ea6
PM
56282013-05-07 Pierre Muller <muller@sourceware.org>
5629
5630 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5631 instead of <sys/wait.h>.
5632
1e52bda6
PM
56332013-05-07 Pierre Muller <muller@sourceware.org>
5634
5635 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5636 trailing new line from warning message.
5637
27fd0c6b
PM
56382013-05-07 Pierre Muller <muller@sourceware.org>
5639
5640 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5641 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5642
e228ac87
JB
56432013-05-07 Joel Brobecker <brobecker@adacore.com>
5644
5645 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5646 error message (ARI fix).
5647
56482013-05-07 Joel Brobecker <brobecker@adacore.com>
5649
5650 * features/library-list-aix.dtd: Replace library-list by
5651 library-list-aix.
5652 * rs6000-nat.c: Replace library-list by library-list-aix
5653 throughout.
5654 * solib-aix.c: Likewise.
5655
56562013-05-07 Joel Brobecker <brobecker@adacore.com>
5657
5658 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5659 Renames TARGET_OBJECT_AIX_LIBRARIES.
5660 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5661 TARGET_OBJECT_LIBRARIES_AIX throughout.
5662 * solib-aix.c: Likwise.
5663
26a4dda9
YQ
56642013-05-07 Yao Qi <yao@codesourcery.com>
5665
5666 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5667 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5668
3582629f
YQ
56692013-05-07 Yao Qi <yao@codesourcery.com>
5670
5671 * solib-dsbt.c (enable_break): Declare.
5672 (dsbt_current_sos): Remove call to enable_break2.
5673 (enable_break2): Rename to enable_break. Set solib breakpoint
5674 on '_dl_debug_state'.
5675 (enable_break): Remove.
5676
aacbb8a5
LM
56772013-05-07 Luis Machado <lgustavo@codesourcery.com>
5678
5679 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5680 debug state prior to replicating existing hardware watchpoints or
5681 breakpoints.
5682
0c013353
JK
56832013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5684
5685 * gcore.c (gcore_create_callback): Ignore sections with
5686 separate_debug_objfile_backlink != NULL.
5687
a1217d97
SL
56882013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5689 Andrew Jenner <andrew@codesourcery.com>
5690 Chung-Lin Tang <cltang@codesourcery.com>
5691 Julian Brown <julian@codesourcery.com>
5692
5693 Based on the nios2-elf port from Altera Corporation.
5694
5695 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5696 nios2-linux-tdep.o.
5697 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5698 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5699 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5700 * nios2-tdep.h: New.
5701 * nios2-tdep.c: New.
5702 * nios2-linux-tdep.c: New.
5703 * features/Makefile (WHICH): Add nios2-linux.
5704 (nios2-linux-expedite): Set.
5705 * features/nios2-cpu.xml: New.
5706 * features/nios2.xml: New.
5707 * features/nios2-linux.xml: New.
5708 * features/nios2.c: New (autogenerated).
5709 * features/nios2-linux.c: New (autogenerated).
5710 * regformats/nios2-linux.dat: New (autogenerated).
5711 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5712 and commands.
5713
0892cb63
DE
57142013-05-06 Doug Evans <dje@google.com>
5715
3b7bacac
DE
5716 * symfile.c: Whitespace cleanup.
5717
0892cb63
DE
5718 * solist.h (struct target_so_ops): New member clear_so.
5719 * solib-svr4.c (svr4_clear_so): New function.
5720 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5721 * solib.c (clear_so): Renamed from free_so_symbols.
5722 All callers updated. Call target clear_so if it exists.
5723
40501e00
TT
57242013-05-06 Tom Tromey <tromey@redhat.com>
5725
5726 * ada-lang.c (ada_value_primitive_packed_val): Don't
5727 call value_incref.
5728 * value.c (set_value_parent): Incref the new parent and decref
5729 the old parent.
5730 (value_copy, value_primitive_field): Use set_value_parent.
5731
b6807d98
TT
57322013-05-06 Tom Tromey <tromey@redhat.com>
5733
5734 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5735 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5736 if needed.
5737 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5738 * dwarf2read.c (write_constant_as_bytes)
5739 (dwarf2_fetch_constant_bytes): New functions.
5740
3aef2284
TT
57412013-05-06 Tom Tromey <tromey@redhat.com>
5742
5743 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5744 parameters.
5745 (dwarf2_const_value_attr): Update.
5746
66f65e2b
TT
57472013-05-06 Tom Tromey <tromey@redhat.com>
5748
5749 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5750 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5751 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5752 Remove declaration.
5753
7919a973
TT
57542013-05-06 Tom Tromey <tromey@redhat.com>
5755
5756 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5757 objfile's obstack.
5758
a7bfba49
DE
57592013-05-06 Doug Evans <dje@google.com>
5760
3189cb12
DE
5761 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5762 * stabsread.h (process_one_symbol): Update declaration.
5763 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5764 * elfread.c (elf_symfile_relocate_probe): Ditto.
5765 * psymtab.c (relocate_psymtabs): Ditto.
5766 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5767 (objfile_relocate): Ditto.
5768 * objfiles.h (objfile_relocate): Update declaration.
5769 * symfile.c (relative_addr_info_to_section_offsets): Constify
5770 addrs parameter.
5771 (default_symfile_offsets): Ditto.
5772 (syms_from_objfile_1): Constify offsets parameter.
5773 (syms_from_objfile): Ditto.
5774 (symbol_file_add_with_addrs_or_offsets): Ditto.
5775 (symfile_map_offsets_to_segments): Constify data parameter.
5776 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5777 delta parameters of member relocate.
5778 (struct sym_probe_fns): Constify new_offsets,
5779 delta parameters of member sym_relocate_probe.
5780 (struct sym_fns): Constify section_addr_info parameter of member
5781 sym_offsets.
5782 (relative_addr_info_to_section_offsets): Update declaration.
5783 (default_symfile_offsets): Ditto.
5784 (syms_from_objfile): Ditto.
5785 (symfile_map_offsets_to_segments): Ditto.
5786
a7bfba49
DE
5787 * symfile.c (syms_from_objfile_1): Use correct section count when
5788 objfile->sf == NULL.
5789
5f8e0b8f
MF
57902013-05-06 Mike Frysinger <vapier@gentoo.org>
5791
5792 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5793
ea52d893
DE
57942013-05-06 Doug Evans <dje@google.com>
5795
5796 * psympriv.h (struct partial_symtab): Augment comment for member
5797 section_offsets.
5798
4d1eb6b4
JB
57992013-05-06 Joel Brobecker <brobecker@adacore.com>
5800
5801 Reimplement shared library support on ppc-aix...
5802 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5803 * features/library-list-aix.dtd: New file.
5804 * solib-aix.h, solib-aix.c: New file.
5805 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5806 (rs6000_find_toc_address_hook): Delete.
5807 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5808 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5809 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5810 "xml-utils.h".
5811 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5812 (vmap_symtab, fixup_breakpoints): Delete.
5813 (rs6000_xfer_shared_libraries): New function.
5814 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5815 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5816 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5817 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5818 (rs6000_xfer_shared_library): New function.
5819 (find_toc_address): Delete.
5820 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5821 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5822 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5823 before creating minimal symbol. Adjust function description
5824 accordingly.
5825 (scan_xcoff_symtab): Replace call to
5826 prim_record_minimal_symbol_and_info by call to
5827 record_minimal_symbol.
5828 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5829 around default_symfile_offsets.
5830 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5831 powerpc-aix targets.
5832 * config/rs6000/nm-rs6000.h: Delete.
5833 * config/powerpc/aix.mh (NAT_FILE): Delete.
5834 (NATDEPFILES): Remove xcoffsolib.o.
5835 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5836 (ALL_TARGET_OBS): Add solib-aix.o.
5837 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5838 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5839 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5840 * xcoffsolib.h, xcoffsolib.c: Delete.
5841
5842 * solib.c (reload_shared_libraries): Remove reference to
5843 SOLIB_CREATE_INFERIOR_HOOK.
5844 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5845 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5846 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5847 comment.
5848 * corelow.c (deprecated_core_resize_section_table): Delete.
5849 * exec.c: Remove include of xcoffsolib.h".
5850 (map_vmap, vmap): Delete.
5851 (exec_close_1): Remove references to vmap.
5852 (exec_file_attach): Remove vmap handling code, and reference
5853 to DEPRECATED_IBM6000_TARGET.
5854 (bfdsec_to_vmap): Delete.
5855 (exec_files_info): Remove block of code handling VMAP.
5856 * infcmd.c (post_create_inferior): Remove reference to
5857 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5858 * infrun.c (follow_exec): Remove reference to
5859 SOLIB_CREATE_INFERIOR_HOOK.
5860 * stack.c (print_frame): Remove reference to PC_SOLIB.
5861 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5862 (dsbt_relocate_main_executable): Likewise.
5863 * solib-frv.c (frv_current_sos): Likewise.
5864
0c4f667c
JB
58652013-05-06 Joel Brobecker <brobecker@adacore.com>
5866
5867 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5868 to target_write_memory and target_read_memory.
5869
726ce67c
JB
58702013-05-06 Joel Brobecker <brobecker@adacore.com>
5871
5872 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5873 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5874
c8c9911f
JB
58752013-05-06 Joel Brobecker <brobecker@adacore.com>
5876
5877 * darwin-nat.c: Replace all "%x" instances in format strings
5878 into "0x%x" throughout.
5879
fda184b6
JB
58802013-05-06 Joel Brobecker <brobecker@adacore.com>
5881
5882 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5883 gdb_assert by call to MACH_CHECK_ERROR.
5884 (darwin_attach_pid): Raise an error rather than a failed
5885 assertion when various system calls failed. Report a warning
5886 instead of raising a failed assertion when PREV_NOT is not NULL
5887 after call to mach_port_request_notification.
5888 (darwin_ptrace_me): Raise an error rather than a failed
5889 assertion when read returns nonzero.
5890
d1d69afb
JB
58912013-05-06 Joel Brobecker <brobecker@adacore.com>
5892
5893 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5894
dc90b24d
JK
58952013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5896
5897 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5898
faab9922
JK
58992013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5900
5901 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5902 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5903 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5904 a stale cleanup. Fix double free of NAME.
5905
e0ea48a0
EZ
59062013-05-04 Eli Zaretskii <eliz@gnu.org>
5907
5908 * windows-nat.c (windows_delete_thread): Accept an additional
5909 argument, the thread's exit code, and announce thread death when
5910 print_thread_events is non-zero and we are deleting a thread that
5911 is not the main thread.
5912 (get_windows_debug_event): Pass thread exit code to
5913 windows_delete_thread.
5914
83b2706a
KB
59152013-05-03 Kevin Buettner <kevinb@redhat.com>
5916
5917 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5918 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5919 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5920 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5921 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5922 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5923 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5924 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5925 (gdbarch_tdep): New struct.
5926 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5927 E_NUM_REGS.
5928 (v850e3v5_register_name): New function.
5929 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5930 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5931 code handling the struct return conventions for the RH850 ABI.
5932 Update all callers.
5933 (v850_eight_byte_align_p): New function.
5934 (v850_push_call_dummy): Push structs by value, not by reference
5935 for the RH850 ABI. Add support for eight byte alignment.
5936 (v850_dbtrap_breakpoint_from_pc): New function.
5937 (v850_gdbarch_init): Add ABI detection code. Register
5938 v850e3v5_register_name for the v850e3v5 architecture. Set the
5939 number of registers for v850e3v5. Register
5940 v850_dbtrap_breakpoint_from_pc as appropriate.
5941 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5942
d445b2f6
DE
59432013-05-03 Doug Evans <dje@google.com>
5944
5945 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5946 of bfd_count_sections.
5947 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5948 * symfile.c (default_symfile_offsets): Ditto.
5949 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5950 one entry, not bfd_count_sections entries.
5951
b3ce41ea
KB
59522013-05-03 Kevin Buettner <kevinb@redhat.com>
5953
5954 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5955 `save' and `restore' register groups. Don't include SPL
5956 or SPH in these groups.
5957 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5958 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5959 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5960 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5961 dwarf2_append_unwinders().
5962
96f7d3f1
PW
59632013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5964
5965 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5966 ignore SIGINT and SIGTRAP in case these internal signals are
5967 caught explicitely.
5968
b9dd1947
JB
59692013-05-01 Joel Brobecker <brobecker@adacore.com>
5970
5971 * darwin-nat.c (darwin_read_write_inferior): Change types
5972 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5973 of copy_count to "mach_msg_type_number_t".
5974 (darwin_read_dyld_info): Change type of parameter
5975 rdaddr to "gdb_byte *".
5976
4ca18a63
JB
59772013-05-01 Joel Brobecker <brobecker@adacore.com>
5978
5979 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5980 of &info->load_map from "char *" to "gdb_byte *".
5981
2b692d32
JB
59822013-05-01 Joel Brobecker <brobecker@adacore.com>
5983
5984 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5985 from "char *" to "gdb_byte *".
5986 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5987
a98c29a0
DE
59882013-04-30 Doug Evans <dje@google.com>
5989
6a506a2d
DE
5990 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5991 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5992 DWO stub. If DWO isn't found, just use stub.
5993 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5994
a98c29a0
DE
5995 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5996 calling init_cutu_and_read_dies.
5997
f92b06da
WT
59982013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5999
6000 * target-descriptions.c (maint_print_c_tdesc_cmd):
6001 Add case to parse structures as register types and
6002 bitfields.
6003
95eebdcc
WT
60042013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6005
6006 * MAINTAINERS (Write After Approval): Add myself to the list.
6007
019c1128
JB
60082013-04-30 Joel Brobecker <brobecker@adacore.com>
6009
6010 * sol-thread.c (rw_common): Change type of parameter "buf"
6011 to "gdb_byte *".
6012 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6013 rw_common to "gdb_byte *" instead of "char *".
6014
5812197c
JB
60152013-04-30 Joel Brobecker <brobecker@adacore.com>
6016
6017 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6018 of local variable msym to const struct bound_minimal_symbol.
6019 Adjust use accordingly.
6020 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6021
ecccb813
TS
60222013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6023
6024 * i386gnu-nat.c (CREG_OFFSET): New macro.
6025 (creg_offset): New array.
6026 (CREG_ADDR): Use creg_offset instead of reg_offset.
6027
f1d02dd4 60282013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6029
6030 * mep-tdep.c (mep_write_pc): Delete.
6031 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6032 Add call to set_gdbarch_pc_regnum.
6033
f1d02dd4 60342013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6035
6036 * common/filestuff.c: Replace #include <dirent.h> by
6037 #include "gdb_dirent.h".
6038
f1d02dd4 60392013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6040
6041 * common/filestuff.c: Replace #include <sys/stat.h> by
6042 #include "gdb_stat.h".
6043
b385a60d
PM
60442013-04-29 Pierre Muller <muller@sourceware.org>
6045
6046 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6047 editCase function rule.
6048 (get_DW_AT_signature_type): Likewise.
6049
d27b54ad
JB
60502013-04-29 Joel Brobecker <brobecker@adacore.com>
6051
6052 * m32r-tdep.c (m32r_write_pc): Delete.
6053 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6054 Add call to set_gdbarch_pc_regnum.
6055
47d21dc5
PM
60562013-04-29 Pierre Muller <muller@sourceware.org>
6057
6058 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6059
9056882e
JB
60602013-04-29 Joel Brobecker <brobecker@adacore.com>
6061
6062 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6063
7ee4732a
YQ
60642013-04-28 Yao Qi <yao@codesourcery.com>
6065
6066 * solib-dsbt.c (fetch_loadmap): Re-indent.
6067 (displacement_from_map, enable_break2): Likewise.
6068 (dsbt_relocate_section_addresses): Likewise.
6069
2260af53 60702013-04-26 Joel Brobecker <brobecker@adacore.com>
6071
6072 GDB 7.6 released.
6073
ff546935
TT
60742013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6075
6076 PR corefiles/14983:
6077 * dwarf2read.c (process_full_comp_unit): Always create a static
6078 block.
6079
40fb6c5e
HZ
60802013-04-25 Hui Zhu <hui@codesourcery.com>
6081
6082 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6083 to loc->cmd_bytecode.
6084
74e04d1c
DE
60852013-04-24 Doug Evans <dje@google.com>
6086
6087 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6088
3cf62c1d
KS
60892013-04-22 Keith Seitz <keiths@redhat.com>
6090
6091 * tracepoint.c (trace_save): Call the writer's start method.
6092
bf9e4d0c
MB
60932013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6094
6095 PR gdb/10462
6096 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6097 before argument.
6098
5d71132c
TT
60992013-04-23 Tom Tromey <tromey@redhat.com>
6100
6101 * common/filestuff.c: Check USE_WIN32API before including
6102 sys/socket.h.
6103 (HAVE_F_GETFD): New define.
6104 (mark_cloexec): Check HAVE_F_GETFD.
6105 (gdb_open_cloexec): Change 'mode' to unsigned long.
6106 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6107 (gdb_pipe_cloexec): Check HAVE_PIPE.
6108 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6109 long.
6110
a11cfd87
HZ
61112013-04-23 Hui Zhu <hui@codesourcery.com>
6112
6113 PR gdb/15293
a11cfd87
HZ
6114 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6115
2d9442cc
HZ
61162013-04-23 Hui Zhu <hui@codesourcery.com>
6117
6118 PR gdb/15165
2d9442cc
HZ
6119 * breakpoint.c (dprintf_print_recreate): New.
6120 (save_breakpoints): Let it not save dprintf commands.
6121 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6122
614c279d
TT
61232013-04-22 Tom Tromey <tromey@redhat.com>
6124
6125 PR gdb/7912:
6126 * Makefile.in (SFILES): Add filestuff.c
6127 (COMMON_OBS): Add filestuff.o.
6128 (filestuff.o): New target.
6129 * auto-load.c (auto_load_objfile_script_1): Use
6130 gdb_fopen_cloexec.
6131 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6132 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6133 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6134 * common/agent.c (gdb_connect_sync_socket): Use
6135 gdb_socket_cloexec.
6136 * common/filestuff.c: New file.
6137 * common/filestuff.h: New file.
6138 * common/linux-osdata.c (linux_common_core_of_thread)
6139 (command_from_pid, commandline_from_pid, print_source_lines)
6140 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6141 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6142 gdb_fopen_cloexec.
6143 * common/linux-procfs.c (linux_proc_get_int)
6144 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6145 * config.in, configure: Rebuild.
6146 * configure.ac: Don't check for sys/socket.h. Check for
6147 fdwalk, pipe2.
6148 * corelow.c (core_open): Use gdb_open_cloexec.
6149 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6150 * fork-child.c (fork_inferior): Call close_most_fds.
6151 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6152 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6153 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6154 Use gdb_fopen_cloexec.
6155 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6156 gdb_open_cloexec.
6157 (linux_async_pipe): Use gdb_pipe_cloexec.
6158 * remote-fileio.c (remote_fileio_func_open): Use
6159 gdb_open_cloexec.
6160 * remote.c (remote_file_put, remote_file_get): Use
6161 gdb_fopen_cloexec.
6162 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6163 close_most_fds.
6164 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6165 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6166 * solib.c (solib_find): Use gdb_open_cloexec.
6167 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6168 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6169 (tfile_open): Use gdb_open_cloexec.
6170 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6171 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6172 * xml-support.c (xml_fetch_content_from_file): Use
6173 gdb_fopen_cloexec.
6174 * main.c (captured_main): Call notice_open_fds.
6175
5fda2332
EBM
61762013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6177
6178 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6179 'char *' to 'gdb_byte *'.
6180 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6181 'gdb_byte'.
6182
eb6c553b
YQ
61832013-04-22 Yao Qi <yao@codesourcery.com>
6184
6185 * infrun.c: Fix typo in comment.
6186
9991b207
SDJ
61872013-04-22 Andrew Haley <aph@redhat.com>
6188
6189 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6190 instead of "long".
6191
8b4833e3
YQ
61922013-04-20 Yao Qi <yao@codesourcery.com>
6193
6194 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6195 'char *' to 'gdb_byte *'. Cast the return value of
6196 'bt_ctf_get_char_array' to 'gdb_byte *'.
6197
bd3f3b55
PA
61982013-04-19 Pedro Alves <palves@redhat.com>
6199
6200 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6201 -Wpointer-sign.
6202 * configure: Regenerate.
6203
c49e7f76
PA
62042013-04-19 Pedro Alves <palves@redhat.com>
6205
6206 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6207 'void *'.
6208
12ff8552
PA
62092013-04-19 Pedro Alves <palves@redhat.com>
6210
6211 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6212 Change type of 'myaddr' parameter to gdb_byte pointer.
6213 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6214 to 'long long' pointer instead of to 'unsigned long long'.
6215 (monitor_write_memory_block, monitor_read_memory_single)
6216 (monitor_read_memory): Change type of 'myaddr' parameter to
6217 gdb_byte pointer.
6218
9c37696b
PA
62192013-04-19 Pedro Alves <palves@redhat.com>
6220
6221 * record.c (validate_history_size): Make parameter 'setting'
6222 unsigned.
6223
a398505b
PA
62242013-04-19 Pedro Alves <palves@redhat.com>
6225
6226 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6227 to 'gdb_byte *'.
6228
9f8afa72
PA
62292013-04-19 Pedro Alves <palves@redhat.com>
6230
6231 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6232 local to int.
6233
c714b426
PA
62342013-04-19 Pedro Alves <palves@redhat.com>
6235
6236 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6237 * ada-tasks.c (read_fat_string_value): Likewise.
6238
507a579c
PA
62392013-04-19 Pedro Alves <palves@redhat.com>
6240
6241 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6242 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6243 'offset', and adjust.
6244
f9d83a0b
PA
62452013-04-19 Pedro Alves <palves@redhat.com>
6246
6247 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6248 (read_index_from_section): Add cast to 'char *'.
6249
745eb4fd
PA
62502013-04-19 Pedro Alves <palves@redhat.com>
6251
6252 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6253
db5be46f
PA
62542013-04-19 Pedro Alves <palves@redhat.com>
6255
6256 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6257
0f928d68
PA
62582013-04-19 Pedro Alves <palves@redhat.com>
6259
6260 * record-full.c (record_full_get_bookmark): Change local 'ret'
6261 type to char * and add cast to gdb_byte *.
6262 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6263 string.
6264 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6265
89f6d837
PA
62662013-04-19 Pedro Alves <palves@redhat.com>
6267
6268 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6269 * python/py-prettyprint.c (print_string_repr): Change type of
6270 'output' local to char *. Add cast to gdb_byte * in
6271 LA_PRINT_STRING call.
6272 (print_children): Change type of 'output' local to char *.
6273 * python/py-value.c (valpy_string): Add cast to const char * in
6274 PyUnicode_Decode call.
6275
ce6ec7d8
PA
62762013-04-19 Pedro Alves <palves@redhat.com>
6277
6278 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6279 and change its type to 'const char *'. Adjust.
6280 (mips_send_packet): Add cast to 'char *', and remove cast to
6281 'unsigned char *'.
6282 (mips_receive_packet): Remove cast to 'unsigned char *'.
6283 (mips_load_srec): Use bfd_byte.
6284 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6285 (pmon_checkset): Make 'value' parameter unsigned.
6286
fda0389f
PA
62872013-04-19 Pedro Alves <palves@redhat.com>
6288
6289 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6290
bc20a4af
PA
62912013-04-19 Pedro Alves <palves@redhat.com>
6292
6293 * remote.c (remote_write_bytes_aux, compare_sections_command)
6294 (remote_read_qxfer)
6295 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6296 (remote_hostio_readlink, remote_bfd_iovec_pread)
6297 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6298 binary buffer, and char when buffer is used as string.
6299 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6300 (trace_save, tfile_open, traceframe_walk_blocks)
6301 (tfile_fetch_registers): Likewise.
6302
c628b528
PA
63032013-04-19 Pedro Alves <palves@redhat.com>
6304
6305 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6306 buffer and size_t size. Adjust.
6307 * ser-base.h (ser_base_write): Adjust.
6308 * ser-go32.c (cnts): Change type to size_t.
6309 (dos_write): Change prototype -- take 'void *'
6310 buffer and size_t size. Adjust.
6311 (dos_info): Print elements of 'cnts' as unsigned long.
6312 * serial.c (serial_write): Likewise.
6313 * serial.h (serial_write): Adjust.
6314 (struct serial_ops) <write>: Change prototype -- take 'void *'
6315 buffer and size_t size. Adjust.
6316
51a5cd90
PA
63172013-04-19 Pedro Alves <palves@redhat.com>
6318
6319 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6320 gdb_byte *.
6321 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6322
a9933661
PA
63232013-04-19 Pedro Alves <palves@redhat.com>
6324
6325 * alpha-tdep.c (alpha_extract_return_value): Use
6326 regcache_cooked_read_unsigned to read 'v0'.
6327
19afdd07
PA
63282013-04-19 Pedro Alves <palves@redhat.com>
6329
6330 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6331 parameters 'at', 'as' and 'offset' to uint32_t.
6332
96b32e50
PA
63332013-04-19 Pedro Alves <palves@redhat.com>
6334
6335 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6336 'is64' to signed 'int'.
6337
eb1bd1fb
PA
63382013-04-19 Pedro Alves <palves@redhat.com>
6339
6340 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6341 parameter to int *.
6342
463920bf
PA
63432013-04-19 Pedro Alves <palves@redhat.com>
6344
6345 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6346 'insnbuf' buffer type to unsigned int[].
6347
70242eb1
PA
63482013-04-19 Pedro Alves <palves@redhat.com>
6349
6350 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6351
9d1dd0e2
PA
63522013-04-19 Pedro Alves <palves@redhat.com>
6353
6354 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6355 unsigned long *.
6356
44096aee
PA
63572013-04-19 Pedro Alves <palves@redhat.com>
6358
6359 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6360 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6361 UINT_MAX.
6362 * mips-tdep.c (heuristic_fence_post): Change type to int.
6363 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6364
e4286e57
PA
63652013-04-19 Pedro Alves <palves@redhat.com>
6366
6367 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6368 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6369 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6370
001f13d8
PA
63712013-04-19 Pedro Alves <palves@redhat.com>
6372
6373 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6374 it to get a string view of the byte buffer.
6375 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6376 type to gdb_byte *. Adjust.
6377 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6378 Change local to char *.
6379 * solib-darwin.c (find_program_interpreter): Change return type to
6380 char *. Adjust.
6381 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6382 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6383 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6384 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6385 * solib-svr4.c (find_program_interpreter): Change return type to
6386 char *. Adjust.
6387 (enable_break): Change local 'interp_name' to char *.
6388 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6389 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6390 (spu_pseudo_register_write_spu): Use char for string buffer.
6391 Adjust.
6392 (info_spu_event_command, info_spu_signal_command): Add casts to
6393 'char *'.
6394
948f8e3d
PA
63952013-04-19 Pedro Alves <palves@redhat.com>
6396
6397 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6398 gdb_byte[].
6399 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6400 * ada-lang.c (ada_value_assign): Use gdb_byte.
6401 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6402 (alphanbsd_sigtramp_offset): Use gdb_byte.
6403 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6404 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6405 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6406 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6407 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6408 * arm-tdep.c (arm_stub_unwind_sniffer)
6409 (arm_displaced_init_closure): Use gdb_byte.
6410 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6411 (arm_default_thumb_le_breakpoint)
6412 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6413 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6414 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6415 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6416 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6417 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6418 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6419 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6420 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6421 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6422 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6423 (cris_store_return_value, cris_extract_return_value): Use
6424 gdb_byte.
6425 (constraint): Change type of parameter to char * from signed
6426 char*. Use gdb_byte.
6427 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6428 of local buffer to gdb_byte *.
6429 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6430 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6431 (add_address_entry): Change type of local buffer to gdb_byte[].
6432 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6433 (frv_push_dummy_call): Use gdb_byte.
6434 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6435 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6436 (hppa_hpux_supply_save_state): Use gdb_byte.
6437 * hppa-tdep.c (hppa32_push_dummy_call)
6438 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6439 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6440 (slotN_contents, replace_slotN_contents): Change type of parameter
6441 to gdb_byte *.
6442 (fetch_instruction, ia64_pseudo_register_write)
6443 (ia64_register_to_value, ia64_value_to_register)
6444 (ia64_extract_return_value, ia64_store_return_value)
6445 (ia64_push_dummy_call): Use gdb_byte.
6446 * m32c-tdep.c (m32c_return_value): Remove cast.
6447 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6448 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6449 gdb_byte.
6450 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6451 * mn10300-tdep.c (mn10300_store_return_value)
6452 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6453 gdb_byte.
6454 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6455 (moxie_process_record): Remove casts.
6456 * ppc-ravenscar-thread.c (supply_register_at_address)
6457 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6458 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6459 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6460 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6461 * remote.c (compare_sections_command): Use gdb_byte.
6462 * score-tdep.c (score7_free_memblock): Change type of parameter to
6463 gdb_byte *.
6464 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6465 gdb_byte *. Use gdb_byte.
6466 (sh_push_dummy_call_fpu): Use gdb_byte.
6467 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6468 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6469 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6470 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6471 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6472 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6473 (sh64_store_return_value, sh64_register_convert_to_virtual):
6474 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6475 (sh64_pseudo_register_write): Use gdb_byte.
6476 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6477 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6478 buffer.
6479 (irix_current_sos): Use gdb_byte.
6480 * solib-som.c (som_current_sos): Use gdb_byte.
6481 * sparc-ravenscar-thread.c (supply_register_at_address)
6482 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6483 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6484 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6485 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6486 'gdb_byte *'.
6487 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6488 'gdb_byte *'.
6489 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6490 * xstormy16-tdep.c (xstormy16_extract_return_value)
6491 (xstormy16_store_return_value): Change parameter type to
6492 'gdb_byte *'. Adjust.
6493 (xstormy16_push_dummy_call): Use gdb_byte.
6494 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6495 (call0_analyze_prologue, execute_code): Use gdb_byte.
6496
433730c9
PA
64972013-04-19 Vladimir Kargov <kargov@gmail.com>
6498 Pedro Alves <palves@redhat.com>
6499
6500 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6501 value contents.
6502
ac9ec31b
DE
65032013-04-17 Doug Evans <dje@google.com>
6504
6505 * dwarf2read.c (struct signatured_type): New member type.
6506 (struct attribute): Replace member signatured_type with signature.
6507 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6508 (read_call_site_scope): Call follow_die_ref instead of
6509 follow_die_ref_or_sig.
6510 (read_structure_type): Rewrite handling of signatured types.
6511 (read_enumeration_type): Ditto.
6512 (read_attribute_value): Update.
6513 (build_error_marker_type): New function.
6514 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6515 Don't call error for bad types, just build an error marker type.
6516 (dump_die_shallow): Update.
6517 (follow_die_sig_1): Renamed from follow_die_sig.
6518 Don't call error for bad types, instead return NULL.
6519 (follow_die_sig): New function.
6520 (get_signatured_type, get_DW_AT_signature_type): New functions.
6521
e546e8bb
YZ
65222013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6523
6524 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6525 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6526 function.
e546e8bb 6527
ab116149
YQ
65282013-04-17 Yao Qi <yao@codesourcery.com>
6529
6530 * top.c (print_gdb_configuration): Print configure-time
6531 parameter on using libbabeltrace or not.
6532
488a42b8
PA
65332013-04-16 Pedro Alves <palves@redhat.com>
6534
6535 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6536
f5fb825b
PA
65372013-04-16 Pedro Alves <palves@redhat.com>
6538
85d494ea 6539 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6540 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6541
e1154999
PA
65422013-04-16 Pedro Alves <palves@redhat.com>
6543
6544 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6545 * common/glibc_thread_db.h: ... this new file ...
6546 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6547
e3b50a7f
PA
65482013-04-16 Will Newton <will.newton@gmail.com>
6549 Pedro Alves <palves@redhat.com>
6550
6551 PR build/11881
6552
6553 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6554 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6555 HAVE_THREAD_DB_H.
6556
1c2e4450
PA
65572013-04-16 Pedro Alves <palves@redhat.com>
6558 Eli Zaretskii <eliz@gnu.org>
6559
6560 * NEWS: Mention "set foo unlimited".
6561
4031ecc5
DE
65622013-04-15 Doug Evans <dje@google.com>
6563
19c3d4c9
DE
6564 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6565 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6566 (create_dwo_cu_reader): Renamed from
6567 create_dwo_debug_info_hash_table_reader.
6568 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6569 Remove support for multiple CUs in a DWO file.
6570 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6571
4031ecc5
DE
6572 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6573 instead of phex.
6574 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6575 (create_dwo_in_dwp): Ditto.
6576
b340913d
TT
65772013-04-15 Tom Tromey <tromey@redhat.com>
6578
6579 * NEWS: Move recent entries into "since 7.6" section.
6580
cc16e6c9
TT
65812013-04-15 Tom Tromey <tromey@redhat.com>
6582
6583 PR c++/13588:
6584 * NEWS: Update.
6585 * break-catch-throw.c (struct exception_catchpoint)
6586 <exception_rx, pattern>: New fields.
6587 (fetch_probe_arguments, dtor_exception_catchpoint)
6588 (check_status_exception_catchpoint)
6589 (print_one_detail_exception_catchpoint): New functions.
6590 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6591 Compile regular expression if needed.
6592 (extract_exception_regexp): New function.
6593 (catch_exception_command_1): Use extract_exception_regexp.
6594 (compute_exception): Use fetch_probe_arguments.
6595 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6596 and check_status fields.
6597 * cp-abi.c (cplus_typename_from_type_info): New function.
6598 * cp-abi.h (cplus_typename_from_type_info): Declare.
6599 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6600 * gdb_regex.h (compile_rx_or_error): Declare.
6601 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6602 comment.
6603 (init_gnuv3_ops): Set get_type_from_type_info field.
6604 * probe.c (compile_rx_or_error): Move...
6605 * utils.c (compile_rx_or_error): ... here.
6606
72f1fe8a
TT
66072013-04-15 Tom Tromey <tromey@redhat.com>
6608
6609 PR c++/15176:
6610 * NEWS: Update.
6611 * break-catch-throw.c (compute_exception): New function.
6612 (exception_funcs): New global.
6613 (_initialize_break_catch_throw): Create $_exception.
6614 * cp-abi.c (cplus_type_from_type_info): New function.
6615 * cp-abi.h (cplus_type_from_type_info): Declare.
6616 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6617 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6618 (gnuv3_get_type_from_type_info): New functions.
6619 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6620
fc4746a2
TT
66212013-04-15 Tom Tromey <tromey@redhat.com>
6622
6623 * break-catch-throw.c (struct exception_names): New.
6624 (exception_functions): Change type.
6625 (re_set_exception_catchpoint): Look for SDT probes.
6626
15a73f56
TT
66272013-04-15 Tom Tromey <tromey@redhat.com>
6628
6629 PR c++/10119:
6630 * break-catch-throw.c (exception_functions): New global.
6631 (gnu_v3_exception_catchpoint_ops): Move earlier.
6632 (struct exception_catchpoint): New.
6633 (classify_exception_breakpoint): Rewrite.
6634 (re_set_exception_catchpoint): New function.
6635 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6636 Allocate a struct exception_catchpoint.
6637 (catch_exception_command_1): Update.
6638 (initialize_throw_catchpoint_ops): Set 're_set' method.
6639
916703c0
TT
66402013-04-15 Tom Tromey <tromey@redhat.com>
6641
6642 * Makefile.in (SFILES): Add break-catch-throw.c
6643 (COMMON_OBS): Add break-catch-throw.o.
6644 * break-catch-throw.c: New file.
6645 * breakpoint.c: Move exception-catching code to new file.
6646 (ep_parse_optional_if_clause): No longer static.
6647 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6648
6e72ca20
TT
66492013-04-15 Tom Tromey <tromey@redhat.com>
6650
6651 PR c++/9065:
6652 * NEWS: Update.
6653 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6654 * c-exp.y (TYPEID): New token.
6655 (exp): Add new TYPEID productions.
6656 (ident_tokens): Add "typeid".
6657 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6658 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6659 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6660 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6661 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6662 case.
6663 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6664 (build_std_type_info_type, gnuv3_get_typeid_type)
6665 (gnuv3_get_typeid): New functions.
6666 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6667 new fields on ABI object.
6668 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6669 * std-operator.def (OP_TYPEID): New.
6670
715c6909
TT
66712013-04-15 Tom Tromey <tromey@redhat.com>
6672
6673 * elfread.c (elf_symtab_read): Install versioned symbol under
6674 unversioned name as well.
6675
8de20a37
TT
66762013-04-15 Tom Tromey <tromey@redhat.com>
6677
6678 PR c++/11990:
6679 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6680 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6681 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6682 (gdb_demangle): New function.
6683 * cp-support.h (gdb_demangle): Declare.
6684 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6685 (dwarf2_name): Use gdb_demangle.
6686 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6687 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6688 suffixes from name.
6689 (gnuv3_print_method_ptr): Use gdb_demangle.
6690 * jv-lang.c (java_demangle): Use gdb_demangle.
6691 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6692 * language.c (unk_lang_demangle): Use gdb_demangle.
6693 * symtab.c (symbol_find_demangled_name)
6694 (demangle_for_lookup): Use gdb_demangle.
6695
591f19e8
TT
66962013-04-15 Tom Tromey <tromey@redhat.com>
6697
6698 PR c++/12824:
6699 * NEWS: Update.
6700 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6701 New constant.
6702 (classify_exception_breakpoint): New function.
6703 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6704 (print_mention_exception_catchpoint)
6705 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6706 (catch_exception_command_1): Handle "rethrow" catchpoint.
6707 (catch_rethrow_command): New function.
6708 (_initialize_breakpoint): Add "catch rethrow" command.
6709
4d40cad2
PM
67102013-04-15 Pierre Muller <muller@sourceware.org>
6711
6712 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6713 set_gdbarch_write_pc as deprecated anymore.
6714
30bcb456
JB
67152013-04-15 Joel Brobecker <brobecker@adacore.com>
6716
6717 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6718 declarations.
6719
da9160e4
YQ
67202013-04-13 Yao Qi <yao@codesourcery.com>
6721
6722 * ctf.c (_initialize_ctf): Include "completer.h".
6723 Call add_target_with_completer instead of add_target.
6724
39ed5604
JK
67252013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 Fix GDB regression related to PR binutils/14813.
6728 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6729 * minidebug.c (lzma_close): Add return value comment.
6730 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6731 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6732 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6733
67342013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6735
6736 * config.in: Regenerate.
6737
d521ce57
TT
67382013-04-12 Tom Tromey <tromey@redhat.com>
6739
6740 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6741 const.
6742 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6743 (struct die_reader_specs) <buffer>: Likewise.
6744 (die_reader_func_ftype): Make 'info_ptr' const.
6745 (struct line_header) <include_dirs, statement_program_start,
6746 statement_program_end>: Now const.
6747 (struct file_entry) <name>: Likewise.
6748 (struct partial_die_info) <sibling>: Likewise.
6749 (struct dwarf_block) <data>: Likewise.
6750 (dwarf2_read_section): Remove cast.
6751 (dwarf2_get_section_info): Make 'bufp' const.
6752 (read_index_from_section): Constify.
6753 (dw2_get_file_names_reader): Make 'info_ptr' const.
6754 (dw2_get_primary_filename_reader): Likewise.
6755 (read_comp_unit_head): Make 'info_ptr' and return type const.
6756 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6757 Likewise.
6758 (read_abbrev_offset): Constify.
6759 (dwarf2_create_include_psymtab): Make 'name' const.
6760 (create_debug_types_hash_table): Update.
6761 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6762 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6763 Constify.
6764 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6765 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6766 (read_comp_units_from_section): Constify.
6767 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6768 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6769 const.
6770 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6771 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6772 (create_dwp_hash_table, dwarf2_ranges_read)
6773 (dwarf2_record_block_ranges): Constify.
6774 (read_die_and_children, read_die_and_siblings_1)
6775 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6776 const.
6777 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6778 (abbrev_table_read_table): Constify.
6779 (load_partial_dies): Make 'info_ptr' const.
6780 (read_partial_die, read_attribute_value, read_attribute): Make
6781 'info_ptr' and return type const.
6782 (read_address, read_initial_length)
6783 (read_checked_initial_length_and_offset, read_offset)
6784 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6785 const.
6786 (read_direct_string): Make 'buf' and return type const.
6787 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6788 (read_indirect_string): Make return type const.
6789 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6790 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6791 'info_ptr' const.
6792 (read_str_index): Make return type const.
6793 (add_include_dir): Make 'include_dir' const.
6794 (add_file_name): Make 'name' const.
6795 (dwarf_decode_line_header): Constify.
6796 (psymtab_include_file_name): Make return type const.
6797 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6798 (dwarf2_start_subfile): Make 'filename' const.
6799 (dwarf2_const_value_attr): Make 'bytes' const.
6800 (read_signatured_type_reader): Make 'info_ptr' const.
6801 (decode_locdesc): Constify.
6802 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6803 const.
6804 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6805 'mac_end', and return type const.
6806 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6807 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6808 type const.
6809 (per_cu_header_read_in): Constify.
6810 * symfile.h (dwarf2_get_section_info): Update.
6811
d47a1bc1
TT
68122013-04-12 Tom Tromey <tromey@redhat.com>
6813
6814 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6815
6eaaf48b
EZ
68162013-04-12 Eli Zaretskii <eliz@gnu.org>
6817
fc4c25bf 6818 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6819 * top.c (print_gdb_configuration): New function, displays the
6820 details about GDB configure-time parameters.
6821 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6822 * cli/cli-cmds.c (show_configuration): New function.
6823 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6824 * main.c (captured_main) <print_configuration>: New static var.
6825 <long_options>: Use it.
6826 If --configuration was given, call print_gdb_configuration.
6827
b292c783
JK
68282013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6829 Pedro Alves <palves@redhat.com>
6830
6831 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6832 (generated_files): Add gcore.
6833 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6834 HAVE_NATIVE_GCORE_HOST.
6835 (gcore): New.
6836 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6837 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6838 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6839 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6840 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6841 Add HAVE_NATIVE_GCORE_HOST.
6842 * configure: Regenerate.
6843 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6844 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6845 AC_CONFIG_FILES for gcore.
6846 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6847 gdb_have_gcore.
6848 * gdb_gcore.sh: Rename to ...
6849 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6850 and GCORE_TRANSFORM_NAME substitutions.
6851
c96b3c4f
JK
6852 Fix parsing tabs in ${gdb_target_obs}.
6853 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6854
d6cb50a2
JK
68552013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 * remote.c (unpush_and_perror): Add output message final dot.
6858
cf2cb5ec
YQ
68592013-04-11 Yao Qi <yao@codesourcery.com>
6860
6861 * tracepoint.c (tfile_interp_line): Fit parameters line and
6862 utpp in one line.
6863
07293be4
JB
68642013-04-10 Joel Brobecker <brobecker@adacore.com>
6865
6866 * solib.c (solib_map_sections): Remove code overwriting
6867 SO->SO_NAME with the bfd's filename.
6868
f81d1120
PA
68692013-04-10 Pedro Alves <palves@redhat.com>
6870
6871 * cli/cli-decode.c (integer_unlimited_completer): New function.
6872 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6873 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6874 completer.
6875 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6876 (is_unlimited_literal): New function.
6877 (do_set_command): Handle literal "unlimited" arguments.
6878 * frame.c (_initialize_frame) <set backtrace limit>: Document
6879 "unlimited".
6880 * printcmd.c (_initialize_printcmd) <set print
6881 max-symbolic-offset>: Add help text.
6882 * record-full.c (_initialize_record_full) <set record full
6883 insn-number-max>: Likewise.
6884 * record.c (_initialize_record) <set record
6885 instruction-history-size, set record function-call-history-size>:
6886 Add help text.
6887 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6888 help text.
6889 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6890 Likewise.
6891 * source.c (_initialize_source) <set listsize>: Add help text.
6892 * utils.c (initialize_utils) <set height, set width>: Likewise.
6893 <set pagination>: Mention "set height unlimited".
6894 * valprint.c (_initialize_valprint) <set print elements, set print
6895 repeats>: Document "unlimited".
6896
2f9d54cf
PA
68972013-04-10 Pedro Alves <palves@redhat.com>
6898
6899 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6900 instead of disconnect_tracing.
6901 * infcmd.c (detach_command, disconnect_command): Call
6902 query_if_trace_running. Adjust.
6903 * top.c: Include "tracepoint.h".
6904 (quit_target): Delete. Contents moved ...
6905 (quit_force): ... here. Wrap each stage of teardown in
6906 TRY_CATCH. Call disconnect_tracing before detaching.
6907
393fd4c3
YQ
69082013-04-10 Hui Zhu <hui@codesourcery.com>
6909 Yao Qi <yao@codesourcery.com>
6910
6911 * configure.ac: Check libbabeltrace is installed.
6912 * config.in: Regenerate.
6913 * configure: Regenerate.
6914 * Makefile.in (LIBBABELTRACE): New.
6915 (CLIBS): Add LIBBABELTRACE.
6916 * ctf.c: Include "exec.h".
6917 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6918 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6919 (ctf_save_metadata_header): Define new type aliases in
6920 metadata.
6921 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6922 in metadata. Start a new faked packet for trace status.
6923 (ctf_write_status): Write trace status to CTF.
6924 (ctf_write_uploaded_tsv): Write TSV to CTF.
6925 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6926 (ctf_write_definition_end): End the faked packet.
6927
6928 (ctx, ctf_iter, trace_dirname): New.
6929 (start_pos): New variable.
6930 (ctf_destroy, ctf_open_dir, ctf_open): New.
6931 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6932 macros.
6933 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6934 (ctf_fetch_registers, ctf_xfer_partial): New.
6935 (ctf_get_trace_state_variable_value): New.
6936 (ctf_get_tpnum_from_frame_event): New.
6937 (ctf_get_traceframe_address): New.
6938 (ctf_trace_find, ctf_has_stack): New.
6939 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6940 (ctf_get_trace_status, ctf_read_status): New.
6941 (_initialize_ctf): New.
6942 * tracepoint.c (get_tracepoint_number): New
6943 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6944 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6945 * tracepoint.h: ... here.
6946 (get_tracepoint_number): Declare it.
6947 (get_uploaded_tsv): Declare it.
6948
6949 * NEWS: Mention new configure option.
6950
5c2b4418
HZ
69512013-04-10 Pedro Alves <palves@redhat.com>
6952 Hui Zhu <hui@codesourcery.com>
6953
6954 * breakpoint.c (dprintf_re_set): New.
6955 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6956 to dprintf_re_set.
6957
a5c66735
JB
69582013-04-09 Joel Brobecker <brobecker@adacore.com>
6959
6960 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6961 Remove solib-svr4.o from the list.
6962
9e77999c
JB
69632013-04-09 Joel Brobecker <brobecker@adacore.com>
6964
6965 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6966 Use gdb_assert_not_reached instead of invalid boolean expression.
6967
1927e618
PA
69682013-04-09 Pedro Alves <palves@redhat.com>
6969
6970 * remote.c (unpush_and_perror): New function.
6971 (readchar, remote_serial_write): Use it.
6972
10782d74
MM
69732013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6974
6975 * NEWS: Mention new btrace RSP packets.
6976
4c8429ef
TT
69772013-04-08 Tom Tromey <tromey@redhat.com>
6978
6979 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6980 long.
6981
8625fc1b
TT
69822013-04-08 Tom Tromey <tromey@redhat.com>
6983
6984 * maint.c (print_bfd_section_info): Print the section index.
6985 * symmisc.c (dump_msymbols): Print the section index.
6986
e27d198c
TT
69872013-04-08 Tom Tromey <tromey@redhat.com>
6988
6989 PR symtab/8424:
6990 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6991 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6992 * breakpoint.c (resolve_sal_pc): Update.
6993 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6994 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6995 (minsym_lookup_iterator_cb): Use it.
6996 (default_read_var_value): Update.
6997 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6998 Update.
6999 * infcmd.c (jump_command): Update.
7000 * linespec.c (minsym_found): Update.
7001 * maint.c (maintenance_translate_address): Update.
7002 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7003 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7004 * parse.c (write_exp_msymbol): Update.
7005 * printcmd.c (address_info): Update.
7006 * psymtab.c (find_pc_sect_psymbol): Update.
7007 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7008 SYMBOL_OBJ_SECTION.
7009 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7010 Don't initialize SYMBOL_OBJ_SECTION.
7011 * spu-tdep.c (spu_catch_start): Update.
7012 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7013 * symmisc.c (dump_msymbols, print_symbol): Update.
7014 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7015 how fallback section is computed.
7016 (fixup_symbol_section): Update.
7017 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7018 Update.
7019 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7020 Initialize SYMBOL_SECTION.
7021 * symtab.h (struct general_symbol_info) <section>: Update comment.
7022 <obj_section>: Remove.
7023 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7024 (SYMBOL_OBJFILE): New macro.
7025
e6dc44a8
TT
70262013-04-08 Tom Tromey <tromey@redhat.com>
7027
7028 * coffread.c (record_minimal_symbol): Update.
7029 * dbxread.c (record_minimal_symbol): Update.
7030 * elfread.c (record_minimal_symbol): Update.
7031 * machoread.c (macho_symtab_add_minsym): Update.
7032 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7033 Update.
7034 * minsyms.c (prim_record_minimal_symbol): Update.
7035 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7036 argument.
7037 (prim_record_minimal_symbol_and_info): Likewise.
7038 * minsyms.h (prim_record_minimal_symbol_full)
7039 (prim_record_minimal_symbol_and_info): Update.
7040 * symtab.c (allocate_symbol, initialize_symbol)
7041 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7042 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7043 Update.
7044
36192a8d
TT
70452013-04-08 Tom Tromey <tromey@redhat.com>
7046
7047 PR symtab/8423:
7048 * solib-som.c (som_solib_section_offsets): Use BFD section
7049 indices. Set offsets for all sections.
7050 * somread.c (som_symtab_read): Compute BFD section for
7051 symbol. Use prim_record_minimal_symbol_and_info.
7052 (som_symfile_read): Fix comment.
7053 (struct find_section_offset_arg): New.
7054 (find_section_offset, set_section_index): New functions.
7055 (som_symfile_offsets): Use set_section_index to compute
7056 section indices.
7057
65cf3563
TT
70582013-04-08 Tom Tromey <tromey@redhat.com>
7059
7060 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7061 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7062 gdb_bfd_section_index.
7063 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7064 New functions.
7065 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7066 Declare.
7067 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7068 Update.
7069 * objfiles.c (add_to_objfile_sections_full): New function.
7070 (add_to_objfile_sections): Use it.
7071 (build_section_table): Rewrite.
7072 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7073 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7074 (struct objfile) <sections>: Update comment.
7075 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7076 is NULL.
7077 (ALL_OBJSECTIONS): Use it.
7078 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7079 * solib-frv.c (frv_relocate_main_executable): Update.
7080 * solib-target.c (solib_target_relocate_section_addresses):
7081 Use gdb_bfd_section_index.
7082 * symfile.c (build_section_addr_info_from_section_table):
7083 Use gdb_bfd_section_index.
7084 (build_section_addr_info_from_bfd, place_section): Likewise.
7085 * symtab.c (fixup_section): Update.
7086 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7087
7cbd4a93
TT
70882013-04-08 Tom Tromey <tromey@redhat.com>
7089
7090 * minsyms.h (struct bound_minimal_symbol): New.
7091 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7092 Remove objfile argument.
7093 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7094 Return bound_minimal_symbol.
7095 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7096 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7097 Return bound_minimal_symbol.
7098 (in_gnu_ifunc_stub): Update.
7099 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7100 Remove 'objfile_p' argument.
7101 (lookup_solib_trampoline_symbol_by_pc): Update.
7102 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7103 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7104 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7105 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7106 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7107 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7108 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7109 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7110 stack.c, symtab.c, tui/tui-disasm.c: Update.
7111
f85f34ed
TT
71122013-04-08 Tom Tromey <tromey@redhat.com>
7113
7114 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7115 Use symbol's obstack, not an objfile.
7116 * coffread.c (process_coff_symbol): Update.
7117 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7118 * jv-lang.c (add_class_symbol): Update.
7119 * mdebugread.c (new_symbol): Update.
7120 * minsyms.c (prim_record_minimal_symbol_full)
7121 (terminate_minimal_symbol_table): Update.
7122 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7123 * stabsread.c (define_symbol, read_enum_type): Update.
7124 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7125 Handle Ada specially.
7126 (symbol_set_language): Add 'obstack' argument.
7127 (symbol_set_names): Update.
7128 (symbol_natural_name, symbol_demangled_name): Always use
7129 ada_decode_symbol.
7130 * symtab.h (struct general_symbol_info)
7131 <language_specific::obstack>: New field.
7132 <ada_mangled>: New field.
7133 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7134 (symbol_set_language): Update.
7135
ccde22c0
TT
71362013-04-08 Tom Tromey <tromey@redhat.com>
7137
7138 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7139 Take an obstack, not an objfile.
7140 (symbol_set_names): Update.
7141 * symtab.h (symbol_set_demangled_name): Update.
7142
e623cf5d
TT
71432013-04-08 Tom Tromey <tromey@redhat.com>
7144
7145 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7146 allocate_symbol.
7147 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7148 (read_func_scope): Call allocate_template_symbol.
7149 (new_symbol_full): Call allocate_symbol.
7150 * jit.c (finalize_symtab): Call allocate_symbol.
7151 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7152 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7153 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7154 (common_block_end): Call allocate_symbol.
7155 * symtab.c (allocate_symbol, initialize_symbol)
7156 (allocate_template_symbol): New functions.
7157 * symtab.c (allocate_symbol, initialize_symbol)
7158 (allocate_template_symbol): Declare.
7159 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7160
f6de8ec2
PA
71612013-04-08 Pedro Alves <palves@redhat.com>
7162 Keith Seitz <keiths@redhat.com>
7163
7164 * breakpoint.c (create_breakpoint): Rename
7165 "parse_condition_and_thread" parameter to "parse_arg". Update
7166 describing comment. If !PARSE_ARG, then error out if ARG is not
7167 the empty string after extracting the location.
7168 * breakpoint.h (create_breakpoint): Rename
7169 "parse_condition_and_thread" parameter to "parse_arg".
7170
f65ce5fb
AR
71712013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7172
7173 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7174
cc5925ad
YQ
71752013-04-07 Yao Qi <yao@codesourcery.com>
7176
7177 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7178 and 'addr2' to CORE_ADDR.
7179 * target.c (update_current_target): Update.
7180 * target.h (struct target_ops) <to_trace_find>: Change parameter
7181 type to CORE_ADDR.
7182 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7183 'addr2' to CORE_ADDR.
7184 (tfile_trace_find): Likewise.
7185 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7186 Change local variable 'addr' to type CORE_ADDR.
7187 * tracepoint.h (tfind_1): Update declaration.
7188
d9ac0664
EZ
71892013-04-06 Eli Zaretskii <eliz@gnu.org>
7190
7191 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7192 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7193 Include main.h.
7194
7195 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7196 here...
7197 * main.h (windows_get_absolute_argv0): ...to here.
7198
02142a6c
DE
71992013-04-05 Doug Evans <dje@google.com>
7200
7201 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7202 (read_cutu_die_from_dwo): Add comments.
7203 (read_structure_type): Update comment.
7204 (read_enumeration_type, read_namespace_type): Update comment.
7205 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7206
43662968
JK
72072013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7208
7209 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7210 * Makefile.in (gdb.z): Remove.
7211 (install-only): Remove $(man1dir) and gdb.1 installation.
7212 * gdb.1: Remove.
7213
9ead1b84
JK
72142013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 Fix compatibility with Linux kernel 3.8.3.
7217 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7218 to more inner block. Remove parsing of NUMBER from outer block.
7219 Parse NUMBER only if KEYWORD has been identified.
7220
d1794952
JK
72212013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7222
7223 Fix variable name shadowing.
7224 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7225 filename to mapsfilename and update its uses.
7226
9025569e
EZ
72272013-04-05 Eli Zaretskii <eliz@gnu.org>
7228
7229 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7230 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7231 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7232 details of the problem.
7233
c9a6ce02
PA
72342013-04-04 Pedro Alves <palves@redhat.com>
7235 Hui Zhu <hui@codesourcery.com>
7236
7237 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7238 tracepoint, reset its STEP_COUNT and call validate_actionline.
7239
5ff888ce
DE
72402013-04-03 Doug Evans <dje@google.com>
7241
bf6af496
DE
7242 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7243 read_die_and_siblings.
7244 (read_die_and_siblings): New function.
7245 (read_cutu_die_from_dwo): Dump die if requested.
7246 (read_die_and_children): Call read_full_die_1 and
7247 read_die_and_siblings_1.
7248 (read_full_die): Dump die if requested.
7249
7250 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7251
0ac5b59e
DE
7252 * dwarf2read.c (struct dwo_file): New member comp_dir.
7253 Rename member name to dwo_name. All uses updated.
7254 (hash_dwo_file): Include comp_dir in computation.
7255 (eq_dwo_file): Ditto.
7256 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7257 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7258
5ff888ce
DE
7259 * psymtab.c (read_psymtabs_with_fullname): Don't call
7260 psymtab_to_fullname if the basenames are different.
7261
ec83d211
JK
72622013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7263
7264 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7265 New entry about "fullname" presence.
7266
4f4352f7
PA
72672013-04-03 Pedro Alves <palves@redhat.com>
7268
7269 * NEWS: Mention x86_64/Cygwin as new native configuration.
7270
3d1d5ea3
DE
72712013-04-02 Doug Evans <dje@google.com>
7272
7273 * dwarf2read.c (read_structure_type): Fix typo in comment.
7274
be9a8770
PA
72752013-04-02 Pedro Alves <palves@redhat.com>
7276
7277 * NEWS: Mention "set/show debug aarch64", "set/show debug
7278 coff-pe-read" and "set/show debug mach-o".
7279
a46c1e42
PA
72802013-04-02 Pedro Alves <palves@redhat.com>
7281
7282 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7283
3ad18b19
EZ
72842013-04-02 Eli Zaretskii <eliz@gnu.org>
7285
7286 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7287 gdb_string.h is now in common/.
7288
e9f1758d
PA
72892013-04-02 Pedro Alves <palves@redhat.com>
7290
7291 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7292 under "New options".
7293
049dc89b
JK
72942013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7295
7296 Revert this patch:
7297 PR gdb/15275
7298 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7299
c33e31fd
PA
73002013-04-02 Pedro Alves <palves@redhat.com>
7301
7302 PR gdb/15275
7303
7304 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7305 (remote_serial_write): New function.
7306 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7307
ea5f3910
JW
73082013-04-01 Jiong Wang <jiwang@tilera.com>
7309
7310 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7311 "New targets" sections.
ea5f3910 7312
5c6fa7ab
DE
73132013-04-01 Doug Evans <dje@google.com>
7314
c0f78cd4
DE
7315 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7316 (process_enumeration_scope): Simplify.
7317
0186c6a7
DE
7318 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7319 type_unit_group ...
7320 (struct signatured_type): ... to here.
7321 (sig_type_ptr): New typedef.
7322 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7323 out of union 't'. All uses updated.
7324 (dw2_get_file_names_reader): Assert not called for a type unit.
7325 (dw2_get_file_names): Assert not called for a type unit or type
7326 unit group.
7327 (build_type_psymtabs_reader): Assert called for a type unit.
7328 (build_type_psymtab_dependencies): Assert called for a type unit group.
7329
5c6fa7ab
DE
7330 * dwarf2read.c (free_dwo_file): Add comment.
7331 (dwarf2_per_objfile_free): Unref dwp bfd.
7332
b3c0ad67 73332013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7334
7335 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7336 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7337 (read_pe_exported_syms): Remove unused 'exportix'.
7338 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7339 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7340 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7341
e2df1547
AR
73422013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7343
7344 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7345 (print_it_watchpoint): Remove unused 'bl'.
7346 (say_where): Remove unused 'uiout'.
7347 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7348 (bkpt_breakpoint_hit): Remove unused 'b'.
7349 (internal_bkpt_print_it): Remove unused 'uiout'.
7350 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7351
d81e75c0
TD
73522013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7353
7354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7355 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7356
5a8b3f62
DE
73572013-03-29 Doug Evans <dje@google.com>
7358
ab5088bf
DE
7359 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7360 Delete arg is_dwp. All callers updated.
7361 (open_dwp_file): New function.
7362 (open_and_init_dwp_file): Call it.
7363 (get_dwp_file): New function.
7364 (lookup_dwo_cutu): Call it.
7365
a8ad1e57
DE
7366 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7367 unnecessary, cleanup.
7368
6296d8c1
DE
7369 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7370
b0c7bfa9
DE
7371 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7372 (lookup_dwo_unit): New function.
7373 (init_cutu_and_read_dies): Move DWO handling to new functions.
7374
c88ee1f0
DE
7375 * dwarf2read.c (struct signatured_type): Tweak comment.
7376 (struct dwo_unit): Tweak comment.
7377 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7378 (create_dwo_debug_info_hash_table): Tweak comment.
7379 (dwarf2_per_cu_offset_and_type): Tweak comment.
7380
5a8b3f62
DE
7381 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7382 missing .debug_types section.
7383
9852c492
YQ
73842013-03-29 Yao Qi <yao@codesourcery.com>
7385
7386 * corelow.c: Include "completer.h".
7387 (_initialize_corelow): Call add_target_with_completer with
7388 argument 'filename_completer'.
7389 * tracepoint.c: Likewise.
7390 * exec.c (_initialize_exec): Likewise.
7391 * target.c (add_target): Rename to ...
7392 (add_target_with_completer): ... this. Call set_cmd_completer
7393 if parameter completer is not NULL.
7394 (add_target): New.
7395 * target.h: Include "command.h".
7396 (add_target_with_completer): Declare it.
7397
af312be7
JB
73982013-03-28 Joel Brobecker <brobecker@adacore.com>
7399
7400 * coffread.c (is_import_fixup_symbol): New function.
7401 (record_minimal_symbol): Use is_import_fixup_symbol to
7402 detect import fixup symbols, and discard them.
7403
8a0459fd
DE
74042013-03-28 Doug Evans <dje@google.com>
7405
0349ea22
DE
7406 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7407 types hash table until we know we need it.
7408
f652bce2
DE
7409 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7410 index numbers.
7411
e4a48d9d
DE
7412 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7413 All callers updated.
7414 (dw2_print_stats): Print #read CUs too.
7415 (dump_die_shallow): Print signatured types better.
7416
8a0459fd
DE
7417 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7418 info_or_types_section to section. All uses updated.
7419 (struct dwo_unit): Ditto.
7420
bd3eecc3
PA
74212013-03-28 Pedro Alves <palves@redhat.com>
7422
7423 * NEWS (New options): New section.
7424 (New options): Mention set/show remote trace-status-packet.
7425 * remote.c (PACKET_qTStatus): New enumeration value.
7426 (remote_get_trace_status): Skip sending qTStatus if the packet is
7427 disabled. Use packet_ok.
7428 (_initialize_remote): Register a configuration command for
7429 qTStatus packet.
7430
41245087
DE
74312013-03-28 Doug Evans <dje@google.com>
7432
7edbb660
DE
7433 * symfile.c (find_separate_debug_file): Add comment.
7434 (terminate_after_last_dir_separator): Tweak comment.
7435
0018ea6f
DE
7436 * dwarf2read.c (create_partial_symtab): Add forward decl.
7437 (create_partial_symtab): Move to be closer to other psymtab functions.
7438 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7439
ca69b9e6
DE
7440 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7441 (compute_symtab_includes): Remove unnecessary forward declaration.
7442 (die_needs_namespace): Add comment marking group of functions for
7443 dwarf2 name computation.
7444
a9375afe
DE
7445 * typeprint.c (_initialize_typeprint): Improve type help text.
7446
41245087
DE
7447 * python/python.c (finish_python_initialization): Provide suggestion
7448 for how to tell gdb to find its python files.
7449
7f7cc265
PA
74502013-03-28 Pedro Alves <palves@redhat.com>
7451
7452 PR gdb/15294
7453
7454 * source.c (_initialize_source): Change back "set listsize" to an
7455 integer command.
7456
ec21308c
JK
74572013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7458
7459 PR gdb/15275
7460 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7461
840a9a1f
PA
74622013-03-27 Pedro Alves <palves@redhat.com>
7463
7464 * top.c (history_size): Rename to ...
7465 (history_size_setshow_var): ... this. Add comment.
7466 (show_commands): Use readline's 'history_length' instead of
7467 computing the history length by calling history_get in a loop.
7468 (set_history_size_command): Error out for sizes over INT_MAX.
7469 Restore previous history size on invalid size.
7470 (init_history): If HISTSIZE is negative, leave the history size as
7471 zero. Add comments.
7472 (init_main): Adjust.
7473
826ecc4d
PA
74742013-03-27 Pedro Alves <palves@redhat.com>
7475
7476 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7477 coff_pe_read" command to "set debug coff-pe-read".
7478
0ccfeeae
MM
74792013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7480
7481 * record.c (command_size_to_target_size): Fix size comparison.
7482 Change parameter type from pointer to integer to integer.
7483 Update all users.
7484
40653b35
PM
74852013-03-27 Pierre Muller <muller@sourceware.org>
7486
7487 * windows-nat.c (handle_output_debug_string): Avoid typecast
7488 from integer of different size warning.
7489
c62fa0e2
JB
74902013-03-26 Joel Brobecker <brobecker@adacore.com>
7491
7492 * windows-nat.c (handle_output_debug_string): Add empty line
7493 after local block variable definition.
7494
2c619be2
PA
74952013-03-26 Pedro Alves <palves@redhat.com>
7496
7497 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7498 (net_open): Make 'polls' local unsigned.
7499
1b493192
PA
75002013-03-26 Pedro Alves <palves@redhat.com>
7501
7502 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7503 a zuinteger command instead of uinteger.
7504
7ee70bf5
PA
75052013-03-26 Pedro Alves <palves@redhat.com>
7506
7507 * record-full.c (record_full_insn_num): Make it unsigned.
7508 (record_full_check_insn_num, record_full_message)
7509 (record_full_registers_change, record_full_xfer_partial): Remove
7510 record_full_insn_max_num check (it's always != 0).
7511 (record_full_info, record_full_restore): Use %u as format string.
7512 (): Use %u as format string.
7513 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7514 check (it's always != 0).
7515
dfd1f9bb
PA
75162013-03-26 Pedro Alves <palves@redhat.com>
7517
7518 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7519 and "set dcache size" commands zuinteger instead of uinteger.
7520
addb4faf
PA
75212013-03-26 Pedro Alves <palves@redhat.com>
7522
7523 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7524 command zuinteger instead of uinteger.
7525
b75bf488
PA
75262013-03-26 Pedro Alves <palves@redhat.com>
7527
7528 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7529 zuinteger instead of uinteger.
7530
42c634cb
PA
75312013-03-26 Pedro Alves <palves@redhat.com>
7532
7533 * record.c (record_insn_history_size_setshow_var)
7534 (record_call_history_size_setshow_var): New globals.
7535 (command_size_to_target_size): New function.
7536 (cmd_record_insn_history, cmd_record_call_history): Use
7537 command_size_to_target_size instead of cast.
7538 (validate_history_size, set_record_insn_history_size)
7539 (set_record_call_history_size): New functions.
7540 (_initialize_record): Install set_record_insn_history_size and
7541 set_record_call_history_size as "set" hooks of "set record
7542 instruction-history-size" and "set record
7543 function-call-history-size".
7544
1fb2e2b5
PA
75452013-03-26 Pedro Alves <palves@redhat.com>
7546
7547 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7548 use with history_max_entries use. Remove FIXME note.
7549
99c819ee
MM
75502013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7551
7552 * record-btrace.c (record_btrace_close): Call
7553 record_btrace_auto_disable.
7554
9f9e404c
JB
75552013-03-25 Joel Brobecker <brobecker@adacore.com>
7556
7557 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7558
ebcdfe33
DE
75592013-03-25 Doug Evans <dje@google.com>
7560
7561 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7562
24955f63
TT
75632013-03-25 Tom Tromey <tromey@redhat.com>
7564
7565 PR symtab/11462:
7566 * c-exp.y (exp): Add new productions for destructors after '.' and
7567 '->'.
7568 (write_destructor_name): New function.
7569
fce632b6
TT
75702013-03-25 Tom Tromey <tromey@redhat.com>
7571
7572 PR c++/9197:
7573 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7574 value_struct_elt, not lookup_struct_elt_type.
7575 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7576 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7577 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7578
a4341769
YQ
75792013-03-25 Yao Qi <yao@codesourcery.com>
7580
7581 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7582 instead of '_mkdir'.
7583
b5981e5a
EZ
75842013-03-23 Eli Zaretskii <eliz@gnu.org>
7585
7586 * windows-nat.c (windows_get_absolute_argv0): New function.
7587 * windows-nat.h: Add its prototype.
7588
7589 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7590 Use IS_DIR_SEPARATOR instead of looking for a character inside
7591 SLASH_STRING. Include filenames.h.
7592 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7593 relocate_gdb_directory works when passed gdb_program_name.
7594 Include windows-nat.h.
7595
598d3636
JK
75962013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7597
7598 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7599 * remote.c (trace_error): Remove the special handling of '2'.
7600 (readchar) <SERIAL_EOF>
7601 (readchar) <SERIAL_ERROR>
7602 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7603 (remote_get_trace_status): Call throw_exception if EX is
7604 TARGET_CLOSE_ERROR.
7605 * utils.c (perror_with_name): Rename to ...
7606 (throw_perror_with_name): ... here. New parameter errcode, describe it
7607 in the function comment.
7608 (perror_with_name): New function wrapper.
7609 * utils.h (enum errors): New stub declaration.
7610 (throw_perror_with_name): New declaration.
7611
82b821e9
PA
76122013-03-22 Pedro Alves <palves@redhat.com>
7613 Yao Qi <yao@codesourcery.com>
7614 Mark Kettenis <kettenis@gnu.org>
7615
7616 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7617 Don't let the user set the value to UINT_MAX directly.
7618 <var_integer>: Don't let the user set the value to INT_MAX
7619 directly.
7620
78a095c3
JK
76212013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 * remote.c (remote_unpush_target): New function.
7624 (remote_open_1): Remove two pop_target calls, update one comment, add
7625 comment to target_preopen call. Replace pop_target call by
7626 remote_unpush_target call.
7627 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7628 pop_target calls by remote_unpush_target calls.
7629
3e74e146
PA
76302013-03-22 Pedro Alves <palves@redhat.com>
7631
7632 * linux-nat.c (linux_child_follow_fork): Don't call
7633 linux_enable_event_reporting.
7634 (linux_handle_extended_wait): Don't call
7635 linux_enable_event_reporting.
7636
a2213dca
PA
76372013-03-22 Pedro Alves <palves@redhat.com>
7638
7639 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7640 use it to rewrite the trampoline buffers with type gdb_byte[], and
7641 undefine the macro. Remove char* cast.
7642
bd712aed
DE
76432013-03-21 Doug Evans <dje@google.com>
7644
7645 New commands "mt set per-command {space,time,symtab} {on,off}".
7646 * NEWS: Add entry.
7647 * event-top.c: #include "maint.h".
7648 * main.c: #include "maint.h".
7649 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7650 timeval-utils.h, maint.h, cli/cli-setshow.h.
7651 (per_command_time, per_command_space): New static globals.
7652 (per_command_symtab): New static global.
7653 (per_command_setlist, per_command_showlist): New static globals.
7654 (struct cmd_stats): Move here from utils.c.
7655 (set_per_command_time): Renamed from set_display_time in utils.c
7656 and moved here. All callers updated.
7657 (set_per_command_space): Renamed from set_display_space in utils.c
7658 and moved here. All callers updated.
7659 (count_symtabs_and_blocks): New function.
7660 (report_command_stats): Moved here from utils.c. Add support for
7661 printing symtab stats. Only print data if enabled before command
7662 executed.
7663 (make_command_stats_cleanup): Ditto.
7664 (sert_per_command_cmd, show_per_command_cmd): New functions.
7665 (_initialize_maint_cmds): Add new commands
7666 mt set per-command {space,time,symtab} {on,off}.
7667 * maint.h: New file.
7668 * top.c: #include "maint.h".
7669 * utils.c (reset_prompt_for_continue_wait_time): New function.
7670 (get_prompt_for_continue_wait_time): New function.
7671 * utils.h (reset_prompt_for_continue_wait_time): Declare
7672 (get_prompt_for_continue_wait_time): Declare.
7673 (make_command_stats_cleanup): Moved to maint.h.
7674 (set_display_time, set_display_space): Moved to maint.h and renamed
7675 to set_per_command_time, set_per_command_space.
7676 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7677 parse_binary_operation and made non-static. Don't call error,
7678 just return an error marker. All callers updated.
7679 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7680
d76488d8
TT
76812013-03-21 Tom Tromey <tromey@redhat.com>
7682
7683 * symfile.c (alloc_section_addr_info): Update header. Don't set
7684 'num_sections' field.
7685 (build_section_addr_info_from_section_table): Set 'num_sections'.
7686 (build_section_addr_info_from_bfd): Likewise.
7687 (build_section_addr_info_from_objfile): Remove dead loop
7688 condition.
7689 (free_section_addr_info): Unconditionally call xfree.
7690 (relative_addr_info_to_section_offsets, addrs_section_sort)
7691 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7692 condition.
7693 (syms_from_objfile_1): Remove dead 'if' condition. Check
7694 'num_sections'.
7695 (add_symbol_file_command): Set 'num_sections'.
7696 * symfile-mem.c (symbol_file_add_from_memory): Set
7697 'num_sections'.
7698 * somread.c (som_symfile_offsets): Remove dead loop condition.
7699 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7700 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7701
a72e5169 77022013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7703
7704 * tracepoint.h (decode_agent_options): Add 'trace_string'
7705 argument.
7706 * tracepoint.c (decode_agent_options): Add 'trace_string'
7707 argument.
7708 (validate_actionline): Update.
7709 (collect_symbol): Add 'trace_string' argument.
7710 (struct add_local_symbols_data) <trace_string>: New field.
7711 (do_collect_symbol): Update.
7712 (add_local_symbols): Add 'trace_string' argument.
7713 (encode_actions_1): Update.
7714 (trace_dump_actions): Update.
7715 * dwarf2loc.c (access_memory): Update.
7716 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7717 * ax-general.c (new_agent_expr): Update.
7718 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7719 (gen_trace_for_return_address): Add argument.
7720 (trace_kludge, trace_string_kludge): Remove.
7721 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7722 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7723 (gen_trace_for_var): Add 'trace_string' argument.
7724 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7725 (gen_printf, agent_eval_command_one): Update.
7726
b2f83c08
TT
77272013-03-21 Tom Tromey <tromey@redhat.com>
7728
7729 PR exp/15109:
7730 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7731 Handle FILENAME token.
7732
9507860e
TT
77332013-03-21 Tom Tromey <tromey@redhat.com>
7734
7735 * c-exp.y (YYPRINT): Define.
7736 (c_print_token): New function.
7737
e403aa4b
TT
77382013-03-21 Tom Tromey <tromey@redhat.com>
7739
7740 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7741
af307d6a
YQ
77422013-03-21 Yao Qi <yao@codesourcery.com>
7743
7744 * ctf.c: Include "gdb_stat.h".
7745 [USE_WIN32API]: New macro 'mkdir'.
7746 (ctf_start): Use permission bits macros if they are defined.
7747
fb81d016
KS
77482013-03-20 Keith Seitz <keiths@redhat.com>
7749
7750 * breakpoint.h (struct breakpoint): Add comment to
7751 extra_string indicating that this member is mallod'd.
7752 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7753
ef0026f0
PA
77542013-03-20 Pedro Alves <palves@redhat.com>
7755
7756 PR gdb/15289
7757
7758 * cli/cli-setshow.c (do_set_command)
7759 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7760 the result of parsing the command argument. Throw error if the
7761 value is greater than UINT_MAX. Print the invalid value with
7762 plongest.
7763 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7764 result of parsing the command argument. Throw error if the value
7765 is greater than INT_MAX, not greater or equal. Also throw error
7766 if the value is less than INT_MIN. Print the invalid value with
7767 plongest.
7768 <var_zuinteger_unlimited>: Throw error if the value is greater
7769 than INT_MAX, not greater or equal.
7770 (do_show_command) <var_integer, var_zinteger,
7771 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7772
24d6c2a0
TT
77732013-03-20 Tom Tromey <tromey@redhat.com>
7774
7775 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7776 if possible.
7777 * dwarf2read.c (read_func_scope): Remove old FIXME.
7778 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7779 not LOC_COMPUTED.
7780 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7781 Unconditionally call via computed ops, if possible.
7782 * printcmd.c (address_info): Unconditionally call via computed ops,
7783 if possible.
7784 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7785 if possible.
7786 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7787 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7788 if possible.
7789
f1e6e072
TT
77902013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7791 Tom Tromey <tromey@redhat.com>
7792
7793 PR symtab/8421:
7794 * coffread.c (coff_register_index): New global.
7795 (process_coff_symbol, coff_read_enum_type): Set
7796 SYMBOL_ACLASS_INDEX.
7797 (_initialize_coffread): Initialize new global.
7798 * dwarf2loc.c (locexpr_find_frame_base_location)
7799 (dwarf2_block_frame_base_locexpr_funcs)
7800 (loclist_find_frame_base_location)
7801 (dwarf2_block_frame_base_loclist_funcs): New.
7802 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7803 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7804 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7805 (dwarf2_block_frame_base_loclist_funcs): New.
7806 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7807 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7808 globals.
7809 (read_func_scope): Update.
7810 (fixup_go_packaging, mark_common_block_symbol_computed)
7811 (var_decode_location, new_symbol_full, dwarf2_const_value):
7812 Set SYMBOL_ACLASS_INDEX.
7813 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7814 (_initialize_dwarf2_read): Initialize new globals.
7815 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7816 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7817 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7818 globals.
7819 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7820 (_initialize_mdebugread): Initialize new globals.
7821 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7822 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7823 (stab_register_index, stab_regparm_index): New globals.
7824 (define_symbol, read_enum_type, common_block_end): Set
7825 SYMBOL_ACLASS_INDEX.
7826 (_initialize_stabsread): Initialize new globals.
7827 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7828 globals.
7829 (MAX_SYMBOL_IMPLS): New define.
7830 (register_symbol_computed_impl, register_symbol_block_impl)
7831 (register_symbol_register_impl)
7832 (initialize_ordinary_address_classes): New functions.
7833 (_initialize_symtab): Call initialize_ordinary_address_classes.
7834 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7835 (struct symbol_impl): New.
7836 (SYMBOL_ACLASS_BITS): New define.
7837 (struct symbol) <aclass, ops>: Remove fields.
7838 <aclass_index>: New field.
7839 (symbol_impls): Declare.
7840 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7841 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7842 (register_symbol_computed_impl, register_symbol_block_impl)
7843 (register_symbol_register_impl): Declare.
7844 (struct symbol_computed_ops): Add location_has_loclist.
7845 (struct symbol_block_ops): New.
7846 (SYMBOL_BLOCK_OPS): New.
7847 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7848
dbccfd4c
TT
78492013-03-20 Tom Tromey <tromey@redhat.com>
7850
7851 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7852 (print_partial_symbols, recursively_search_psymtabs): Use
7853 PSYMBOL_CLASS.
7854
e3f1ad4f
PM
78552013-03-20 Pierre Muller <muller@sourceware.org>
7856
7857 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7858 addtion, subtraction, multiplication and division binary operator.
7859
460014f5
JK
78602013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7861
7862 Code cleanup.
7863 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7864 * bsd-kvm.c (bsd_kvm_close): Likewise.
7865 * bsd-uthread.c (bsd_uthread_close): Likewise.
7866 * corelow.c (core_close): Likewise.
7867 (core_close_cleanup): Remove parameter quitting from a caller.
7868 * event-top.c (async_disconnect): Likewise.
7869 * exec.c (exec_close_1): Remove parameter quitting.
7870 * go32-nat.c (go32_close): Likewise.
7871 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7872 parameter quitting from a caller.
7873 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7874 variable.
7875 (mips_linux_close): Remove parameter quitting. Remove parameter
7876 quitting from a caller.
7877 * monitor.c (monitor_close): Remove parameter quitting.
7878 * monitor.h (monitor_close): Likewise.
7879 * record-btrace.c (record_btrace_close): Likewise.
7880 * record-full.c (record_full_close): Likewise.
7881 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7882 it also from fprintf_unfiltered.
7883 * remote-mips.c (mips_close): Remove parameter quitting.
7884 (mips_detach): Remove parameter quitting from a caller.
7885 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7886 (gdbsim_close): Remove duplicate function comment. Remove parameter
7887 quitting and remove it also from printf_filtered.
7888 * remote.c (remote_close): Remove parameter quitting.
7889 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7890 * target.c (update_current_target): Remove parameter int from to_close
7891 de_fault.
7892 (push_target, unpush_target, pop_target): Remove parameter quitting from
7893 a caller.
7894 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7895 Remove parameter quitting from a caller.
7896 (target_preopen): Remove parameter quitting from a caller.
7897 (target_close): Remove parameter quitting. Remove parameter quitting
7898 from a caller two times. Remove parameter quitting also from
7899 fprintf_unfiltered.
7900 * target.h (struct target_ops): Remove parameter quitting and as int
7901 from fields to_xclose and to_close.
7902 (extern struct target_ops current_target):
7903 (target_close, pop_all_targets): Remove parameter quitting. Update the
7904 comment.
7905 (pop_all_targets_above): Remove parameter quitting.
7906 * top.c (quit_target): Remove parameter quitting from a caller.
7907 * tracepoint.c (tfile_close): Remove parameter quitting.
7908 * windows-nat.c (windows_close): Remove parameter quitting.
7909
35a7120b
CV
79102013-03-20 Corinna Vinschen <vinschen@redhat.com>
7911
7912 * windows-nat.c (handle_output_debug_string): Replace call
7913 to string_to_core_addr with call to strtoull.
7914
8249a5a9
YQ
79152013-03-20 Yao Qi <yao@codesourcery.com>
7916
7917 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7918 and write it to CTF metadata.
7919
2c15ef43
CV
79202013-03-19 Corinna Vinschen <vinschen@redhat.com>
7921
7922 * windows-nat.c (handle_output_debug_string): Change type of n to
7923 SIZE_T to avoid crash on 64 bit systems.
7924
1cdd3232
EZ
79252013-03-17 Eli Zaretskii <eliz@gnu.org>
7926
7927 * python/python-internal.h (HAVE_SNPRINTF)
7928 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7929 about redefinition of snprintf by pyerrors.h.
7930
3cb2ab1a
SE
79312013-03-15 Steve Ellcey <sellcey@mips.com>
7932
7933 * remote-sim.c (sim_command_completer): Make char arguments const.
7934
9ce98649
TT
79352013-03-15 Tom Tromey <tromey@redhat.com>
7936
7937 PR c++/15116:
7938 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7939
dccee2de
TT
79402013-03-14 Tom Tromey <tromey@redhat.com>
7941
7942 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7943 New fields.
7944 (get_file_crc): Move from symfile.c.
7945 (gdb_bfd_crc): New function.
7946 * gdb_bfd.h (gdb_bfd_crc): Declare.
7947 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7948 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7949 (separate_debug_file_exists): Use gdb_bfd_crc.
7950
cc0ea93c
TT
79512013-03-14 Tom Tromey <tromey@redhat.com>
7952
7953 * symfile.c (get_debug_link_info): Remove.
7954 (find_separate_debug_file_by_debuglink): Use
7955 bfd_get_debug_link_info.
7956
08c23b0d
TT
79572013-03-14 Tom Tromey <tromey@redhat.com>
7958
7959 * symtab.c (error_in_psymtab_expansion): New function.
7960 (lookup_symbol_aux_quick)
7961 (basic_lookup_transparent_type_quick): Remove "last resort"
7962 code. Use error_in_psymtab_expansion.
7963
288e77a7
JK
79642013-03-14 Doug Evans <dje@google.com>
7965 Jan Kratochvil <jan.kratochvil@redhat.com>
7966
7967 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7968 any successful compare_filenames_for_search or FILENAME_CMP.
7969 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7970 * symtab.c (iterate_over_some_symtabs): Likewise.
7971
8f1b8b82
JK
79722013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7973
7974 * source.c (print_source_lines_base): Make a local copy of
7975 symtab_to_fullname.
7976
23eb71e4
JK
79772013-03-14 Hui Zhu <hui_zhu@mentor.com>
7978 Jan Kratochvil <jan.kratochvil@redhat.com>
7979
7980 * source.c (print_source_lines_base): Suppress "file" for TUI.
7981
bb869963
SDJ
79822013-03-14 Keith Seitz <keiths@redhat.com>
7983 Alan Matsuoka <alanm@redhat.com>
7984
7985 PR c++/15203
7986 PR c++/15210
7987 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7988 TYPE_CODE_METHOD.
7989 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7990 symbols.
7991
d6682f9e
YQ
79922013-03-14 Yao Qi <yao@codesourcery.com>
7993
7994 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7995 status to tfile if trace is stopped by command 'tstop'.
7996
a22fa6e4
YQ
79972013-03-14 Yao Qi <yao@codesourcery.com>
7998
7999 * tracepoint.c (tfile_write_status): Write trace notes and user
8000 name into tfile if they are not NULL.
8001
d0353e76
YQ
80022013-03-14 Hui Zhu <hui@codesourcery.com>
8003 Yao Qi <yao@codesourcery.com>
8004
8005 * Makefile.in (REMOTE_OBS): Add ctf.o.
8006 (SFILES): Add ctf.c.
8007 (HFILES_NO_SRCDIR): Add ctf.h.
8008 * ctf.c, ctf.h: New files.
8009 * tracepoint.c: Include 'ctf.h'.
8010 (collect_pseudocommand): Remove static.
8011 (trace_save_command): Parse option "-ctf".
8012 Produce different trace file writers per option.
8013 Adjust output message.
8014 (trace_save_tfile, trace_save_ctf): New.
8015 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8016 * mi/mi-main.c: Include 'ctf.h'.
8017 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8018 trace_save_tfile or trace_save_ctf.
8019 * NEWS: Mention these changes.
8020
3f43bc09
YQ
80212013-03-14 Yao Qi <yao@codesourcery.com>
8022
8023 * tracepoint.c (trace_file_writer_xfree): New.
8024 (struct tfile_writer_data): New.
8025 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8026 (tfile_write_header, tfile_write_regblock_type): New.
8027 (tfile_write_status, tfile_write_uploaded_tsv): New.
8028 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8029 (tfile_write_raw_data, (tfile_end): New.
8030 (tfile_write_ops): New global variable.
8031 (TRACE_WRITE_R_BLOCK): New macro.
8032 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8033 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8034 (TRACE_WRITE_V_BLOCK): New macro.
8035 (trace_save): Add extra one parameter WRITER. Make it static.
8036 Use WRITER to writer trace.
8037 (tfile_trace_file_writer_new): New.
8038 (trace_save_command): Caller update.
8039 (trace_save_tfile): Write trace data in TFILE format.
8040 * tracepoint.h (struct trace_frame_write_ops): New.
8041 (struct trace_file_write_ops): New.
8042 (struct trace_file_writer): New.
8043 (trace_save): Remove its declaration.
8044 (trace_save_tfile): Declare it.
8045 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8046 instead of trace_save.
8047
58665b40
PA
80482013-03-13 Pedro Alves <palves@redhat.com>
8049
8050 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8051
10217050
PA
80522013-03-13 Pedro Alves <palves@redhat.com>
8053
8054 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8055 commented out code.
8056 * demangle.c (current_demangling_style_string): Make it const.
8057 (set_demangling_command): Assert the demangling style is known.
8058 Remove all handling of unknown styles. Set
8059 'current_demangling_style_string' to an element of the
8060 demangling_style_names array.
8061 (set_demangling_style): Delete.
8062 (_initialize_demangler): Set current_demangling_style_string to the
8063 element of the demangling_style_names array that corresponds to
8064 the default demangling style. Remove FIXME note. Don't call
8065 set_demangling_style.
8066 * gdb-demangle.h (set_demangling_style): Remove declaration.
8067
6f937416
PA
80682013-03-13 Pedro Alves <palves@redhat.com>
8069
8070 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8071 fields const.
8072 (ada_make_symbol_completion_list): Make "text0" parameter const.
8073 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8074 * breakpoint.c (condition_completer): Make "text" and "word"
8075 parameters const. Adjust.
8076 (check_tracepoint_command): Adjust to validate_actionline
8077 prototype change.
8078 (catch_syscall_completer): Make "text" and "word" parameters
8079 const.
8080 * cli/cli-cmds.c (show_user): Make "comname" local const.
8081 (valid_command_p): Make "command" parameter const.
8082 (alias_command): Make "alias_prefix" and "command_prefix" locals
8083 const.
8084 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8085 (add_alias_cmd): Make "name" and "oldname" parameters const.
8086 Adjust. No longer make copy of OLDNAME.
8087 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8088 (add_setshow_cmd_full, add_setshow_enum_cmd)
8089 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8090 (add_setshow_filename_cmd, add_setshow_string_cmd)
8091 (add_setshow_string_noescape_cmd)
8092 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8093 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8094 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8095 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8096 Make "name" parameter const.
8097 (help_cmd): Rename "command" parameter to "arg". New const local
8098 "command".
8099 (find_cmd): Make "command" parameter const.
8100 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8101 deprecated_cmd_warning prototype change.
8102 (undef_cmd_error): Make "cmdtype" parameter const.
8103 (lookup_cmd): Make "line" parameter const.
8104 (deprecated_cmd_warning): Change type of "text" parameter to
8105 pointer to const char, from pointer to pointer to char. Adjust.
8106 (lookup_cmd_composition): Make "text" parameter const.
8107 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8108 parameters const.
8109 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8110 const.
8111 * cli/cli-script.c (validate_comname): Make "tem" local const.
8112 (define_command): New const local "tem_c". Use it in calls to
8113 lookup_cmd.
8114 (document_command): Make "tem" and "comfull" locals const.
8115 (show_user_1): Make "prefix" and "name" parameters const.
8116 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8117 const.
8118 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8119 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8120 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8121 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8122 (complete_on_enum, add_setshow_enum_cmd)
8123 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8124 (add_setshow_filename_cmd, add_setshow_string_cmd)
8125 (add_setshow_string_noescape_cmd)
8126 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8127 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8128 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8129 Change prototypes, constifying strings.
8130 * completer.c (noop_completer, filename_completer): Make "text"
8131 and "prefix" parameters const.
8132 (location_completer, expression_completer)
8133 (complete_line_internal): Make "text" and "prefix" parameters
8134 const and adjust.
8135 (command_completer, signal_completer): Make "text" and "prefix"
8136 parameters const.
8137 * completer.h (noop_completer, filename_completer)
8138 (expression_completer, location_completer, command_completer)
8139 (signal_completer): Change prototypes.
8140 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8141 parameters const.
8142 * cp-abi.c (cp_abi_completer): Likewise.
8143 * expression.h (parse_expression_for_completion): Change
8144 prototype.
8145 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8146 parameters const.
8147 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8148 * infrun.c (handle_completer): Make "text" and "word" parameters
8149 const.
8150 * interps.c (interpreter_completer): Make "text" and "word"
8151 parameters const.
8152 * language.h (struct language_defn)
8153 <la_make_symbol_completion_list>: Make "text" and "word"
8154 parameters const.
8155 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8156 (parse_exp_in_context): Rename to ...
8157 (parse_exp_in_context_1): ... this.
8158 (parse_exp_in_context): Reimplement, with const hack from
8159 parse_exp_1.
8160 (parse_expression_for_completion): Make "string" parameter const.
8161 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8162 to pointer to const char. Adjust.
8163 (print_command_1): Make "exp" parameter const.
8164 (output_command): Rename to ...
8165 (output_command_const): ... this. Make "exp" parameter const.
8166 (output_command): Reimplement.
8167 (x_command): Adjust.
8168 (display_command): Rename "exp" parameter to "arg". New "exp"
8169 local, const version of "arg".
8170 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8171 "cmd_name" local const.
8172 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8173 call.
8174 (cmdpy_completer): Make "text" and "word" parameters const.
8175 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8176 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8177 const.
8178 * remote.c (_initialize_remote): Make "cmd_name" local const.
8179 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8180 parameters const. Adjust.
8181 (completion_list_add_fields): Make "sym_text", "text" and "word"
8182 parameters const.
8183 (struct add_name_data) <sym_text, text, word>: Make fields const.
8184 (default_make_symbol_completion_list_break_on): Make "text" and
8185 "word" parameters const. Adjust locals.
8186 (default_make_symbol_completion_list)
8187 (make_symbol_completion_list, make_symbol_completion_type)
8188 (make_symbol_completion_list_fn): Make "text" and "word"
8189 parameters const.
8190 (make_file_symbol_completion_list): Make "text", "word" and
8191 "srcfile" parameters const. Adjust locals.
8192 (add_filename_to_list): Make "text" and "word" parameters const.
8193 (struct add_partial_filename_data) <text, word>: Make fields
8194 const.
8195 (make_source_files_completion_list): Make "text" and "word"
8196 parameters const.
8197 * symtab.h (default_make_symbol_completion_list_break_on)
8198 (default_make_symbol_completion_list, make_symbol_completion_list)
8199 (make_symbol_completion_type enum type_code)
8200 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8201 (make_source_files_completion_list): Change prototype.
8202 * top.c (execute_command): Adjust to pass pointer to pointer to
8203 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8204 change.
8205 (set_verbose): Make "cmdname" local const.
8206 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8207 and adjust.
8208 (validate_actionline): Make "line" parameter a pointer to const
8209 char, and adjust.
8210 (encode_actions_1): Make "action_exp" local const, and adjust.
8211 (encode_actions): Adjust.
8212 (replace_comma): Delete.
8213 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8214 const, and adjust. Don't frob the action string while splitting
8215 it at commas. Instead, make a copy of each split substring in
8216 turn.
8217 (trace_dump_command): Adjust to validate_actionline prototype
8218 change.
8219 * tracepoint.h (decode_agent_options, decode_agent_options)
8220 (encode_actions, validate_actionline): Change prototypes.
8221 * valprint.h (output_command): Delete declaration.
8222 (output_command_const): Declare.
8223 * value.c (function_destroyer): Cast const away in xfree call.
8224
a0bcdaa7
PA
82252013-03-13 Pedro Alves <palves@redhat.com>
8226
8227 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8228 rather than casting 'const char * const *' to 'const char **'.
8229 * ada-lex.l (processInt): Make "trailer" local const. Remove
8230 'const char **' cast.
8231 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8232 locals, and use those as strtol output pointer, instead than doing
8233 invalid casts to from 'const char **' to 'char **'.
8234 (_initialize_demangle): Remove cast.
8235 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8236 locals, and use those as strtol output pointer, instead than doing
8237 invalid casts to from 'const char **' to 'char **'.
8238 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8239 casts.
8240 * stap-probe.c (stap_parse_register_operand)
8241 (stap_parse_single_operand): Likewise.
8242
8ddb1965
YQ
82432013-03-13 Yao Qi <yao@codesourcery.com>
8244
8245 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8246 the last matched 'V' blcok in trace frame.
8247
2d450646
JB
82482013-03-12 Joel Brobecker <brobecker@adacore.com>
8249
8250 * NEWS: Create a new section for the next release branch.
8251 Rename the section of the current branch, now that it has
8252 been cut.
8253
b4b79973 82542013-03-12 Joel Brobecker <brobecker@adacore.com>
8255
8256 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8257 * version.in: Bump version to 7.6.50.20130312-cvs.
8258
ee047554
KS
82592013-03-12 Keith Seitz <keiths@redhat.com>
8260
8261 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8262 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8263 Remove temporary copy of input string.
8264 (mi_execute_command_wrapper): Make "cmd" const.
8265 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8266 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8267 Use const strings.
8268 (mi_parse): Make "cmd" const.
8269 Use const strings.
8270 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8271
bbc13ae3
KS
82722013-03-12 Keith Seitz <keiths@redhat.com>
8273
8274 * ada-lang.c (ada_read_renaming_var_value): Pass const
8275 pointer to expression string to parse_exp_1.
8276 (create_excep_cond_exprs): Likewise.
8277 * ax-gdb.c (agent_eval_command_one): Likewise.
8278 (maint_agent_printf_command): Likewise.
8279 Constify much of the string handling/parsing.
8280 * breakpoint.c (set_breakpoint_condition): Pass const
8281 pointer to expression string to parse_exp_1.
8282 (update_watchpoint): Likewise.
8283 (parse_cmd_to_aexpr): Constify string handling.
8284 Pass const pointer to parse_exp_1.
8285 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8286 (find_condition_and_thread): Likewise.
8287 Make TOK const.
8288 (watch_command_1): Make "arg" const.
8289 Constify string handling.
8290 Copy the expression string instead of changing the input
8291 string.
8292 (update_breakpoint_location): Pass const pointer to
8293 parse_exp_1.
8294 * eval.c (parse_and_eval_address): Make "exp" const.
8295 (parse_to_comma_and_eval): Make "expp" const.
8296 (parse_and_eval): Make "exp" const.
8297 * expression.h (parse_expression): Make argument const.
8298 (parse_exp_1): Make first argument const.
8299 * findcmd.c (parse_find_args): Treat "args" as const.
8300 * linespec.c (parse_linespec): Pass const pointer to
8301 linespec_expression_to_pc.
8302 (linespec_expression_to_pc): Make "exp_ptr" const.
8303 * parse.c (parse_exp_1): Make "stringptr" const.
8304 Make a copy of the expression to pass to parse_exp_in_context until
8305 this whole interface can be constified.
8306 (parse_expression): Make "string" const.
8307 * printcmd.c (ui_printf): Treat "arg" as const.
8308 Handle const strings.
8309 * tracepoint.c (validate_actionline): Pass const pointer to
8310 all calls to parse_exp_1.
8311 (encode_actions_1): Likewise.
8312 * value.h (parse_to_comma_and_eval): Make argument const.
8313 (parse_and_eval_address): Likewise.
8314 (parse_and_eval): Likewise.
8315 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8316 (varobj_set_value): Likewise.
8317 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8318 constify string handling.
8319 Pass const pointers to parse_and_eval_address and
8320 parse_to_comman_and_eval.
8321 * cli/cli-utils.c (skip_to_space): Rename to ...
8322 (skip_to_space_const): ... this. Handle const strings.
8323 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8324 skip_to_space_const.
8325 (skip_to_space_const): Declare.
8326 * common/format.c (parse_format_string): Make "arg" const.
8327 Handle const strings.
8328 * common/format.h (parse_format_string): Make "arg" const.
8329 * gdbserver/ax.c (ax_printf): Make "format" const.
8330 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8331 of the expression string.
8332
f3cec7e6
HZ
83332013-03-12 Hui Zhu <hui@codesourcery.com>
8334
8335 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8336
9df7235c
HZ
83372013-03-12 Yao Qi <yao@codesourcery.com>
8338 Hui Zhu <hui@codesourcery.com>
8339
8340 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8341 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8342 DW_OP_deref_size.
8343
82d049ab
PH
83442013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8345
5f8e0b8f
MF
8346 * ada-lex.l (rules): Only recognize 'thread' as a
8347 delimiter when followed by numerals, as for c-exp.y.
8348 Use new rewind_to_char function to rewind the input for
8349 expression-delimiting tokens.
8350 (rewind_to_char): New function.
82d049ab 8351
8c1fb155
JK
83522013-03-11 Pedro Alves <palves@redhat.com>
8353 Jan Kratochvil <jan.kratochvil@redhat.com>
8354
8355 * configure: Regenerate.
8356 * configure.ac (check dynamic export flag): Link python test with
8357 $PYTHON_LIBS.
8358
cc81e1c6
DE
83592013-03-11 Doug Evans <dje@google.com>
8360 Keith Seitz <keiths@redhat.com>
8361
8362 * linespec.c (find_linespec_symbols): Call find_function_symbols
8363 first, and then call lookup_prefix_sym/find_method.
8364
39086a0e
PA
83652013-03-11 Pedro Alves <palves@redhat.com>
8366
8367 * charset.c (convert_between_encodings): Don't cast between
8368 different pointer to pointer types. Instead, make the 'inp' local
8369 be of the type iconv expects.
8370 (wchar_iterate): Don't cast between different pointer to pointer
8371 types. Instead, use new pointer local of the type iconv expects.
8372 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8373 Add new local of type char pointer, and use it to get a
8374 char/string view of the byte buffer, instead of casting between
8375 pointer to pointer types.
8376
90585175
HAQ
83772013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8378
8379 * remote.c (remote_set_trace_buffer_size): Move != operator
8380 to the start of next line to fix an ARI warning.
8381
59ea5688
MM
83822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8383
8384 * NEWS: Add record changes.
8385
946287b7
MM
83862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8387
8388 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8389 the instruction history disassembly.
8390 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8391 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8392
afedecd3
MM
83932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8394
8395 * Makefile.in (SFILES): Add record-btrace.c
8396 (COMMON_OBS): Add record-btrace.o
8397 * record-btrace.c: New.
8398 * objfiles.c: Include btrace.h.
8399 (free_objfile): call btrace_free_objfile.
8400
15984c13
MM
84012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8402
8403 * target.c (target_call_history, target_call_history_from,
8404 target_call_history_range): New.
8405 * target.h (target_ops) <to_call_history, to_call_history_from,
8406 to_call_history_range>: New fields.
8407 (target_call_history, target_call_history_from,
8408 target_call_history_range): New declaration.
8409 * record.c (get_call_history_modifiers, cmd_record_call_history,
8410 record_call_history_size): New.
8411 (_initialize_record): Add the "record function-call-history" command.
8412 Add "set/show record function-call-history-size" commands.
8413 * record.h (record_print_flag): New.
8414
67c86d06
MM
84152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8416
8417 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8418 to_insn_history_range>: New fields.
8419 (target_insn_history): New.
8420 (target_insn_history_from): New.
8421 (target_insn_history_range): New.
8422 * target.c (target_insn_history): New.
8423 (target_insn_history_from): New.
8424 (target_insn_history_range): New.
8425 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8426 (record_insn_history_size): New.
8427 (get_insn_number): New.
8428 (get_context_size): New.
8429 (no_chunk): New.
8430 (get_insn_history_modifiers): New.
8431 (cmd_record_insn_history): New.
8432 (_initialize_record): Add "set/show record instruction-history-size"
8433 command. Add "record instruction-history" command.
8434
7c1687a9
MM
84352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8436
8437 * record.h (record_disconnect): New.
8438 (record_detach): New.
8439 (record_mourn_inferior): New.
8440 (record_kill): New.
8441 * record-full.c (record_disconnect, record_detach,
8442 record_mourn_inferior, record_kill): Move to...
8443 * record.c: ...here.
8444 (DEBUG): New.
8445 (record_stop): New.
8446 (record_unpush): New.
8447 (cmd_record_stop): Call record_stop. Replace unpush_target
8448 call with record_unpush call.
8449 (record_disconnect, record_detach): Assert that the target
8450 is of record stratum. Call record_unpush, record_stop, and
8451 DEBUG.
8452 (record_mourn_inferior, record_kill): Assert that the target
8453 is of record stratum. Call record_unpush and DEBUG.
8454
25ea693b
MM
84552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8456
8457 * record-full.h, record-full.c (record_memory_query): Rename
8458 to ...
8459 (record_full_memory_query): ...this. Update all users.
8460 (record_arch_list_add_reg): Rename to ...
8461 (record_full_arch_list_add_reg): ...this. Update all users.
8462 (record_arch_list_add_mem): Rename to ...
8463 (record_full_arch_list_add_mem): ...this. Update all users.
8464 (record_arch_list_add_end): Rename to ...
8465 (record_full_arch_list_add_end): ...this. Update all users.
8466 (record_gdb_operation_disable_set): Rename to ...
8467 (record_full_gdb_operation_disable_set): ...this.
8468 Update all users.
8469
88d1aa9d
MM
84702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8471
8472 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8473 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8474 (RECORD_IS_REPLAY): Renamed to ...
8475 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8476 (RECORD_FILE_MAGIC): Renamed to ...
8477 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8478 (record_mem_entry): Renamed to ...
8479 (record_full_mem_entry): ... this. Updated all users.
8480 (record_reg_entry): Renamed to ...
8481 (record_full_reg_entry): ... this. Updated all users.
8482 (record_end_entry): Renamed to ...
8483 (record_full_end_entry): ... this. Updated all users.
8484 (record_type) <record_end, record_reg, record_mem>: Renamed
8485 to ...
8486 (record_full_type) <record_full_end, record_full_reg,
8487 record_full_mem>: ... this. Updated all users.
8488 (record_entry): Renamed to ...
8489 (record_full_entry): ... this. Updated all users.
8490 (record_core_buf_entry): Renamed to ...
8491 (record_full_core_buf_entry): ... this. Updated all users.
8492 (record_core_regbuf): Renamed to ...
8493 (record_full_core_regbuf): ... this. Updated all users.
8494 (record_core_start): Renamed to ...
8495 (record_full_core_start): ... this. Updated all users.
8496 (record_core_end): Renamed to ...
8497 (record_full_core_end): ... this. Updated all users.
8498 (record_core_buf_list): Renamed to ...
8499 (record_full_core_buf_list): ... this. Updated all users.
8500 (record_first): Renamed to ...
8501 (record_full_first): ... this. Updated all users.
8502 (record_list): Renamed to ...
8503 (record_full_list): ... this. Updated all users.
8504 (record_arch_list_head): Renamed to ...
8505 (record_full_arch_list_head): ... this. Updated all users.
8506 (record_arch_list_tail): Renamed to ...
8507 (record_full_arch_list_tail): ... this. Updated all users.
8508 (record_stop_at_limit): Renamed to ...
8509 (record_full_stop_at_limit): ... this. Updated all users.
8510 (record_insn_max_num): Renamed to ...
8511 (record_full_insn_max_num): ... this. Updated all users.
8512 (record_insn_num): Renamed to ...
8513 (record_full_insn_num): ... this. Updated all users.
8514 (record_insn_count): Renamed to ...
8515 (record_full_insn_count): ... this. Updated all users.
8516 (record_ops): Renamed to ...
8517 (record_full_ops): ... this. Updated all users.
8518 (record_core_ops): Renamed to ...
8519 (record_full_core_ops): ... this. Updated all users.
8520 (set_record_cmdlist): Renamed to ...
8521 (set_record_full_cmdlist): ... this. Updated all users.
8522 (show_record_cmdlist): Renamed to ...
8523 (show_record_full_cmdlist): ... this. Updated all users.
8524 (record_cmdlist): Renamed to ...
8525 (record_full_cmdlist): ... this. Updated all users.
8526 (record_beneath_to_resume_ops): Renamed to ...
8527 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8528 (record_beneath_to_resume): Renamed to ...
8529 (record_full_beneath_to_resume): ... this. Updated all users.
8530 (record_beneath_to_wait_ops): Renamed to ...
8531 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8532 (record_beneath_to_wait): Renamed to ...
8533 (record_full_beneath_to_wait): ... this. Updated all users.
8534 (record_beneath_to_store_registers_ops): Renamed to ...
8535 (record_full_beneath_to_store_registers_ops): ... this.
8536 Updated all users.
8537 (record_beneath_to_store_registers): Renamed to ...
8538 (record_full_beneath_to_store_registers): ... this.
8539 Updated all users.
8540 (record_beneath_to_xfer_partial_ops): Renamed to ...
8541 (record_full_beneath_to_xfer_partial_ops): ... this.
8542 Updated all users.
8543 (record_beneath_to_xfer_partial): Renamed to ...
8544 (record_full_beneath_to_xfer_partial): ... this.
8545 Updated all users.
8546 (record_beneath_to_insert_breakpoint): Renamed to ...
8547 (record_full_beneath_to_insert_breakpoint): ... this.
8548 Updated all users.
8549 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8550 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8551 Updated all users.
8552 (record_beneath_to_stopped_data_address): Renamed to ...
8553 (record_full_beneath_to_stopped_data_address): ... this.
8554 Updated all users.
8555 (record_beneath_to_async): Renamed to ...
8556 (record_full_beneath_to_async): ... this. Updated all users.
8557 (record_goto_insn): Renamed to ...
8558 (record_full_goto_insn): ... this. Updated all users.
8559 (record_save): Renamed to ...
8560 (record_full_save): ... this. Updated all users.
8561 (record_reg_alloc): Renamed to ...
8562 (record_full_reg_alloc): ... this. Updated all users.
8563 (record_reg_release): Renamed to ...
8564 (record_full_reg_release): ... this. Updated all users.
8565 (record_mem_alloc): Renamed to ...
8566 (record_full_mem_alloc): ... this. Updated all users.
8567 (record_mem_release): Renamed to ...
8568 (record_full_mem_release): ... this. Updated all users.
8569 (record_end_alloc): Renamed to ...
8570 (record_full_end_alloc): ... this. Updated all users.
8571 (record_end_release): Renamed to ...
8572 (record_full_end_release): ... this. Updated all users.
8573 (record_entry_release): Renamed to ...
8574 (record_full_entry_release): ... this. Updated all users.
8575 (record_list_release): Renamed to ...
8576 (record_full_list_release): ... this. Updated all users.
8577 (record_list_release_following): Renamed to ...
8578 (record_full_list_release_following): ... this.
8579 Updated all users.
8580 (record_list_release_first): Renamed to ...
8581 (record_full_list_release_first): ... this. Updated all users.
8582 (record_arch_list_add): Renamed to ...
8583 (record_full_arch_list_add): ... this. Updated all users.
8584 (record_get_loc): Renamed to ...
8585 (record_full_get_loc): ... this. Updated all users.
8586 (record_check_insn_num): Renamed to ...
8587 (record_full_check_insn_num): ... this. Updated all users.
8588 (record_arch_list_cleanups): Renamed to ...
8589 (record_full_arch_list_cleanups): ... this. Updated all users.
8590 (record_message): Renamed to ...
8591 (record_full_message): ... this. Updated all users.
8592 (record_message_wrapper): Renamed to ...
8593 (record_full_message_wrapper): ... this. Updated all users.
8594 (record_message_wrapper_safe): Renamed to ...
8595 (record_full_message_wrapper_safe): ... this. Updated all users.
8596 (record_gdb_operation_disable): Renamed to ...
8597 (record_full_gdb_operation_disable): ... this. Updated all users.
8598 (record_hw_watchpoint): Renamed to ...
8599 (record_full_hw_watchpoint): ... this. Updated all users.
8600 (record_exec_insn): Renamed to ...
8601 (record_full_exec_insn): ... this. Updated all users.
8602 (record_restore): Renamed to ...
8603 (record_full_restore): ... this. Updated all users.
8604 (record_async_inferior_event_token): Renamed to ...
8605 (record_full_async_inferior_event_token): ... this.
8606 Updated all users.
8607 (record_async_inferior_event_handler): Renamed to ...
8608 (record_full_async_inferior_event_handler): ... this.
8609 Updated all users.
8610 (record_core_open_1): Renamed to ...
8611 (record_full_core_open_1): ... this. Updated all users.
8612 (record_open_1): Renamed to ...
8613 (record_full_open_1): ... this. Updated all users.
8614 (record_open): Renamed to ...
8615 (record_full_open): ... this. Updated all users.
8616 (record_close): Renamed to ...
8617 (record_full_close): ... this. Updated all users.
8618 (record_resume_step): Renamed to ...
8619 (record_full_resume_step): ... this. Updated all users.
8620 (record_resumed): Renamed to ...
8621 (record_full_resumed): ... this. Updated all users.
8622 (record_execution_dir): Renamed to ...
8623 (record_full_execution_dir): ... this. Updated all users.
8624 (record_resume): Renamed to ...
8625 (record_full_resume): ... this. Updated all users.
8626 (record_get_sig): Renamed to ...
8627 (record_full_get_sig): ... this. Updated all users.
8628 (record_sig_handler): Renamed to ...
8629 (record_full_sig_handler): ... this. Updated all users.
8630 (record_wait_cleanups): Renamed to ...
8631 (record_full_wait_cleanups): ... this. Updated all users.
8632 (record_wait_1): Renamed to ...
8633 (record_full_wait_1): ... this. Updated all users.
8634 (record_wait): Renamed to ...
8635 (record_full_wait): ... this. Updated all users.
8636 (record_stopped_by_watchpoint): Renamed to ...
8637 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8638 (record_disconnect): Renamed to ...
8639 (record_full_disconnect): ... this. Updated all users.
8640 (record_detach): Renamed to ...
8641 (record_full_detach): ... this. Updated all users.
8642 (record_mourn_inferior): Renamed to ...
8643 (record_full_mourn_inferior): ... this. Updated all users.
8644 (record_kill): Renamed to ...
8645 (record_full_kill): ... this. Updated all users.
8646 (record_stopped_data_address): Renamed to ...
8647 (record_full_stopped_data_address): ... this. Updated all users.
8648 (record_registers_change): Renamed to ...
8649 (record_full_registers_change): ... this. Updated all users.
8650 (record_store_registers): Renamed to ...
8651 (record_full_store_registers): ... this. Updated all users.
8652 (record_xfer_partial): Renamed to ...
8653 (record_full_xfer_partial): ... this. Updated all users.
8654 (record_breakpoint): Renamed to ...
8655 (record_full_breakpoint): ... this. Updated all users.
8656 (record_breakpoint_p): Renamed to ...
8657 (record_full_breakpoint_p): ... this. Updated all users.
8658 (record_breakpoints): Renamed to ...
8659 (record_full_breakpoints): ... this. Updated all users.
8660 (record_sync_record_breakpoints): Renamed to ...
8661 (record_full_sync_record_breakpoints): ... this.
8662 Updated all users.
8663 (record_init_record_breakpoints): Renamed to ...
8664 (record_full_init_record_breakpoints): ... this.
8665 Updated all users.
8666 (record_insert_breakpoint): Renamed to ...
8667 (record_full_insert_breakpoint): ... this. Updated all users.
8668 (record_remove_breakpoint): Renamed to ...
8669 (record_full_remove_breakpoint): ... this. Updated all users.
8670 (record_can_execute_reverse): Renamed to ...
8671 (record_full_can_execute_reverse): ... this. Updated all users.
8672 (record_get_bookmark): Renamed to ...
8673 (record_full_get_bookmark): ... this. Updated all users.
8674 (record_goto_bookmark): Renamed to ...
8675 (record_full_goto_bookmark): ... this. Updated all users.
8676 (record_async): Renamed to ...
8677 (record_full_async): ... this. Updated all users.
8678 (record_can_async_p): Renamed to ...
8679 (record_full_can_async_p): ... this. Updated all users.
8680 (record_is_async_p): Renamed to ...
8681 (record_full_is_async_p): ... this. Updated all users.
8682 (record_execution_direction): Renamed to ...
8683 (record_full_execution_direction): ... this. Updated all users.
8684 (record_info): Renamed to ...
8685 (record_full_info): ... this. Updated all users.
8686 (record_delete): Renamed to ...
8687 (record_full_delete): ... this. Updated all users.
8688 (record_is_replaying): Renamed to ...
8689 (record_full_is_replaying): ... this. Updated all users.
8690 (record_goto_entry): Renamed to ...
8691 (record_full_goto_entry): ... this. Updated all users.
8692 (record_goto_begin): Renamed to ...
8693 (record_full_goto_begin): ... this. Updated all users.
8694 (record_goto_end): Renamed to ...
8695 (record_full_goto_end): ... this. Updated all users.
8696 (record_goto): Renamed to ...
8697 (record_full_goto): ... this. Updated all users.
8698 (init_record_ops): Renamed to ...
8699 (init_record_full_ops): ... this. Updated all users.
8700 (record_core_resume): Renamed to ...
8701 (record_full_core_resume): ... this. Updated all users.
8702 (record_core_kill): Renamed to ...
8703 (record_full_core_kill): ... this. Updated all users.
8704 (record_core_fetch_registers): Renamed to ...
8705 (record_full_core_fetch_registers): ... this. Updated all users.
8706 (record_core_prepare_to_store): Renamed to ...
8707 (record_full_core_prepare_to_store): ... this. Updated all users.
8708 (record_core_store_registers): Renamed to ...
8709 (record_full_core_store_registers): ... this. Updated all users.
8710 (record_core_xfer_partial): Renamed to ...
8711 (record_full_core_xfer_partial): ... this. Updated all users.
8712 (record_core_insert_breakpoint): Renamed to ...
8713 (record_full_core_insert_breakpoint): ... this. Updated all users.
8714 (record_core_remove_breakpoint): Renamed to ...
8715 (record_full_core_remove_breakpoint): ... this. Updated all users.
8716 (record_core_has_execution): Renamed to ...
8717 (record_full_core_has_execution): ... this. Updated all users.
8718 (init_record_core_ops): Renamed to ...
8719 (init_record_full_core_ops): ... this. Updated all users.
8720 (cmd_record_restore): Renamed to ...
8721 (cmd_record_full_restore): ... this. Updated all users.
8722 (record_save_cleanups): Renamed to ...
8723 (record_full_save_cleanups): ... this. Updated all users.
8724 (cmd_record_start): Renamed to ...
8725 (cmd_record_full_start): ... this. Updated all users.
8726 (set_record_insn_max_num): Renamed to ...
8727 (set_record_full_insn_max_num): ... this. Updated all users.
8728 (set_record_command): Renamed to ...
8729 (set_record_full_command): ... this. Updated all users.
8730 (show_record_command): Renamed to ...
8731 (show_record_full_command): ... this. Updated all users.
8732 (_initialize_record): Renamed to ...
8733 (_initialize_record_full): ... this. Updated all users.
8734
d02ed0bb
MM
87352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8736
8737 * record.h: Split into this and ...
8738 * record-full.h: ... this.
8739 * record.c: Split into this and ...
8740 * record-full.c: ... this.
8741 * target.h (target_ops): Add new fields to_info_record,
8742 to_save_record, to_delete_record, to_record_is_replaying,
8743 to_goto_record_begin, to_goto_record_end, to_goto_record.
8744 (target_info_record): New.
8745 (target_save_record): New.
8746 (target_supports_delete_record): New.
8747 (target_delete_record): New.
8748 (target_record_is_replaying): New.
8749 (target_goto_record_begin): New.
8750 (target_goto_record_end): New.
8751 (target_goto_record): New.
8752 * target.c (target_info_record): New.
8753 (target_save_record): New.
8754 (target_supports_delete_record): New.
8755 (target_delete_record): New.
8756 (target_record_is_replaying): New.
8757 (target_goto_record_begin): New.
8758 (target_goto_record_end): New.
8759 (target_goto_record): New.
8760 * record.h: Declare struct cmd_list_element.
8761 (record_cmdlist): New declaration.
8762 (set_record_cmdlist): New declaration.
8763 (show_record_cmdlist): New declaration.
8764 (info_record_cmdlist): New declaration.
8765 (cmd_record_goto): New declaration.
8766 * record.c: Remove unnecessary includes.
8767 Include inferior.h.
8768 (cmd_record_goto): Remove declaration.
8769 (record_cmdlist): Now extern. Initialize.
8770 (set_record_cmdlist): Now extern. Initialize.
8771 (show_record_cmdlist): Now extern. Initialize.
8772 (info_record_cmdlist): Now extern. Initialize.
8773 (find_record_target): New.
8774 (require_record_target): New.
8775 (cmd_record_start): Update.
8776 (cmd_record_delete): Remove target-specific code.
8777 Call target_delete_record.
8778 (cmd_record_stop): Unpush any record target.
8779 (set_record_insn_max_num): Move to record-full.c
8780 (set_record_command): Add comment.
8781 (show_record_command): Add comment.
8782 (info_record_command): Update comment.
8783 Remove target-specific code.
8784 Call the record target's to_info_record.
8785 (cmd_record_start): New.
8786 (cmd_record_goto): Now extern.
8787 Remove target-specific code.
8788 Call target_goto_begin, target_goto_end, or target_goto.
8789 (_initialize_record): Move record target ops initialization to
8790 record-full.c.
8791 Change "record" command help text.
8792 Move "record restore", "record set", and "record show" commands to
8793 record-full.c.
8794 * Makefile.in (SFILES): Add record-full.c.
8795 (HFILES_NO_SRCDIR): Add record-full.h.
8796 (COMMON_OBS): Add record-full.o.
8797 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8798 * arm-tdep.c: Include record-full.h.
8799 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8800 * i386-tdep.c: Include record-full.h.
8801 * infrun.c: Include record-full.h.
8802 * linux-record.c: Include record-full.h.
8803 * moxie-tdep.c: Include record-full.h.
8804 * record-full.c: Include record-full.h.
8805 Change module comment.
8806 (set_record_full_cmdlist): New.
8807 (show_record_full_cmdlist): New.
8808 (record_full_cmdlist): New.
8809 (record_goto_insn): New declaration.
8810 (record_save): New declaration.
8811 (record_check_insn_num): Change query string.
8812 (record_info): New.
8813 (record_delete): New.
8814 (record_is_replaying): New.
8815 (record_goto_entry): New.
8816 (record_goto_begin): New.
8817 (record_goto_end): New.
8818 (record_goto): New.
8819 (init_record_ops): Update.
8820 (init_record_core_ops): Update.
8821 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8822 (cmd_record_start): New.
8823 (set_record_insn_max_num): Moved from record.c
8824 (set_record_full_command): New.
8825 (show_record_full_command): New.
8826 (_initialize_record_full): New.
8827
b48d48eb
MM
88282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8829
8830 * target.h (add_deprecated_target_alias): New.
8831 * target.c (add_deprecated_target_alias): New.
8832
a950d57c
MM
88332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8834
8835 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8836 and signal.h.
8837 (linux_supports_btrace): Add kernel and
8838 cpuid check.
8839 (kernel_supports_btrace): New function.
8840 (cpu_supports_btrace): New function.
8841 (intel_supports_btrace): New function.
8842
9accd112
MM
88432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8844
8845 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8846 * remote.c: Include btrace.h.
8847 (struct btrace_target_info): New struct.
8848 (remote_supports_btrace): New function.
8849 (send_Qbtrace): New function.
8850 (remote_enable_btrace): New function.
8851 (remote_disable_btrace): New function.
8852 (remote_teardown_btrace): New function.
8853 (remote_read_btrace): New function.
8854 (init_remote_ops): Add btrace ops.
8855 (enum <unnamed>): Add btrace packets.
8856 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8857 (_initialize_remote): Add packet configuration for branch tracing.
8858
c12a2917
MM
88592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8860
8861 * features/btrace.dtd: New file.
8862 * Makefile.in (XMLFILES): Add btrace.dtd.
8863 * btrace.h (parse_xml_btrace): New declaration.
8864 * btrace.c: Include xml-support.h.
8865 (parse_xml_btrace): New function.
8866 (parse_xml_btrace_block): New function.
8867 (block_attributes): New struct.
8868 (btrace_attributes): New struct.
8869 (btrace_children): New struct.
8870 (btrace_elements): New struct.
8871
3e3aea48
MM
88722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8873
8874 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8875 (amd64_linux_enable_btrace): New.
8876 (amd64_linux_disable_btrace): New.
8877 (amd64_linux_teardown_btrace): New.
8878 (_initialize_amd64_linux_nat): Initialize btrace ops.
8879 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8880 (i386_linux_enable_btrace): New.
8881 (i386_linux_disable_btrace): New.
8882 (i386_linux_teardown_btrace): New.
8883 (_initialize_i386_linux_nat): Initialize btrace ops.
8884 * config/i386/linux.mh: Add linux-btrace.o.
8885 * config/i386/linux64.mh: Add linux-btrace.o.
8886
7c97f91e
MM
88872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8888
8889 * common/linux_btrace.h: New file.
8890 * common/linux_btrace.c: New file.
8891 * Makefile.in (SFILES): Add btrace.c.
8892 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8893 (COMMON_OBS): Add btrace.o.
8894 (linux-btrace.o): New rule.
8895
1999790b 88962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8897
8898 * target.h: Include btrace.h.
8899 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8900 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8901 * target.c (target_supports_btrace): New function.
8902 (target_enable_btrace): New function.
8903 (target_disable_btrace): New function.
8904 (target_teardown_btrace): New function.
8905 (target_read_btrace): New function.
8906 * btrace.h: New file.
8907 * btrace.c: New file.
8908 * Makefile.in: Add btrace.c.
8909 * gdbthread.h: Include btrace.h.
8910 (struct thread_info): Add btrace field.
8911 * thread.c: Include btrace.h.
8912 (clear_thread_inferior_resources): Call target_teardown_btrace.
8913 * common/btrace-common.h: New file.
8914
61a31a67
JK
89152013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8916
8917 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8918 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8919 kill_status to outer block.
8920
05c56a9d
JK
89212013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8922
8923 Fix entry-values if the callee called a noreturn function.
8924 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8925 get_frame_address_in_block. Add new comment.
8926
9112db09
JK
89272013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8928
8929 Fix entry-values in C++ across CUs.
8930 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8931 lookup_minimal_symbol. Add a comment.
8932 * dwarf2read.c
8933 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8934 DW_AT_linkage_name.
8935
9b67fcec
YQ
89362013-03-08 Yao Qi <yao@codesourcery.com>
8937
8938 * tracepoint.c (_initialize_tracepoint): Indent the code.
8939
6221be90
PA
89402013-03-08 Pedro Alves <palves@redhat.com>
8941
8942 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8943 (parse_find_args, find_command): Change type of pattern buffer
8944 locals to 'gdb_byte *'.
8945
be9a119c 89462013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8947 Hafiz Abid Qadeer <abidh@codesourcery.com>
8948
8949 * NEWS: Mention set and show trace-buffer-size commands.
8950 Mention new packet.
8951 * target.h (struct target_ops): New method
8952 to_set_trace_buffer_size.
8953 (target_set_trace_buffer_size): New macro.
8954 * target.c (update_current_target): Set up new method.
8955 * tracepoint.c (trace_buffer_size): New global.
8956 (start_tracing): Send it to the target.
8957 (set_trace_buffer_size): New function.
8958 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8959 * remote.c (remote_set_trace_buffer_size): New function.
8960 (_initialize_remote): Use it.
8961 (QTBuffer:size) New remote command.
8962 (PACKET_QTBuffer_size): New enum.
8963 (remote_protocol_features): Add an entry for
8964 PACKET_QTBuffer_size.
8965
7da3ab79
TT
89662013-03-08 Tom Tromey <tromey@redhat.com>
8967
8968 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8969 variable.
8970
0c1f71e7
PA
89712013-03-07 Pedro Alves <palves@redhat.com>
8972
8973 * target.c (target_read_stralloc, target_fileio_read_alloc):
8974 *Cast pointer to 'gdb_byte *' in target call.
8975
c8af03a2
PA
89762013-03-07 Pedro Alves <palves@redhat.com>
8977
8978 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8979 call.
8980
529480d0
KS
89812013-03-07 Keith Seitz <keiths@redhat.com>
8982
8983 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8984 (trace_pass_command): Likewise.
8985 * cli/cli-cmds.c: Include cli/cli-utils.h.
8986 (source_command): Use skip-spaces.
8987 (disassemble_command): Likewise.
8988 * findcmd.c: Include cli/cli-utils.h.
8989 (parse_find_args): Use skip_spaces.
8990 * go32-nat.c: Include cli/cli-utils.h.
8991 (go32_sldt): Use skip_spaces.
8992 (go32_sgdt): Likewise.
8993 (go32_sidt): Likewise.
8994 (go32_pde): Likewise.
8995 (go32_pte): Likewise.
8996 (go32_pte_for_address): Likewise.
8997 * infcmd.c: Include cli/cli-utils.h.
8998 (registers_info): Use skip_spaces.
8999 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9000 (linux_info_proc): Likewise.
9001 * linux-thread-db.c: Include cli/cli-utils.h.
9002 (info_auto_load_libthread_db): Use skip_spaces_const.
9003 * m32r-rom.c: Include cli/cli-utils.h.
9004 (m32r_upload_command): Use skip_spaces.
9005 * maint.c: Include cli/cli-utils.h.
9006 (maintenance_translate_address): Use skip_spaces.
9007 * mi/mi-parse.c: Include cli/cli-utils.h.
9008 (mi_parse_argv): Use skip_spaces.
9009 (mi_parse): Likewise.
9010 * minsyms.c: Include cli/cli-utils.h.
9011 (msymbol_hash_iw): Use skip_spaces_const.
9012 * objc-lang.c: Include cli/cli-utils.h.
9013 (parse_selector): Use skip_spaces.
9014 (parse_method): Likewise.
9015 * python/python.c: Include cli/cli-utils.h.
9016 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9017 (python_command)[HAVE_PYTHON]: Likewise.
9018 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9019 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9020 (m32r_load): Use skip_spaces.
9021 * serial.c: Include cli/cli-utils.h.
9022 (serial_open): Use skip_spaces_const.
9023 * stack.c: Include cli/cli-utils.h.
9024 (parse_frame_specification_1): Use skip_spaces_const.
9025 * symfile.c: Include cli/cli-utils.h.
9026 (set_ext_lang_command): Use skip_spaces.
9027 * symtab.c: Include cli/cli-utils.h.
9028 (rbreak_command): Use skip_spaces.
9029 * thread.c (thread_name_command): Use skip_spaces.
9030 * tracepoint.c (validate_actionline): Use skip_spaces.
9031 (encode_actions_1): Likewise.
9032 (trace_find_range_command): Likewise.
9033 (trace_find_outside_command): Likewise.
9034 (trace_dump_actions): Likewise.
9035
ac91cd70
PA
90362013-03-07 Pedro Alves <palves@redhat.com>
9037
9038 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9039 * expprint.c (print_subexp_standard): Likewise.
9040 * utils.c (host_char_to_target): Likewise.
9041 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9042 * varobj.c (value_get_print_value): Change type of local to char*.
9043 Cast it gdb_byte * in call to language printer.
9044
2898e560
PA
90452013-03-07 Pedro Alves <palves@redhat.com>
9046
9047 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9048 gdb_byte *'.
9049 (make_wchar_iterator): Remove cast to char*.
9050 (wchar_iterate): Change type of local.
9051
a09b4448
PA
90522013-03-07 Pedro Alves <palves@redhat.com>
9053
9054 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9055 for 'regcache->register_status'.
9056
20ced3e4
PA
90572013-03-07 Pedro Alves <palves@redhat.com>
9058
c2d6a675 9059 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9060 int.
9061
fe106009
PA
90622013-03-07 Pedro Alves <palves@redhat.com>
9063
9064 * stap-probe.c (handle_stap_probe): Add cast to char*.
9065
8ac2c12b
PA
90662013-03-07 Pedro Alves <palves@redhat.com>
9067
9068 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9069 RECORD_MSGRCV>: Pass a signed variable to
9070 regcache_raw_read_signed, instead of an unsigned one.
9071
99f0a309
PA
90722013-03-07 Pedro Alves <palves@redhat.com>
9073
9074 * remote-notif.c (notif_debug): Change type to int.
9075 * remote-notif.h (notif_debug): Likewise.
9076
964b8317
PA
90772013-03-07 Pedro Alves <palves@redhat.com>
9078
9079 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9080
f0cc8ad4
PA
90812013-03-07 Pedro Alves <palves@redhat.com>
9082
9083 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9084 * remote.h (hex2bin, bin2hex): ... here.
9085 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9086
77dec115
EZ
90872013-03-07 Eli Zaretskii <eliz@gnu.org>
9088
9089 * utils.c (initialize_utils): Improve doc strings of "set/show
9090 width", "set/show height", and "set/show pagination".
9091
741d92cf
KS
90922013-03-06 Keith Seitz <keiths@redhat.com>
9093
9094 * ax-gdb.c (gen_printf): Make FORMAT const.
9095 * ax-gdb.h (gen_printf): Likewise.
9096 * ax-general.c (ax_string): Make STR const.
9097 * ax.h (ax_string): Likewise.
9098
7b6c814e
DE
90992013-03-06 Doug Evans <dje@google.com>
9100
9101 * elfread.c (elf_symfile_read): Move debugging printf to more
9102 logical location.
9103
634334ab
PA
91042013-03-06 Pedro Alves <palves@redhat.com>
9105
9106 * python/py-utils.c (target_string_to_unicode): Delete function.
9107 * python/python-internal.h (target_string_to_unicode): Delete
9108 declaration.
9109
e482a1a7
PM
91102013-03-06 Pierre Muller <muller@sourceware.org>
9111
9112 * linespec.c (get_current_search_block): ARI fix, use (void)
9113 for empty parameter list.
9114
4eeaa230
DE
91152013-03-05 Doug Evans <dje@google.com>
9116
9117 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9118 of old ada_lookup_symbol_list. In !full_search case, don't
9119 search superblocks.
9120 (ada_lookup_symbol_list): Delete arg full_search, all callers
9121 updated. Call ada_lookup_symbol_list_worker.
9122 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9123 * ada-lang.h (ada_lookup_symbol_list): Update.
9124 * language.h (language_defn): Update comment for
9125 la_iterate_over_symbols.
9126 * linespec.c (iterate_over_file_blocks): New function.
9127 (iterate_over_all_matching_symtabs): Call it.
9128 (lookup_prefix_sym): Ditto.
9129 (get_current_search_block): New function.
9130 (get_search_block): Delete.
9131 (find_label_symbols): Call get_current_search_block.
9132 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9133 * symtab.c (iterate_over_symbols): Don't search superblocks.
9134
b69b1fb1
YQ
91352013-03-05 Yao Qi <yao@codesourcery.com>
9136
9137 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9138 parameter VAR's type from "unsigned int" to "int".
9139 * command.h (var_zuinteger_unlimited): Update its comments.
9140 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9141
3c095f49
CV
91422013-03-05 Corinna Vinschen <vinschen@redhat.de>
9143
9144 * NEWS: Mention new target x86_64-*-cygwin*.
9145
b5b0b0af
CV
91462013-03-05 Corinna Vinschen <vinschen@redhat.de>
9147
9148 * configure.host: Add x86_64-*-cygwin* as host.
9149 * configure.tgt: Add x86_64-*-cygwin* as target.
9150 * config/i386/cygwin64.mh: New file.
9151
f6f99966
JK
91522013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9155
33f448b1
JK
91562013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9157
9158 * linespec.c (struct linespec_canonical_name): New.
9159 (struct linespec_state): Change canonical_names type to it.
9160 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9161 xrealloc element size. Initialize the different CANONICAL fields.
9162 (canonical_to_fullform): New.
9163 (filter_results): Use it. Add variables canonical, fullform and
9164 cleanup.
9165 (struct decode_line_2_item, decode_line_2_compare_items): New.
9166 (decode_line_2): Remove variables iter and item_names, add variables
9167 items and items_count. Modify the code for these new variables.
9168
feb14725
CV
91692013-03-04 Corinna Vinschen <vinschen@redhat.com>
9170
9171 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9172 calling do_cleanup.
9173
e83b17ba
HZ
91742013-03-04 Luis Machado <lgustavo@codesourcery.com>
9175
9176 * tracepoint.c (build_traceframe_info): Add code for byte order.
9177
a2d13a0d
KB
91782013-03-02 Kevin Buettner <kevinb@redhat.com>
9179
8dddcae8
KB
9180 * v850-tdep.c: (v850e2_register_name): Revise system register
9181 names to match current V850E2M architecture specifications.
9182 Update register number enum comments too.
f5aee5ee 9183
d79e58d8
JW
91842013-03-01 Jiong Wang <jiwang@tilera.com>
9185 Pedro Alves <palves@redhat.com>
9186
9187 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9188 to END_ADDR.
9189 (tilegx_skip_prologue): Limit prologue analysis to section end.
9190
c4be5165
JK
91912013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9192
9193 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9194 use it.
9195
e362b510
PA
91962013-03-01 Pedro Alves <palves@redhat.com>
9197
9198 Use gdb_byte for bytes from the program being debugged.
9199
9200 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9201 Change type of local 'buf' to gdb_byte.
9202 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9203 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9204 * cris-tdep.c (cris_sigcontext_addr)
9205 (cris_sigtramp_frame_unwind_cache): Likewise.
9206 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9207 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9208 Likewise.
9209 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9210 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9211 (hppa32_hpux_search_dummy_call_sequence)
9212 (hppa_hpux_supply_save_state): Likewise.
9213 * hppa-linux-tdep.c (insns_match_pattern)
9214 (hppa_linux_find_global_pointer): Likewise.
9215 * hppa-tdep.c (hppa_in_function_epilogue_p)
9216 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9217 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9218 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9219 (i386fbsd_collect_uthread): Likewise.
9220 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9221 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9222 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9223 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9224 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9225 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9226 (ia64_libunwind_frame_prev_register)
9227 (ia64_libunwind_sigtramp_frame_this_id)
9228 (ia64_find_global_pointer_from_dynamic_section)
9229 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9230 (ia64_unwind_pc): Likewise.
9231 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9232 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9233 (m68hc11_extract_return_value): Likewise.
9234 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9235 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9236 (mep_get_insn, mep_push_dummy_call): Likewise.
9237 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9238 (mips_linux_in_dynsym_stub): Likewise.
9239 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9240 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9241 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9242 to gdb_byte.
9243 * remote-mips.c (mips_set_register): Likewise.
9244 * remote-sim.c (gdbsim_fetch_register): Likewise.
9245 * score-tdep.c (score7_fetch_inst): Change type of parameter
9246 'memblock' and local 'buf' to gdb_byte.
9247 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9248 Change type of local 'buf' to gdb_byte. Adjust.
9249 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9250 to gdb_byte**.
9251 (score7_analyze_prologue): Change type of 'memblock' and
9252 'memblock_ptr' locals to gdb_byte*.
9253 * sh64-tdep.c (sh64_extract_return_value)
9254 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9255 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9256 * solib-pa64.c (pa64_solib_create_inferior_hook)
9257 (pa64_open_symbol_file_object): Remove local 'buf'.
9258 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9259 (som_open_symbol_file_object): Likewise.
9260 * solib-spu.c (spu_current_sos): Likewise.
9261 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9262 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9263 (spu_store_registers): Likewise.
9264 * target.c (debug_print_register): Likewise.
9265 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9266 * xstormy16-tdep.c (xstormy16_store_return_value)
9267 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9268 (xstormy16_find_jmp_table_entry): Likewise.
9269
75cc61ca 92702013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9271
9272 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9273 (tilegx_gdbarch_init): Install it.
9274
ddb08e9c
TT
92752013-02-28 Tom Tromey <tromey@redhat.com>
9276
9277 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9278 PyLong_Check.
9279
62d7fb51
DE
92802013-02-28 Doug Evans <dje@google.com>
9281
9282 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9283 * python/python.c (gdbpy_find_pc_line): Ditto.
9284
c4a9e8b4
TT
92852013-02-28 Tom Tromey <tromey@redhat.com>
9286
9287 * contrib/excheck.py: New file.
9288 * contrib/exsummary.py: New file.
9289 * contrib/gcc-with-excheck: New file.
9290
7f6a5dde
TT
92912013-02-28 Tom Tromey <tromey@redhat.com>
9292
9293 * python/python.c (gdbpy_print_stack): Call begin_line and
9294 fprintf_filtered inside TRY_CATCH.
9295
9e974e55
TT
92962013-02-28 Tom Tromey <tromey@redhat.com>
9297
9298 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9299 inside TRY_CATCH.
9300
dd5fa3e7
TT
93012013-02-28 Tom Tromey <tromey@redhat.com>
9302
9303 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9304 frame_object_to_frame_info inside TRY_CATCH.
9305
86a3263f
TT
93062013-02-28 Tom Tromey <tromey@redhat.com>
9307
9308 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9309 TRY_CATCH.
9310
81b52a3a
TT
93112013-02-28 Tom Tromey <tromey@redhat.com>
9312
9313 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9314
d50a0ce2
CV
93152013-02-27 Corinna Vinschen <vinschen@redhat.com>
9316
9317 * windows-nat.c: Throughout, fix format strings and casts of
9318 printf-like functions to avoid type related warnings on all
9319 platforms.
9320 (handle_output_debug_string): Fetch context information address
9321 from debug string using string_to_core_addr.
9322
e1f58301
JW
93232013-02-27 Jiong Wang <jiwang@tilera.com>
9324
9325 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9326 * regformats/reg-tilegx32.dat: New.
9327
4fcd89fc
JW
93282013-02-27 Jiong Wang <jiwang@tilera.com>
9329
9330 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9331
748d24e6
JW
93322013-02-27 Jiong Wang <jiwang@tilera.com>
9333
9334 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9335
6c8e944d
YQ
93362013-02-27 Yao Qi <yao@codesourcery.com>
9337 Pedro Alves <palves@redhat.com>
9338
9339 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9340 pc/tp/range/outside, look for the next trace frame instead of
9341 always starting from frame 0.
6c8e944d 9342
acd7db30
AG
93432013-02-26 Anthony Green <green@moxielogic.com>
9344
9345 * configure.tgt: Add support for moxie-*-rtems* target.
9346
025e6dce
PA
93472013-02-25 Pedro Alves <palves@redhat.com>
9348
9349 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9350 warning text.
9351
ca9c94ef
MR
93522013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9353
9354 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9355 if $fp is used as the virtual frame pointer.
9356
24c274a1
AM
93572013-02-23 Alan Modra <amodra@gmail.com>
9358
9359 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9360 symbol size.
9361 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9362 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9363 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9364 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9365
bfada189
JK
93662013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 Code cleanup.
9369 * elfread.c (build_id_bfd_get): Make the return type const.
9370 (build_id_verify): Make the check parameter const.
9371 (build_id_to_debug_filename): Make the build_id parameter and variable
9372 data const.
9373 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9374
c0355132
AM
93752013-02-21 Alan Modra <amodra@gmail.com>
9376
9377 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9378
9f44fbc0
SCR
93792013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9380
9381 Add a new method 'disassemble' to gdb.Architecture class.
9382 * python/py-arch.c (archpy_disassmble): Implementation of the
9383 new method gdb.Architecture.disassemble.
9384 (arch_object_methods): Add entry for the new method.
9385
b74ea3eb
JW
93862013-02-20 Jiong Wang <jiwang@tilera.com>
9387
9388 * MAINTAINERS (Write After Approval): Add myself to the list.
9389
61a672f1
PA
93902013-02-19 Pedro Alves <palves@redhat.com>
9391
9392 Garbage collect 'struct monitor_ops'::load_routine.
9393
9394 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9395 * monitor.c (monitor_load): No longer call
9396 current_monitor->load_routine.
9397 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9398 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9399 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9400
40e397df
PA
94012013-02-19 Pedro Alves <palves@redhat.com>
9402
9403 PR gdb/15161
9404
9405 Harmonize with generic_load.
9406
9407 * monitor.c: Include "readline/readline.h".
9408 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9409 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9410 long/strtol for the 'load_offset' local. Error out if no argument
9411 is given or if too many arguments are given. Tilde expand the
9412 passed in file name.
9413
f698ca8e
KT
94142013-02-19 Kai Tietz <ktietz@redhat.com>
9415
9416 PR gdb/15161
9417 * symfile.c (load_section_data): Change type of load_offset
9418 to CORE_ADDR.
9419 (generic_load): User strtoulst instead of strtoul for conversion
9420 of load_offset.
9421
3361b059
WL
94222013-02-19 Jiong Wang <jiwang@tilera.com>
9423
9424 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9425 for return address, "lr" register, saved on stack.
9426 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9427 after we invoke tilegx_analyze_prologue.
9428
3e9d5130
WL
94292013-02-19 Jiong Wang <jiwang@tilera.com>
9430
bb1bcd86
WL
9431 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9432
3361b059 94332013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9434
b74ea3eb 9435 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9436
4aaf2503
WL
94372013-02-19 Jiong Wang <jiwang@tilera.com>
9438
b74ea3eb 9439 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9440 (tilegx_write_pc): New function.
9441 (tilegx_cannot_reference_register): Return zero if REGNO
9442 is TILEGX_FAULTNUM_REGNUM.
9443 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9444 (tilegx_register_name): Add handling of "faultnum" register.
9445 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9446 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9447 handling of TILEGX_FAULTNUM_REGNUM.
9448 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9449
bc23a956
WL
94502013-02-19 Jiong Wang <jiwang@tilera.com>
9451
9452 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9453 should be aligned to 64bit.
bc23a956 9454
42f45f1a
KT
94552013-02-19 Kai Tietz <ktietz@redhat.com>
9456
9457 * windows-nat.c (windows_xfer_memory): Fix debug-output
9458 for LLP64.
9459
6ce4c112
LL
94602013-02-19 Lei Liu <lei.liu2@windriver.com>
9461
9462 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9463 Don't check DSP register number if HAVE_DSP is not set.
9464
30e8ee25
AM
94652013-02-19 Alan Modra <amodra@gmail.com>
9466
9467 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9468 throughout file instead.
9469 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9470 Don't xmalloc return value.
9471 (build_id_verify): Similarly. Don't xfree.
9472 (build_id_to_debug_filename): Update.
9473 (find_separate_debug_file_by_buildid): Update, don't xfree.
9474
4c9ad8c2
TT
94752013-02-18 Tom Tromey <tromey@redhat.com>
9476
9477 PR gdb/15102:
9478 * dwarf2read.c (read_subrange_type): Use result of
9479 'check_typedef'.
9480
983dc440
YQ
94812013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9482
9483 * frame.c: Remove one extra white space after #include
9484 directive.
9485
7fb2b84a
JK
94862013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9489
edceb2a9
JK
94902013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9491
9492 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9493 and dir commands into an if block.
9494
e81b7af8
TT
94952013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9496
9497 * python/py-breakpoint (struct pybp_code): Use int instead of
9498 enum type_code.
9499
f5911ea1
HAQ
95002013-02-15 Pedro Alves <pedro@codesourcery.com>
9501 Hafiz Abid Qadeer <abidh@codesourcery.com>
9502
9503 * NEWS: Mention new field "trace-file".
9504 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9505 (tfile_open): Record the trace file's filename in the trace
9506 status.
9507 (tfile_files_info): Mention the name of the trace file.
9508 Check the "filename" field explicitely.
9509 (trace_status_command): Explicitely check "filename" field.
9510 (trace_find_command): Ditto.
9511 (trace_find_pc_command): Ditto.
9512 (trace_find_tracepoint_command): Ditto.
9513 (trace_find_line_command): Ditto.
9514 (trace_find_range_command): Ditto.
9515 (trace_find_outside_command): Ditto.
9516 * tracepoint.h (struct trace_status) <from_file>: Rename it
9517 to "filename" and make it hold the trace file's filename
9518 instead of a boolean.
9519 * remote.c (remote_get_trace_status): Initialize "filename"
9520 field with NULL instead of 0.
9521
796cb314
YQ
95222013-02-15 Yao Qi <yao@codesourcery.com>
9523
9524 * remote.c: Fix a typo.
9525
42e79b1d
PM
95262013-02-14 Pierre Muller <muller@sourceware.org>
9527
9528 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9529
baea0dae
PA
95302013-02-14 Pedro Alves <palves@redhat.com>
9531
9532 * utils.c (savestring): Don't #undef it. Move function to
9533 common/common-utils.c.
9534 * common/common-utils.c: Include gdb_string.h.
9535 (savestring): Move here from utils.c.
9536 * common/common-utils.h (savestring): Declare.
9537
57c3b6ed
PA
95382013-02-14 Pedro Alves <palves@redhat.com>
9539
9540 * utils.c (savestring): Rename parameter 'size' to 'len'.
9541
d6c44983
YZ
95422013-02-14 Pedro Alves <palves@redhat.com>
9543 Yufeng Zhang <yufeng.zhang@arm.com>
9544
9545 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9546 (aarch64_inferior_data, struct aarch64_inferior_data):
9547 Delete.
9548 (struct aarch64_process_info): New.
9549 (aarch64_process_list): New global.
9550 (aarch64_find_process_pid, aarch64_add_process)
9551 (aarch64_process_info_get): New functions.
9552 (aarch64_inferior_data_get): Delete.
9553 (aarch64_process_info_get): New function.
9554 (aarch64_forget_process): New function.
9555 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9556 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9557 aarch64_get_debug_reg_state.
9558 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9559 instead of linux_nat_iterate_watchpoint_lwps.
9560 (aarch64_linux_new_fork): New function.
9561 (aarch64_linux_child_post_startup_inferior): Use
9562 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9563 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9564 (aarch64_linux_remove_hw_breakpoint)
9565 (aarch64_handle_aligned_watchpoint)
9566 (aarch64_handle_unaligned_watchpoint)
9567 (aarch64_linux_insert_watchpoint)
9568 (aarch64_linux_remove_watchpoint)
9569 (aarch64_linux_stopped_data_address): Adjust to pass the current
9570 process id to aarch64_debug_reg_state.
9571 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9572 linux_nat_new_fork hook, and aarch64_forget_process as
9573 linux_nat_forget_process hook; remove the call to
9574 register_inferior_data_with_cleanup.
9575
4819b3f8
PA
95762013-02-14 Pedro Alves <palves@redhat.com>
9577
9578 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9579 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9580 lval_memory.
9581
1773c82c
HAQ
95822013-02-14 Pedro Alves <pedro@codesourcery.com>
9583 Hafiz Abid Qadeer <abidh@codesourcery.com>
9584
9585 * tracepoint.h (validate_trace_state_variable_name): Declare.
9586 * tracepoint.c (validate_trace_state_variable_name): New.
9587 (trace_variable_command): Parse the trace state variable's name
9588 without using parse_expression. Do several validations.
9589 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9590 trace state variable's name with parse_expression. Validate it.
9591
53778a97
YQ
95922013-02-14 Yao Qi <yao@codesourcery.com>
9593
9594 * infcmd.c (breakpoint_proceeded): Remove it.
9595
7b3ae3a6
YQ
95962013-02-14 Yao Qi <yao@codesourcery.com>
9597
9598 * tracepoint.c (end_actions_pseudocommand): Make it static.
9599 (while_stepping_pseudocommand): Likewise.
9600 * tracepoint.h (end_actions_pseudocommand): Remove the
9601 declaration.
9602 (while_stepping_pseudocommand): Likewise.
9603
64580925
YQ
96042013-02-14 Yao Qi <yao@codesourcery.com>
9605
9606 * cli/cli-decode.c (help_cmd): Remove the declaration of
9607 "cmdlist".
9608 (help_all): Likewise.
9609
26cb8b7c
PA
96102013-02-13 Pedro Alves <palves@redhat.com>
9611
9612 * amd64-linux-nat.c (update_debug_registers_callback):
9613 Update comment.
9614 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9615 iterate_over_lwps.
9616 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9617 i386_debug_reg_state.
9618 (amd64_linux_new_fork): New function.
9619 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9620 linux_nat_new_fork hook, and i386_forget_process as
9621 linux_nat_forget_process hook.
9622 * i386-linux-nat.c (update_debug_registers_callback):
9623 Update comment.
a8256ea1 9624 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9625 iterate_over_lwps.
9626 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9627 i386_debug_reg_state.
9628 (i386_linux_new_fork): New function.
9629 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9630 linux_nat_new_fork hook, and i386_forget_process as
9631 linux_nat_forget_process hook.
9632 * i386-nat.c (i386_init_dregs): Delete.
9633 (i386_inferior_data, struct i386_inferior_data):
9634 Delete.
9635 (struct i386_process_info): New.
9636 (i386_process_list): New global.
9637 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9638 New functions.
9639 (i386_inferior_data_get): Delete.
9640 (i386_process_info_get): New function.
9641 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9642 (i386_forget_process): New function.
9643 (i386_cleanup_dregs): Rewrite.
9644 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9645 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9646 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9647 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9648 to i386_debug_reg_state.
9649 (i386_use_watchpoints): Don't register inferior data.
9650 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9651 adjust comment.
9652 (i386_forget_process): Declare.
9653 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9654 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9655 New static globals.
9656 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9657 (add_initial_lwp): New, factored out from ...
9658 (add_lwp): ... this. Don't check the number of lwps before
9659 calling linux_nat_new_thread.
9660 (linux_nat_iterate_watchpoint_lwps): Delete.
9661 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9662 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9663 forks and vforks.
9664 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9665 initial lwp.
9666 (linux_nat_kill, linux_nat_mourn_inferior): Call
9667 linux_nat_forget_process.
9668 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9669 (linux_nat_forget_process): New functions.
9670 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9671 type.
9672 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9673 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9674 types.
9675 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9676 (linux_nat_forget_process): New declarations.
9677
9678 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9679 (amd64fbsd_mourn_inferior): New function.
9680 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9681 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9682
5befea72
MS
96832013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9684
55015247
YQ
9685 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9686 Adding _().
5befea72 9687
1d3ffd6b
MS
96882013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9689
9690 * aarch64-linux-nat.c (debug_reg_change_callback)
9691 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9692 %s and phex().
9693
6eb04473
MS
96942013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9695
9696 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9697 with LONGEST.
9698
a016fc87
HAQ
96992013-02-13 Pedro Alves <palves@redhat.com>
9700 Hafiz Abid Qadeer <abidh@codesourcery.com>
9701
9702 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9703
e234dfaf
TT
97042013-02-12 Tom Tromey <tromey@redhat.com>
9705
9706 PR symtab/11464:
9707 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9708 NAME return.
9709 (classify_inner_name): Remove 'first_name' argument, add
9710 'context'. Remove unused variable.
9711 (yylex): Explicitly maintain the context type. Exit loop earlier
9712 if NAME result is seen.
9713
0b1afbb3
PA
97142013-02-12 Pedro Alves <palves@redhat.com>
9715
9716 * amd64-darwin-tdep.c: Add (C) after Copyright.
9717 * cli/cli-cmds.h: Ditto.
9718 * cli/cli-decode.c: Ditto.
9719 * cli/cli-decode.h: Ditto.
9720 * cli/cli-dump.c: Ditto.
9721 * cli/cli-dump.h: Ditto.
9722 * cli/cli-interp.c: Ditto.
9723 * cli/cli-logging.c: Ditto.
9724 * cli/cli-script.c: Ditto.
9725 * cli/cli-script.h: Ditto.
9726 * cli/cli-setshow.c: Ditto.
9727 * cli/cli-setshow.h: Ditto.
9728 * cli/cli-utils.c: Ditto.
9729 * cli/cli-utils.h: Ditto.
9730 * config/alpha/nm-osf3.h: Ditto.
9731 * config/djgpp/djconfig.sh: Ditto.
9732 * config/i386/nm-fbsd.h: Ditto.
9733 * config/i386/nm-i386gnu.h: Ditto.
9734 * config/nm-linux.h: Ditto.
9735 * config/nm-nto.h: Ditto.
9736 * config/rs6000/nm-rs6000.h: Ditto.
9737 * config/sparc/nm-sol2.h: Ditto.
9738 * darwin-nat-info.c: Ditto.
9739 * dfp.c: Ditto.
9740 * dfp.h: Ditto.
9741 * gdb-demangle.h: Ditto.
9742 * i386-darwin-nat.c: Ditto.
9743 * i386-darwin-tdep.c: Ditto.
9744 * linux-fork.h: Ditto.
9745 * m32c-tdep.c: Ditto.
9746 * microblaze-linux-tdep.c: Ditto.
9747 * microblaze-rom.c: Ditto.
9748 * microblaze-tdep.c: Ditto.
9749 * microblaze-tdep.h: Ditto.
9750 * mips-linux-tdep.h: Ditto.
9751 * ppc-ravenscar-thread.c: Ditto.
9752 * ppc-ravenscar-thread.h: Ditto.
9753 * prologue-value.c: Ditto.
9754 * prologue-value.h: Ditto.
9755 * ravenscar-thread.c: Ditto.
9756 * ravenscar-thread.h: Ditto.
9757 * sparc-ravenscar-thread.c: Ditto.
9758 * sparc-ravenscar-thread.h: Ditto.
9759 * tilegx-linux-tdep.c: Ditto.
9760 * unwind_stop_reasons.def: Ditto.
9761 * windows-nat.h: Ditto.
9762 * xtensa-linux-tdep.c: Ditto.
9763 * xtensa-xtregs.c: Ditto.
9764 * regformats/regdat.sh: Ditto.
9765 * regformats/regdef.h: Ditto.
9766
6c01dd94
PA
97672013-02-12 Pedro Alves <palves@redhat.com>
9768
9769 * break-catch-sig.c: Update copyright years.
9770
b65a2bd9
SCR
97712013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9772
9773 Add support for a destructor for ui_out data and use it to
9774 provide a ui_out destructor.
9775 * ui-out.h: Declare the new ui_out destructor.
9776 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9777 * ui-out.c (default_data_destroy): Add a default data destructor
9778 which does nothing.
9779 (default_ui_out_impl): Set the new data_destroy field to
9780 default_data_destroy
9781 (uo_data_destroy): Local function which invokes the data
9782 destructor if present.
9783 (clear_table): Local function which clears the table data of a
9784 ui_out object.
9785 (ui_out_destroy): Public function which frees a ui_out object.
9786 (ui_out_table_end): Use the new clear_table function.
9787 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9788 NULL.
9789 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9790 to NULL.
9791
c2792f5a
DE
97922013-02-11 Doug Evans <dje@google.com>
9793
9794 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9795 (printf_decfloat): New function. Broken out from ui_printf.
9796 Remove unnecessary code to shift the entire format string down.
9797 (printf_pointer): New function.
9798 (ui_printf): Code to print C strings, wide C strings, decfloats,
9799 and pointers moved to separate functions.
9800
d9e98382
SDJ
98012013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9802
9803 * valops.c (value_assign): Handling bitfield offset in
9804 `lval_internalvar_component' case.
9805
4ff3ce77
DE
98062013-02-08 Doug Evans <dje@google.com>
9807
9808 * common/format.c (parse_format_string): Fix whitespace.
9809
901900c4
MGD
98102013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9811
9812 * stack.c (return_command): Work around uninitialized variable
9813 warning.
9814
b5dbc8d4
YZ
98152013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9816
9817 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9818 number of the registers from 36 to 34.
9819
51d66578
MS
98202013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9821
9822 * NEWS: Mention new AArch64 native and target support.
9823
176b1c95
MS
98242013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9825
9826 * MAINTAINERS (Write After Approval): Add myself.
9827
9d19df75
MS
98282013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9829 Marcus Shawcroft <marcus.shawcroft@arm.com>
9830 Nigel Stephens <nigel.stephens@arm.com>
9831 Yufeng Zhang <yufeng.zhang@arm.com>
9832
9833 * aarch64-linux-nat.c: New file.
9834 * config/aarch64/linux.mh: New file.
9835 * configure.host: Add AArch64.
9836 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9837
7e1e0340
DE
98382013-02-07 Doug Evans <dje@google.com>
9839
9840 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9841 disassemble command.
9842
45e25a36
MS
98432013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9844
9845 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9846 set_gdbarch_fetch_tls_load_module_address.
9847
bbfdfe1c
DM
98482013-02-06 David S. Miller <davem@davemloft.net>
9849
9850 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9851 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9852 * value.c (struct_return_convention): New function.
9853 (using_struct_return): Implement in terms of struct_return_convention.
9854 * value.h (struct_return_convention): Declare.
9855 * stack.c (return_command): Allow successful overriding of the return
9856 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9857
bc9abe4a
TT
98582013-02-06 Tom Tromey <tromey@redhat.com>
9859
9860 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9861 outside of TRY_CATCH.
9862
134a2066
YQ
98632013-02-06 Yao Qi <yao@codesourcery.com>
9864
9865 * mi/mi-interp.c: Include "tracepoint.h".
9866 (mi_tsv_modified): Declare.
9867 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9868 (mi_interpreter_init): Call observer_attach_tsv_modified.
9869 (mi_tsv_modified): New.
9870 (mi_tsv_created, mi_tsv_deleted): Update.
9871 * tracepoint.c (trace_variable_command): Call
9872 observer_notify_tsv_modified if the initial value of tsv is
9873 changed.
9874 (delete_trace_state_variable): Call
9875 observer_notify_tsv_deleted earlier.
9876 (trace_variable_command): Caller update.
9877 (create_tsv_from_upload): Likewise.
9878 * observer.sh: Declare "struct trace_state_variable".
9879
9880 * NEWS: Mention the new MI notification "=tsv-modified".
9881
59be2b6a
DE
98822013-02-05 Doug Evans <dje@google.com>
9883
9884 * completer.c (location_completer): Fix typo in comment.
9885
d30113d4
JK
98862013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9887
9888 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9889 ADDRESS sorted.
9890
14ac654f
MS
98912013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9892
9893 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9894 Refactor if statement to avoid trailing || operator.
9895
543bf33d
AT
98962013-02-05 Andreas Tobler <andreast@fgznet.ch>
9897
9898 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9899
dc18f110
AT
99002013-02-04 Andreas Tobler <andreast@fgznet.ch>
9901
9902 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9903 * configure.host: Add powerpc*-*-freebsd* target.
9904 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9905 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9906 * config/powerpc/fbsd.mh: New file.
9907
b3ac9c77
SDJ
99082013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9909 Denys Vlasenko <dvlasenk@redhat.com>
9910 Pedro Alves <palves@redhat.com>
9911
9912 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9913 (struct elf_internal_linux_prpsinfo): Forward declare.
9914 * gdbarch.h, gdbarch.c: Regenerate.
9915 * linux-tdep.c: Include `cli/cli-utils.h'.
9916 (linux_fill_prpsinfo): New function.
9917 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9918 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9919 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9920 depending on gdbarch pointer bitness.
9921 * ppc-linux-tdep.c: Include elf-bfd.h.
9922 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9923 on 32-bit.
9924
176eb98c
MS
99252013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9926 Marcus Shawcroft <marcus.shawcroft@arm.com>
9927 Nigel Stephens <nigel.stephens@arm.com>
9928 Yufeng Zhang <yufeng.zhang@arm.com>
9929
9930 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9931
cf0dbd6f
MS
99322013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9933 Marcus Shawcroft <marcus.shawcroft@arm.com>
9934 Nigel Stephens <nigel.stephens@arm.com>
9935 Yufeng Zhang <yufeng.zhang@arm.com>
9936
9937 * aarch64-newlib-tdep.c: New file.
9938 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9939 aarch64*-*-elf.
9940 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9941 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9942 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9943 * osabi.c (gdb_osabi_names): Add "Newlib".
9944
1ae3db19
MS
99452013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9946 Marcus Shawcroft <marcus.shawcroft@arm.com>
9947 Nigel Stephens <nigel.stephens@arm.com>
9948 Yufeng Zhang <yufeng.zhang@arm.com>
9949
9950 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9951 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9952 * aarch64-linux-tdep.c: New file.
9953 * aarch64-linux-tdep.h: New file.
9954 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9955 * configure.tgt: Add aarch64-none-linux-gnu.
9956
07b287a0
MS
99572013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9958 Marcus Shawcroft <marcus.shawcroft@arm.com>
9959 Nigel Stephens <nigel.stephens@arm.com>
9960 Yufeng Zhang <yufeng.zhang@arm.com>
9961
9962 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9963 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9964 (ALLDEPFILES): Add aarch64-tdep.c.
9965 * aarch64-tdep.c: New file.
9966 * aarch64-tdep.h: New file.
9967 * configure.tgt: Add AArch64.
9968 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9969 (aarch64-expedite): New definition.
9970 * features/aarch64-core.xml: New file.
9971 * features/aarch64-fpu.xml: New file.
9972 * features/aarch64-without-fpu.c: New file (generated).
9973 * features/aarch64-without-fpu.xml: New file.
9974 * features/aarch64.c: New file (generated).
9975 * features/aarch64.xml: New file.
9976 * regformats/aarch64-without-fpu.dat: New file (generated).
9977 * regformats/aarch64.dat: New file (generated).
9978
0f1b18ab
JK
99792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9980
9981 * contrib/expect-read1.c: New file.
9982 * contrib/expect-read1.sh: New file.
9983
233d95b5
JK
99842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9985
9986 * dwarf2read.c (file_file_name): New function with code from
9987 file_full_name.
9988 (file_full_name): Move most of the code to file_file_name.
9989 (macro_start_file): Rename variable full_name to file_name and use
9990 file_file_name for it. Add comp_dir parameter to new_macro_table.
9991 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9992 macro_source_file->filename access by macro_source_fullname call.
9993 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9994 caller.
9995 * macrotab.c (struct macro_table): New field comp_dir.
9996 (macro_include): New variables link_fullname and source_fullname.
9997 Replace any macro_source_file->filename access by macro_source_fullname
9998 call.
9999 (macro_lookup_inclusion): Remove the partial filenames checking code.
10000 (check_for_redefinition): New variables source_fullname and
10001 found_key_fullname. Replace any macro_source_file->filename access by
10002 macro_source_fullname call.
10003 (macro_undef): New variables source_fullname and key_fullname. Replace
10004 any macro_source_file->filename access by macro_source_fullname call.
10005 (macro_lookup_definition): New variables retval and source_fullname.
10006 Replace any macro_source_file->filename access by macro_source_fullname
10007 call.
10008 (foreach_macro): New variable key_fullname. Replace any
10009 macro_source_file->filename access by macro_source_fullname call.
10010 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10011 macro_source_file->filename access by macro_source_fullname call.
10012 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10013 (macro_source_fullname): New function.
10014 * macrotab.h (struct macro_source_file): Extent the filename field
10015 comment.
10016 (new_macro_table): New parameter comp_dir, add a comment for it.
10017 (macro_source_fullname): new declaration.
10018
da235a7c
JK
100192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10020
10021 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10022 this_real_name to outer block. Use it also for
10023 compare_filenames_for_search.
10024 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10025 with dw2_get_real_path for file_matcher, considering also
10026 BASENAMES_MAY_DIFFER.
10027 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10028
fbd9ab74
JK
100292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10030
10031 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10032 to the file_matcher parameter. Pass 0 to it.
10033 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10034 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10035 NULL psymtab_to_fullname result.
10036 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10037 an expected filename instead.
10038 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10039 file_matcher parameter. Call also psymtab_to_fullname, after newly
10040 considering BASENAMES_MAY_DIFFER.
10041 * source.c (rewrite_source_path): Remove static.
10042 * source.h (rewrite_source_path): New declaration.
10043 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10044 the expand_symtabs_matching field. Comment it.
10045 * symtab.c (file_matches): New function comment. Add parameter
10046 basenames, implement it.
10047 (search_symbols_file_matches): Add basenames parameter. Update the
10048 file_matches caller.
10049 (search_symbols): Match FILES also against symtab_to_fullname.
10050 Optimize it for BASENAMES_MAY_DIFFER.
10051
56d397a3
JK
100522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 * source.c (print_source_lines_base): Print for TUI also "fullname".
10055 * tui/tui-data.c (init_content_element): Change tui_locator_element
10056 field to full_name.
10057 * tui/tui-data.h (struct tui_locator_element): Likewise.
10058 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10059 tui_update_locator_filename calls to tui_update_locator_fullname.
10060 Replace symtab->filename refererence by symtab_to_fullname call.
10061 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10062 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10063 field to full_name. Replace symtab->filename refererence by
10064 symtab_to_fullname call.
10065 (tui_show_symtab_source): Rename parameter to fullname. Change
10066 tui_locator_element field to full_name.
10067 * tui/tui-stack.c: Include source.h.
10068 (tui_set_locator_filename): Rename the declaration to ...
10069 (tui_set_locator_fullname): ... here. Rename its parameter to
10070 fullname, updates its comment.
10071 (tui_set_locator_info): Rename its parameter to fullname.
10072 (tui_set_locator_filename): Rename the definition to ...
10073 (tui_set_locator_fullname): ... here. Rename its parameter to
10074 fullname, updates its comment. Change tui_locator_element field to
10075 full_name.
10076 (tui_set_locator_info): Rename its parameter to fullname.
10077 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10078 (tui_update_locator_filename): Rename to ...
10079 (tui_update_locator_fullname): ... here. Rename callee to
10080 tui_set_locator_fullname.
10081 (tui_show_frame_info): Replace symtab->filename refererence by
10082 symtab_to_fullname call.
10083 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10084 (tui_update_locator_fullname): ... here.
10085 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10086 tui_update_locator_fullname. Replace symtab->filename refererence by
10087 symtab_to_fullname call.
10088 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10089 Rename the callee to tui_update_locator_fullname.
10090 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10091
05cba821
JK
100922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10093
10094 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10095 by symtab_to_filename_for_display calls.
10096 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10097 (clear_command): New variable sal_fullname, initialize it. Replace
10098 compare_filenames_for_search by filename_cmp with sal_fullname.
10099 (say_where, update_static_tracepoint): Replace symtab->filename
10100 refererences by symtab_to_filename_for_display calls.
10101 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10102 Likewise.
10103 * dwarf2read.c: Include source.h.
10104 (fixup_go_packaging): Replace symtab->filename refererences by
10105 symtab_to_filename_for_display calls.
10106 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10107 Replace symtab->filename refererences by symtab_to_filename_for_display
10108 calls.
10109 (create_sals_line_offset, convert_linespec_to_sals): New variable
10110 fullname, initialize it, replace symtab->filename reference by the
10111 variable.
10112 * linux-fork.c: Include source.h.
10113 (info_checkpoints_command): Replace symtab->filename refererences by
10114 symtab_to_filename_for_display calls.
10115 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10116 by symtab_to_filename_for_display calls.
10117 * mdebugread.c: Include source.h.
10118 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10119 symtab_to_filename_for_display calls.
10120 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10121 (mi_cmd_file_list_exec_source_files): Likewise.
10122 * printcmd.c: Include source.h.
10123 (build_address_symbolic): Replace symtab->filename refererences by
10124 symtab_to_filename_for_display calls.
10125 * psymtab.c (partial_map_symtabs_matching_filename)
10126 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10127 with psymtab_to_fullname.
10128 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10129 by symtab_to_filename_for_display calls.
10130 (stpy_get_filename): New variable filename, initialize it, use instead
10131 of symtab->filename refererences.
10132 (salpy_str): Make variable filename const char *. Replace
10133 symtab->filename refererences by symtab_to_filename_for_display calls.
10134 * skip.c: Include source.h and filenames.h.
10135 (skip_file_command): Remove const from the symtab variable. Replace
10136 symtab->filename refererences by symtab_to_fullname call.
10137 (function_name_is_marked_for_skip): New variables searched_for_fullname
10138 and fullname. Use them to search also with symtab's fullname.
10139 * source.c (find_source_lines): Replace symtab->filename refererences
10140 by symtab_to_filename_for_display calls.
10141 (print_source_lines_base): New variable filename, use it instead of
10142 symtab->filename. Replace symtab->filename refererences by
10143 symtab_to_filename_for_display calls.
10144 (line_info, forward_search_command): Replace symtab->filename
10145 refererences by symtab_to_filename_for_display calls.
10146 (reverse_search_command): Replace symtab->filename refererences by
10147 symtab_to_filename_for_display calls. New variable filename for it.
10148 * stack.c (frame_info): Likewise.
10149 * symmisc.c: Include source.h.
10150 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10151 (maintenance_info_symtabs): Replace symtab->filename refererences by
10152 symtab_to_filename_for_display calls.
10153 * symtab.c (iterate_over_some_symtabs): Call
10154 compare_filenames_for_search also with symtab_to_fullname.
10155 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10156 symtab->filename refererences by symtab_to_filename_for_display calls.
10157 (find_line_symtab): Replace symtab->filename refererences by
10158 symtab_to_filename_for_display calls.
10159 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10160 (print_symbol_info): Make the last parameter const char *. New
10161 variable s_filename. Use it in the function.
10162 (symtab_symbol_info): Make the last_filename variable const char *.
10163 Replace symtab->filename refererences by symtab_to_filename_for_display
10164 calls.
10165 (rbreak_command): New variable fullname. Use it. Replace
10166 symtab->filename refererence by symtab_to_filename_for_display call.
10167 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10168 (print_one_static_tracepoint_marker): Replace symtab->filename
10169 refererences by symtab_to_filename_for_display calls.
10170 * tui/tui-source.c (tui_set_source_content): New variables filename and
10171 s_filename. Replace symtab->filename refererences by this variable.
10172 Replace other symtab->filename refererences by
10173 symtab_to_filename_for_display calls.
10174
1b56eb55
JK
101752013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10176 Jan Kratochvil <jan.kratochvil@redhat.com>
10177
10178 Add a new variable that controls a way in which filenames are
10179 displayed.
10180 * NEWS (set filename-display): New entry.
10181 * source.c (filename_display_basename, filename_display_relative)
10182 (filename_display_absolute, filename_display_kind_names)
10183 (filename_display_string, show_filename_display_string)
10184 (symtab_to_filename_for_display): New.
10185 (_initialize_source): Added initialization of 'filename-display'
10186 variable.
10187 * source.h (symtab_to_filename_for_display): Added declaration.
10188 * stack.c (print_frame): Added new variable and calling of a new
10189 function and condition with this variable. Changed third argument of
10190 calling of a function.
10191
aa079c93
JK
101922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10195 Rename field reference filename to fullname.
10196 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10197 fullname. New comment for it.
10198 * tui/tui-source.c (tui_set_source_content): Rename field reference
10199 filename to fullname. Initialize field by symtab_to_fullname now.
10200 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10201 reference filename to fullname. Use symtab_to_fullname during
10202 comparison.
10203
652a8996
JK
102042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10205
10206 Code cleanup.
10207 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10208 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10209 filename to fullname. Rename variable this_name to this_fullname.
10210 Lowercase FILENAME_CMP call.
10211 (dw2_find_symbol_file): New comment for the returned string.
10212 (dwarf2_gdb_index_functions): Rename the function to
10213 dw2_expand_symtabs_with_fullname.
10214 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10215 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10216 fullname.
10217 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10218 * symfile.h (struct quick_symbol_functions): Rename field
10219 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10220 parameter filename to fullname. Document returned string meaning for
10221 find_symbol_file.
10222 * symtab.c (find_line_symtab): Rename the called function to
10223 expand_symtabs_with_fullname.
10224
af529f8f
JK
102252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 Code cleanup.
10228 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10229 call of filename_cmp with compare_filenames_for_search.
10230 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10231 is_abs, unify the call of FILENAME_CMP with
10232 compare_filenames_for_search. New gdb_asserts for real_path and name.
10233 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10234 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10235 * symfile.h (struct quick_symbol_functions): Extend the comment for
10236 map_symtabs_matching_filename.
10237 * symtab.c (compare_filenames_for_search): Remove the function comment
10238 relative path requirement. Handle absolute filenames, with a comment.
10239 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10240 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10241 real_path and name. Unify the call of compare_filenames_for_search
10242 with FILENAME_CMP.
10243 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10244
2f202fde
JK
102452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10246
10247 Code cleanup.
10248 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10249 source_file references by symtab field references. Remove variables
10250 sal and fullname.
10251 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10252 (clear_command, say_where): Replace bp_location field source_file
10253 references by symtab field references.
10254 (bp_location_dtor): Remove the source_file reference.
10255 (update_static_tracepoint): Replace bp_location field source_file
10256 references by symtab field references.
10257 (breakpoint_free_objfile): New function.
10258 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10259 Replace the field source_file by field symtab, extend its comment.
10260 (breakpoint_free_objfile): New declaration.
10261 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10262 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10263 field source_file references by symtab field references.
10264
f5b95b50
JK
102652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 Replace xfullpath calls by gdb_realpath calls.
10268 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10269 function comment.
10270 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10271 Remove it from the iterate_over_some_symtabs call.
10272 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10273 Remove it from the dw2_map_expand_apply calls, remove a block handling
10274 it.
10275 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10276 Remove it from the iterate_over_some_symtabs call.
10277 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10278 Remove it from the partial_map_expand_apply calls, remove a block
10279 handling it. Drop gdb_realpath call and cleanups from the real_path
10280 handling.
10281 * source.c (openp): Drop the comment part about xfullpath. Replace
10282 xfullpath calls by gdb_realpath calls.
10283 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10284 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10285 from method map_symtabs_matching_filename and its comment.
10286 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10287 gdb_realpath call.
10288 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10289 remove it also from the function comment, remove a block handling it.
10290 Drop gdb_realpath call and cleanups from the real_path handling.
10291 (iterate_over_symtabs): Drop variable full_path and its use.
10292 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10293 * utils.c (xfullpath): Remove.
10294 * utils.h (xfullpath): Remove.
10295
d78489bf
AT
102962013-02-01 Andreas Tobler <andreast@fgznet.ch>
10297
10298 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10299 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10300 (ALLDEPFILES): Add ppc64-tdep.c.
10301 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10302 ppc64-tdep.o to gdb_target_obs.
10303 * ppc64-tdep.h: New file.
10304 * ppc64-tdep.c: New file.
10305 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10306 ppc-linux-tdep.c to here.
10307 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10308 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10309 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10310 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10311 from ppc-linux-tdep.c to here.
10312 (ppc64_convert_from_func_ptr_addr): Rename from
10313 ppc64_linux_convert_from_func_ptr_addr to
10314 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10315 here.
10316 * rs6000-tdep.c:
10317 (read_insn): Move from ppc-linux-tdep.c to here.
10318 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10319 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10320 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10321 Removed above functions.
10322 (ppc_linux_init_abi): Adjust.
10323
8db60374
AR
103242013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10325
10326 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10327
f2e5f4ce
AR
103282013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10329
10330 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10331
c1f7d745
PA
103322013-02-01 Pedro Alves <palves@redhat.com>
10333
10334 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10335 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10336
8a92335b
JK
103372013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10338
10339 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10340 files with no separate debug info.
10341 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10342 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10343 only for files with no separate debug info.
10344
8eacb197
TT
103452013-01-31 Tom Tromey <tromey@redhat.com>
10346
10347 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10348 change type.
10349 (struct jit_program_space_data): Rename from jit_inferior_data.
10350 Update comments.
10351 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10352 Change return type. Attach data to program space.
10353 (jit_program_space_data_cleanup): Rename from
10354 jit_inferior_data_cleanup; change argument type.
10355 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10356 change type.
10357 (jit_register_code): Update.
10358 (jit_update_inferior_cache): Remove.
10359 (jit_breakpoint_deleted): Get jit data from the location's program
10360 space.
10361 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10362 'ps_data', change type.
10363 (jit_inferior_init, jit_breakpoint_re_set_internal)
10364 (jit_event_handler): Update.
10365 (free_objfile_data): Get data from objfile's program space.
10366 (_initialize_jit): Update.
10367
f25c0135
TT
103682013-01-31 Tom Tromey <tromey@redhat.com>
10369
10370 PR gdb/13987:
10371 * jit.c (struct jit_inferior_data) <cached_code_address,
10372 jit_breakpoint>: New fields.
10373 (jit_breakpoint_re_set_internal): Fix logging. Only create
10374 breakpoint if cached address has changed.
10375 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10376 functions.
10377 (_initialize_jit): Register breakpoint deleted observer.
10378
974a734b
AR
103792013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10380
10381 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10382 (save_infcall_suspend_state): Ifdef out unused inf.
10383 (restore_infcall_suspend_state): Ifdef out unused inf.
10384 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10385 (jit_frame_sniffer): Remove unused inf_data.
10386
df54f8eb
AR
103872013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10388
10389 * c-exp.y (classify_inner_name): Remove unused type.
10390 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10391 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10392 need_escape.
10393 (c_get_string): Remove unused kind.
10394 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10395
5799c0b9
AR
103962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10397
10398 * charset.c (intermediate_encoding): Remove unused i.
10399 * completer.c (signal_completer): Remove unused i.
10400 * continuations.c (discard_my_continuations_1): Remove unused
10401 continuation_ptr.
10402 * corelow.c (core_close): Remove unuseD name.
10403 (get_core_siginfo): Remove unused pid.
10404 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10405 i, cps.
10406 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10407 (loclist_describe_location): Remove unused first.
10408 * event-top.c (command_line_handler): Remove unused got_eof.
10409 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10410 (resize_section_table): Remove unused old_value.
10411 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10412 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10413 * i386-tdep.c (i386_process_record): Remove unused rex.
10414 * infcmd.c (get_return_value): Remove unused uiout.
10415 * jv-lang.c (type_from_class): Remove unused is_array.
10416 * jv-valprint.c (java_val_print): Remove unused i.
10417 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10418 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10419 * m2-typeprint.c (m2_print_type): Remove unused code.
10420 * macroexp.c (get_character_constant): Remove unused body_start.
10421 (macro_stringify): Remove unused result.
10422 * objc-lang.c (find_methods): Remove unused gdbarch.
10423 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10424 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10425 * stack.c (print_frame_args): Remove unused summary.
10426 * thread.c (thread_apply_command): Remove unused p.
10427 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10428 * valops.c (search_struct_method): Remove unused skip.
10429 * valprint.c (generic_val_print): Remove unused byte_order.
10430 * varobj.c (varobj_update): Remove unused changed.
10431 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10432 (alias_command): Remove unused c.
10433 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10434 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10435 format.
10436 (mi_cmd_data_write_memory): Remove unused word_format.
10437 (mi_cmd_data_write_memory_bytes): Remove unused r.
10438 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10439 p_start, p_end.
10440 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10441 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10442 line_width.
10443
c656bca5
AR
104442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10445
10446 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10447 * symtab.c (iterate_over_symtabs): Remove unused s.
10448 (find_pc_sect_symtab): Remove unused pspAce.
10449 (find_pc_sect_line): Remove unused alt_symtab.
10450 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10451 (completion_list_add_name): Remove unused newsize.
10452
7078baeb
TT
104532013-01-31 Tom Tromey <tromey@redhat.com>
10454
10455 PR c++/14998:
10456 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10457 TYPE_CODE_FUNC.
10458
c2e8b827
AR
104592013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10460
10461 * target.c (target_read_string): Remove unused origlen.
10462
0e43993a
AR
104632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10464
10465 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10466 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10467 * ax-general.c (ax_print): Remove unused is_float.
10468 * blockframe.c (block_innermost_frame): Remove unused start, end.
10469 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10470
765a97ab
AR
104712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10472
10473 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10474 (svr4_read_so_list): Remove unused lmo.
10475 * solib-target.c (solib_target_relocate_section_addresses): Remove
10476 unused flags.
10477
a99dad3d
TT
104782013-01-30 Tom Tromey <tromey@redhat.com>
10479
10480 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10481
3bff1ecd
TT
104822013-01-30 Tom Tromey <tromey@redhat.com>
10483
10484 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10485 * utils.c (gnu_debuglink_crc32): Remove.
10486 * utils.h (gnu_debuglink_crc32): Don't declare.
10487
7d455152
TT
104882013-01-30 Tom Tromey <tromey@redhat.com>
10489
10490 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10491 (read_structure_type, read_enumeration_type): Remove cast.
10492
abee88f2
TT
104932013-01-30 Tom Tromey <tromey@redhat.com>
10494
10495 * dwarf2read.c (read_namespace_type): Remove cast.
10496 (read_typedef): Likewise.
10497
8d9878a4
TT
104982013-01-29 Tom Tromey <tromey@redhat.com>
10499
10500 * dwarf2read.c (free_dwo_file): Remove assert.
10501
a543d2a9
TT
105022013-01-29 Tom Tromey <tromey@redhat.com>
10503
10504 * value.c (deprecated_set_value_modifiable): Remove.
10505 * value.h (deprecated_set_value_modifiable): Remove.
10506
bed911e5
DE
105072013-01-28 Doug Evans <dje@google.com>
10508
10509 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10510 to addresses from dwo files.
10511
28c64fc2
SCR
105122013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10513
10514 * valops.c (find_overload_match): Remove unused argument 'lax'.
10515 * value.h: Remove unused argument 'lax' from the declaration of
10516 find_overload_match.
10517 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10518 to find_overload_match.
10519 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10520 argument to find_overload_match.
10521
4d4ec4e5
TT
105222013-01-25 Tom Tromey <tromey@redhat.com>
10523
10524 * dwarf2read.c (processing_has_namespace_info): Remove.
10525 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10526 (process_die, read_func_scope, dwarf2_start_symtab)
10527 (new_symbol_full): Update.
10528
195a3f6c
TT
105292013-01-25 Tom Tromey <tromey@redhat.com>
10530
10531 * cp-namespace.c (cp_set_block_scope): Remove.
10532 * cp-support.h (cp_set_block_scope): Remove.
10533 * dbxread.c: Include block.h.
10534 (cp_set_block_scope): New function.
10535 (process_one_symbol): Update.
10536 * dwarf2read.c (read_func_scope): Use block_set_scope.
10537
8ba0730a
PA
105382013-01-25 Pedro Alves <palves@redhat.com>
10539
10540 * remote.c (add_current_inferior_and_thread): Tweak comment.
10541
12aaed36
TT
105422013-01-25 Tom Tromey <tromey@redhat.com>
10543
10544 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10545 (cp_add_using_directive): Add 'copy_names' argument.
10546 * cp-support.h (cp_add_using_directive): Update.
10547 (struct using_direct) <import_src, import_dest, alias,
10548 declaration>: Now const.
10549 * dwarf2read.c (read_import_statement): Use obconcat.
10550 Don't copy names passed to cp_add_using_directive.
10551
7fc75ca7
TT
105522013-01-25 Tom Tromey <tromey@redhat.com>
10553
10554 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10555
3405876a
PA
105562013-01-25 Pedro Alves <palves@redhat.com>
10557
10558 * remote.c (stop_reply_extract_thread): New.
10559 (add_current_inferior_and_thread): New parameter 'wait_status'.
10560 Handle it.
10561 (remote_start_remote): Pass wait status to
10562 add_current_inferior_and_thread.
10563 (extended_remote_run): Update comment.
10564 (extended_remote_create_inferior_1): Pass wait status to
10565 add_current_inferior_and_thread.
10566
8954db33
AB
105672013-01-25 Andrew Burgess <aburgess@broadcom.com>
10568 Ulrich Weigand <uweigand@de.ibm.com>
10569
10570 * valarith.c (value_vector_widen): New function for replicating a
10571 scalar into a vector.
10572 (value_binop): Use value_vector_widen to widen scalar to vector
10573 rather than casting, this better matches gcc C behaviour.
10574 * valops.c (value_casst): Update logic for casting between vector
10575 types, and for casting from scalar to vector, try to match gcc C
10576 behaviour.
10577 * value.h (value_vector_widen): Declare.
10578 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10579 function, handle special case for casting scalar to vector.
10580 (opencl_relop): Use opencl_value_cast.
10581 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10582 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10583 in order to use opencl_value_cast.
10584
843b20dc
YQ
105852013-01-25 Yao Qi <yao@codesourcery.com>
10586
10587 * event-loop.c: Include "queue.h".
10588 (gdb_event_p): New typedef.
10589 (DECLARE_QUEUE_P): Use.
10590 (DEFINE_QUEUE_P): Use.
10591 (async_queue_event): Remove.
10592 (gdb_event_xfree): New.
10593 (initialize_event_loop): New.
10594 (process_event): Use QUEUE macros.
10595 (event_queue): Remove.
10596 (gdb_wait_for_event): Caller update.
10597 (check_async_event_handlers): Likewise.
10598 (poll_timers): Likewise.
10599 * event-loop.h (initialize_event_loop): Declare.
10600 * event-loop.c (gdb_event_xfree): New.
10601 * top.c (gdb_init): Call initialize_event_loop.
10602
20ad8856
YQ
106032013-01-25 Yao Qi <yao@codesourcery.com>
10604
10605 * event-loop.c (async_queue_event): Remove one parameter
10606 'position'. Remove code handling 'position' == TAIL.
10607 (gdb_wait_for_event): Caller update.
10608 (check_async_event_handlers): Caller update.
10609 (poll_timers): Caller update.
10610 * event-loop.h (enum queue_position): Remove.
10611
3bbbe775
MK
106122013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10613
10614 * MAINTAINERS: Update my email.
10615
a87d9ac4
YQ
106162013-01-25 Yao Qi <yao@codesourcery.com>
10617
10618 * main.c (print_gdb_help): Remove "--epoch" from the help
10619 message.
10620
2077afdd
TD
106212013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10622
10623 * symtab.c (skip_prologue_using_sal): Consider a file
10624 change the same as an increased line number
10625
63da4037
TD
106262013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10627
30e8ee25 10628 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10629
45e6c716
TT
106302013-01-24 Tom Tromey <tromey@redhat.com>
10631
10632 * ada-lang.h (ada_decode_symbol): Make return type const.
10633 * ada-lang.c (ada_decode_symbol): Likewise.
10634
b1ae631a
DE
106352013-01-23 Doug Evans <dje@google.com>
10636
10637 * linespec.c (find_linespec_symbols): Make static.
10638
55a78401
SDJ
106392013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10640
10641 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10642 type on float conversion for complex type.
10643
bea883fd
SCR
106442013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10645
10646 Add a new class gdb.Architecture which exposes GDB's
10647 internal representation of architecture via GDB Python API.
10648 * Makefile.in: Add entries corresponding to the new file
10649 python/py-arch.c.
10650 * NEWS (Python Scripting): Add entries for the new class
10651 gdb.Architecture and the new method gdb.Frame.architecture.
10652 * python/py-arch.c: Implement gdb.Architecture class.
10653 * python/py-frame.c (frapy_arch): Implement the method
10654 gdb.Frame.architecture().
10655 (frame_object_methods): Add 'architecture' to the method table.
10656 * python/python-internal.h: Add declarations of new utility
10657 functions.
10658 * python/python.c (_initialize_python): Initialize
10659 gdb.Architecture class.
10660
796a7ff8
DE
106612013-01-23 Doug Evans <dje@google.com>
10662
10663 Work around binutils/15021.
10664 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10665 type_unit_group out of union s. All uses updated.
10666 (read_index_from_section): Watch for index version 8.
10667 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10668 an imported symtab.
10669 (write_psymtabs_to_index): Increment version number to 8.
10670
0928e93d
PA
106712013-01-22 Pedro Alves <palves@redhat.com>
10672
10673 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10674 user-visible.
10675
9c97429f
PA
106762013-01-22 Pedro Alves <palves@redhat.com>
10677
10678 * annotate.c (annotate_breakpoints_changed): Rename to ...
10679 (annotate_breakpoints_invalid): ... this. Make static.
10680 (breakpoint_changed): Adjust.
10681 (_initialize_annotate): Always install the observers. Install a
10682 "breakpoint_created" observer.
10683 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10684 * breakpoint.c (set_breakpoint_condition)
10685 (breakpoint_set_commands, do_map_commands_command)
10686 (init_raw_breakpoint, clear_command, set_ignore_count)
10687 (enable_breakpoint_disp): No longer call
10688 annotate_breakpoints_changed.
10689
bd00c694
PA
106902013-01-22 Pedro Alves <palves@redhat.com>
10691
10692 * annotate.c: Include "inferior.h".
10693 (frames_invalid_emitted)
10694 (breakpoints_invalid_emitted): New globals.
10695 (async_background_execution_p): New function.
10696 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10697 emitting the annotation if it has already been emitted.
10698 (annotate_display_prompt): New function.
10699 * annotate.h (annotate_display_prompt): New declaration.
10700 * event-top.c: Include annotate.h.
10701 (display_gdb_prompt): Call annotate_display_prompt.
10702
187d10dd
PA
107032013-01-22 Pedro Alves <palves@redhat.com>
10704
10705 * annotate.c (ignore_count_changed): Delete.
10706 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10707 (annotate_ignore_count_change): Delete.
10708 (annotate_stopped): Don't emit a delayed breakpoints-changed
10709 annotation.
10710 * annotate.h (annotate_ignore_count_change): Delete.
10711 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10712 annotate_ignore_count_change.
10713
d84cf7eb
TT
107142013-01-22 Tom Tromey <tromey@redhat.com>
10715
10716 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10717 require_rvalue for a register location.
10718
8f1d5693
MK
107192013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10720
10721 * breakpoint.c (print_one_breakpoint_location): Add MI
10722 field 'thread-groups' when printing a breakpoint.
10723 (output_thread_groups): New function.
10724
aa6199c6
SCR
107252013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10726
10727 * python/lib/gdb/commands/explore.py
10728 (CompoundExplorer.explore_expr): Correct the name of a method
10729 being invoked.
10730 (ExploreTypeCommand.invoke): Add a missing 'return'.
10731
d2afef13
TT
107322013-01-21 Tom Tromey <tromey@redhat.com>
10733
10734 * gdb_obstack.h (obconcat): Move declaration here, from...
10735 * symfile.h (obconcat): ... here.
10736 * gdb_obstack.c: New file.
10737 (obconcat): Move from...
10738 * symfile.c (obconcat): ... here.
10739 * Makefile.in (SFILES): Add gdb_obstack.c.
10740 (COMMON_OBS): Add gdb_obstack.o.
10741
10f0c4bb
TT
107422013-01-21 Tom Tromey <tromey@redhat.com>
10743
10744 * symfile.h (obsavestring): Don't declare.
10745 * symfile.c (obsavestring): Remove.
10746 * ada-exp.y: Use obstack_copy0, not obsavestring.
10747 * ada-lang.c: Use obstack_copy0, not obsavestring.
10748 * coffread.c: Use obstack_copy0, not obsavestring.
10749 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10750 * dbxread.c: Use obstack_copy0, not obsavestring.
10751 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10752 * jit.c: Use obstack_copy0, not obsavestring.
10753 * mdebugread.c: Use obstack_copy0, not obsavestring.
10754 * psymtab.c: Use obstack_copy0, not obsavestring.
10755 * stabsread.c: Use obstack_copy0, not obsavestring.
10756 * xcoffread.c: Use obstack_copy0, not obsavestring.
10757
86f62fd7
TT
107582013-01-21 Tom Tromey <tromey@redhat.com>
10759
10760 * dwarf2read.c (fixup_go_packaging): Save package name
10761 on objfile obstack.
10762 * gdbtypes.c (init_type): Don't copy name.
10763
15d034d0
TT
107642013-01-21 Tom Tromey <tromey@redhat.com>
10765
10766 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10767 const.
10768 (struct attribute) <u.str>: Now const.
10769 (struct fnfieldlist) <name>: Now const.
10770 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10771 (partial_die_parent_scope): Make return type const.
10772 (partial_die_full_name, add_partial_symbol): Update.
10773 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10774 'name' const.
10775 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10776 (read_file_scope, read_func_scope, dwarf2_add_field)
10777 (dwarf2_add_member_fn, read_structure_type)
10778 (process_enumeration_scope, read_array_type, read_module_type)
10779 (read_base_type, read_subrange_type): Update.
10780 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10781 (new_symbol_full, guess_full_die_structure_name): Update.
10782 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10783 (dwarf2_name): Return const type.
10784 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10785 const.
10786
748e18ae
TT
107872013-01-21 Tom Tromey <tromey@redhat.com>
10788
10789 * gdbtypes.c (init_type): Make 'name' const.
10790 * gdbtypes.h (init_type): Update.
10791
46212e0b
TT
107922013-01-21 Tom Tromey <tromey@redhat.com>
10793
10794 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10795 (start_symtab): Make 'name' and 'dirname' const. Use
10796 set_last_source_file.
10797 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10798 (last_source_file): Define. Now static.
10799 (set_last_source_file, get_last_source_file): New functions.
10800 * buildsym.h (last_source_file): Don't declare.
10801 (start_symtab): Update.
10802 (set_last_source_file, get_last_source_file): Declare.
10803 * coffread.c (complete_symtab): Use set_last_source_file.
10804 (coff_end_symtab): Likewise.
10805 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10806 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10807 set_last_source_file.
10808 (process_one_symbol): Use get_last_source_file.
10809 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10810 (psymtab_to_symtab_1): Use get_last_source_file.
10811 * xcoffread.c (process_linenos): Use get_last_source_file.
10812 (complete_symtab): Use set_last_source_file.
10813 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10814 (scan_xcoff_symtab): Use set_last_source_file.
10815
9d2ceabe
TT
108162013-01-21 Tom Tromey <tromey@redhat.com>
10817
10818 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10819 (symbol_set_names): Remove casts. Handle field const-ness.
10820
cfc594ee
TT
108212013-01-21 Tom Tromey <tromey@redhat.com>
10822
10823 * dwarf2read.c (new_symbol_full): Remove cast.
10824 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10825 * symtab.h (symbol_set_demangled_name): Update.
10826
5484b13a
TT
108272013-01-21 Tom Tromey <tromey@redhat.com>
10828
10829 * main.c (captured_main): Call bfd_init.
10830
1605ef26
TT
108312013-01-21 Tom Tromey <tromey@redhat.com>
10832
10833 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10834 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10835 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10836 * NEWS: Update.
10837
3b74cdc3
JK
108382013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10839
10840 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10841
5a352474
JK
108422013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 Fix gdb.fortran/common-block.exp crash in PIE mode.
10845 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10846 LOC_COMMON_BLOCK.
10847 * f-valprint.c (info_common_command_for_block): Expect
10848 LOC_COMMON_BLOCK in gdb_assert.
10849 * symtab.h (struct general_symbol_info): Update comment for the
10850 common_block member.
10851 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10852 (enum address_class): New member LOC_COMMON_BLOCK.
10853
c60797fd
DB
108542013-01-18 David Blaikie <dblaikie@gmail.com>
10855
10856 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10857
46f35228
TT
108582013-01-18 Tom Tromey <tromey@redhat.com>
10859
10860 PR c++/14999:
10861 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10862 Call require_rvalue.
10863
257e7a09
YQ
108642013-01-18 Yao Qi <yao@codesourcery.com>
10865
10866 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10867 (dbx_read_symtab): New declaration.
10868 (dbx_psymtab_to_symtab): Delete.
10869 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10870 Rename parameter PST to SELF. Exchanged two parameters.
10871 (start_psymtab): Caller update.
10872 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10873 (dwarf2_read_symtab): New declaration.
10874 (dwarf2_psymtab_to_symtab): Delete.
10875 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10876 Rename parameter PST to SELF. Exchanged two parameters.
10877 (create_partial_symtab): Caller update.
10878 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10879 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10880 Rename parameter PST to SELF. Exchanged two parameters.
10881 (parse_partial_symbols, new_psymtab): Caller update.
10882 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10883 two parameters.
10884 * psymtab.c (psymtab_to_symtab): Caller update.
10885 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10886 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10887 Rename parameter PST to SELF. Exchanged two parameters.
10888 (xcoff_start_psymtab): Caller update.
10889
0de5618e
YQ
108902013-01-18 Yao Qi <yao@codesourcery.com>
10891
10892 * infrun.c (proceed): Rename local variable 'oneproc' to
10893 'force_step'.
10894
5c04624b
DE
108952013-01-17 Doug Evans <dje@google.com>
10896
848e3e78
DE
10897 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10898 (dw2_build_type_unit_groups): Delete. All uses updated.
10899
5c04624b
DE
10900 * symtab.h (struct symbol_search): Add comment.
10901
d84fca2c
JK
109022013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10903
10904 * symtab.c (compare_filenames_for_search): New comment for
10905 HAS_DRIVE_SPEC.
10906
6108433d
TT
109072013-01-17 Tom Tromey <tromey@redhat.com>
10908
10909 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10910
c89ffd86
JK
109112013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10914 initialize it by existing make_cleanup. Call new do_cleanups.
10915
db2b2972
TT
109162013-01-17 Tom Tromey <tromey@redhat.com>
10917
10918 * cp-abi.c (cp_abi_completer): New function.
10919 (_initialize_cp_abi): Set completer for "set cp-abi".
10920
be7d37a2
TT
109212013-01-17 Tom Tromey <tromey@redhat.com>
10922
10923 * mem-break.c: Remove obsolete comment.
10924 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10925
c9fb1240
SD
109262012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10927
10928 * jit.c (jit_reader_load_command): Interpret the jit reader name
10929 as an absolute path if it begins with a forward slash.
10930
db334a01
SD
109312012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10932
10933 PR gdb/14550
10934
10935 * jit.c (finalize_symtab): Ensure that only the global block has a
10936 NULL superblock.
10937
7d928dac
PA
109382013-01-17 Pedro Alves <palves@redhat.com>
10939
10940 * acinclude.m4: Include ../config/plugins.m4,
10941 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10942 * Makefile.in (aclocal_m4_deps): Update.
10943 * aclocal.m4: Renegerate.
10944
fb8cf7c5
DE
109452013-01-16 Doug Evans <dje@google.com>
10946
10947 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10948
ab04a2af
TT
109492013-01-16 Pedro Alves <palves@redhat.com>
10950 Tom Tromey <tromey@redhat.com>
10951
10952 PR cli/7221:
10953 * NEWS: Add "catch signal".
10954 * breakpoint.c (base_breakpoint_ops): No longer static.
10955 (bpstat_explains_signal): New function.
10956 (init_catchpoint): No longer static.
10957 (base_breakpoint_explains_signal): New function.
10958 (base_breakpoint_ops): Initialize new field.
10959 * breakpoint.h (enum bpstat_signal_value): New.
10960 (struct breakpoint_ops) <explains_signal>: New field.
10961 (bpstat_explains_signal): Remove macro, declare as function.
10962 (base_breakpoint_ops, init_catchpoint): Declare.
10963 * break-catch-sig.c: New file.
10964 * inferior.h (signal_catch_update): Declare.
10965 * infrun.c (signal_catch): New global.
10966 (handle_syscall_event): Update for change to
10967 bpstat_explains_signal.
10968 (handle_inferior_event): Likewise. Always handle random signals
10969 via bpstats.
10970 (signal_cache_update): Check signal_catch.
10971 (signal_catch_update): New function.
10972 (_initialize_infrun): Initialize signal_catch.
10973 * Makefile.in (SFILES): Add break-catch-sig.c.
10974 (COMMON_OBS): Add break-catch-sig.o.
10975
8ac3646f
TT
109762013-01-16 Tom Tromey <tromey@redhat.com>
10977
10978 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10979 (print_one_catch_solib, print_one_catch_syscall)
10980 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10981 "catch-type".
10982
5a18e302
YQ
109832013-01-16 Yao Qi <yao@codesourcery.com>
10984
10985 * printcmd.c (current_display_number): Make it static.
10986
3f01d0d0
YQ
109872013-01-16 Yao Qi <yao@codesourcery.com>
10988
10989 * infcmd.c (step_once): Don't check '!single_inst' as it was
10990 checked before.
10991
1ed59174
JK
109922013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10995
44478ab3
TT
109962013-01-14 Tom Tromey <tromey@redhat.com>
10997
10998 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10999 set command.
11000 * command.h (add_setshow_string_noescape_cmd): Update.
11001 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11002 (complete_set_gnutarget): New function.
11003 (_initialize_core): Set the "set gnutarget" completer.
11004
06d66ee9
TT
110052013-01-14 Tom Tromey <tromey@redhat.com>
11006
11007 PR symtab/14442:
11008 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11009 (c_type_print_modifier): Likewise.
11010 * dwarf2read.c (read_tag_restrict_type): New function.
11011 (read_type_die_1): Handle DW_TAG_restrict_type.
11012 * gdbtypes.c (make_restrict_type): New function.
11013 (recursive_dump_type): Handle TYPE_RESTRICT.
11014 * gdbtypes.h (enum type_flag_values): Renumber.
11015 (enum type_instance_flag_value): Add
11016 TYPE_INSTANCE_FLAG_RESTRICT.
11017 (TYPE_RESTRICT): New macro.
11018 (make_restrict_type): Declare.
11019
c9bf0622
TT
110202013-01-14 Tom Tromey <tromey@redhat.com>
11021
11022 PR symtab/14931:
11023 * psymtab.c (struct psymtab_state): New.
11024 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11025 functions.
11026 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11027 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11028
44d594fd
PA
110292013-01-14 Richard Sharman <richard_sharman@mitel.com>
11030 Pedro Alves <palves@redhat.com>
11031
11032 PR remote/14786
11033
11034 * remote.c (remote_threads_info): Make a copy of the reply from
11035 qfThreadInfo and use that instead of rs->buf.
11036
442e4d9c
YQ
110372013-01-14 Yao Qi <yao@codesourcery.com>
11038
11039 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11040 (dbx_psymtab_to_symtab): Likewise.
11041 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11042 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11043 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11044
5b12a61c
JK
110452013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11046
11047 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11048 make_cleanup_restore_current_language. Call set_language. Move
11049 OLD_CHAIN and INNER_CHAIN cleanups.
11050 * utils.c (do_restore_current_language)
11051 (make_cleanup_restore_current_language): New functions.
11052 * utils.h (make_cleanup_restore_current_language): New declaration.
11053
f0a4b570
JK
110542013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11055
11056 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11057 non-existing files.
11058
57b3c00c
JK
11059 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11060 non-existing files if FILENAME is already absolute.
11061
daefa854
JK
110622013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11063
11064 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11065 fputs_filtered. Append trailing newline.
11066
ca9c6ee2
YQ
110672013-01-11 Yao Qi <yao@codesourcery.com>
11068 Stan Shebs <stan@codesourcery.com>
11069
11070 * psymtab.c (init_psymbol_list): Clarify the comment.
11071
f28045c2
YQ
110722013-01-11 Yao Qi <yao@codesourcery.com>
11073
11074 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11075 (update_dprintf_command_list): Assert that 'printf_line' is
11076 non-null. Remove condition check.
11077
da5132d3
JK
110782013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11079
11080 Code cleanup.
11081 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11082 type const char *.
11083 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11084 const char *.
11085 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11086
843e694d
AG
110872013-01-09 Anthony Green <green@moxielogic.com>
11088
11089 * cp-abi.c (cplus_print_vtable): Don't return value from void
11090 function.
11091 * ada-lang.c (re_set_catch_assert): Ditto.
11092
da51c347
DE
110932013-01-09 Doug Evans <dje@google.com>
11094
11095 * symfile.h (quick_symbol_functions): Delete member
11096 pre_expand_symtabs_matching. All uses removed.
11097 * dwarf2read.c (dw2_lookup_symbol): Implement.
11098 (dw2_do_expand_symtabs_matching): Delete.
11099 (dw2_pre_expand_symtabs_matching): Delete.
11100 (struct dw2_symtab_iterator): New type.
11101 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11102 (dw2_expand_symtabs_for_function): Rewrite.
11103 (dwarf2_gdb_index_functions): Update.
11104 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11105 (psym_functions): Update.
11106
b2259038
TT
111072013-01-09 Tom Tromey <tromey@redhat.com>
11108
11109 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11110 * configure: Rebuild.
11111 * configure.ac: Add somread.o to the build if BFD has SOM
11112 support.
11113 * somread.c: Include som/aout.h, not syms.h.
11114 (som_symtab_read): Use som_external_symbol_dictionary_record.
11115 Unpack records manually.
11116 (_initialize_somread): Declare.
11117
bdad4180
MF
111182012-01-08 Mike Frysinger <vapier@gentoo.org>
11119
11120 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11121 Cast return_address to 64bits.
11122
03cdf680
HZ
111232013-01-08 Hui Zhu <hui_zhu@mentor.com>
11124
11125 * printcmd.c: Remove define of function output_command.
11126 * tracepoint.c: Remove extern of function output_command.
11127 * valprint.h: (output_command): New extern.
11128
8a808554
TT
111292013-01-07 Tom Tromey <tromey@redhat.com>
11130
11131 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11132 Remove.
11133 (objc_language_defn): Use c_printchar, c_printstr,
11134 c_emit_char.
11135
e93a8774
TT
111362013-01-07 Tom Tromey <tromey@redhat.com>
11137
11138 PR cli/7719:
11139 * NEWS: Update.
11140 * ada-valprint.c (printstr, print_field_values): Remove
11141 "inspect_it" code.
11142 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11143 code.
11144 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11145 code.
11146 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11147 * main.c (captured_main): Remove "epoch" argument.
11148 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11149 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11150 * p-valprint.c (pascal_object_print_value_fields): Remove
11151 "inspect_it" code.
11152 * printcmd.c (print_command_1): Remove 'inspect' argument.
11153 (print_command, call_command): Update.
11154 (inspect_command): Remove.
11155 (_initialize_printcmd): Make "inspect" an alias for "print".
11156 * top.c (epoch_interface): Remove.
11157 * top.h (epoch_interface): Remove.
11158 * valprint.c (user_print_options): Update.
11159 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11160 * valprint.h (struct value_print_options) <inspect_it>: Remove
11161 field.
11162
111632013-01-04 Tom Tromey <tromey@redhat.com>
11164
11165 * valprint.h (read_string): Add 'extern'.
11166
b967eb24
JB
111672013-01-07 Joel Brobecker <brobecker@adacore.com>
11168
11169 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11170 used to decide whether to define darwin_read_dyld_info or not.
11171
78a8b30e
PM
111722013-01-03 Pierre Muller <muller@sourceware.org>
11173
11174 * main.c (relocate_gdb_directory): Avoid calling stat function
11175 if DIR is empty.
11176
50da2f25
YQ
111772013-01-03 Yao Qi <yao@codesourcery.com>
11178
11179 * psymtab.c (fixup_psymbol_section): Update declaration.
11180 (fixup_psymbol_section): Remove code returning value.
11181
e7e8980f
YQ
111822013-01-03 Yao Qi <yao@codesourcery.com>
11183
11184 * symtab.h: Remove some out of date comments.
11185 (enum exception_event_kind): Move it ...
11186 * breakpoint.c: ... here.
11187
569283d4
MF
111882013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11189
9f9d9a96 11190 PR gdb/14405
569283d4
MF
11191 * darwin-nat.c (darwin_read_dyld_info): Only build if
11192 TASK_DYLD_INFO_COUNT is defined.
11193 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11194 TASK_DYLD_INFO_COUNT is defined.
11195
2e36fbea
TT
111962013-01-02 Tom Tromey <tromey@redhat.com>
11197
11198 * symfile.h (struct ecoff_debug_hack): Remove.
11199 * objfiles.c: Don't include mdebugread.h.
11200
4f05add4
TT
112012013-01-02 Tom Tromey <tromey@redhat.com>
11202
11203 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11204 * configure.ac: Check for Mach-O support in BFD. Update
11205 CONFIG_OBS.
11206 * configure: Rebuild.
11207
def63ff0
TT
112082013-01-02 Tom Tromey <tromey@redhat.com>
11209
11210 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11211 * configure.ac: Use GDB_AC_CHECK_BFD.
11212 * configure: Rebuild.
11213
60c5dd93
MK
112142013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11215
11216 * MAINTAINERS: Update my email.
11217
6e58437e
JB
112182013-01-01 Joel Brobecker <brobecker@adacore.com>
11219
11220 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11221
627fe805
JB
112222013-01-01 Joel Brobecker <brobecker@adacore.com>
11223
11224 * rs6000-nat.c (bss_data_overlap): New function.
11225 (vmap_symtab): Use it to adjust the .bss section's offset.
11226
28e7fd62
JB
112272013-01-01 Joel Brobecker <brobecker@adacore.com>
11228
11229 Update year range in copyright notice of all files.
11230
e93a8774 112312013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11232
11233 * top.c (print_gdb_version): Update copyright year.
11234
72b20e9c 11235For older changes see ChangeLog-2012.
c906108c
SS
11236\f
11237Local Variables:
11238mode: change-log
11239left-margin: 8
11240fill-column: 74
11241version-control: never
57da7796 11242coding: utf-8
c906108c 11243End:
This page took 2.019796 seconds and 4 git commands to generate.