BFD: elf64-x86-64-nacl: Correct 9-byte nop sequence used in PLT0 entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aee17e42
TT
12013-10-29 Tom Tromey <tromey@redhat.com>
2
3 * utils.c (reg): Move undefinition...
4 * gdb_curses.h: ... here. Update comment to mention AIX.
5
9ac69859
NB
62013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
7
8 * exec.h (add_target_sections_of_objfile): New declaration.
9 * exec.c (add_target_sections_of_objfile): New function.
10 * symfile.c (add_symbol_file_command): Update current target sections.
11 (remove_symbol_file_command): New command.
12 (symfile_free_objfile): New function.
13 (_initialize_symfile): Register observer for free_objfile events.
14 * NEWS: Add description of the remove-symbol-file command.
15 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
16 * objfiles.c (free_objfile): Notify free_objfile.
17 (is_addr_in_objfile): New function.
18 * objfiles.h (is_addr_in_objfile): New declaration.
19 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
20 events instead of solib_unloaded events.
21 (_initialize_printcmd): Register observer for free_objfile instead
22 of solib_unloaded notifications.
23 * solib.c (remove_user_added_objfile): New function.
24 (_initialize_symfile): Add remove-symbol-file.
25
f69d9aef
AB
262013-10-29 Andrew Burgess <aburgess@broadcom.com>
27
28 * infcmd.c (default_print_one_register_info): Use val_print to
29 print all values even optimized out or unavailable ones. Don't
30 try to print a raw form of optimized out or unavailable values.
31
487ad57c
YQ
322013-10-29 Yao Qi <yao@codesourcery.com>
33
34 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
35 parameter 'arg' instead of from program_space_data.
36 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
37 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
38 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
39 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
40 * inflow.c (inflow_inferior_data_cleanup): Get data from
41 parameter 'arg' instead of inferior_data.
42 * registry.h: Add comments.
43
3c4797ba
PA
442013-10-28 Pedro Alves <palves@redhat.com>
45
46 * breakpoint.c (watchpoints_triggered)
47 <!target_stopped_data_address>: Hardcode return 1.
48
cdaa5b73
PA
492013-10-28 Pedro Alves <palves@redhat.com>
50
51 * infrun.c (process_event_stop_test): Remove unnecessary scoping
52 level and reindent.
53
94c57d6a
PA
542013-10-28 Pedro Alves <palves@redhat.com>
55
56 * infrun.c (process_event_stop_test): New function, factored out
57 from handle_inferior_event.
58 (handle_inferior_event): 'process_event_stop_test' is now a
59 function instead of a goto label -- adjust.
60
fcf3daef
PA
612013-10-28 Pedro Alves <palves@redhat.com>
62
63 * infrun.c (handle_inferior_event): Move process_event_stop_test
64 goto label to the else branch of the ecs->random_signal check,
65 along with FRAME and GDBARCH re-fetching.
66
c447ac0b
PA
672013-10-28 Pedro Alves <palves@redhat.com>
68
69 * infrun.c (switch_back_to_stepped_thread): New function, factored
70 out from handle_inferior_event.
71 (handle_inferior_event): Adjust to call
72 switch_back_to_stepped_thread. Call it also at the tail of the
73 random signal handling, and return, instead of also handling
74 random signals just before the stepping tests.
75
f05e4c11
PA
762013-10-28 Pedro Alves <palves@redhat.com>
77
78 * infrun.c (clear_stop_func): Delete.
79 (handle_inferior_event): Don't call clear_stop_func and don't
80 clear 'ecs->random_signal'.
81
ca20d462
YQ
822013-10-27 Yao Qi <yao@codesourcery.com>
83
84 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
85 (varobj_create, varobj_get_path_expr): Update.
86 (varobj_value_has_mutated, varobj_update): Likewise.
87 (create_child_with_value, new_root_variable): Likewise.
88 (number_of_children, name_of_variable): Likewise.
89 (value_of_child, my_value_of_variable): Likewise.
90 (varobj_value_is_changeable_p): Likewise.
91
a53b64ea
YQ
922013-10-25 Yao Qi <yao@codesourcery.com>
93
94 * language.h (struct lang_varobj_ops): Declare.
95 (struct language_defn) <la_varobj_ops>: New field.
96 * ada-lang.c: Include "varobj.h"
97 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
98 ada_varobj_ops.
99 * c-lang.c: Include "varobj.h"
100 (c_language_defn): Initialize field 'la_varobj_ops' with
101 c_varobj_ops.
102 (cplus_language_defn): Initialize field 'la_varobj_ops' with
103 cplus_varobj_ops.
104 (asm_language_defn): Initialize field 'la_varobj_ops' with
105 default_varobj_ops.
106 (minimal_language_defn): Likewise.
107 * d-lang.c (d_language_defn): Likewise.
108 * f-lang.c (f_language_defn): Likewise.
109 * go-lang.c (go_language_defn): Likewise.
110 * m2-lang.c (m2_language_defn): Likewise.
111 * objc-lang.c (objc_language_defn): Likewise.
112 * opencl-lang.c (opencl_language_defn): Likewise.
113 * p-lang.c (pascal_language_defn): Likewise.
114 * language.c (unknown_language_defn): Likewise.
115 (auto_language_defn): Likewise.
116 (local_language_defn): Likewise.
117 * jv-lang.c (java_language_defn): Initialize field
118 'la_varobj_ops' with java_varobj_ops.
119 * varobj.c (varobj_create): Update.
120 * varobj.h (default_varobj_ops): Define macro.
121
686d4def
PA
1222013-10-25 Pedro Alves <palves@redhat.com>
123
124 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
125 static field value.
126 (cp_print_static_field): If the value is entirely optimized out,
127 print <optimized out> here.
128 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
129 static field value.
130 * p-valprint.c (pascal_object_print_static_field): If the value is
131 entirely optimized out, print <optimized out> here.
132 * valops.c (do_search_struct_field)
133 (value_struct_elt_for_reference): No longer handle a NULL static
134 field value.
135 * value.c (value_static_field): Return an optimized out value
136 instead of NULL.
137
6c177e28
YQ
1382013-10-25 Yao Qi <yao@codesourcery.com>
139
140 * remote.c (remote_traceframe_info): Return early if
141 traceframe is not selected.
142
98322bfa
YQ
1432013-10-25 Yao Qi <yao@codesourcery.com>
144
145 * tracepoint.c (traceframe_fun): Remove.
146 (traceframe_sal): Remove.
147 (set_traceframe_context): Add local variables.
148
6ba1f115
JB
1492013-10-25 Joel Brobecker <brobecker@adacore.com>
150
151 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
152 and parameter name.
153
bbe769cc
MR
1542013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
155
156 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
157 failure from register information collection.
158
72ee4495 1592013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
160
161 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
162 member.
163 (linux_corefile_thread_callback): Update accordingly.
164 (linux_make_corefile_notes): Likewise.
165
98882a26
PA
1662013-10-24 Pedro Alves <palves@redhat.com>
167
168 * NEWS (New options): Mention set/show startup-with-shell.
169 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
170 instead of 3.
171 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
172 startup-with-shell'.
173 (show_startup_with_shell): New function.
174 (_initialize_fork_child): Register the set/show startup-with-shell
175 commands.
176 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
177 * inf-ttrace.c (inf_ttrace_him): Remove comment.
178 * procfs.c (procfs_init_inferior): Remove comment.
179 * infcmd.c (startup_with_shell): New global.
180 * inferior.h (startup_with_shell): Declare global.
181 (STARTUP_WITH_SHELL): Delete.
182 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
183
c9737c08
PA
1842013-10-23 Pedro Alves <palves@redhat.com>
185
186 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
187 * common/signals.c: Include "gdb_assert.h".
188 (signals): New field 'symbol'.
189 (SET): Use the 'symbol' parameter.
190 (gdb_signal_to_symbol_string): New function.
191 * infrun.c (handle_inferior_event) <random signal>: In debug
192 output, print the random signal enum as string in addition to its
193 number.
194 * target/waitstatus.c (target_waitstatus_to_string): Print the
195 signal's enum value as string instead of the (POSIX) signal name.
196
f60db4f0
GB
1972013-10-23 Gary Benson <gbenson@redhat.com>
198
199 PR 16013
200 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
201 from 32 to 18. Adjusted fscanf format string accordingly.
202 (Avoids leaving cmd unterminated.)
203 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
204 trun, retn or extra. (Avoids leaving extra unterminated.) Check
205 that local_address and remote_address will not overflow.
206 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
207 leaving dependencies unterminated. Parse size as "%u" to match
208 definition.
209
6d3e7a94
PA
2102013-10-22 Pedro Alves <palves@redhat.com>
211
212 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
213 set ecs->random signal.
214
42ec045f
PA
2152013-10-22 Pedro Alves <palves@redhat.com>
216
217 * infrun.c (keep_going): Update comments.
218
2192013-10-22 Pedro Alves <palves@redhat.com>
220
221 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
222 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
223
2242013-10-22 Pedro Alves <palves@redhat.com>
225
226 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
227 GDB_EXC_BAD_ACCESS.
228 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
229 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
230 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
231 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
232 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
233 (GDB_SIGNAL_LAST): Change description string.
234 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
235 Adjust to signal renaming.
236 * darwin-nat.c (darwin_decode_message): Likewise.
237
c8fde1b1
JM
2382013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
239
240 * MAINTAINERS (Write After Approval): Add myself to the list.
241
e8369a73
AB
2422013-10-18 Andrew Burgess <aburgess@broadcom.com>
243
244 * breakpoint.c (update_watchpoint): If hardware watchpoints are
245 forced off, downgrade them to software watchpoints if possible,
246 and error out if not possible.
247 (watch_command_1): Move watchpoint type selection closer to
248 watchpoint creation, and extend the comments.
249
776f04fa
PA
2502013-10-18 Pedro Alves <palves@redhat.com>
251
252 PR gdb/16062
253 * infrun.c (handle_inferior_event): Keep going if we got a random
254 signal we should not stop for, instead of falling through to the
255 step tests.
256
0c6faab5
YQ
2572013-10-18 Yao Qi <yao@codesourcery.com>
258
259 * c-varobj.c (cplus_number_of_children): Fix indentation.
260
50b34a18
TT
2612013-10-17 Tom Tromey <tromey@redhat.com>
262
263 PR gdb/15995:
264 * printcmd.c (printcmd): Call gdb_flush.
265
5c4c8a59
TT
2662013-10-17 Tom Tromey <tromey@redhat.com>
267
268 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
269 (elf_locate_sections): Update.
270
c4124bf1
YQ
2712013-10-17 Yao Qi <yao@codesourcery.com>
272
273 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
274 * ada-varobj.c: Remove the include of ada-varobj.h.
275 (ada_varobj_get_number_of_children): Declare.
276 (ada_varobj_get_name_of_child): Make it static.
277 (ada_varobj_get_path_expr_of_child): Likewise.
278 (ada_varobj_get_value_of_child): Likewise.
279 (ada_varobj_get_type_of_child): Likewise.
280 (ada_varobj_get_value_of_array_variable): Likewise.
281 * ada-varobj.h: Remove.
282
99ad9427
YQ
2832013-10-17 Yao Qi <yao@codesourcery.com>
284
285 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
286 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
287 * ada-varobj.c: Include "varobj.h".
288 (ada_number_of_children): New. Moved from varobj.c.
289 (ada_name_of_variable, ada_name_of_child): Likewise.
290 (ada_path_expr_of_child, ada_value_of_child): Likewise.
291 (ada_type_of_child, ada_value_of_variable): Likewise.
292 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
293 (ada_varobj_ops): New.
294 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
295 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
296 * gdbtypes.h (get_target_type): Declare.
297 * varobj.c: Remove the inclusion of "ada-varobj.h" and
298 "ada-lang.h".
299 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
300 (ANONYMOUS_UNION_NAME): Likewise.
301 (get_type, get_value_type, get_target_type): Remove declarations.
302 (value_get_print_value, varobj_value_get_print_value): Likewise.
303 (c_number_of_children, c_name_of_variable): Likewise.
304 (c_name_of_child, c_path_expr_of_child): Likewise.
305 (c_value_of_child, c_type_of_child): Likewise.
306 (c_value_of_variable, cplus_number_of_children): Likewise.
307 (cplus_class_num_children, cplus_name_of_variable): Likewise.
308 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
309 (cplus_value_of_child, cplus_type_of_child): Likewise.
310 (cplus_value_of_variable, java_number_of_children): Likewise.
311 (java_name_of_variable, java_name_of_child): Likewise.
312 (java_path_expr_of_child, java_value_of_child): Likewise.
313 (java_type_of_child, java_value_of_variable): Likewise.
314 (ada_number_of_children, ada_name_of_variable): Likewise.
315 (ada_name_of_child, ada_path_expr_of_child): Likewise.
316 (ada_value_of_child, ada_type_of_child): Likewise.
317 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
318 (ada_value_has_mutated): Likewise.
319 (struct language_specific): Move it to varobj.h.
320 (CPLUS_FAKE_CHILD): Move it to varobj.h.
321 (restrict_range): Rename it varobj_restrict_range. Make it extern.
322 Callers update.
323 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
324 Make it extern.
325 (is_anonymous_child): Move it to c-varobj.c and rename to
326 varobj_is_anonymous_child. Caller update.
327 (get_type): Move it to c-varobj.c.
328 (get_value_type): Rename it varobj_get_value_type. Make it
329 extern.
330 (get_target_type): Move it gdbtypes.c.
331 (varobj_formatted_print_options): New function.
332 (value_get_print_value): Rename it to
333 varobj_value_get_print_value and make it extern.
334 (varobj_value_is_changeable_p): Make it extern.
335 (adjust_value_for_child_access): Move it to c-varobj.c.
336 (default_value_is_changeable_p): Rename it to
337 varobj_default_value_is_changeable_p. Make it extern.
338 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
339 (c_name_of_child, c_path_expr_of_child): Likewise.
340 (c_value_of_child, c_type_of_child): Likewise.
341 (c_value_of_variable, cplus_number_of_children): Likewise.
342 (cplus_class_num_children, cplus_name_of_variable): Likewise.
343 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
344 (cplus_value_of_child, cplus_type_of_child): Likewise.
345 (cplus_value_of_variable): Likewise.
346 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
347 (java_name_of_child, java_path_expr_of_child): Likewise.
348 (java_value_of_child, java_type_of_child): Likewise.
349 (java_value_of_variable): Likewise.
350 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
351 (ada_name_of_child, ada_path_expr_of_child): Likewise.
352 (ada_value_of_child, ada_type_of_child): Likewise.
353 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
354 (ada_value_has_mutated): Likewise.
355 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
356 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
357 (c_varobj_ops, cplus_varobj_ops): Declare.
358 (java_varobj_ops, ada_varobj_ops): Declare.
359 (varobj_default_value_is_changeable_p): Declare.
360 (varobj_value_is_changeable_p): Declare.
361 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
362 (varobj_get_path_expr_parent): Declare.
363 (varobj_value_get_print_value): Declare.
364 (varobj_formatted_print_options): Declare.
365 (varobj_restrict_range): Declare.
366
c8a62302
LM
3672013-10-17 Luis Machado <lgustavo@codesourcery.com>
368
369 * target/waitstatus.h (target_waitkind): Remove spurious
370 character from the comments.
371
eade6471
JB
3722013-10-17 Joel Brobecker <brobecker@adacore.com>
373
374 * gdbarch.sh (get_longjmp_target): Add method documentation.
375 * gdbarch.h: Regenerate.
376
5411b26c
TT
3772013-10-16 Tom Tromey <tromey@redhat.com>
378
379 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
380 label.
381
87326c87
LM
3822013-10-16 Luis Machado <lgustavo@codesourcery.com>
383
384 * gcore.in: Call GDB using the full path to the gcore script.
385 Error out if the GDB binary is not found.
386
fd0a4d76
SDJ
3872013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
388
389 PR gdb/16014
390 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
391 sizeof.
392
d92f7ee3
SDJ
3932013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
394
395 PR gdb/16042
396 * target.c (target_disable_btrace): Fix invalid return value for
397 void function.
398 (target_teardown_btrace): Likewise.
399
bb5ce47a
YQ
4002013-10-14 Yao Qi <yao@codesourcery.com>
401
402 * varobj.c (struct varobj): Move most of the fields to
403 varobj.h.
404 (struct varobj_dynamic): New struct.
405 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
406 (varobj_has_more): Likewise.
407 (dynamic_varobj_has_child_method): Likewise.
408 (update_dynamic_varobj_children): Likewise.
409 (varobj_get_num_children): Likewise.
410 (varobj_list_children, varobj_pretty_printed_p): Likewise.
411 (install_new_value_visualizer): Likewise.
412 (install_new_value_visualizer, install_new_value): Likewise.
413 (varobj_update, new_variable, free_variable): Likewise.
414 (my_value_of_variable, value_get_print_value): Likewise.
415 (install_visualizer): Change the type of parameter 'var' to
416 'struct varobjd_dynamic *'. Callers update.
417 * varobj.h (struct varobj): Moved from varobj.c.
418 (struct varobj) <dynamic>: New field.
419
0b76b0ce
SL
4202013-10-13 Sandra Loosemore <sandra@codesourcery.com>
421
422 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
423 as the preferred name of r30.
424 * nios2-linux-tdep.c (reg_offsets): Likewise.
425 * features/nios2-cpu.xml: Likewise.
426 * features/nios2-linux.c: Regenerated.
427 * features/nios2.c: Regenerated.
428 * regformats/nios2-linux.dat: Regenerated.
429
4856b6bc
JK
4302013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
431
432 Canonicalize directories for EXEC_FILENAME.
433 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
434 exec_filename.
435 * utils.c (gdb_realpath_keepfile): New function.
436 * utils.h (gdb_realpath_keepfile): New declaration.
437
9b557b58
DE
4382013-10-11 Doug Evans <dje@google.com>
439
440 * Makefile.in (GDBFLAGS): New variable.
441 (run): New rule.
442
ce13fade
JB
4432013-10-11 Joel Brobecker <brobecker@adacore.com>
444
445 * NEWS: Add entry documenting the new "-catch-assert" and
446 "-catch-exception" GDB/MI commands.
447
349774ef
JB
4482013-10-11 Joel Brobecker <brobecker@adacore.com>
449
450 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
451 "enabled".
452 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
453 "enabled". Set B->ENABLE_STATE accordingly.
454 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
455 ada-lang.c.
456 (create_ada_exception_catchpoint): Add declaration.
457 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
458 (create_ada_exception_catchpoint): Make non-static. Add new
459 parameter "disabled". Use it in call to
460 init_ada_exception_breakpoint.
461 (catch_ada_exception_command): Add parameter "enabled" in call
462 to create_ada_exception_catchpoint.
463 (catch_assert_command): Likewise.
464
465 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
466 Add declarations.
467 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
468 "catch-exception" commands.
469 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
470 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
471
761269c8
JB
4722013-10-11 Joel Brobecker <brobecker@adacore.com>
473
474 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
475 "enum exception_catchpoint_kind". Replace the "ex_" prefix
476 of all its enumerates with "ada_". Update the rest of this
477 file throughout.
478
b4a5b78b
JB
4792013-10-11 Joel Brobecker <brobecker@adacore.com>
480
481 * ada-lang.c (ada_decode_exception_location): Delete.
482 (create_ada_exception_catchpoint): Remove arguments "sal",
483 "addr_string" and "ops". Add argument "ex_kind" instead.
484 Adjust implementation accordingly, calling ada_exception_sal
485 to get the entities it no longer gets passed as arguments.
486 Document the function's arguments.
487 (catch_ada_exception_command): Use catch_ada_exception_command_split
488 instead of ada_decode_exception_location, and update call to
489 create_ada_exception_catchpoint.
490 (catch_ada_assert_command_split): Renames
491 ada_decode_assert_location. Remove parameters "addr_string" and
492 "ops", and now returns void. Adjust implementation accordingly.
493 Update the function documentation.
494 (catch_assert_command): Use catch_ada_assert_command_split
495 instead of ada_decode_assert_location. Update call to
496 create_ada_exception_catchpoint.
497
7ad1d32c 4982013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
499
500 * utils.h (perror_warning_with_name): Add declaration.
501 * utils.c (perror_warning_with_name): New function.
502 * cli/cli-cmds.c (source_script_with_search): Add call to
503 perror_warning_with_name if from_tty is nul.
504
7ad1d32c 5052013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
506
507 * utils.c (perror_string): New function, extracted out of
508 throw_perror_with_name.
509 (throw_perror_with_name): Rework to use perror_string.
510
bcc75809
YQ
5112013-10-11 Yao Qi <yao@codesourcery.com>
512
513 * remote.c (discard_pending_stop_replies_in_queue): Update
514 declaration.
515 (struct stop_reply) <rs>: New field.
516 (remove_stop_reply_of_remote_state): New function.
517 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
518 Callers update. Pass remove_stop_reply_of_remote_state to
519 QUEUE_iterate.
520 (remote_parse_stop_reply): Initialize field 'rs'.
521
05feb193
WN
5222013-10-10 Will Newton <will.newton@linaro.org>
523
524 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
525 linux_init_abi.
526
0d12017b
JB
5272013-10-10 Joel Brobecker <brobecker@adacore.com>
528
529 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
530 serial_baud_show_cmd.
531 (_initialize_cli_cmds): Delete the code creating the
532 "set/show remotebaud" commands.
533 * serial.c (baud_rate): Move here from top.c.
534 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
535 (_initialize_serial): Create "set/show serial baud" commands.
536 Add "set/show remotebaud" command aliases.
537 * top.c (baud_rate): Moved to serial.c.
538 * NEWS: Document the new "set/show serial baud" commands,
539 replacing "set/show remotebaud".
540
578d3588
PA
5412013-10-09 Pedro Alves <palves@redhat.com>
542
543 * breakpoint.c (insert_bp_location): Use memory_error_message to
544 build the memory error string.
545 * c-lang.c: Include "gdbcore.h".
546 (c_get_string): Use memory_error to throw error.
547 (target_xfer_memory_error): Delete.
548 (memory_error_message): New, factored out from
549 target_xfer_memory_error.
550 (memory_error): Change parameter type to target_xfer_error.
551 Rewrite.
552 (read_memory): Use memory_error instead of
553 target_xfer_memory_error.
554 * gdbcore.h: Include "target.h".
555 (memory_error): Change parameter type to target_xfer_error.
556 (memory_error_message): Declare function.
557 * target.c (target_read_memory, target_read_stack)
558 (target_write_memory, target_write_raw_memory): Return
559 TARGET_XFER_E_IO on error. Adjust comments.
560 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
561 instead of EIO.
562 * target.h (target_read, target_insert_breakpoint)
563 (target_remove_breakpoint): Adjust comments.
564 * valprint.c (partial_memory_read): Rename parameter, and adjust
565 comment.
566 (val_print_string): Use memory_error_message to build the memory
567 error string.
568
c74e1ccf
JK
5692013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
570
571 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
572 result variable. Rename variable fopen_e_ever_failed to
573 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
574
915215be
PA
5752013-10-09 Pedro Alves <palves@redhat.com>
576
577 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
578 (monitor_write_memory_longlongs, monitor_write_memory_block):
579 Constify 'myaddr' parameter.
580 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
581 helper.
582 (monitor_xfer_partial): New function.
583 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
584 hook. Install a to_xfer_partial hook.
585
acd13123
TT
5862013-10-09 Tom Tromey <tromey@redhat.com>
587
588 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
589 bfd_get_alt_debug_link_info.
590
40135bb1
JK
5912013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
592
593 New flag OBJF_NOT_FILENAME.
594 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
595 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
596 allocate_objfile.
597 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
598 symbol_file_add_from_bfd.
599 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
600 allocate_objfile.
601 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
602 NULL.
603 * objfiles.h (OBJF_NOT_FILENAME): New.
604
dc294be5
TT
6052013-10-08 Tom Tromey <tromey@redhat.com>
606
607 * Makefile.in (SFILES): Add build-id.c.
608 (HFILES_NO_SRCDIR): Add build-id.h.
609 * build-id.c: New file, largely from elfread.c. Modified
610 most functions.
611 * build-id.h: New file.
612 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
613 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
614 Search for dwz file using build-id.
615 * elfread.c (build_id_bfd_get, build_id_verify)
616 (build_id_to_debug_filename, find_separate_debug_file): Remove.
617
db230ce3
JB
6182013-10-08 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (compare_names_with_case): Renamed from
621 compare_names, adding a new parameter "casing" and its handling.
622 New function documentation.
623 (compare_names): New function, implemented using
624 compare_names_with_case.
625
6501c98a
JB
6262013-10-08 Joel Brobecker <brobecker@adacore.com>
627
628 * ada-lang.c (ada_exception_sal): Remove advance declaration.
629
84a1243b
TT
6302013-10-07 Tom Tromey <tromey@redhat.com>
631
632 * objfiles.c (free_objfile_per_bfd_storage): Delete the
633 demangled_names_hash.
634 (free_objfile): Don't delete the demangled_names_hash.
635 * objfiles.h (struct objfile_per_bfd_storage)
636 <demangled_names_hash>: New field.
637 (struct objfile) <demangled_names_hash>: Move to
638 objfile_per_bfd_storage.
639 * symfile.c (reread_symbols): Don't delete the
640 demangled_names_hash.
641 * symtab.c (create_demangled_names_hash): Update.
642 (symbol_set_names): Update.
643
1da77581
TT
6442013-10-07 Tom Tromey <tromey@redhat.com>
645
646 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
647 needs_relocations>: New fields.
648 (gdb_bfd_requires_relocations): New function.
649 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
650 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
651 the BFD needs relocations applied.
652
46ecd527
PA
6532013-10-07 Pedro Alves <palves@redhat.com>
654
655 PR breakpoints/11568
656 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
657 the thread list" instead of "gone".
658
0c557179
SDJ
6592013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
660
661 * NEWS: Mention new convenience variable $_exitsignal.
662 * corelow.c (core_open): Reset exit convenience variables. Set
663 $_exitsignal to the uncaught signal which generated the corefile.
664 * infrun.c (handle_inferior_event): Reset exit convenience
665 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
666 (clear_exit_convenience_vars): New function.
667 * inferior.h (clear_exit_convenience_vars): New prototype.
668
1cc47d81
YQ
6692013-10-06 Yao Qi <yao@codesourcery.com>
670
671 * varobj.h: Add comments to enum varobj_languages.
672
73869dc2
DE
6732013-10-04 Doug Evans <dje@google.com>
674
675 Add support for DWP file format version 2.
676 * NEWS: Mention support for DWP file format version 2.
677 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
678 union of asection, containing_section. New fields virtual_offset
679 and is_virtual. Change type of readin filed from int to char.
680 (dwo_sections, dwo_file): Tweak comments.
681 (dwp_v2_section_ids): New enum.
682 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
683 str_offsets, types.
684 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
685 All uses updated.
686 (virtual_v2_dwo_sections): New struct.
687 (dwp_hash_table): New fields version, nr_columns. Change type of
688 section_pool field to a union.
689 (dwp_file): New field version.
690 (dwarf2_has_info): Check for virtual sections.
691 (get_containing_section): New function.
692 (get_section_bfd_owner, get_section_bfd_section): Call it.
693 (dwarf2_locate_sections): Update.
694 (dwarf2_section_empty_p): Update.
695 (dwarf2_read_section): Handle virtual sections.
696 (locate_dwz_sections): Update.
697 (create_dwp_hash_table): Document and handle V2 format.
698 (locate_v1_virtual_dwo_sections): Renamed from
699 locate_virtual_dwo_sections and update. All callers updated.
700 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
701 Delete arg htab. Rename arg section_index to unit_index.
702 All callers updated.
703 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
704 All uses updated.
705 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
706 (lookup_dwo_unit_in_dwp): Add V2 support.
707 (dwarf2_locate_dwo_sections): Update.
708 (dwarf2_locate_common_dwp_sections): Renamed from
709 dwarf2_locate_dwp_sections and update. All callers updated.
710 (dwarf2_locate_v2_dwp_sections): New function.
711 (open_and_init_dwp_file): Add V2 support.
712 (read_str_index): New locals str_section, str_offsets_section.
713
9a2c3737
PA
7142013-10-04 Pedro Alves <palves@redhat.com>
715
716 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
717 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
718 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
719 describing comments with references to ptid.h.
720 * common/ptid.h: Remove intro description of constructors,
721 accessors and predicates.
722 (struct ptid): Reformat.
723 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
724 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
725 describing comments.
726
f5371440
JB
7272013-10-04 Joel Brobecker <brobecker@adacore.com>
728
729 * aix-thread.c (sync_threadlists): Add missing ')' in call
730 to ptid_build.
731
793e1c06
JB
7322013-10-04 Joel Brobecker <brobecker@adacore.com>
733
734 * procfs.c (procfs_init_inferior): Fix typo causing the build
735 to fail.
736
26f0edc1
JB
7372013-10-04 Joel Brobecker <brobecker@adacore.com>
738
739 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
740
5713b9b5
JB
7412013-10-04 Joel Brobecker <brobecker@adacore.com>
742
743 * mi/mi-main.c (run_one_inferior): Add function description.
744 Make ARG a pointer to an integer whose value determines whether
745 we should "run" or "start" the program.
746 (mi_cmd_exec_run): Add handling of the "--start" option.
747 Reject all other command-line options.
748 * NEWS: Add entry for "-exec-run"'s new "--start" option.
749
f48ff2a7
YQ
7502013-10-04 Yao Qi <yao@codesourcery.com>
751
752 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
753 (struct notif_client) <pending_event>: Moved
754 to struct remote_notif_state.
755 <id>: New field.
756 (struct remote_notif_state) <pending_event>: New field.
757 (notif_event_xfree): Declare.
758 * remote-notif.c (handle_notification): Adjust.
759 (notif_event_xfree): New function.
760 (do_notif_event_xfree): Call notif_event_xfree.
761 (remote_notif_state_xfree): Call notif_event_xfree to free
762 each element in field pending_event.
763 * remote.c (discard_pending_stop_replies): Remove declaration.
764 (discard_pending_stop_replies_in_queue): Declare.
765 (remote_close): Call discard_pending_stop_replies_in_queue
766 instead of discard_pending_stop_replies.
767 (remote_start_remote): Adjust.
768 (stop_reply_xfree): Call notif_event_xfree.
769 (notif_client_stop): Adjust initialization.
770 (remote_notif_remove_all): Rename it to ...
771 (remove_stop_reply_for_inferior): ... this. Update comments.
772 Don't check INF is NULL.
773 (discard_pending_stop_replies): Return early if notif_state is
774 NULL. Adjust. Don't check INF is NULL.
775 (remote_notif_get_pending_events): Adjust.
776 (discard_pending_stop_replies_in_queue): New function.
777 (remote_wait_ns): Likewise.
778
5965e028
YQ
7792013-10-04 Yao Qi <yao@codesourcery.com>
780
781 * remote-notif.c (DECLARE_QUEUE_P): Remove.
782 (notif_queue): Remove.
783 (remote_notif_process): Add one parameter 'notif_queue'.
784 Update comments. Callers update.
785 (remote_async_get_pending_events_token): Remove.
786 (remote_notif_register_async_event_handler): Remove.
787 (remote_notif_unregister_async_event_handler): Remove.
788 (handle_notification): Add parameter 'notif_queue'. Update
789 comments. Callers update.
790 (notif_xfree): Remove.
791 (remote_notif_state_allocate): New function.
792 (remote_notif_state_xfree): New function.
793 (_initialize_notif): Remove code to allocate queue.
794 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
795 (struct remote_notif_state): New.
796 (handle_notification): Update declaration.
797 (remote_notif_process): Likewise.
798 (remote_notif_register_async_event_handler): Remove.
799 (remote_notif_unregister_async_event_handler): Remove.
800 (remote_notif_state_allocate): Declare.
801 (remote_notif_state_xfree): Declare.
802 * remote.c (struct remote_state) <notif_state>: New field.
803 (remote_close): Don't call
804 remote_notif_unregister_async_event_handler. Call
805 remote_notif_state_xfree.
806 (remote_open_1): Don't call
807 remote_notif_register_async_event_handler. Call
808 remote_notif_state_allocate.
809
5e5ac9a5
YQ
8102013-10-04 Yao Qi <yao@codesourcery.com>
811
812 * varobj.c (create_child_with_value): Remove 'const' from the
813 type of parameter 'name'.
814 (varobj_add_child): Likewise.
815 (install_dynamic_child): Remove 'const' from the type of
816 parameter 'name'.
817 (varobj_add_child): Likewise.
818 (create_child_with_value): Likewise. Update comments. Don't
819 duplicate 'name'.
820 (update_dynamic_varobj_children): Duplicate 'name'
821 and pass it to install_dynamic_child.
822
06ab7b19
PM
8232013-10-03 Phil Muldoon <pmuldoon@redhat.com>
824
825 * python/py-value.c (convert_value_from_python): Move PyInt_Check
826 conversion logic to occur after PyLong_Check. Comment on order
827 change significance.
828 * python/py-arch.c (archpy_disassemble): Comment on order of
829 conversion for integers and longs.
830
8ae377e8
PA
8312013-10-03 Pedro Alves <palves@redhat.com>
832
833 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
834 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
835 functions. Always test for PTRACE_O_TRACESYSGOOD even if
836 PTRACE_O_TRACEFORK is not supported.
837 (linux_test_for_tracesysgood): New function.
838 (linux_test_for_tracefork): New function, factored out from
839 linux_check_ptrace_features, and also don't kill child_pid here.
840
b1328b1b
TG
8412013-10-03 Tristan Gingold <gingold@adacore.com>
842
843 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
844 Remove verbose error reporting. Use detected state to
845 thread_set_state call.
846 (i386_darwin_dr_get): Fix return type. Remove verbose error
847 report.
848 Remove trailing spaces.
849
901461f8
PA
8502013-10-02 Pedro Alves <palves@redhat.com>
851
852 * cp-valprint.c (cp_print_value_fields): Adjust calls to
853 val_print_optimized_out.
854 * jv-valprint.c (java_print_value_fields): Likewise.
855 * p-valprint.c (pascal_object_print_value_fields): Likewise.
856 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
857 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
858 new optimized out value.
859 * findvar.c (address_from_register): Likewise.
860 * frame.c (put_frame_register): Tweak error string to say the
861 register was not saved, rather than optimized out.
862 * infcmd.c (default_print_one_register_info): Adjust call to
863 val_print_optimized_out. Use value_of_register instead of
864 get_frame_register_value.
865 * mi/mi-main.c (output_register): Use value_of_register instead of
866 get_frame_register_value.
867 * valprint.c (valprint_check_validity): Likewise.
868 (val_print_optimized_out): New value parameter. If the value is
869 lval_register, print <not saved> instead.
870 (value_check_printable, val_print_scalar_formatted): Adjust calls
871 to val_print_optimized_out.
872 * valprint.h (val_print_optimized_out): New value parameter.
873 * value.c (struct value) <optimized_out>: Extend comment.
874 (error_value_optimized_out): New function.
875 (require_not_optimized_out): Use it. Use a different string for
876 lval_register values.
877 * value.h (error_value_optimized_out): New declaration.
878 * NEWS: Mention <not saved>.
879
042a84d9
JB
8802013-10-02 Joel Brobecker <brobecker@adacore.com>
881
882 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
883 strcmp to compare two symtab filenames.
884
6b9780fb
JB
8852013-10-02 Joel Brobecker <brobecker@adacore.com>
886
887 * symtab.c (search_symbols_equal): Delete.
888 (sort_search_symbols_remove_dups): Replace call to
889 search_symbols_equal by call to compare_search_syms,
890 adjusting as necessary.
891
751e7549
PM
8922013-10-02 Phil Muldoon <pmuldoon@redhat.com>
893
894 PR python/15579
895
896 * python/python.c: Document gdb.execute command in Python help.
897
1efd7661
PM
8982013-10-02 Phil Muldoon <pmuldoon@redhat.com>
899
900 * python/py-frame.c (frame_info_to_frame_object): Use
901 gdbpy_convert_exception. Clean up Python object on failure.
902
562fc849
PM
9032013-10-02 Phil Muldoon <pmuldoon@redhat.com>
904
905 * python/lib/gdb/command/frame_filters.py
906 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
907 (ShowFrameFilterPriority.invoke): Ditto.
908
d7561cbb
KS
9092013-10-01 Keith Seitz <keiths@redhat.com>
910
911 * linespec.c (struct ls_parser): Make 'saved_arg' const.
912 (parse_linespec): Make 'argptr' const.
913 Remove temporary cast of 'argptr' to const char **.
914 (decode_line_full): Pass const pointer to parse_linespec.
915 (decode_line_1): Likewise.
916 (decode_objc): Make local variable 'new_argptr' const.
917 (find_function_symbols): Remove temporary cast to char *
918 to find_imps.
919 * objc-lang.c (find_imps): Make argument 'method' const.
920 Return const.
921 * objc-lang.h (find_imps): Likewise.
922
9232013-10-01 Keith Seitz <keiths@redhat.com>
924
925 * completer.c (skip_quoted_chars): Make all arguments const.
926 Return const.
927 (skip_quoted): Likewise.
928 * completer.h (skip_quoted_chars): Likewise.
929 (skip_quoted): Likewise.
930 * defs.h (skip_quoted): Remove duplicate declaration.
931 * jv-exp.y: Include completer.h.
932 (yylex): Remove unneccessary cast to char * fro skip_quoted.
933 * p-exp.y: Include completer.h.
934
9352013-10-01 Keith Seitz <keiths@redhat.com>
936
937 * c-exp.y (parse_number): Make first argument const.
938 Make a copy of the input to manipulate.
939 (c_parse_escape): Make first argument const.
940 Make local variable 'tokptr' const.
941 (parse_string_or_char): Make first two arguments const.
942 (macro_original_text): Make const.
943 (lex_one_token): Make local variable 'tokstart' const.
944 Likewise for local variables named 'p'.
945 Cast away const for struct stoken (temporary).
946 * c-lang.h (c_parse_escpae): Make first argument const.
947 * cli/cli-cmds.c (echo_command): Make local variable 'p'
948 const.
949 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
950 var_string case.
951 * f-exp.y (parse_number): Make first argument const.
952 (match_string_literal): Make local variable 'tokstart'
953 const.
954 (yylex): Make local variable 'p' const.
955 Cast away const for struct stoken (temporary).
956 * go-exp.y (parse_number): Make first argument const.
957 (parse_string_or_char): Likewise.
958 Make local variable 'tokstart' const.
959 (lex_one_token): Likewise for numerous locals called 'p'.
960 Cast away const for struct stoken (temporary).
961 * jv-exp.y (parse_number): Make first argument const.
962 Make local variables 'tokstart' and 'tokptr' const.
963 Cast away const for call to skip_quoted (temporary).
964 (yylex): Make local variable 'p' const.
965 Cast away const for struct stoken (temporary).
966 * m2-exp.y (parse_number): Make local variable 'p' const.
967 (yylex): Likewise for 'tokstart'.
968 Cast away const for struct stoken (temporary).
969 Make local variable 'p' const.
970 * macroexp.c (get_character_constant): Pass a const string
971 to c_parse_escape.
972 (get_string_literal): Likewise.
973 (macro_expand_next): Make first argument const.
974 Cast away const for init_shared_buffer.
975 * macroexp.h (macro_expand_next): Make first argument const.
976 * p-exp.y (yylex): Make a local copy of 'lexptr'.
977 Pass a const string to c_parse_escape.
978 Make local variables 'p' and 'namestart' const.
979 * parse.c (lexptr): Make const.
980 (prev_lexptr): Likewise.
981 (find_template_name_end): Return const.
982 Make argument const, too.
983 (parse_exp_in_context): Make first argument const.
984 Remove the entire const_hack.
985 (parse_exp_in_context_1): Make first argument const.
986 * parser-defs.h (find_template_name_end): Return const.
987 Make argument const, too.
988 (lexptr): Make const.
989 (prev_lexptr): Likewise.
990 * utils.c (parse_escape): Make second argument const.
991 * utils.h (parse_escape): Likewise.
992
9932013-10-01 Keith Seitz <keiths@redhat.com>
994
995 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
996 is now const.
997 (block_lookup): Make 'raw_name' and 'name' const.
998 * ada-lex.l (processString): Update for struct stoken.ptr.
999 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1000 (operator_stoken): Likewise.
1001 (lex_one_token): Remove temporary cast to char * for
1002 'yylval.sval.ptr'.
1003 * f-exp.y (yylex): Likewise.
1004 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1005 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1006 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1007 'yylval.sval.ptr'.
1008 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1009 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1010 * linespec.c (struct ls_parser): Make 'stream' const.
1011 (find_parameter_list_end): Make argument 'input' and local
1012 variable 'p' const.
1013 (linespec_lexer_lex_string): Make local variables 'start' and
1014 'p' const.
1015 Use skip_spaces_const instead of skip_spaces.
1016 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1017 const.
1018 (parse_linespec): Temporarily cast 'argptr' to const for
1019 'parser->lexer.stream'.
1020 * m2-exp.y (yylex): Remove temporary cast to char * for
1021 'yylval.sval.ptr'.
1022 * objc-lang.c (add_msglist): Make local variable 'p' const.
1023 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1024 (exp : STRING): Make 'sp' const.
1025 (parse_number): Make argument 'p' const.
1026 * parser-defs.h (struct stoken): Make 'ptr' const.
1027
193a8eac
DE
10282013-10-01 Doug Evans <dje@google.com>
1029
1030 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1031
2213e2be
YQ
10322013-10-01 Yao Qi <yao@codesourcery.com>
1033
1034 * varobj.c (c_value_of_root): Remove declaration.
1035 (cplus_value_of_root, java_value_of_root): Likewise.
1036 (ada_value_of_root): Likewise.
1037 (struct language_specific) <value_of_root>: Remove.
1038 (languages): Update initialization.
1039 (check_scope): Move earlier.
1040 (c_value_of_root): Move earlier and rename to ...
1041 (value_of_root_1): ... this.
1042 (value_of_root): Caller update.
1043 (cplus_value_of_root, java_value_of_root): Remove.
1044 (ada_value_of_root): Remove.
1045
c573f273
YQ
10462013-10-01 Yao Qi <yao@codesourcery.com>
1047
1048 * varobj.c (varobj_format_string): Remove "unknown".
1049 (languages): Remove the first element.
1050 * varobj.h (enum varobj_languages): Remove vlang_c.
1051
56250258
YQ
10522013-10-01 Yao Qi <yao@codesourcery.com>
1053
1054 * varobj.c (struct language_specific) <language>: Remove.
1055 (languages): Update the initialization.
1056
29f9ebfa
YQ
10572013-10-01 Yao Qi <yao@codesourcery.com>
1058
1059 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1060 "solib-target.h". Include "windows-tdep.h".
1061 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1062 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1063 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1064 windows-tdep.o to gdb_target_obs.
1065
64870a42
YQ
10662013-10-01 Yao Qi <yao@codesourcery.com>
1067
1068 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1069 "solib-target.h".
1070 (amd64_windows_init_abi): Don't call set_solib_ops and
1071 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1072 windows_init_abi instead.
1073 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1074 "solib-target.h".
1075 (i386_cygwin_init_abi): Don't call set_solib_ops,
1076 set_gdbarch_has_dos_based_file_system and
1077 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1078 windows_init_abi instead.
1079 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1080 (windows_init_abi): New function.
1081 (windows_iterate_over_objfiles_in_search_order): Make it
1082 static.
1083 * windows-tdep.h (windows_init_abi): Declare.
1084 (windows_iterate_over_objfiles_in_search_order): Remove
1085 declaration.
1086
0aebdefa
JB
10872013-10-01 Jerome Guitton <guitton@adacore.com>
1088
1089 Checked in by Joel Brobecker <brobecker@adacore.com>
1090 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1091 incomplete dictionnary instead of None in case of missing
1092 environment variables.
1093 (elinos_init): in case of an incomplete environment, best
1094 effort to load system libraries instead of abort.
1095
1c8e84b0
JB
10962013-10-01 Joel Brobecker <brobecker@adacore.com>
1097
1098 * ada-lang.c (ada_has_this_exception_support): Ignore
1099 mst_solib_trampoline minimal symbols.
1100
61d82a0d
TG
11012013-09-30 Tristan Gingold <gingold@adacore.com>
1102
1103 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1104 hardware watchpoint.
1105 (i386_darwin_dr_set): Support 32 and 64 bit states.
1106 (i386_darwin_dr_get): Likewise.
1107 (i386_darwin_dr_set_control): Make static.
1108 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1109 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1110
dfd4cc63
LM
11112013-09-30 Luis Machado <lgustavo@codesourcery.com>
1112
1113 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1114 Replace TIDGET with ptid_get_lwp.
1115 Replace GET_LWP with ptid_get_lwp.
1116 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1117 Replace BUILD_THREAD with ptid_build.
1118 Replace BUILD_LWP with ptid_build.
1119 Replace PIDGET with ptid_get_pid.
1120 Replace TIDGET with ptid_get_lwp.
1121 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1122 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1123 Replace TIDGET with ptid_get_lwp.
1124 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1125 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1126 Replace TIDGET with ptid_get_lwp.
1127 Replace GET_LWP with ptid_get_lwp.
1128 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1129 * auxv.c: Likewise.
1130 * breakpoint.c: Likewise.
1131 * common/ptid.c (ptid_is_pid): Condense check for
1132 null_ptid and minus_one_ptid.
1133 (ptid_lwp_p): New function.
1134 (ptid_tid_p): New function.
1135 * common/ptid.h: Update comments for accessors.
1136 (ptid_lwp_p): New prototype.
1137 (ptid_tid_p): New prototype.
1138 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1139 * gcore.c: Replace PIDGET with ptid_get_pid.
1140 * gdbthread.h: Likewise.
1141 * gnu-nat.c: Likewise.
1142 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1143 Replace TIDGET with ptid_get_lwp.
1144 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1145 * hppanbsd-nat.c: Likewise.
1146 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1147 Replace TIDGET with ptid_get_lwp.
1148 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1149 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1150 * infcmd.c: Likewise.
1151 * inferior.h: Likewise.
1152 * inflow.c: Likewise.
1153 * infrun.c: Likewise.
1154 * linux-fork.c: Likewise.
1155 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1156 Replace GET_PID with ptid_get_pid.
1157 Replace is_lwp with ptid_lwp_p.
1158 Replace GET_LWP with ptid_get_lwp.
1159 Replace BUILD_LWP with ptid_build.
1160
5b4e221c
MF
11612013-09-28 Mike Frysinger <vapier@gentoo.org>
1162
1163 * common/linux-btrace.c: Move sys/syscall.h out of the
1164 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1165 Also check for SYS_perf_event_open before attempting to buid.
1166
57d63ce2
DE
11672013-09-27 Doug Evans <dje@google.com>
1168
19ac8c2e
DE
1169 * dwarf2read.c (dwarf2_section_info): Add comment.
1170 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1171 All uses updated.
1172 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1173 (dwarf2_read_section): Delete unused local "header". Add section
1174 name to error message.
1175 (create_dwo_in_dwp): Tweak comment.
1176 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1177
a32a8923
DE
1178 * dwarf2read.c (die_reader_specs): Tweak comment.
1179 (get_section_bfd_owner, get_section_bfd_section): New functions.
1180 (get_section_name, get_section_file_name): New functions.
1181 (get_section_id, get_section_flags): New functions.
1182 (*): Use new functions to access section fields.
1183
57d63ce2
DE
1184 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1185 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1186 arg "htab". All callers updated.
1187 (create_debug_types_hash_table): Remove redundant copy of
1188 abbrev_section.
1189 (create_dwo_in_dwp): Tweak comments.
1190 (read_str_index): Tweak comment. Record dwarf form name in static
1191 local.
1192
3736004f
PA
11932013-09-27 Pedro Alves <palves@redhat.com>
1194
1195 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1196 (remote_filename_p): Add comment.
1197 * remote.c (remote_filename_p): Adjust to use
1198 REMOTE_SYSROOT_PREFIX.
1199 * solib.c (solib_find): When deciding whether we need to add a
1200 directory separator, check whether the sysroot is "remote:"
1201 instead of checking whether the patch has a drive spec. Add
1202 comments.
1203
5b5596ff
PA
12042013-09-27 Pedro Alves <palves@redhat.com>
1205
1206 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1207 Delete fields.
1208 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1209 directly.
1210
b5eef7aa
JK
12112013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 Fix set debug frame output.
1214 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1215 SENTINEL_FRAME entry lower to match enum frame_type order.
1216
5b856f36
PM
12172013-09-26 Pierre Muller <muller@sourceware.org>
1218
1219 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1220 AMD64_R15_REGNUM when a register index is expected.
1221 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1222 Substitute in array.
1223 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1224 (amd64_push_arguments): Substitute in integer_regnum array.
1225
ade7ed9e
DE
12262013-09-25 Doug Evans <dje@google.com>
1227
d3e81981
DE
1228 * objfiles.c (allocate_objfile): Move comment to better place.
1229
8fb8eb5c
DE
1230 New option "set debug symfile on".
1231 * NEWS: Mention "set debug symfile".
1232 * Makefile.in (SFILES): Add symfile-debug.c.
1233 (COMMON_OBS): Add symfile-debug.o.
1234 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1235 objfile's symbol functions.
1236 * objfiles.h (objfile_set_sym_fns): Declare.
1237 * symfile-debug.c: New file.
1238 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1239 objfile's symbol functions.
1240 (reread_symbols): Ditto.
1241
c256e171
DE
1242 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1243 All uses updated.
1244 (add_symtab_fns): Update prototype.
1245 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1246 (registered_sym_fns): ... this.
1247 (symtab_fns): Update.
1248 (add_symtab_fns): New arg "flavour". All callers updated.
1249 (find_sym_fns): Rewrite to use new sym_fns registry.
1250
f56ce883
DE
1251 * symfile.h (struct sym_fns): Add "objfile" argument to
1252 sym_read_linetable. All uses updated.
1253
20c681d1
DE
1254 * symtab.c (domain_name, search_domain_name): New functions.
1255 * symtab.h (domain_name, search_domain_name): Declare.
1256
ade7ed9e
DE
1257 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1258 map_matching_symbols so objfile is first. All uses updated.
1259 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1260 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1261
7d760051
UW
12622013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1263
1264 PR shlibs/8882
1265 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1266 link map entries.
1267
020f7036
DE
12682013-09-24 Doug Evans <dje@google.com>
1269
1270 * objfiles.c (free_objfile): Move comment.
1271
598402f0
JB
12722013-09-24 Joel Brobecker <brobecker@adacore.com>
1273
1274 * ada-exp.y (string_to_operator): Delete.
1275 (dummy_string_to_ada_operator): Delete.
1276
bf4d6c1c
JB
12772013-09-24 Joel Brobecker <brobecker@adacore.com>
1278
1279 Revert:
1280 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1281 amd64-tdep.c.
1282 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1283 call_dummy_integer_regs, and classify.
1284 * amd64-tdep.h (amd64_classify): Add declaration.
1285 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1286 (amd64_reg_class): Delete, moved to i386-tdep.h.
1287 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1288 Replace call to amd64_classify by call to tdep->classify.
1289 (amd64_push_arguments): Get the list of registers to use for
1290 passing integer parameters from the gdbarch tdep structure,
1291 rather than using a hardcoded one. Replace calls to amd64_classify
1292 by calls to tdep->classify.
1293 (amd64_push_dummy_call): Get the register number used for
1294 the "hidden" argument from tdep->call_dummy_integer_regs.
1295 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1296 and tdep->call_dummy_integer_regs. Set tdep->classify.
1297
849e9755
JB
12982013-09-24 Joel Brobecker <brobecker@adacore.com>
1299
1300 Revert:
1301 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1302 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1303 where tdep->memory_args_by_pointer is non-zero.
1304
c1459fd6
JB
13052013-09-24 Joel Brobecker <brobecker@adacore.com>
1306
1307 Revert:
1308 * i386-tdep.h (struct gdbarch_tdep): Add new field
1309 integer_param_regs_saved_in_caller_frame.
1310 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1311 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1312
20c2e3e0
JB
13132013-09-24 Joel Brobecker <brobecker@adacore.com>
1314
874440b8 1315 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1316 (amd64_windows_classify): Delete.
1317 (amd64_windows_passed_by_integer_register)
1318 (amd64_windows_passed_by_xmm_register)
1319 (amd64_windows_passed_by_pointer)
1320 (amd64_windows_adjust_args_passed_by_pointer)
1321 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1322 (amd64_windows_push_dummy_call): New functions.
1323 (amd64_windows_init_abi): Remove setting of
1324 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1325 tdep->classify, tdep->memory_args_by_pointer and
1326 tdep->integer_param_regs_saved_in_caller_frame.
1327 Add call to set_gdbarch_push_dummy_call.
1328
82bf32bc
JK
13292013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1332 objfile->original_name.
1333
24ba069a
JK
13342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 Pass down original filename for objfile.
1337 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1338 * elfread.c (elf_symfile_read): Likewise.
1339 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1340 longer set ORIGINAL_NAME.
1341 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1342 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1343 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1344 symbol_file_add_from_bfd call.
1345 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1346 (macho_check_dsym): Add parameter filenamep. Change function comment.
1347 Set *filenamep.
1348 (macho_symfile_read): New variable dsym_filename. Update
1349 macho_check_dsym call. Use it for symbol_file_add_separate.
1350 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1351 it. Use it for objfile->original_name.
1352 (objfile_name): Return OBFD's filename, if available.
1353 * objfiles.h (allocate_objfile): Add new parameter name.
1354 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1355 * symfile-mem.c (symbol_file_add_from_memory): Update
1356 symbol_file_add_from_bfd call.
1357 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1358 comment for it.
1359 (symbol_file_add_with_addrs): New parameter name, add function comment
1360 for it. Remove variable name. Update allocate_objfile call.
1361 (symbol_file_add_separate): New parameter name, add function comment
1362 for it. Update symbol_file_add_with_addrs call.
1363 (symbol_file_add_from_bfd): New parameter name. Update
1364 symbol_file_add_with_addrs call.
1365 (symbol_file_add): Update symbol_file_add_from_bfd call.
1366 (reread_symbols): New variable original_name. Save
1367 objfile->original_name by it.
1368 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1369 second parameter.
1370
4262abfb
JK
13712013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 Code cleanup: Add objfile_name accessor function.
1374 * ada-lang.c (is_known_support_routine): Use objfile_name.
1375 * auto-load.c (source_gdb_script_for_objfile)
1376 (auto_load_objfile_script): Likewise.
1377 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1378 * dbxread.c (dbx_symfile_read): Likewise.
1379 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1380 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1381 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1382 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1383 (lookup_dwp_signatured_type, lookup_dwo_unit)
1384 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1385 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1386 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1387 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1388 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1389 (read_subrange_type, load_partial_dies, read_partial_die)
1390 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1391 (die_containing_type, build_error_marker_type, lookup_die_type)
1392 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1393 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1394 (get_DW_AT_signature_type, write_psymtabs_to_index)
1395 (save_gdb_index_command): Likewise.
1396 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1397 Likewise.
1398 * expprint.c (dump_subexp_body_standard): Likewise.
1399 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1400 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1401 original_name.
1402 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1403 obj_name, use objfile_name for it, use the variable.
1404 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1405 Use objfile_name.
1406 * machoread.c (macho_symtab_read, macho_check_dsym)
1407 (macho_symfile_relocate): Likewise.
1408 * maint.c (maintenance_translate_address): Likewise.
1409 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1410 * minsyms.c (install_minimal_symbols): Likewise.
1411 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1412 original_name.
1413 (filter_overlapping_sections): Use objfile_name.
1414 (objfile_name): New function.
1415 * objfiles.h (struct objfile): Rename field name to original_name.
1416 (objfile_name): New prototype.
1417 * printcmd.c (sym_info, address_info): Use objfile_name.
1418 * probe.c (parse_probes, collect_probes, compare_probes)
1419 (info_probes_for_ops): Likewise.
1420 * progspace.c (clone_program_space): Likewise.
1421 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1422 (maintenance_info_psymtabs): Likewise.
1423 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1424 (source_section_scripts): Likewise.
1425 * python/py-objfile.c (objfpy_get_filename): Likewise.
1426 * python/py-progspace.c (pspy_get_filename): Likewise.
1427 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1428 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1429 * solib.c (solib_read_symbols): Likewise.
1430 * stabsread.c (scan_file_globals): Likewise.
1431 * stap-probe.c (handle_stap_probe): Likewise.
1432 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1433 (find_separate_debug_file_by_debuglink): Likewise.
1434 (reread_symbols): Likewise. Use the objfile field name renamed to
1435 original_name.
1436 (allocate_symtab): Use objfile_name.
1437 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1438 (dump_objfile, dump_msymbols, dump_symtab_1)
1439 (maintenance_print_msymbols, maintenance_print_objfiles)
1440 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1441 * target.c (target_translate_tls_address, target_info): Likewise.
1442 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1443 objfile_name.
1444
4721dc18
JK
14452013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1446
1447 Code cleanup.
1448 * probe.c (parse_probes): Rename variable objfile_name to
1449 objfile_namestr.
1450
a61d6db8
JK
14512013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 Remove solib-sunos.c.
1454 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1455 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1456 * objfiles.c (rt_common_objfile): Remove.
1457 (free_objfile): Remove rt_common_objfile comparison.
1458 * objfiles.h (rt_common_objfile): Remove.
1459 * solib-sunos.c: Remove.
1460 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1461
2659903b
JK
14622013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Remove a.out NetBSD and OpenBSD hosts.
1465 * NEWS (Removed native configurations): New.
1466 * config/arm/nbsdaout.mh: Remove.
1467 * config/i386/nbsdaout.mh: Remove.
1468 * config/i386/obsdaout.mh: Remove.
1469 * config/m68k/nbsdaout.mh: Remove.
1470 * config/sparc/nbsdaout.mh: Remove.
1471 * config/vax/nbsdaout.mh: Remove.
1472 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1473 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1474 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1475 error.
1476 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1477 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1478 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1479
f60e2d5c
TT
14802013-09-23 Tom Tromey <tromey@redhat.com>
1481
1482 * linespec.c (struct minsym_and_objfile): Remove.
1483 (minsym_and_objfile_d): Remove.
1484 (struct linespec, struct collect_info, linespec_parse_basic)
1485 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1486 (compare_msymbols, find_method, find_function_symbols)
1487 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1488 (add_minsym, search_minsyms_for_name): Update.
1489
d3eaaf66
AB
14902013-09-23 Andrew Burgess <aburgess@broadcom.com>
1491
1492 * regcache.c: Add include of valprint.h.
1493 (dump_endian_bytes): Delete.
1494 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1495
2cc762b5
AB
14962013-09-23 Andrew Burgess <aburgess@broadcom.com>
1497
1498 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1499
96181529
PA
15002013-09-19 Pedro Alves <palves@redhat.com>
1501
1502 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1503 breakpoints.
1504
9b3f3ee6
TS
15052013-09-19 Pedro Alves <palves@redhat.com>
1506 Thomas Schwinge <thomas@codesourcery.com>
1507 Yue Lu <hacklu.newborn@gmail.com>
1508
1509 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1510 Take a gdb_byte pointer instead of a char pointer.
1511
1512 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1513 gnu_xfer_partial helper.
1514 (gnu_xfer_partial): New function.
1515 (gnu_target): Don't install a deprecated_xfer_memory hook.
1516 Install a to_xfer_partial hook.
1517
69150c3d
JK
15182013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 Constification.
1521 * main.c (captured_main): Replace catch_command_errors by
1522 catch_command_errors_const. Twice.
1523 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1524 (symbol_file_add): Make name parameter const.
1525 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1526 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1527 variable name. Change their usage accordingly.
1528 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1529 const.
1530 (symbol_file_add_main): Make args parameter const.
1531
086850b2
UW
15322013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1533 Ulrich Weigand <uweigand@de.ibm.com>
1534
1535 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1536 of c_value member.
1537 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1538
ca08a94c 15392013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1540 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1541
1542 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1543 (gnu_create_inferior)
1544 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1545 (set_sig_thread_cmd): Use the lwpid field of ptids to
1546 store/extract thread ids instead of the tid field.
1547 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1548
e4c6a2c4
AB
15492013-09-18 Andrew Burgess <aburgess@broadcom.com>
1550
1551 * infcmd.c (default_print_one_register_info): Add detection of
1552 optimized out values.
1553 (default_print_registers_info): Switch to using
1554 get_frame_register_value.
1555
58c48e72
MM
15562013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1557
1558 * infrun.c (handle_inferior_event): Check if we know the
1559 function start address before setting a resume breakpoint.
1560
c8d37639
PA
15612013-09-18 Pedro Alves <palves@redhat.com>
1562
1563 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1564 minus_one_ptid instead of looking at the ptid's tid field and
1565 comparing that to -1.
1566
71926e28
AB
15672013-09-18 Andrew Burgess <aburgess@broadcom.com>
1568
1569 * main.h (get_gdb_program_name): Remove extra whitespace.
1570
c88a1531
AB
15712013-09-18 Andrew Burgess <aburgess@broadcom.com>
1572
1573 * main.h (get_gdb_program_name): Add declaration.
1574 * main.c (get_gdb_program_name): Add definition.
1575
4390d890
DE
15762013-09-17 Doug Evans <dje@google.com>
1577
1578 * dwarf2read.c: Move definitions of complaint functions to after
1579 forward declarations of local functions.
1580
49fa26b0
PA
15812013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1582 Pedro Alves <palves@redhat.com>
1583
1584 PR gdb/11568
1585 * breakpoint.c (remove_threaded_breakpoints): New function.
1586 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1587 as thread_exit observer.
1588
08d72866
PA
15892013-09-17 Pedro Alves <palves@redhat.com>
1590
1591 PR gdb/15911
1592 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1593 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1594 * corelow.c (core_open):
1595 * frame.h (print_stack_frame, print_frame_info): New
1596 'set_current_sal' parameter.
1597 * infcmd.c (finish_command, kill_command): Adjust call to
1598 print_stack_frame.
1599 * inferior.c (inferior_command): Likewise.
1600 * infrun.c (normal_stop): Likewise.
1601 * linux-fork.c (linux_fork_context): Likewise.
1602 * record-full.c (record_full_goto_entry, record_full_restore):
1603 Likewise.
1604 * remote-mips.c (common_open): Likewise.
1605 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1606 Use it.
1607 (print_frame_info): New 'set_current_sal' parameter. Set the last
1608 displayed sal depending on the new paremeter instead of looking at
1609 print_what.
1610 (backtrace_command_1, select_and_print_frame, frame_command)
1611 (current_frame_command, up_command, down_command): Adjust call to
1612 print_stack_frame.
1613 * thread.c (print_thread_info, restore_selected_frame)
1614 (do_captured_thread_select): Adjust call to print_stack_frame.
1615 * tracepoint.c (tfind_1): Likewise.
1616 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1617 (mi_cmd_stack_info_frame): Likewise.
1618 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1619 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1620
6bc305f5
SDJ
16212013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1622
1623 * value.c (isvoid_internal_fn): Replace "parameter" with
1624 "argument".
1625
0a7cfe2c
SS
16262013-09-16 Stan Shebs <stan@codesourcery.com>
1627
1628 * README: Update references to writing code for GDB.
1629 * configure.ac (build_warnings): Remove obsolete comment.
1630 * configure: Regenerate.
1631 * gdbarch.sh: Remove references to gdbint.texinfo.
1632 * gdbarch.h: Regenerate.
1633 * gdbtypes.c (objfile_type): Remove comments referencing internals
1634 manual and D10V.
1635
a280dbd1
SDJ
16362013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1637
1638 * NEWS: Mention new convenience function $_isvoid.
1639 * value.c (isvoid_internal_fn): New function.
1640 (_initialize_values): Add new convenience function $_isvoid.
1641
04a83fee
PM
16422013-09-16 Pierre Muller <muller@sourceware.org>
1643
1644 * arm-linux-tdep.c: Add "elf/common.h" header.
1645 Remove AT_HWCAP macro definintion as it is provided in
1646 added include file.
1647 * s390-tdep.c: Remove system header <elf.h>
1648 Add "elf/common.h" header for AT_HWCAP definition.
1649 (s390_core_read_description): Use correct CORE_ADDR
1650 for hwcap local variable used as third parameter
1651 of function target_auxv_search.
1652
88505fac
PM
16532013-09-14 Pierre Muller <muller@sourceware.org>
1654 Tom Tromey <tromey@redhat.com>
1655 Pedro Alves <palves@redhat.com>
1656
1657 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1658 mode if operating system doesn't know O_CLOEXEC.
1659
d3846e71
JK
16602013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1661
1662 Code cleanup.
1663 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1664 inner block.
1665
4ac33720
UW
16662013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1667
1668 * NEWS: Mention TDB support.
1669 * features/s390-tdb.xml: New file.
1670 * features/s390-te-linux64.xml: New file.
1671 * features/s390x-te-linux64.xml: New file.
1672 * features/Makefile (WHICH): Add new tdescs above.
1673 (s390-te-linux64-expedite): Set.
1674 (s390x-te-linux64-expedite): Set.
1675 * features/s390-te-linux64.c: New file (generated).
1676 * features/s390x-te-linux64.c: New file (generated).
1677 * regformats/s390-te-linux64.dat: New file (generated).
1678 * regformats/s390x-te-linux64.dat: New file (generated).
1679 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1680 (HWCAP_S390_TE): Likewise.
1681 (S390_TDB_DWORD0_REGNUM): Likewise.
1682 (S390_TDB_DWORD0_REGNUM): Likewise.
1683 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1684 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1685 (S390_TDB_ATIA_REGNUM): Likewise.
1686 (S390_TDB_R0_REGNUM): Likewise.
1687 (S390_TDB_R1_REGNUM): Likewise.
1688 (S390_TDB_R2_REGNUM): Likewise.
1689 (S390_TDB_R3_REGNUM): Likewise.
1690 (S390_TDB_R4_REGNUM): Likewise.
1691 (S390_TDB_R5_REGNUM): Likewise.
1692 (S390_TDB_R6_REGNUM): Likewise.
1693 (S390_TDB_R7_REGNUM): Likewise.
1694 (S390_TDB_R8_REGNUM): Likewise.
1695 (S390_TDB_R9_REGNUM): Likewise.
1696 (S390_TDB_R10_REGNUM): Likewise.
1697 (S390_TDB_R11_REGNUM): Likewise.
1698 (S390_TDB_R12_REGNUM): Likewise.
1699 (S390_TDB_R13_REGNUM): Likewise.
1700 (S390_TDB_R14_REGNUM): Likewise.
1701 (S390_TDB_R15_REGNUM): Likewise.
1702 (S390_NUM_REGS): Increase.
1703 (S390_IS_TDBREGSET_REGNUM): New macro.
1704 (s390_regmap_tdb): Declare.
1705 (s390_sizeof_tdbregset): Define.
1706 (tdesc_s390_te_linux64): Declare.
1707 (tdesc_s390x_te_linux64): Likewise.
1708 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1709 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1710 (s390_regmap_tdb): New regmap.
1711 (s390_supply_tdb_regset): New function.
1712 (s390_tdb_regset): New regset.
1713 (s390_linux64v2_regset_sections): Add TDB regset to list.
1714 (s390x_linux64v2_regset_sections): Likewise.
1715 (s390_regset_from_core_section): Recognize TDB core note section.
1716 (s390_core_read_description): If HWCAP indicates TE support,
1717 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1718 (s390_gdbarch_init): Handle TDB regset.
1719 (_initialize_s390_tdep): Initialize new tdescs.
1720 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1721 (have_regset_tdb): New variable.
1722 (s390_native_supply): Support register invalidation.
1723 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1724 (check_regset): Treat ENODATA as "regset exists".
1725 (s390_linux_fetch_inferior_registers): Add TDB.
1726 (s390_read_description): Check for TDB existence and select
1727 appropriate tdesc.
1728 * gdbserver/Makefile.in (clean): Add removal of new makefile
1729 targets.
1730 (s390-te-linux64.c): New makefile target.
1731 (s390x-te-linux64.c): Likewise.
1732 * gdbserver/configure.srv (srv_regobj): Append new objects
1733 s390-te-linux64.o and s390x-te-linux64.o.
1734 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1735 s390x-te-linux64.xml, and s390-tdb.xml.
1736 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1737 declaration.
1738 (tdesc_s390_te_linux64): Likewise.
1739 (init_registers_s390x_te_linux64): Likewise.
1740 (tdesc_s390x_te_linux64): Likewise.
1741 (s390_check_regset): Treat ENODATA as "regset exists".
1742 (s390_arch_setup): Add TDB regset support.
1743 (initialize_low_arch): Initialize registers for new tdescs.
1744
2ccd1468
UW
17452013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1746
1747 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1748 (S390_IS_FPREGSET_REGNUM): New macro.
1749 * s390-tdep.c (s390_dwarf_regmap): Make const.
1750 (regnum_is_gpr_full): New function for replacing repeated code.
1751 (s390_pseudo_register_name): Use it.
1752 (s390_pseudo_register_type): Likewise.
1753 (s390_pseudo_register_read): Likewise.
1754 (s390_pseudo_register_write): Likewise.
1755 (s390_unwind_pseudo_register): Likewise.
1756 (s390_regmap_gregset): New format for regmap.
1757 (s390x_regmap_gregset): Likewise.
1758 (s390_regmap_fpregset): Likewise.
1759 (s390_regmap_upper): Likewise.
1760 (s390_regmap_last_break): Likewise.
1761 (s390_regmap_system_call): Likewise.
1762 (s390_supply_regset): Adjust to new regmap format.
1763 (s390_collect_regset): Likewise.
1764 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1765 (s390_native_collect): Likewise.
1766 (supply_gregset): Likewise.
1767 (fill_gregset): Likewise.
1768 (supply_fpregset): Likewise.
1769 (fill_fpregset): Likewise.
1770 (fetch_regset): Likewise.
1771 (store_regset): Likewise.
1772 (s390_linux_fetch_inferior_registers): Likewise.
1773 (s390_linux_fetch_inferior_registers): Likewise.
1774
1aa4cd77
AP
17752013-09-12 Andrew Pinski <apinski@cavium.com>
1776
1777 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1778
d91fab15
UW
17792013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1780
1781 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1782
5a5d8ead
AB
17832013-09-09 Andrew Burgess <aburgess@broadcom.com>
1784
1785 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1786
1385f66c
PA
17872013-09-06 Pedro Alves <palves@redhat.com>
1788
1789 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1790 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1791 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1792 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1793 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1794 gdb_stdlog.
1795
146ec4db
PA
17962013-09-06 Pedro Alves <palves@redhat.com>
1797
1798 * remote-sim.c (dump_mem): Constify buf parameter.
1799 gdbsim_xfer_inferior_memory): Rename to ...
1800 (gdbsim_xfer_memory): ... this. Adjust interface as
1801 target_xfer_partial helper.
1802 (gdbsim_xfer_partial): New function.
1803 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1804 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1805
fcde0081
PA
18062013-09-06 Pedro Alves <palves@redhat.com>
1807
1808 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1809 host_address_to_string, and send debug output to gdb_stdlog.
1810
749c8b38
RW
18112013-09-06 Ricard Wanderlof <ricardw@axis.com>
1812
1813 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1814 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1815 gdb_target_obs for cris target.
1816 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1817 (cris_gdbarch_init): Move calls to
1818 set_gdbarch_fetch_tls_load_module_address and
1819 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1820 Add call to gdbarch_init_osabi.
1821 * cris-linux-tdep.c: New file.
1822 * cris-tdep.h: New file.
1823
43df09d9
AB
18242013-09-06 Andrew Burgess <aburgess@broadcom.com>
1825
1826 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1827 to deprecated_init_ui_hook.
1828
4d09c5b4
AB
18292013-09-06 Andrew Burgess <aburgess@broadcom.com>
1830
1831 * cli/cli-interp.c (_initialize_cli_interp): Add a
1832 command_loop_proc to interp_procs.
1833 * event-top.c (cli_command_loop): Change signature to match
1834 interp_command_loop_ftype.
1835 * event-top.h (cli_command_loop): Same.
1836 * interps.c (interp_new): Require every interpreter to have a
1837 command_loop_proc.
1838 (current_interp_command_loop): Just call the command_loop_proc on
1839 the current interpreter.
1840 * tui/tui-interp.c (_initialize_tui_interp): Add a
1841 command_loop_proc to interp_procs.
1842
8eb3d7b6
RW
18432013-09-06 Ricard Wanderlof <ricardw@axis.com>
1844
1845 * cris-tdep.c (cris_gdbarch_init): Add call to
1846 get_gdbarch_fetch_tls_load_module_address.
1847
18b3c2f5
RW
18482013-09-06 Ricard Wanderlof <ricardw@axis.com>
1849
1850 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1851 (cris_elf_gregset_t): Rename from elf_gregset_t.
1852 (crisv32_elf_gregset_t): Adjust.
1853 (cris_supply_gregset, fetch_core_registers): Adjust.
1854
dc8636ef
RW
18552013-09-06 Ricard Wanderlof <ricardw@axis.com>
1856
1857 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1858
257e6d53
AB
18592013-09-05 Andrew Burgess <aburgess@broadcom.com>
1860
1581d8a7 1861 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1862 references in comments.
1581d8a7 1863 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1864 deprecated_command_loop_hook.
1865 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1866 setup.
1581d8a7 1867 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1868
7c33b57c
PA
18692013-09-05 Pedro Alves <palves@redhat.com>
1870
1871 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1872 local is now int instead of ULONGEST. Print it with %d
1873 instead of paddress.
1874
9f8edbd5
TG
18752013-09-05 Tristan Gingold <gingold@adacore.com>
1876
1877 * MAINTAINERS: Remove avr maintainership.
1878
d5b495b4
PA
18792013-09-05 Pedro Alves <palves@redhat.com>
1880
1881 * findvar.c (value_of_register): Rework in terms of
1882 value_of_register_lazy.
1883
40b91786
MB
18842013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1885
1886 * symfile.c (add_symbol_file_command): Remove trailing
1887 whitespaces and blank line after comment.
1888
6eed1678
PA
18892013-09-05 Pedro Alves <palves@redhat.com>
1890
1891 * tui/tui-regs.c (tui_register_format): Don't look at the
1892 register's name here. Return string representing register
1893 value instead of storing it in the data element.
1894 (tui_get_register): Compare register string representations
1895 instead of register value states and contents.
1896
8eb6bda2
PA
18972013-09-05 Pedro Alves <palves@redhat.com>
1898
1899 PR tui/15933
1900 * tui/tui-regs.c (tui_show_registers): Show registers of the
1901 selected frame, not the current frame.
1902
48b1f08c
RW
19032013-09-05 Ricard Wanderlof <ricardw@axis.com>
1904
1905 * MAINTAINERS (Write After Approval): Add myself to the list.
1906
89e63ee4
DE
19072013-09-04 Doug Evans <dje@google.com>
1908
1909 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1910 (queue_and_load_dwo_tu): New function.
1911 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1912 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1913 Make dependent_cu optional.
1914 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1915 and an older .gdb_index is in use, queue and load all its TUs too.
1916
492c0ab7
JK
19172013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1918
1919 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1920 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1921 variable search_flags.
1922 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1923 (OPF_RETURN_REALPATH): ... here.
1924 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1925 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1926 call. Twice.
1927 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1928 openp call.
1929 * solib.c (solib_find): Likewise. Four times.
1930 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1931 in the function comment and for the realpath_fptr variable.
1932 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1933 (find_and_open_source): Likewise. Twice.
1934 * symfile.c (symfile_bfd_open): Likewise, also twice.
1935
23a44de8
DE
19362013-09-04 Doug Evans <dje@google.com>
1937
1938 * progspace.c (save_current_space_and_thread): Remove unnecessary
1939 call to save_current_inferior.
1940
47061676
AB
19412013-09-04 Andrew Burgess <aburgess@broadcom.com>
1942
1943 * sh64-tdep.c (sh64_do_register): Return after printing message
1944 about unavailable register contents.
1945
41dc8db8
MB
19462013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1947 Pedro Alves <palves@redhat.com>
1948
1949 * symfile.c (add_symbol_file_command): Error out on unknown
1950 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1951 options and collapse into single conditional branch.
1952
07107ca6
LM
19532013-09-03 Luis Machado <lgustavo@codesourcery.com>
1954
a7ea61cf 1955 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1956 detach_fork.
1957 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1958 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1959 * inferior.h (detach_fork): Remove.
1960 * infrun.c (detach_fork): Adjust comment and make it
1961 static.
1962 (follow_fork): Pass detach_fork parameter to
1963 target_follow_fork.
1964 * linux-nat.c (linux_child_follow_fork): New parameter
1965 detach_fork.
1966 * target.c (target_follow_fork): New parameter detach_fork.
1967 Pass detach_fork as parameter and print its value.
1968 * target.h (struct target_ops) <to_follow_fork>: New int
1969 parameter.
1970 (target_follow_fork): New parameter detach_fork.
1971
3bec2768
JB
19722013-09-03 Joel Brobecker <brobecker@adacore.com>
1973
1974 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1975 Replace sec->bfd by sec->the_bfd_section->owner.
1976
c01cbb3d
YQ
19772013-09-03 Yao Qi <yao@codesourcery.com>
1978
1979 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1980 from linux_has_shared_address_space.
1981 (linux_has_shared_address_space): Call linux_is_uclinux.
1982 * linux-tdep.h (linux_is_uclinux): Declare.
1983 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1984 linux_is_uclinux.
1985
7b00db47
YQ
19862013-09-03 Yao Qi <yao@codesourcery.com>
1987
1988 * config/djgpp/fnchange.lst: Remove entry of
1989 i386-interix-nat.c and i386-interix-tdep.c.
1990 * configure.ac: Remove '*-*-interix*'.
1991 * configure: Re-generated.
1992 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1993 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1994 obsolete comments.
1995 * osabi.c (gdb_osabi_names): Remove "Interix".
1996
0f9741f2
YQ
19972013-09-03 Yao Qi <yao@codesourcery.com>
1998
1999 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2000
1e038f67
MM
20012013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2002
2003 * record.h (record_print_flag) <record_print_src_line,
2004 record_print_insn_range>: Rename into ...
2005 (record_print_flag) <record_print_src_line,
2006 record_print_insn_range>: ... this. Update all users.
2007
9e52adf9
PM
20082013-09-02 Pierre Muller <muller@sourceware.org>
2009
2010 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2011 error code.
2012
a2388568
PM
20132013-09-02 Pierre Muller <muller@sourceware.org>
2014
2015 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2016 by use of plongest function.
2017
9058cc3a
TG
20182013-09-02 Tristan Gingold <gingold@adacore.com>
2019
2020 * NEWS: Add entry mentioning support for native Windows x64
2021 SEH data.
2022
2023 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2024 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2025 (struct amd64_windows_frame_cache): New struct.
2026 (amd64_windows_w2gdb_regnum): New global.
2027 (pc_in_range, amd64_windows_frame_decode_epilogue)
2028 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2029 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2030 (amd64_windows_frame_this_id): New functions.
2031 (amd64_windows_frame_unwind): New static global.
2032 (amd64_windows_skip_prologue): New function.
2033 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2034 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2035 with amd64_windows_skip_prologue.
2036
3161820b 20372013-08-30 Joel Brobecker <brobecker@adacore.com>
2038
2039 GDB 7.6.1 released.
2040
02457c76
PA
20412013-08-30 Pedro Alves <palves@redhat.com>
2042
2043 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2044 SRC_AND_LOC.
2045
e0162910
PA
20462013-08-30 Pedro Alves <palves@redhat.com>
2047
2048 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2049 warning text.
2050
6391ce51
PA
20512013-08-30 Pedro Alves <palves@redhat.com>
2052
2053 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2054 Adjust arguments to print_stack_frame.
2055
d1da0587
PA
20562013-08-30 Pedro Alves <palves@redhat.com>
2057
2058 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2059
adfd8245
PA
20602013-08-30 Pedro Alves <palves@redhat.com>
2061
2062 * frame.h (show_and_print_stack_frame): Delete declaration.
2063
96d9056e
PM
20642013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2065
2066 PR python/15461
2067
2068 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2069 (archpy_name): Check for valid architecture.
2070 (archpy_disassemble): Ditto.
2071
11cb8762
JB
20722013-08-29 Joel Brobecker <brobecker@adacore.com>
2073
2074 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2075 instead of "long long" in call to ptrace64.
2076
1af12a7d
AB
20772013-08-29 Andrew Burgess <aburgess@broadcom.com>
2078
2079 * mi/mi-interp.c (mi_command_loop): Change signature to match
2080 interp_command_loop_ftype.
2081 (mi1_command_loop): Remove.
2082 (mi2_command_loop): Remove.
2083 (mi3_command_loop): Remove.
2084 (mi_interpreter_resume): Remove setting of
2085 deprecated_command_loop_hook.
2086 (_initialize_mi_interp): Set mi_command_loop as the command loop
2087 callback.
2088
acc900c2
SA
20892013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2090
2091 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2092 value_type.
2093
548b762d
SA
20942013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2095
2096 * value.c (allocate_value_contents): Make static.
2097 * value.h (allocate_value_contents): Remove prototype.
2098
08039c9e
SA
20992013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2100
2101 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2102 of assembling value via allocate_value_lazy and attribute setter.
2103 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2104 assembling value via allocate_value_lazy and attribute setter.
2105 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2106 assembling value via allocate_value_lazy and attribute setter.
2107
314c7de9
SA
21082013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2109
2110 * value.c (value_from_contents_and_address): Replace allocate_value and
2111 memcpy with value_from_contents.
2112
8f28f522
PM
21132013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2114
2115 * python/py-framefilter.c (py_print_frame): Remove usage of
2116 PyString_AsString. Use python_string_to_host_string instead.
2117 Refactor function to work with a string as a new allocation
2118 instead of a pointer.
2119 (py_print_frame): Ditto.
2120 * python/lib/gdb/frames.py (return_list): Cain iterators together
2121 instead of adding them as a list.
2122 (_sort_list): Call return_list, and remove duplicate code.
2123 (execute_frame_filters): Convert iterator to a list with list().
2124 * python/lib/gdb/command/frame_filters.py
2125 (SetFrameFilterPriority._set_filter_priority): Convert priority
2126 attribute to an integer.
2127 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2128 wrapper function __next__.
2129 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2130 define as "str".
2131
8ee002df
PM
21322013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2133
2134 PR python/15752
8ee002df
PM
2135 * python/py-framefilter.c (apply_frame_filter): Check
2136 gdb_python_initialized. Exit if the Python frame-filter code
2137 cannot be initialized.
2138
af4c453a
PM
21392013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2140
2141 PR cli/15842
af4c453a
PM
2142 * top.c (print_gdb_version): Remove erroneous newline after help
2143 text.
2144
bf8793bb
YQ
21452013-08-29 Yao Qi <yao@codesourcery.com>
2146
2147 * varobj.c (install_dynamic_child): Remove trailing space.
2148 Add one blank line after variable declaration.
2149
1f0c4988
JK
21502013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 PR gdb/15415
2153 * corefile.c (get_exec_file): Use exec_filename.
2154 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2155 * exec.c (exec_close): Free EXEC_FILENAME.
2156 (exec_file_attach): New variable canonical_pathname. Use
2157 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2158 EXEC_FILENAME.
2159 * exec.h (exec_filename): New.
2160 * inferior.c (print_inferior, inferior_command): Use
2161 PSPACE_EXEC_FILENAME.
2162 * mi/mi-main.c (print_one_inferior): Likewise.
2163 * progspace.c (clone_program_space, print_program_space): Likewise.
2164 * progspace.h (struct program_space): New field pspace_exec_filename.
2165 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2166 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2167
59ee9f94
WN
21682013-08-28 Will Newton <will.newton@linaro.org>
2169
2170 * common/linux-ptrace.c: Include stdint.h unconditionally.
2171
c8a2a419
JK
21722013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2173
2174 Code cleanup.
2175 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2176
ffa4ac95
YQ
21772013-08-28 Yao Qi <yao@codesourcery.com>
2178 Pedro Alves <palves@redhat.com>
2179
2180 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2181 instead of stdio_fileopen.
2182 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2183 .Call stderr_fileopen instead of stdio_fileopen.
2184 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2185 [__MINGW32__] (stderr_file_fputs): New function.
2186 (stderr_fileopen): New function.
2187 * ui-file.h (stderr_fileopen): Declare.
2188
69d751e3
DE
21892013-08-27 Doug Evans <dje@google.com>
2190
2191 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2192 (struct dwarf2_per_cu_data): Ditto.
2193 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2194 (process_imported_unit_die): Ditto.
2195 (follow_die_sig_1): Simplify assert.
2196
44f38867
PA
21972013-08-27 Pedro Alves <palves@redhat.com>
2198
2199 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2200 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2201 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2202 windows_xfer_memory directly.
2203 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2204
d28d46b5
PA
22052013-08-27 Pedro Alves <palves@redhat.com>
2206
2207 * darwin-nat.c (darwin_xfer_memory): Delete.
2208 (_initialize_darwin_inferior): Don't install a
2209 deprecated_xfer_memory method.
2210
6211c335
YQ
22112013-08-27 Pedro Alves <pedro@codesourcery.com>
2212 Yao Qi <yao@codesourcery.com>
2213
2214 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2215 (parse_no_frames_option): Remove.
2216 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2217 (mi_cmd_stack_list_args): Adjust.
2218 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2219 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2220 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2221 Caller update.
2222 (list_args_or_locals): New parameter 'skip_unavailable'.
2223 Handle it.
2224 * valprint.c (scalar_type_p): Rename to ...
2225 (val_print_scalar_type_p): ... this. Make extern.
2226 (val_print, value_check_printable): Adjust.
2227 * valprint.h (val_print_scalar_type_p): Declare.
2228 * value.c (value_entirely_unavailable): New function.
2229 * value.h (value_entirely_unavailable): Declare.
2230
2231 * NEWS: Mention the new option "--skip-unavailable" to MI
2232 commands '-stack-list-locals', '-stack-list-arguments' and
2233 '-stack-list-variables'.
2234
242f1fd7
YQ
22352013-08-27 Yao Qi <yao@codesourcery.com>
2236
2237 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2238 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2239 options.
2240 * mi/mi-getopt.c (mi_getopt): Remove.
2241 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2242 'error_on_unknown'.
2243 (mi_getopt): Call mi_getopt_1.
2244 (mi_getopt_silent): New.
2245 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2246
260b681b
DE
22472013-08-26 Doug Evans <dje@google.com>
2248
779bd270
DE
2249 PR symtab/15885
2250 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2251 .gdb_index is in use.
2252 * symfile.c (reread_symbols): Reset objfile->sf.
2253
52e260a3
DE
2254 * NEWS: Document "mt print objfiles" now takes optional regexp.
2255 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2256 regexp of objfiles to print.
2257 (_initialize_symmisc): Update doc string for "mt print objfiles".
2258
260b681b
DE
2259 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2260 missing debug info checks.
2261
a85c52f2
UW
22622013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2263 Ulrich Weigand <uweigand@de.ibm.com>
2264
2265 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2266 line tables generated by XLC compiled binaries.
2267
4f00dda3
DE
22682013-08-23 Doug Evans <dje@google.com>
2269
db68bbae
DE
2270 * symmisc.c (dump_symtab): Delete prototype.
2271 (dump_msymbols, dump_objfile): Ditto.
2272 (maintenance_info_symtabs): Mark as dont_repeat.
2273 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2274
4f00dda3
DE
2275 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2276 debugging printf to better location.
2277
23d577b0
PA
22782013-08-23 Pedro Alves <palves@redhat.com>
2279
2280 * target.c (target_read_live_memory): Change type of 'ret' local
2281 to LONGEST.
2282
00d84524
PA
22832013-08-23 Pedro Alves <palves@redhat.com>
2284
2285 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2286 (remote_read_bytes): Change return type to LONGEST, and adjust to
2287 return a target_xfer_error on error.
2288 (remote_xfer_memory): Delete.
2289 (remote_flash_write): Change type of 'ret' local to LONGEST.
2290 (remote_xfer_partial, remote_xfer_partial): Adjust.
2291 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2292
1ed3ee94
PM
22932013-08-23 Pierre Muller <muller@sourceware.org>
2294
2295 ARI fix: Push # directives to start of line.
2296 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2297
9eaabc75
MW
22982013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2299
2300 PR gdb/15501
2301 * breakpoint.c (enable_command, disable_command): Iterate over
2302 all specified breakpoint locations.
2303
101158d9
LM
23042013-08-22 Luis Machado <lgustavo@codesourcery.com>
2305
2306 * common/linux-ptrace.c (linux_fork_to_function): Push #
2307 directives to the start of the line.
2308 (linux_check_ptrace_features): Fix warning message to use
2309 the "_" markup.
2310
96d7229d
LM
23112013-08-22 Luis Machado <lgustavo@codesourcery.com>
2312
2313 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2314 nat/linux-waitpid.h.
2315 (linux-waitpid.o): New object file rule.
2316 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2317 (current_ptrace_options): Moved from linux-nat.c.
2318 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2319 parameters.
2320 (linux_fork_to_function): New function.
2321 (linux_grandchild_function): Likewise.
2322 (linux_child_function): Likewise.
2323 (linux_check_ptrace_features): New function, heavily
2324 based on linux-nat.c:linux_test_for_tracefork.
2325 (linux_enable_event_reporting): New function.
2326 (ptrace_supports_feature): Likewise.
2327 (linux_supports_tracefork): Likewise.
2328 (linux_supports_traceclone): Likewise.
2329 (linux_supports_tracevforkdone): Likewise.
2330 (linux_supports_tracesysgood): Likewise.
2331 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2332 gdbserver/linux-low.c.
2333 (linux_enable_event_reporting): New declaration.
2334 (linux_supports_tracefork): Likewise.
2335 (linux_supports_traceclone): Likewise.
2336 (linux_supports_tracevforkdone): Likewise.
2337 (linux_supports_tracesysgood): Likewise.
2338 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2339 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2340 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2341 * config/arm/linux.mh (NATDEPFILES): Likewise.
2342 * config/i386/linux.mh (NATDEPFILES): Likewise.
2343 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2344 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2345 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2346 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2347 * config/mips/linux.mh (NATDEPFILES): Likewise.
2348 * config/pa/linux.mh (NATDEPFILES): Likewise..
2349 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2350 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2351 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2352 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2353 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2354 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2355 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2356 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2357 ptrace's 4th argument's types.
2358 Check the type of PTRACE_TYPE_ARG4.
2359 * configure: Regenerate.
2360 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2361 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2362 (linux_supports_tracefork_flag): Remove.
2363 (linux_supports_tracesysgood_flag): Likewise.
2364 (linux_supports_tracevforkdone_flag): Likewise.
2365 (current_ptrace_options): Moved to
2366 common/linux-ptrace.c.
2367 (linux_tracefork_child): Remove.
2368 (my_waitpid): Remove.
2369 (linux_test_for_tracefork): Renamed to
2370 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2371 (linux_test_for_tracesysgood): Remove.
2372 (linux_supports_tracesysgood): Remove.
2373 (linux_supports_tracefork): Remove.
2374 (linux_supports_tracevforkdone): Remove.
2375 (linux_enable_tracesysgood): Remove.
2376 (linux_enable_event_reporting): Remove.
2377 (linux_init_ptrace): New function.
2378 (linux_child_post_attach): Call linux_init_ptrace.
2379 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2380 (linux_child_follow_fork): Call linux_supports_tracefork
2381 and linux_supports_tracevforkdone.
2382 (linux_child_insert_fork_catchpoint): Call
2383 linux_supports_tracefork.
2384 (linux_child_insert_vfork_catchpoint): Likewise.
2385 (linux_child_set_syscall_catchpoint): Call
2386 linux_supports_tracesysgood.
2387 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2388 * nat/linux-nat.h: New file.
2389 * nat/linux-waitpid.c: New file.
2390 * nat/linux-waitpid.h: New file.
2391
9f948660
SDJ
23922013-08-22 Samuel Bronson <naesten@gmail.com>
2393
2394 ARM Linux support for `catch syscall'.
2395 * syscalls/arm-linux.py: New file.
2396 * syscalls/arm-linux.xml: Likewise.
2397 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2398 (arm_linux_init_abi): Register the new function and syscall xml file.
2399 * data-directory/Makefile.in: Install the new syscall xml file.
2400 * NEWS: Brag about this.
2401
6be7b56e
PA
24022013-08-22 Pedro Alves <palves@redhat.com>
2403
2404 PR gdb/15871
2405 * corefile.c (target_xfer_memory_error): New function.
2406 (memory_error): Defer EIO to target_memory_error.
2407 (read_memory): Use target_xfer_partial, and handle finer-grained
2408 target xfer errors.
2409 * target.c (target_xfer_error_to_string): New function.
2410 (memory_xfer_partial_1): If memory is known to be
2411 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2412 (target_xfer_partial): Make extern.
2413 * target.h (enum target_xfer_error): New enum.
2414 (target_xfer_error_to_string): Declare function.
2415 (target_xfer_partial): Declare function.
2416 (struct target_ops) <xfer_partial>: Adjust describing comment.
2417
bcbec14e
AM
24182013-08-22 Alan Modra <amodra@gmail.com>
2419
2420 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2421 * configure.tgt: Likewise as targets.
2422
fc474241
DE
24232013-08-20 Doug Evans <dje@google.com>
2424
2425 * buildsym.c (subfile_stack): Move here from buildsym.h.
2426 (pending_macros): Ditto.
2427 (get_macro_table): New function.
2428 (buildsym_init): Initialize subfile_stack.
2429 * coffread.c (type_vector,type_vector_length): Moved here from
2430 buildsym.h.
2431 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2432 (coff_symtab_read): Use it.
2433 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2434 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2435 with call to get_macro_table.
2436 * stabsread.c (type_vector,type_vector_length): Moved here from
2437 buildsym.h.
2438 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2439 * buildsym.h (get_macro_table): Declare.
2440
bec71544
TT
24412013-08-20 Tom Tromey <tromey@redhat.com>
2442
2443 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2444 Update.
2445 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2446
0002ad5f
DE
24472013-08-20 Doug Evans <dje@google.com>
2448
2449 * blockframe.c: Remove #include "psymtab.h".
2450 * cp-support.c: Ditto.
2451 * source.c: Ditto.
2452 * stack.c: Ditto.
2453
df302446
TT
24542013-08-20 Tom Tromey <tromey@redhat.com>
2455
2456 PR python/15816:
2457 * exceptions.h (return_mask): Now an enum.
2458 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2459 enum constants.
2460
df6d5441
TT
24612013-08-20 Tom Tromey <tromey@redhat.com>
2462
2463 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2464 get_objfile_arch.
2465 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2466 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2467 * jit.c (jit_object_close_impl): Update.
2468 * jv-lang.c (get_dynamics_objfile): Update.
2469 * linespec.c (add_minsym): Use get_dynamics_objfile.
2470 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2471 (allocate_objfile): Don't initialize 'gdbarch' field.
2472 (get_objfile_arch): Update.
2473 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2474 moved from...
2475 (struct objfile) <gdbarch>: ... here. Remove.
2476 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2477 get_objfile_arch.
2478 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2479
f5aee5ee
AM
24802013-08-20 Alan Modra <amodra@gmail.com>
2481
2482 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2483 for IBM long double nan and inf.
2484 (floatformat_is_negative, floatformat_classify,
2485 floatformat_mantissa): Similarly.
2486 (floatformat_ieee_single, floatformat_ieee_double,
2487 floatformat_ieee_quad, floatformat_arm_ext,
2488 floatformat_ia64_spill): Delete unused vars.
2489 (_initialize_doublest): Delete unused function.
2490 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2491 little-endian variants of floatformat_ibm_long_double.
2492
33b60d58 24932013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2494
33b60d58
LM
2495 * Makefile.in (SFILES): Remove common/target-common.c and
2496 add target/waitstatus.c.
2497 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2498 target/resume.h, target/wait.h and target/waitstatus.h.
2499 (COMMON_OBS): Remove target-common.o and add
2500 waitstatus.o.
2501 (target-common.o): Remove.
2502 (waitstatus.o): New target object file.
2503 * common/target-common.c: Move contents to
2504 target/waitstatus.c and remove.
2505 * common/target-common.h: Move contents to other files and
2506 remove.
2507 (enum resume_kind: Move to target/resume.h.
2508 (TARGET_WNOHANG): Move to target/wait.h.
2509 (enum target_waitkind): Move to target/waitstatus.h.
2510 (struct target_waitstatus): Likewise.
2511 * target.h: Do not include target-common.h and
2512 include target/resume.h, target/wait.h and
2513 target/waitstatus.h.
2514 * target/resume.h: New file.
2515 * target/wait.h: New file.
2516 * target/waitstatus.h: New file.
2517 * target/waitstatus.c: New file.
2518
12696c10
PA
25192013-08-19 Pedro Alves <palves@redhat.com>
2520
2521 * linux-nat.c (linux_test_for_tracefork)
2522 (linux_test_for_tracesysgood, linux_child_follow_fork)
2523 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2524 (linux_nat_wait_1): Extend comment.
2525 (linux_async_pipe): Add comment.
2526
ba89f962
KB
25272013-08-15 Kevin Buettner <kevinb@redhat.com>
2528
2529 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2530 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2531 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2532 Update to account for fact that PC is now a pseudo-register.
2533 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2534 cases for RL78_PC_REGNUM.
2535
35ab155d
MB
25362013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2537
2538 PR cli/15841
2539 * top.c (quit_force): Skip writing history file
2540 if input is not from terminal.
2541
0d031856
TT
25422013-08-14 Tom Tromey <tromey@redhat.com>
2543
2544 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2545 resultthreadlist>: New fields.
2546 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2547 (remote_get_threadlist, remote_threadlist_iterator): Use
2548 new fields. Remove static variables.
2549
ee154bee
TT
25502013-08-14 Tom Tromey <tromey@redhat.com>
2551
2552 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2553 remote_watch_data_address>: New fields.
2554 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2555 (process_stop_reply, remote_wait_as)
2556 (remote_check_watch_resources, remote_stopped_data_address): Update.
2557
88b496c3
TT
25582013-08-14 Tom Tromey <tromey@redhat.com>
2559
2560 * remote.c (struct remote_state) <async_client_callback,
2561 async_client_context>: New fields.
2562 (async_client_callback, async_client_context): Remove.
2563 (remote_async_serial_handler, remote_async): Update.
2564
2f65bcb7
TT
25652013-08-14 Tom Tromey <tromey@redhat.com>
2566
2567 * remote.c (sizeof_pkt): Remove.
2568 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2569
b80fafe3
TT
25702013-08-14 Tom Tromey <tromey@redhat.com>
2571
2572 * remote.c (struct remote_state) <use_threadinfo_query,
2573 use_threadextra_query>: New fields.
2574 (remote_threads_info, remote_threads_extra_info)
2575 (remote_open_1): Update.
2576
8e88304f
TT
25772013-08-14 Tom Tromey <tromey@redhat.com>
2578
2579 * remote.c (struct remote_state) <finished_object,
2580 finished_annex, finished_offset>: New fields.
2581 (remote_read_qxfer): Use remote_state fields; remove static
2582 variables.
2583
280ceea3
TT
25842013-08-14 Tom Tromey <tromey@redhat.com>
2585
2586 * remote.c (struct remote_state) <last_sent_step>:
2587 New field.
2588 (last_sent_step): Remove.
2589 (remote_resume, remote_wait_as): Update.
2590
b73be471
TT
25912013-08-14 Tom Tromey <tromey@redhat.com>
2592
2593 * remote.c (struct remote_state) <last_sent_signal>:
2594 New field.
2595 (last_sent_signal): Remove.
2596 (new_remote_state, remote_resume, remote_wait_as): Update.
2597
5e4a05c4
TT
25982013-08-14 Tom Tromey <tromey@redhat.com>
2599
2600 * remote.c (struct remote_state) <last_program_signals_packet>:
2601 New field.
2602 (last_program_signals_packet): Remove.
2603 (remote_program_signals, remote_open_1): Update.
2604
747dc59d
TT
26052013-08-14 Tom Tromey <tromey@redhat.com>
2606
2607 * remote.c (struct remote_state) <last_pass_packet>:
2608 New field.
2609 (last_pass_packet): Remove.
2610 (remote_pass_signals, remote_open_1): Update.
2611
262e1174
TT
26122013-08-14 Tom Tromey <tromey@redhat.com>
2613
2614 * remote.c (struct remote_state) <remote_traceframe_number>:
2615 New field.
2616 (remote_traceframe_number): Remove.
2617 (new_remote_state, remote_open_1, set_remote_traceframe)
2618 (remote_trace_find): Update.
2619
47f8a51d
TT
26202013-08-14 Tom Tromey <tromey@redhat.com>
2621
2622 * remote.c (struct remote_state) <general_thread, continue_thread>:
2623 New fields.
2624 (general_thread, continue_thread): Remove.
2625 (record_currthread, set_thread, set_general_process)
2626 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2627 (extended_remote_mourn_1): Update.
2628
5d93a237
TT
26292013-08-14 Tom Tromey <tromey@redhat.com>
2630
2631 * remote.c (struct remote_state) <remote_desc>: New field.
2632 (remote_desc): Remove.
2633 (remote_threads_info, remote_threads_extra_info, remote_close)
2634 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2635 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2636 (remote_hostio_send_command, remote_file_put, remote_file_get)
2637 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2638 (remote_async, remote_new_objfile, set_range_stepping): Update.
2639
cf792862
TT
26402013-08-14 Tom Tromey <tromey@redhat.com>
2641
2642 * remote.c (remote_state): Now a pointer.
2643 (get_remote_state_raw): Update.
2644 (new_remote_state): New function.
2645 (_initialize_remote): Use new_remote_state.
2646
dc473cfb
TT
26472013-08-14 Tom Tromey <tromey@redhat.com>
2648
2649 * remote.c (remote_protocol_features): Now const.
2650
85ec6ce7
TT
26512013-08-14 Tom Tromey <tromey@redhat.com>
2652
2653 * remote.c (crc32_table, crc32): Remove.
2654 (remote_verify_memory): Use xcrc32.
2655
73033f12
SDJ
26562013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2657
2658 * value.h (create_internalvar_type_lazy): Adjust prototype
2659 declaration.
2660
5c30d39a
AB
26612013-08-13 Andrew Burgess <aburgess@broadcom.com>
2662
2663 * common/format.c (parse_format_string): Don't allow '#' flag for
2664 pointer arguments in format string.
2665
1a66331e
PM
26662013-08-13 Pierre Muller <muller@sourceware.org>
2667
fde605f3 2668 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2669 if rl_get_screen_size did not return useful values.
2670
b4013987
AA
26712013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2672
2673 PR breakpoints/15117
2674 * linespec.c (linespec_parse_basic): Check for convenience
2675 variable or history value while parsing.
2676
959b6a66
SDJ
26772013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2678
2679 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2680 AVR.
2681 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2682 different signals between the generic Linux kernel implementation
2683 and AVR's.
2684 (avr_linux_gdb_signal_from_target): Delete.
2685 (avr_linux_gdb_signal_to_target): Delete.
2686 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2687
24a55014
DE
26882013-08-09 Doug Evans <dje@google.com>
2689
2690 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2691 entries.
2692
eb14d406
SDJ
26932013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2694
2695 * linux-tdep.c: Define enum with generic signal numbers.
2696 (linux_gdb_signal_from_target): New function.
2697 (linux_gdb_signal_to_target): Likewise.
2698 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2699 methods to the functions above.
2700 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2701 (linux_gdb_signal_to_target): Likewise.
2702 * alpha-linux-tdep.c: Define new enum with signals different
2703 from generic Linux kernel.
2704 (alpha_linux_gdb_signal_from_target): New function.
2705 (alpha_linux_gdb_signal_to_target): Likewise.
2706 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2707 with the functions mentioned above.
2708 * avr-tdep.c: Define enum with differences between Linux kernel
2709 and AVR signals.
2710 (avr_linux_gdb_signal_from_target): New function.
2711 (avr_linux_gdb_signal_to_target): Likewise.
2712 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2713 the functions mentioned above.
2714 * sparc-linux-tdep.c: Define enum with differences between SPARC
2715 and generic Linux kernel signal numbers.
2716 (sparc32_linux_gdb_signal_from_target): New function.
2717 (sparc32_linux_gdb_signal_to_target): Likewise.
2718 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2719 to the functions defined above.
2720 * xtensa-linux-tdep.c: Define enum with differences between
2721 Xtensa and Linux kernel generic signals.
2722 (xtensa_linux_gdb_signal_from_target): New function.
2723 (xtensa_linux_gdb_signal_to_target): Likewise.
2724 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2725 to the functions defined above.
2726 * mips-linux-tdep.c: Define enum with differences between
2727 signals in MIPS and Linux kernel generic ones.
2728 (mips_gdb_signal_to_target): New function.
2729 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2730 only different signals from the Linux kernel generic.
2731 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2732 the functions defined above.
2733 * mips-linux-tdep.h (enum mips_signals): Remove.
2734
156d08c8
PA
27352013-08-09 Pedro Alves <palves@redhat.com>
2736
2737 * avr-tdep.c (XMALLOC): Delete macro.
2738 * cli/cli-dump.c (XMALLOC): Delete macro.
2739
db229724
PA
27402013-08-09 Pedro Alves <palves@redhat.com>
2741
2742 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2743 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2744 (fopen_with_cleanup, add_dump_command): Make static.
2745 * cli/cli-dump.h: Delete file.
2746 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2747 cli/cli-dump.h.
2748
3f12a589
PA
27492013-08-09 Pedro Alves <palves@redhat.com>
2750
2751 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2752 error message.
2753
c718be47
PA
27542013-08-09 Pedro Alves <palves@redhat.com>
2755
156d08c8 2756 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2757 error message.
2758
1e351ed1
PA
27592013-08-09 Pedro Alves <palves@redhat.com>
2760
2761 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2762 (gcore_command): Use tilde_expand here, and when showing the
2763 filename to the user, show the expanded version.
2764
1ed8d800
YQ
27652013-08-09 Yao Qi <yao@codesourcery.com>
2766
2767 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2768 'entryval' is set.
2769
47ecca85
PA
27702013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2771
2772 * gcore.c (create_gcore_bfd): Use tilde_expand.
2773
82a0a75f
YQ
27742013-08-08 Yao Qi <yao@codesourcery.com>
2775
2776 * frame.h (read_frame_local): Declare.
2777 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2778 read_frame_local.
2779 * stack.c (read_frame_local): New.
2780
5c4aa40b
YQ
27812013-08-08 Yao Qi <yao@codesourcery.com>
2782
2783 * mi/mi-cmd-stack.c: Update comments to function
2784 list_args_or_locals.
2785
b93601f3
TT
27862013-08-07 Tom Tromey <tromey@redhat.com>
2787
2788 PR symtab/15028:
2789 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2790 (process_psymtab_comp_unit_reader): Use it.
2791 (process_psymtab_comp_unit): Update. Add "pretend_language"
2792 argument.
2793 (dwarf2_build_psymtabs_hard): Update.
2794 (scan_partial_symbols): Pass CU's language to
2795 process_psymtab_comp_unit.
2796
fa760f46
TT
27972013-08-07 Tom Tromey <tromey@redhat.com>
2798
2799 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2800 (dwarf2_gdb_index_functions): Update.
2801 * psymtab.c (find_symbol_file_from_partial): Remove.
2802 (psym_functions): Update.
2803 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2804 Remove.
2805
bf6d8a91
TT
28062013-08-07 Tom Tromey <tromey@redhat.com>
2807
2808 * symfile.c (set_initial_language): Look up "main" symbol
2809 and use its language.
2810 * symtab.c (find_main_filename): Remove.
2811 * symtab.h (find_main_filename): Remove.
2812
f9125b6c
TT
28132013-08-07 Tom Tromey <tromey@redhat.com>
2814
2815 * dwarf2read.c (recursively_compute_inclusions): Add
2816 "immediate_parent" argument. Set symtab's "user" field
2817 if not set.
2818 (compute_symtab_includes): Update.
2819
fdbb204b
TT
28202013-08-07 Tom Tromey <tromey@redhat.com>
2821
2822 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2823 when adding label symbols.
2824
49de1690
UW
28252013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2826 Ulrich Weigand <uweigand@de.ibm.com>
2827
2828 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2829 * configure.host (powerpc64-*-aix*): Likewise.
2830
b08ee99f
UW
28312013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2832 Ulrich Weigand <uweigand@de.ibm.com>
2833
2834 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2835 is defined.
2836 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2837 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2838 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2839 * configure.ac: Check for ptrace64.
2840 * configure, config.in: Regenerate.
2841
fecf803e
UW
28422013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2843 Ulrich Weigand <uweigand@de.ibm.com>
2844
2845 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2846 Call ptrace64 instead of ptrace if defined.
2847 Add macro addr_ptr to take care of ptrace address argument.
2848 (pdc_read_regs): Likewise.
2849 (pdc_write_regs): Likewise.
2850 (aix_thread_resume): Likewise.
2851 (fetch_regs_kernel_thread): Likewise.
2852 (store_regs_kernel_thread): Likewise.
2853
3bb5e4a8
AB
28542013-08-07 Anton Blanchard <anton@samba.org>
2855
2856 * MAINTAINERS: Add myself to Write After Approval.
2857
12070676
TT
28582013-08-05 Tom Tromey <tromey@redhat.com>
2859
2860 * aix-thread.c (_initialize_aix_thread): Use
2861 complete_target_initialization.
2862 * bsd-uthread.c (_initialize_bsd_uthread): Use
2863 complete_target_initialization.
2864 * dec-thread.c (_initialize_dec_thread): Use
2865 complete_target_initialization.
2866 * ravenscar-thread.c (_initialize_ravenscar): Use
2867 complete_target_initialization.
2868 * sol-thread.c (_initialize_sol_thread): Use
2869 complete_target_initialization.
2870 * spu-multiarch.c (_initialize_spu_multiarch): Use
2871 complete_target_initialization.
2872
7c7b6655
TT
28732013-08-05 Tom Tromey <tromey@redhat.com>
2874
2875 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2876 * ada-lang.c (ada_lookup_simple_minsym): Return
2877 bound_minimal_symbol.
2878 * ada-lang.h (ada_lookup_simple_minsym): Update.
2879 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2880 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2881 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2882 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2883 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2884 * minsyms.c (msymbol_objfile): Remove.
2885 (lookup_minimal_symbol_internal): New function, from
2886 lookup_minimal_symbol.
2887 (lookup_minimal_symbol): Rewrite using
2888 lookup_minimal_symbol_internal.
2889 (lookup_bound_minimal_symbol): New function.
2890 * minsyms.h (msymbol_objfile): Remove.
2891 (lookup_bound_minimal_symbol): Declare.
2892 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2893 * parse.c (write_exp_msymbol): Change parameter to a
2894 bound_minimal_symbol.
2895 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2896 * parser-defs.h (write_exp_msymbol): Update.
2897 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2898 * symfile.c (simple_read_overlay_table): Use
2899 lookup_bound_minimal_symbol.
2900 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2901 (search_symbols): Likewise.
2902 (print_msymbol_info): Take a bound_minimal_symbol argument.
2903 (symtab_symbol_info, rbreak_command): Update.
2904 * symtab.h (struct symbol_search) <msymbol>: Change type
2905 to bound_minimal_symbol.
2906 * valops.c (find_function_in_inferior): Use
2907 lookup_bound_minimal_symbol.
2908 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2909
934b9bac
JK
29102013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2911
2912 Code cleanup.
2913 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2914 to ...
2915 (async_cleanup_sigint_signal_handler): ... this.
2916 (initialize_sigint_signal_handler): Remove declaration.
2917 (handle_remote_sigint): Rename the declaration to ...
2918 (async_handle_remote_sigint): ... this.
2919 (handle_remote_sigint_twice): Rename the declaration to ...
2920 (async_handle_remote_sigint_twice): ... this.
2921 (async_remote_interrupt, async_remote_interrupt_twice)
2922 (remote_interrupt): Remove the declarations.
2923 (remote_interrupt_twice): Rename the declaration ...
2924 (sync_remote_interrupt_twice): ... this.
2925 (sigint_remote_twice_token): Rename the variable to ...
2926 (async_sigint_remote_twice_token): ... this.
2927 (sigint_remote_token): Rename the variable to ...
2928 (async_sigint_remote_token): ... this.
2929 (initialize_sigint_signal_handler): Rename the function to ...
2930 (async_initialize_sigint_signal_handler): ... this. Update the name
2931 inside.
2932 (handle_remote_sigint): Rename the function to ...
2933 (async_handle_remote_sigint): ... this. Update the names inside.
2934 (handle_remote_sigint_twice): Rename the function to ...
2935 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2936 (cleanup_sigint_signal_handler): Rename the function to ...
2937 (async_cleanup_sigint_signal_handler): ... this.
2938 (remote_interrupt): Rename the function to ...
2939 (sync_remote_interrupt): this. Update the names inside.
2940 (remote_interrupt_twice): Rename the function to ...
2941 (sync_remote_interrupt_twice): this. Update the names inside.
2942 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2943 (_initialize_remote): Update the names inside.
2944
3a1115a0
TT
29452013-08-02 Tom Tromey <tromey@redhat.com>
2946
2947 PR symtab/15719:
2948 * breakpoint.c (update_watchpoint, watchpoint_check)
2949 (watch_command_1): Update.
2950 * eval.c (fetch_subexp_value): Add "preserve_errors"
2951 parameter.
2952 * ppc-linux-nat.c (check_condition): Update.
2953 * value.h (fetch_subexp_value): Update.
2954
58b19776
AB
29552013-08-02 Andrew Burgess <aburgess@broadcom.com>
2956
2957 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2958 add_file_handler.
2959
ec94af83
DE
29602013-08-01 Doug Evans <dje@google.com>
2961
7ee85ab1
DE
2962 PR symtab/15691
2963 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2964 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2965 Add assert of sig_entry->dwo_unit == NULL.
2966 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2967 had already been read.
2968 (read_signatured_type): Set per_cu.tu_read.
2969
b846d303
DE
2970 PR symtab/15695
2971 * valops.c (value_struct_elt): Add missing call to check_typedef.
2972 (value_find_oload_method_list): Ditto.
2973
b52109bc
DE
2974 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2975 effectively, struct symbol_search **.
2976 (make_cleanup_free_search_symbols): Change arg to struct
2977 symbol_search **. All callers updated.
2978 (compare_search_syms): Compare symtab file name and block as well.
2979 (search_symbols_equal): New function.
2980 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2981 New args new_head, new_tail. Result is now void. Remove dups after
2982 sorting the symbols.
2983 (search_symbols): Sort all found symbols once, after all have been
2984 found, and remove duplicates. Simplify cleanup tracking of result.
2985 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2986
ec94af83
DE
2987 Further workarounds for binutils/15021.
2988 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2989 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2990 Watch for duplicate symtabs coming from type units.
2991 (compute_symtab_includes): Update call to
2992 recursively_compute_inclusions. Build vector of included symtabs
2993 instead of per_cus.
2994 * symtab.h (symtab_ptr): New typedef.
2995 (DEF_VEC_P (symtab_ptr)): New VEC type.
2996 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2997 instead.
2998
b2ae85cf
AB
29992013-08-01 Andrew Burgess <aburgess@broadcom.com>
3000
3001 * cli/cli-script.c (script_from_file): Remove use of
3002 error_pre_print.
3003 * main.c (captured_main): Remove use of error_pre_print and
3004 quit_pre_print.
3005 * utils.c (error_pre_print, quit_pre_print): Remove.
3006 * utils.h (error_pre_print, quit_pre_print): Likewise.
3007
645eab03
YQ
30082013-08-01 Yao Qi <yao@codesourcery.com>
3009
3010 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3011 with mi_getopt.
3012 (mi_cmd_stack_list_variables): Likewise.
3013
16f92dd4
AB
30142013-07-31 Andrew Burgess <aburgess@broadcom.com>
3015
3016 * exceptions.c (deprecated_throw_reason): Remove.
3017 * exceptions.h (deprecated_throw_reason): Remove.
3018
13f78033
AB
30192013-07-31 Andrew Burgess <aburgess@broadcom.com>
3020
3021 * remote-mips.c (mips_error): Replace use of
3022 deprecated_throw_reason with throw_verror. Use the error message
3023 passed to mips_error as the error message for throw_verror.
3024
039e3c22
AB
30252013-07-31 Andrew Burgess <aburgess@broadcom.com>
3026
3027 * monitor.c (monitor_interrupt_query): Replace use of
3028 deprecated_throw_reason with quit.
3029 * nto-procfs.c (interrupt_query): Likewise.
3030 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3031 * remote-mips.c (mips_kill): Likewise.
3032 * remote.c (interrupt_query): Likewise.
3033
8150913b
AB
30342013-07-31 Andrew Burgess <aburgess@broadcom.com>
3035
3036 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3037 with call to fatal.
3038
de74e63a
YQ
30392013-07-31 Pedro Alves <pedro@codesourcery.com>
3040 Yao Qi <yao@codesourcery.com>
3041
3042 * tracepoint.c (trace_dump_command): Select the current frame.
3043
247f5c4f
DE
30442013-07-30 Doug Evans <dje@google.com>
3045
3046 * dwarf2read.c (process_queue): Add type signature to debug output.
3047
11b4b7cc
AB
30482013-07-30 Andrew Burgess <aburgess@broadcom.com>
3049
3050 * value.c (value_fetch_lazy): Mark optimized out values as such
3051 rather than raising an error.
3052
b0c54aa5
AB
30532013-07-30 Andrew Burgess <aburgess@broadcom.com>
3054
3055 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3056 before checking which bits of the parent, not the child, value are
3057 valid.
3058
97c85fc6
MB
30592013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3060
3061 PR gdb/15715
3062 * top.c: Include "filenames.h".
3063 (set_history_filename): New function.
3064 (init_main): Install it as set hook of the "set history filename"
3065 command.
3066
ff39bb5e
SA
30672013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3068
3069 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3070 attribute parameter.
3071 (dwarf2_const_value_data): Constify struct attribute parameter.
3072 (dwarf2_const_value): Constify struct attribute parameter.
3073 (dwarf2_const_value_attr): Constify struct attribute parameter.
3074 (lookup_die_type): Constify struct attribute parameter.
3075 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3076 (follow_die_ref_or_sig): Constify struct attribute parameter.
3077 (follow_die_ref): Constify struct attribute parameter.
3078 (follow_die_sig): Constify struct attribute parameter.
3079 (get_DW_AT_signature_type): Constify struct attribute parameter.
3080 (get_type_unit_group): Constify struct attribute parameter.
3081 (fill_in_loclist_baton): Constify struct attribute parameter.
3082 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3083 (type_unit_group): Constify struct attribute parameter.
3084
6e5a29e1
SA
30852013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3086
3087 * dwarf2read.c (attr_form_is_block): Make argument const.
3088 (attr_form_is_section_offset): Make argument const.
3089 (attr_form_is_constant): Make argument const.
3090 (attr_form_is_ref): Make argument const.
3091
7771576e
SA
30922013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3093
3094 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3095 All uses updated.
3096 (attr_form_is_ref): Moved below attr_form_is_constant.
3097
a94e8645
DE
30982013-07-29 Doug Evans <dje@google.com>
3099
bb5291d0
DE
3100 * main.c (captured_command_loop): Tweak comment.
3101
b5419e49
DE
3102 * target.c (target_async_permitted_1): Fix comment.
3103
b2d23133
DE
3104 * symtab.c (iterate_over_some_symtabs): Add comment.
3105
a94e8645
DE
3106 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3107
7a60ad40
YQ
31082013-07-27 Yao Qi <yao@codesourcery.com>
3109
3110 * NEWS: Mention that GDBserver now supports hardware
3111 watchpoints on the MIPS GNU/Linux target.
3112
aaee2056
YQ
31132013-07-27 Yao Qi <yao@codesourcery.com>
3114
3115 * Makefile.in (HFILES_NO_SRCDIR): Add
3116 common/mips-linux-watch.h.
3117 (mips-linux-watch.o): New rule.
3118 * common/mips-linux-watch.c: New.
3119 * common/mips-linux-watch.h: New.
3120 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3121 * mips-linux-nat.c: Include mips-linux-watch.h.
3122 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3123 to common/mips-linux-watch.h.
3124 (MAX_DEBUG_REGISTER): Likewise.
3125 (enum pt_watch_style): Likewise.
3126 (struct mips32_watch_regs): Likewise.
3127 (struct mips64_watch_regs): Likewise.
3128 (struct pt_watch_regs): Likewise.
3129 (struct mips_watchpoint): Likewise.
3130 (mips_linux_watch_get_irw_mask): Move to
3131 common/mips-linux-watch.c.
3132 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3133 (mips_linux_watch_get_watchlo): Likewise.
3134 (mips_linux_watch_set_watchlo): Likewise.
3135 (mips_linux_watch_get_watchhi): Likewise.
3136 (mips_linux_watch_set_watchhi): Likewise.
3137 (mips_linux_read_watch_registers): Likewise.
3138 (mips_linux_watch_type_to_irw): Likewise.
3139 (mips_linux_stopped_data_address, fill_mask): Likewise.
3140 (mips_linux_watch_try_one_watch): Likewise.
3141 (mips_linux_watch_populate_regs): Likewise.
3142
b3436450
YQ
31432013-07-27 Yao Qi <yao@codesourcery.com>
3144
3145 * mips-linux-nat.c (get_irw_mask): Rename to ...
3146 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3147 'set' to 'n'. Update function comment. All callers changed.
3148 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3149 function comment. All callers changed.
3150 (get_num_valid): Rename to ...
3151 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3152 'set' to 'n'. Update function comment. All callers changed.
3153 (get_watchlo): Rename to ...
3154 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3155 'set' to 'n'. Update function comment. All callers changed.
3156 (set_watchlo): Rename to ...
3157 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3158 'set' to 'n'. Update function comment. All callers changed.
3159 (get_watchhi): Rename to ...
3160 (mips_linux_watch_get_watchhi): ... this. Update function
3161 comment. All callers changed.
3162 (set_watchhi): Rename to ...
3163 (mips_linux_watch_set_watchhi): ... this. Update function
3164 comment. All callers changed.
3165 (mips_linux_read_watch_registers): Update function comment.
3166 Add new parameters 'lwpid', 'watch_readback', and
3167 'watch_readback_valid'. Update.
3168 (type_to_irw): Rename to ...
3169 (mips_linux_watch_type_to_irw): ... this. Update function
3170 comment. All callers changed.
3171 (fill_mask): Update function comment.
3172 (try_one_watch): Rename to ...
3173 (mips_linux_watch_try_one_watch): ... this. Change the type
3174 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3175 (populate_regs_from_watches): Rename to ...
3176 (mips_linux_watch_populate_regs): ... this. Add parameter
3177 'current_watches'. All callers changed.
3178
9be14b81
YQ
31792013-07-27 Yao Qi <yao@codesourcery.com>
3180
3181 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3182 the code.
3183 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3184 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3185 (struct pt_watch_regs): Likewise.
3186 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3187 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3188 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3189 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3190 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3191
de6f69ad
YQ
31922013-07-27 Yao Qi <yao@codesourcery.com>
3193
3194 * breakpoint.h: Include break-common.h.
3195 (enum target_hw_bp_type): Move to ...
3196 * common/break-common.h: ... here. New.
3197
6f64ef53
PA
31982013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3199
3200 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3201 process group regardless of having tty on stdin.
3202
6107e809
DE
32032013-07-25 Doug Evans <dje@google.com>
3204
3205 * linux-fork.h (detach_fork): Delete.
3206
7fdc1521
TT
32072013-07-25 Tom Tromey <tromey@redhat.com>
3208
3209 PR remote/15256, PR remote/15266:
3210 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3211 * monitor.c (monitor_detach): Use unpush_target.
3212 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3213 * remote-mips.c (mips_detach): Use unpush_target. Don't
3214 call mips_close.
3215 * remote-sim.c (gdbsim_detach): Use unpush_target.
3216 * target.c (pop_target): Remove.
3217 (pop_all_targets_above): Don't call target_close.
3218 (target_close): Assert that the target is unpushed.
3219 * target.h (pop_target): Don't declare.
3220 * tracepoint.c (tfile_open): Use unpush_target.
3221
c22a2b88
TT
32222013-07-25 Tom Tromey <tromey@redhat.com>
3223
3224 * linux-thread-db.c (init_thread_db_ops): Call
3225 complete_target_initialization.
3226 (_initialize_thread_db): Don't call add_target.
3227 * target.c (complete_target_initialization): New function.
3228 (add_target_with_completer): Call it.
3229 * target.h (complete_target_initialization): Declare.
3230
cbb6aada
MK
32312013-07-25 Mark Kettenis <kettenis@gnu.org>
3232
3233 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3234 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3235 (HPPANBSD_SIZEOF_GREGS): New define.
3236 (hppaobsd_supply_gregset): Handle additional registers.
3237 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3238 we provide more registers now.
3239 (hppabsd_supply_gregset): Supply additional registers.
3240 (hppabsd_collect_gregset): Collect additional registers.
3241
17767988
MK
32422013-07-25 Mark Kettenis <kettenis@gnu.org>
3243
3244 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3245 (hppabsd_dwarf2_frame_init_reg): New function.
3246 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3247
fdc8aae8
AB
32482013-07-25 Andrew Burgess <aburgess@broadcom.com>
3249
3250 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3251 'z' format code. Remove error for optimized out values, standard
3252 code will handle these fine.
3253
6fbe845e
AB
32542013-07-25 Andrew Burgess <aburgess@broadcom.com>
3255
3256 * NEWS: Mention new 'z' formatter.
3257 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3258 (_initialize_printcmd): Mention 'z' formatter in help text of the
3259 'x' command.
3260
3373342d
MR
32612013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3262
3263 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3264 formatting.
3265
25f9533e
SDJ
32662013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3267
3268 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3269 interface can evaluate arguments. Fallback to the old mode if it
3270 cannot.
3271 (create_exception_master_breakpoint): Likewise.
3272 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3273 (struct sym_probe_fns elf_probe_fns): Export function above to the
3274 probe interface.
3275 * probe.c (can_evaluate_probe_arguments): New function.
3276 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3277 function pointer.
3278 (can_evaluate_probe_arguments): New function prototype.
3279 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3280 probe interface can evaluate arguments. Fallback to the old mode
3281 if it cannot.
3282 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3283 interface can evaluate arguments. Warning the user if it cannot.
3284 (stap_can_evaluate_probe_arguments): New function.
3285 (struct probe_ops stap_probe_ops): Export function above to the
3286 probe interface.
3287 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3288 New function pointer.
3289
3360c0bf
LM
32902013-07-24 Luis Machado <lgustavo@codesourcery.com>
3291
3292 * Makefile.in (SFILES): Add common/target-common.c.
3293 Add common/target-common.h to headers.
3294 (COMMON_OBS): Add target-common.o.
3295 (target-common.o): New target.
3296 * linux-nat.h (resume_kind): Move to common/target-common.h.
3297 * target.c (target_waitstatus_to_string): Move to
3298 common/target-common.c.
3299 * target.h: Include target-common.h.
3300 (target_waitkind): Move to common/target-common.h.
3301 (target_waitstatus): Likewise.
3302 (TARGET_WNOHANG): Likewise.
3303 * common/target-common.c: New file.
3304 * common/target-common.h: New file.
3305
6656a72d
DE
33062013-07-24 Doug Evans <dje@google.com>
3307
3308 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3309 a warning.
3310
6df81a63
YQ
33112013-07-23 Yao Qi <yao@codesourcery.com>
3312
3313 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3314 parameter 'gdbarch'.
3315 (i386_stack_tramp_frame_sniffer): Caller update.
3316 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3317 parameter 'gdbarch' and 'target'.
3318 (i386_linux_core_read_description): Caller update.
3319 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3320 Likewise.
3321 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3322 declaration.
3323
365156ad
TT
33242013-07-23 Tom Tromey <tromey@redhat.com>
3325
3326 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3327 2013-07-22.
3328
046ac79f
JK
33292013-07-22 Doug Evans <dje@google.com>
3330
3331 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3332 * exec.c (exec_close): Update call to remove_target_sections.
3333 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3334 * solib.c (update_solib_list): Ditto.
3335 (reload_shared_libraries_1): Ditto.
3336 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3337 * target.h (struct target_section): Rename key to owner.
3338 All uses updated.
046ac79f 3339
29b2cc46
TT
33402013-07-22 Tom Tromey <tromey@redhat.com>
3341
3342 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3343
d1160018
TT
33442013-07-22 Tom Tromey <tromey@redhat.com>
3345
3346 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3347 Simplify cleanup handling.
3348
2f324bf6
TT
33492013-07-22 Tom Tromey <tromey@redhat.com>
3350
3351 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3352 on all return paths.
3353
e23b9d6e
UW
33542013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3355
3356 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3357 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3358 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3359
1cf55f60
PM
33602013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3361
3362 * top.c (print_gdb_version): Add help, apropos description and
3363 url to online documentation.
3364
fa876972
HZ
33652013-07-19 Hui Zhu <hui@codesourcery.com>
3366
3367 PR gdb/15692
3368 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3369
1527aea8
YQ
33702013-07-19 Yao Qi <yao@codesourcery.com>
3371
3372 * target.c (update_current_target): Change the default action
3373 of 'to_traceframe_info' from tcomplain to return_zero.
3374 * target.h (struct target_ops) <to_traceframe_info>: Add more
3375 comments.
3376 * valops.c (read_value_memory): Call
3377 traceframe_available_memory unconditionally.
3378
886f230e
YQ
33792013-07-18 Yao Qi <yao@codesourcery.com>
3380
3381 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3382 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3383 symbol without prefix. If found, set its type to
3384 'mst_solib_trampoline'.
3385
16419bae
DE
33862013-07-17 Doug Evans <dje@google.com>
3387
e7045703
DE
3388 * NEWS: Mention "set print raw frame-arguments".
3389 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3390 * stack.c (print_raw_frame_arguments): New static global.
3391 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3392 (_initialize_stack): New command "set/show print raw frame-arguments".
3393 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3394 (set_print_raw, show_print_raw): New functions.
3395 (_initialize_valprint): New prefix command "set/show print raw".
3396 * valprint.h (value_print_options): Improve comments.
3397
453e48a5
DE
3398 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3399 of all *list variables.
3400
16419bae
DE
3401 * gdbcmd.h (togglelist): Delete.
3402 * cli/cli-cmds.c (togglelist): Delete.
3403 (init_cmd_lists): Update.
3404 * cli/cli-cmds.h (togglelist): Delete.
3405
626f2d1c
TT
34062013-07-17 Tom Tromey <tromey@redhat.com>
3407
3408 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3409 dwarf2_per_objfile.
3410
57e6060e
DE
34112013-07-16 Doug Evans <dje@google.com>
3412
3413 * nto-tdep.c (nto_relocate_section_addresses): Update,
3414 target_section.bfd deleted.
3415 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3416 * s390-tdep.c (s390_load): Ditto.
3417 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3418
5ea5559b
AB
34192013-07-16 Andrew Burgess <aburgess@broadcom.com>
3420
3421 * common/format.c (parse_format_string): Add checks for NULL
3422 character before calling strchr.
3423
2b2848e2
DE
34242013-07-16 Doug Evans <dje@google.com>
3425
2c571006
DE
3426 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3427 temp_pathname argument.
3428 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3429 when opening the file fails.
3430
2b2848e2
DE
3431 * target.h (struct target_section): Delete member bfd.
3432 All users updated to use the_bfd_section->owner instead.
3433 * exec.c (add_to_section_table): Assert bfd is expected value.
3434 Remove initialization of target_section.bfd.
3435 (remove_target_sections): Update.
3436 (section_table_available_memory): Update.
3437 (section_table_xfer_memory_partial): Update.
3438 (print_section_info): Update.
3439 (exec_set_section_address): Update.
3440 * record-full.c (record_full_core_xfer_partial): Update.
3441 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3442 * solib-target.c (solib_target_relocate_section_addresses): Update.
3443 * symfile.c (build_section_addr_info_from_section_table): Update.
3444 * target.c (memory_xfer_live_readonly_partial): Update.
3445 (memory_xfer_partial_1): Update.
3446
926bf92d
UW
34472013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3448
3449 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3450 now available for embedded (BookE) and server (BookS) processors,
3451 correct mentions of 'booke' and adjust comments accordingly in order to
3452 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3453 (have_ptrace_booke_interface): Rename function and variable
3454 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3455 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3456 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3457 'hwdebug_point_cmp'. Update all uses.
3458 (booke_find_thread_points_by_tid): Rename function
3459 'booke_find_thread_points_by_tid' to
3460 'hwdebug_find_thread_points_by_tid'. Update all uses.
3461 (booke_insert_point): Rename function 'booke_insert_point' to
3462 'hwdebug_insert_point'. Update all uses.
3463 (booke_remove_point): Rename function 'booke_remove_point' to
3464 'hwdebug_remove_point'. Update all uses.
3465
d929bc19
MR
34662013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3467
3468 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3469 numbers with enum values.
3470
054e8d9e
AA
34712013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3472
3473 PR threads/13217
3474 * thread.c (thread_apply_all_command): Check for valid threads
3475 and thread count.
3476 (thread_array_cleanup): New struct.
3477 (set_thread_refcount): New function.
3478
cf006359
AB
34792013-07-11 Andrew Burgess <aburgess@broadcom.com>
3480
3481 * infcmd.c (default_print_one_register_info): Reuse function
3482 print_hex_chars.
3483
94e36acc
TT
34842013-07-10 Tom Tromey <tromey@redhat.com>
3485
3486 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3487 (ada-exp.o): New target.
3488
915dd369
SDJ
34892013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3490
3491 * mt-tdep.c (mt_registers_info): Call
3492 get_no_prettyformat_print_options instead of
3493 get_raw_print_options (regression by last patch from Doug
3494 Evans).
3495
eca07816
JB
34962013-07-09 Pedro Alves <palves@redhat.com>
3497
3498 Checked in by Joel Brobecker <brobecker@adacore.com>.
3499 * ada-lang.c (coerce_unspec_val_to_type): Use
3500 value_optimized_out_const.
3501 * value.c (value_optimized_out_const): New function.
3502 * value.h (value_optimized_out_const): New declaration.
3503
2a998fc0
DE
35042013-07-09 Doug Evans <dje@google.com>
3505
3506 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3507 Enum values rename as well. All uses updated.
3508 * valprint.h (value_print_options): Rename member pretty to
3509 pretty format. Rename member prettyprint_arrays to
3510 prettyformat_arrays. Rename member prettyprint_structs to
3511 prettyformat_structs. All uses updated.
3512 (get_no_prettyformat_print_options): Renamed from
3513 get_raw_print_options.
3514 * valprint.c (get_no_prettyformat_print_options): Renamed from
3515 get_raw_print_options. All callers updated.
3516 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3517 All callers updated.
3518 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3519 All callers updated.
3520 (_initialize_valprint): Improve help text for "set print pretty" and
3521 "set print arrays".
3522
466c1fca
AB
35232013-07-09 Andrew Burgess <aburgess@broadcom.com>
3524
3525 * value.c (value_bits_valid): Revert previous change, and change
3526 by Pedro on 2013-07-04, due to regressions in
3527 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3528
ad0f0303
AB
35292013-07-08 Andrew Burgess <aburgess@broadcom.com>
3530 Pedro Alves <palves@redhat.com>
3531
3532 * value.c (value_bits_valid): If the value is not lval_computed
3533 or has no check validity handler then the answer is the
3534 optimized_out flag, otherwise defer to the handler.
3535
b187bec1
EZ
35362013-07-06 Eli Zaretskii <eliz@gnu.org>
3537
48d1d6f5
EZ
3538 * top.c (print_gdb_configuration): Explain in output of
3539 --configuration what does "relocatable" mean.
3540
b187bec1
EZ
3541 * main.c (print_gdb_help): Regroup options in the --help text.
3542 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3543 the relevant discussions.
3544
52d361e1
YQ
35452013-07-06 Yao Qi <yao@codesourcery.com>
3546
3547 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3548 Remove parameter 'lsal'.
3549 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3550 to inner block. Caller update.
3551 (base_breakpoint_create_breakpoints_sal): Update.
3552 (bkpt_create_breakpoints_sal): Likewise.
3553 (tracepoint_create_breakpoints_sal): Likewise.
3554 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3555 element 0 of vector 'canonical->sals'.
3556
e1ec1b42
LM
35572013-07-05 Luis Machado <lgustavo@codesourcery.com>
3558
3559 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3560 register number instead of the pseudo register one.
3561 (rs6000_dwarf2_reg_to_regnum): Likewise.
3562
7195e6f0
PA
35632013-07-04 Pedro Alves <palves@redhat.com>
3564
3565 * findvar.c (value_of_register): Use allocate_optimized_out_value
3566 if the register has been optimized out, instead of
3567 set_value_optimized_out.
3568 * frame-unwind.c (frame_unwind_got_optimized): Use
3569 allocate_optimized_out_value.
3570
58722cac
PA
35712013-07-04 Pedro Alves <palves@redhat.com>
3572
3573 * value.c (value_bits_valid): If the value is not lval_computed,
3574 or doesn't have a check_validity hook, assume the value is entirely
3575 valid.
3576
691a26f5
AB
35772013-07-04 Andrew Burgess <aburgess@broadcom.com>
3578
3579 * stack.c (read_frame_arg): No longer fetch lazy values.
3580 * value.c (value_optimized_out): If the value is not already
3581 marked optimized out, and is lazy then fetch it.
3582 (value_primitive_field): Move optimized out check to later in the
3583 function, after we have loaded any lazy values.
3584 (value_fetch_lazy): Use optimized out flag directly rather than
3585 calling optimized_out method.
3586
a58e2656
AB
35872013-07-04 Andrew Burgess <aburgess@broadcom.com>
3588
3589 * valops.c: Don't include "user-regs.h".
3590 (value_fetch_lazy): Moved to value.c.
3591 * value.c: Include "user-regs.h".
3592 (value_fetch_lazy): Moved from valops.c.
3593
bd885420
YQ
35942013-07-04 Yao Qi <yao@codesourcery.com>
3595
3596 Revert:
3597 2013-06-27 Yao Qi <yao@codesourcery.com>
3598
3599 * common/create-version.sh: Update comments. Handle the case
3600 that TARGET_ALIAS is empty.
3601
17ef446e
PA
36022013-07-03 Pedro Alves <palves@redhat.com>
3603
3604 * Makefile.in (config.status): Depend on development.sh.
3605 (aclocal_m4_deps): Add libmcheck.m4.
3606 * acinclude.m4: Include libmcheck.m4.
3607 * configure.ac: Source development.sh instead of setting
3608 'development' here. --enable-libmcheck/--disable-libmcheck code
3609 factored out to GDB_AC_LIBMCHECK. Run it.
3610 * development.sh: New file.
3611 * libmcheck.m4: New file.
3612 * configure: Regenerate.
3613
ac6dd50f
TT
36142013-07-02 Tom Tromey <tromey@redhat.com>
3615
3616 * contrib/ari/update-web-ari.sh: Update for version.in change.
3617
bd1df410
TT
36182013-07-02 Tom Tromey <tromey@redhat.com>
3619
3620 * common/ptid.h: Comment fixes.
3621
4db1a1dc
TT
36222013-07-01 Tom Tromey <tromey@redhat.com>
3623
3624 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3625 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3626 (dwarf2_read_index, create_all_comp_units): Update.
3627
dd9aa048
TT
36282013-07-01 Tom Tromey <tromey@redhat.com>
3629
3630 * configure.ac (build_warnings): Add -Wold-style-definition.
3631 * configure: Rebuild.
3632 * machoread.c (_initialize_machoread): Use "(void)".
3633 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3634 use "(void)".
3635
44d100c3
TT
36362013-07-01 Tom Tromey <tromey@redhat.com>
3637
3638 * configure.ac (build_warnings): Add -Wold-style-declaration.
3639 * configure: Rebuild.
3640 * dsrec.c (make_srec): Use "static const", not "const static".
3641 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3642 not "const static".
3643 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3644 Use "static const", not "const static".
3645 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3646 not "const static".
3647 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3648 not "const static".
3649 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3650 not "const static".
3651 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3652 not "const static".
3653 (v850_dbtrap_breakpoint_from_pc): Likewise.
3654 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3655 not "const static".
3656
2945b807
TT
36572013-07-01 Tom Tromey <tromey@redhat.com>
3658
3659 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3660 * configure: Rebuild.
3661
d8d2a3ee
PA
36622013-07-01 Pedro Alves <palves@redhat.com>
3663
3664 * defs.h: Include "pathmax.h".
3665 * utils.c: Don't include sys/param.h.
3666 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3667 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3668 instead of MAXPATHLEN.
3669 * solib-sunos.c: Don't include sys/param.h.
3670 * xcoffread.c: Don't include sys/param.h.
3671 * bsd-kvm.c: Don't include sys/param.h.
3672 * darwin-nat.c: Don't include sys/param.h.
3673 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3674 * darwin-nat-info.c: Don't include sys/param.h.
3675 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3676 MAXPATHLEN.
3677 * i386obsd-nat.c: Don't include sys/param.h.
3678 * inf-child.c: Don't include sys/param.h.
3679 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3680 * linux-fork.c: Don't include sys/param.h.
3681 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3682 * linux-nat.c: Don't include sys/param.h.
3683 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3684 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3685 * m68klinux-nat.c: Don't include sys/param.h.
3686 * nbsd-nat.c: Don't include sys/param.h.
3687 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3688 * ppc-linux-nat.c: Don't include sys/param.h.
3689 * rs6000-nat.c: Don't include sys/param.h.
3690 * spu-linux-nat.c. Don't include sys/param.h.
3691 * windows-nat.c: Don't include sys/param.h.
3692 * xtensa-linux-nat.c: Don't include sys/param.h.
3693 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3694
38ec2207
PA
36952013-07-01 Pedro Alves <palves@redhat.com>
3696
3697 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3698 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3699 * gnulib/aclocal.m4: Regenerate.
3700 * gnulib/config.in: Regenerate.
3701 * gnulib/configure: Regenerate.
3702 * gnulib/import/pathmax.h: New file.
3703 * gnulib/import/Makefile.am: Regenerate.
3704 * gnulib/import/Makefile.in: Regenerate.
3705 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3706 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3707 * gnulib/import/m4/pathmax.m4: New file.
3708
e655c1a2
PA
37092013-07-01 Pedro Alves <palves@redhat.com>
3710
3711 * configure.ac (GDBINIT): Define, depending on host.
3712 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3713 * top.c (PATH_MAX): Delete fallback definition.
3714 (GDBINIT_FILENAME): Delete.
3715 (gdbinit): Reimplement as const char array set to the GDBINIT
3716 string constant.
3717 * top.h (gdbinit): Make const.
3718 * configure, config.in: Regenerate.
3719
50dd9793
PA
37202013-07-01 Pedro Alves <palves@redhat.com>
3721
3722 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3723 * cli/cli-cmds.h (source_script): Likewise.
3724 * exceptions.c (catch_command_errors_const): New function.
3725 * exceptions.h (catch_command_errors_const): Declare.
3726 * main.c (get_init_files): Make parameters const, and adjust.
3727 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3728 'local_gdbinit' locals const. Adjust to use
3729 catch_command_errors_const.
3730 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3731 'local_gdbinit' locals const.
3732
bc7dea8d
PA
37332013-07-01 Pedro Alves <palves@redhat.com>
3734
3735 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3736 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3737 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3738 <unistd.h>.
3739
8839a007
PA
37402013-07-01 Pedro Alves <palves@redhat.com>
3741
3742 Import the "unistd" gnulib module.
3743 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3744 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3745 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3746 import/m4/unistd_h.m4.
3747 * gnulib/aclocal.m4: Renenerate.
3748 * gnulib/config.in: Renenerate.
3749 * gnulib/configure: Renenerate.
3750 * gnulib/import/Makefile.am: Renenerate.
3751 * gnulib/import/Makefile.in: Renenerate.
3752 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3753 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3754 * gnulib/import/m4/off_t.m4: New file.
3755 * gnulib/import/m4/ssize_t.m4: New file.
3756 * gnulib/import/m4/sys_types_h.m4: New file.
3757 * gnulib/import/m4/unistd_h.m4: New file.
3758 * gnulib/import/sys_types.in.h: New file.
3759 * gnulib/import/unistd.c: New file.
3760 * gnulib/import/unistd.in.h: New file.
3761
8c0da261
PA
37622013-07-01 Pedro Alves <palves@redhat.com>
3763
3764 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3765 defined instead of checking HAVE_UNISTD_H.
3766
3574124b
PA
37672013-07-01 Pedro Alves <palves@redhat.com>
3768
3769 Reimport gnulib from scratch.
3770 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3771 import/m4/onceonly.m4.
3772 * gnulib/aclocal.m4: Renegerate.
3773 * gnulib/config.in: Renegerate.
3774 * gnulib/configure: Renegerate.
3775 * gnulib/import/Makefile.in: Renegerate.
3776 * gnulib/import/extra/update-copyright: Renegerate.
3777 * gnulib/import/m4/onceonly.m4: Delete.
3778
702dc4fd
PA
37792013-07-01 Pedro Alves <palves@redhat.com>
3780
3781 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3782
47e1ce27
JK
37832013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3784
3785 Code cleanup.
3786 * remote.c (async_remote_interrupt_twice): Make it static.
3787 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3788
e82839d4
SDJ
37892013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3790
3791 * ia64-linux-tdep.c: Include <ctype.h>.
3792 (ia64_linux_stap_is_single_operand): New function.
3793 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3794
d6c2da54
TT
37952013-06-28 Tom Tromey <tromey@redhat.com>
3796
3797 * Makefile.in (version.c): Use version.in, not
3798 common/version.in.
3799 * common/create-version.sh: Likewise.
3800 * common/version.in: Move...
3801 * version.in: ...here.
3802
74da6f00
PA
38032013-06-28 Pedro Alves <palves@redhat.com>
3804
3805 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3806 here.
3807 * utils.h (pagination_enabled): Declare.
3808
d32dc48e
PA
38092013-06-28 Pedro Alves <palves@redhat.com>
3810
3811 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3812 Move higher up in file.
3813
0edd9e3b
TT
38142013-06-28 Tom Tromey <tromey@redhat.com>
3815
3816 * tracepoint.c (deprecated_readline_begin_hook)
3817 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3818 declare.
3819
4eb59108
PA
38202013-06-28 Pedro Alves <palves@redhat.com>
3821
3822 PR tui/14880
3823 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3824 checking if they're available.
3825 * value.c (value_available_contents_eq): Change comment.
3826 * value.h (value_available_contents_eq): Expand comment.
3827
97b17156
TT
38282013-06-27 Tom Tromey <tromey@redhat.com>
3829
3830 * target.c (find_run_target): Remove.
3831 * target.h (find_run_target): Remove.
3832
6a3bfc5c
TT
38332013-06-27 Tom Tromey <tromey@redhat.com>
3834
3835 * corelow.c (core_gdbarch): Now static.
3836
c9ef825d
TT
38372013-06-27 Tom Tromey <tromey@redhat.com>
3838
3839 * target.c (target_struct_index): Remove.
3840
e5823f1c
PA
38412013-06-27 Pedro Alves <palves@redhat.com>
3842
3843 * infrun.c: Remove comment describing the 'stepping over runtime
3844 loader dynamic symbol resolution code' mechanism; moved to
3845 gdbint.texinfo.
3846
97f8dd09
PA
38472013-06-27 Pedro Alves <palves@redhat.com>
3848
3849 * exceptions.c (catch_command_errors): Remove spurious space.
3850 * exceptions.h (catch_command_errors): Second parameter is "arg",
3851 not "command".
3852
02b1871e
YQ
38532013-06-27 Yao Qi <yao@codesourcery.com>
3854
3855 * common/create-version.sh: Update comments. Handle the case
3856 that TARGET_ALIAS is empty.
3857
bb1b1cf1
PA
38582013-06-26 Pedro Alves <palves@redhat.com>
3859
3860 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3861 comment.
3862
7b624e71
PA
38632013-06-26 Pedro Alves <palves@redhat.com>
3864
3865 * infrun.c: Update comments on stepping over runtime loader
3866 dynamic symbol resolution code.
3867
74e5a346
SDJ
38682013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3869
3870 * ax-gdb.h (union exp_element): Forward declare.
3871 * parser-defs.h: Include expression.h.
3872
a2fb2cee
MR
38732013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3874
3875 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3876
cdba14e0
DK
38772013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3878
3879 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3880
f30aa5af
DK
38812013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3882
3883 Fix trace-status to output proper start-time and stop-time.
3884 * tracepoint.c (trace_status_command): Fix type of printf arg to
3885 prevent improper type conversion.
3886 (trace_status_mi): Likewise.
3887
1aee363c
MR
38882013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3889
3890 * mips-tdep.c (mips_next_pc): Fix a typo.
3891
3356937a
MR
38922013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3893
3894 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3895
dc673c81
YQ
38962013-06-26 Pedro Alves <pedro@codesourcery.com>
3897 Yao Qi <yao@codesourcery.com>
3898
3899 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3900 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3901 * mi/mi-main.c (print_variable_or_computed): New function.
3902 (mi_cmd_trace_frame_collected): New function.
3903 * tracepoint.c (find_trace_state_variable_by_number): New.
3904 (struct traceframe_info): Move to tracepoint.h
3905 (struct collection_list): Likewise.
3906 (do_collect_symbol): Include locals and arguments in the
3907 collected variables list.
3908 (clear_collection_list): Clear wholly collected variables list
3909 and computed variables list.
3910 (append_exp): New function.
3911 (encode_actions_1): Include variables in the wholly
3912 collected variables list. Include memory ranges and
3913 full-fledged expressions in the computed expressions list.
3914 (encode_actions): Move some code to ...
3915 Return the cleanup chain.
3916 (encode_actions_rsp): ... here. New function.
3917 (get_traceframe_location, get_traceframe_info): Remove static.
3918 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3919 (struct collection_list): Moved from tracepoint.c. Add two
3920 new fields 'wholly_collected' and 'computed'.
3921 (find_trace_state_variable_by_number): Declare.
3922 (encode_actions): Adjust declaration.
3923 (encode_actions_rsp): Declare.
3924 (get_traceframe_info, get_traceframe_location): Declare.
3925
3926 * NEWS: Mention new MI command -trace-frame-collected.
3927
28a93511
YQ
39282013-06-26 Pedro Alves <pedro@codesourcery.com>
3929 Yao Qi <yao@codesourcery.com>
3930
3931 * ctf.c (ctf_traceframe_info): Push trace state variables
3932 present in the trace data into the traceframe info object.
3933 * breakpoint.c (DEF_VEC_I): Remove.
3934 * common/filestuff.c (DEF_VEC_I): Likewise.
3935 * dwarf2loc.c (DEF_VEC_I): Likewise.
3936 * mi/mi-main.c (DEF_VEC_I): Likewise.
3937 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3938 * features/traceframe-info.dtd: Add tvar element and its
3939 attributes.
3940 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3941 (build_traceframe_info): Push trace state variables present in
3942 the trace data into the traceframe info object.
3943 (traceframe_info_start_tvar): New function.
3944 (tvar_attributes): New.
3945 (traceframe_info_children): Add "tvar" element.
3946 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3947
3948 * NEWS: Mention the change in GDB and GDBserver.
3949
ddacd3c8
YQ
39502013-06-26 Pedro Alves <pedro@codesourcery.com>
3951 Yao Qi <yao@codesourcery.com>
3952
3953 * tracepoint.c (trace_dump_command): Move code to ...
3954 (get_traceframe_location): ... here. New.
3955
05796b35
YQ
39562013-06-26 Pedro Alves <pedro@codesourcery.com>
3957 Yao Qi <yao@codesourcery.com>
3958
3959 * tracepoint.c (trace_dump_command): GDB emits an error
3960 instead of a warning when a traceframe is not selected.
3961
cbfa3b61
YQ
39622013-06-26 Pedro Alves <pedro@codesourcery.com>
3963 Yao Qi <yao@codesourcery.com>
3964
3965 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3966 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3967 in collection_list.
3968 (do_clear_collection_list, init_collection_list): New.
3969 (encode_actions): Add local variables 'tracepoint_list' and
3970 'stepping_list'. Call init_collection_list and make cleanup
3971 which calls do_clear_collection_list. Don't call
3972 clear_collection_list.
3973 (_initialize_tracepoint): Delete references to
3974 'tracepoint_list' and 'stepping_list'.
3975
6e2048d3
TT
39762013-06-25 Tom Tromey <tromey@redhat.com>
3977
3978 * common/create-version.sh (date): Use "$", not "$$" in sed
3979 expression.
3980
42059f0e
KB
39812013-06-25 Kevin Buettner <kevinb@redhat.com>
3982
3983 * NEWS (New targets): Add entry for TI MSP430.
3984
a0743c90
YQ
39852013-06-25 Yao Qi <yao@codesourcery.com>
3986
3987 * remote.c (remote_start_remote): Move code to upload tsv
3988 earlier.
3989
9d6e6e84
HZ
39902013-06-25 Yao Qi <yao@codesourcery.com>
3991 Hui Zhu <hui@codesourcery.com>
3992 Pedro Alves <palves@redhat.com>
3993
3994 PR breakpoints/15075
3995 PR breakpoints/15434
3996 * breakpoint.c (bpstat_stop_status): Call
3997 b->ops->after_condition_true.
3998 (update_dprintf_command_list): Don't append "continue" command
3999 to the command list of dprintf breakpoint.
4000 (base_breakpoint_after_condition_true): New function.
4001 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4002 (dprintf_after_condition_true): New function.
4003 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4004 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4005
586cf749
KB
40062013-06-24 Kevin Buettner <kevinb@redhat.com>
4007
4008 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4009 (ALLDEPFILES): Add msp430-tdep.c.
4010 * configure.tgt (msp430*-*-elf): New target.
4011 * msp430-tdep.c: New file.
4012
1bbce132
MR
40132013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4014
4015 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4016 microMIPS synthetic symbols.
4017
3e5d3a5a
MR
40182013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4019
4020 * objfiles.h (pc_in_section): New prototype.
4021 (in_plt_section): Remove name argument, replace prototype with
4022 static inline function.
4023 * mips-tdep.h: Include "objfiles.h".
4024 (in_mips_stubs_section): New function.
4025 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4026 in_solib_call_trampoline member.
4027 (hppa_in_solib_call_trampoline): Remove name argument.
4028 * objfiles.c (pc_in_section): New function.
4029 (in_plt_section): Remove function.
4030 * mips-linux-tdep.c: Include "objfiles.h".
4031 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4032 name argument. Return 1 rather than the low 16-bit halfword of
4033 any instruction examined.
4034 (mips_linux_in_dynsym_resolve_code): Update
4035 mips_linux_in_dynsym_stub call accordingly.
4036 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4037 rather than an equivalent hand-coded sequence.
4038 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4039 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4040 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4041 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4042 in_opd_section.
4043 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4044 on call to tdep->in_solib_call_trampoline.
4045 (hppa_in_solib_call_trampoline): Remove name argument, update
4046 according to in_plt_section change.
4047 (hppa_skip_trampoline_code): Update according to in_plt_section
4048 change.
4049 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4050 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4051 Likewise.
4052 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4053 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4054 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4055 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4056 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4057 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4058 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4059 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4060 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4061 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4062 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4063 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4064 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4065
b9b26a16
JB
40662013-06-24 Joel Brobecker <brobecker@adacore.com>
4067
4068 * common/create-version.sh: Fix expansion of $host_alias
4069 and $target_alias in generation of HOST_NAME and TARGET_NAME
4070 (resp.).
4071
01208463
TT
40722013-06-24 Tom Tromey <tromey@redhat.com>
4073
4074 * common/create-version.sh: New file.
4075 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4076 create-version.sh.
4077 (HFILES_NO_SRCDIR): Use common/version.h.
4078 * version.in: Move to ...
4079 * common/version.in: ... here. Replace date with "DATE".
4080 * version.h: Move to ...
4081 * common/version.h: ... here.
4082
bb6b9a5e
JB
40832013-06-21 Joel Brobecker <brobecker@adacore.com>
4084
4085 * gdb/gnulib/Makefile.in: Update date in copyright header.
4086 * gdb/gnulib/configure.ac: Ditto.
4087 * gdb/gnulib/update-gnulib.sh: Ditto.
4088
c3b18ee7
JB
40892013-06-21 Joel Brobecker <brobecker@adacore.com>
4090
4091 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4092 "gdb/gnulib/import".
4093
85d3b769
WN
40942013-06-21 Will Newton <will.newton@linaro.org>
4095
4096 * doublest.c (ldfrexp): Remove function.
4097 (convert_doublest_to_floatformat): Call frexpl instead of
4098 ldfrexp.
4099
88b48903
WN
41002013-06-21 Will Newton <will.newton@linaro.org>
4101
4102 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4103 * gnulib/aclocal.m4: Regenerate.
4104 * gnulib/config.in: Regenerate.
4105 * gnulib/configure: Regenerate.
4106 * gnulib/import/Makefile.am: Update.
4107 * gnulib/import/Makefile.in: Update.
4108 * gnulib/import/m4/gnulib-cache.m4: Update.
4109 * gnulib/import/m4/gnulib-comp.m4: Update.
4110 * gnulib/import/float+.h: Import.
4111 * gnulib/import/float.c: Import.
4112 * gnulib/import/float.in.h: Import.
4113 * gnulib/import/fpucw.h: Import.
4114 * gnulib/import/frexp.c: Import.
4115 * gnulib/import/frexpl.c: Import.
4116 * gnulib/import/isnan.c: Import.
4117 * gnulib/import/isnand-nolibm.h: Import.
4118 * gnulib/import/isnand.c: Import.
4119 * gnulib/import/isnanl-nolibm.h: Import.
4120 * gnulib/import/isnanl.c: Import.
4121 * gnulib/import/itold.c: Import.
4122 * gnulib/import/m4/exponentd.m4: Import.
4123 * gnulib/import/m4/exponentl.m4: Import.
4124 * gnulib/import/m4/float_h.m4: Import.
4125 * gnulib/import/m4/fpieee.m4: Import.
4126 * gnulib/import/m4/frexp.m4: Import.
4127 * gnulib/import/m4/frexpl.m4: Import.
4128 * gnulib/import/m4/isnand.m4: Import.
4129 * gnulib/import/m4/isnanl.m4: Import.
4130 * gnulib/import/m4/math_h.m4: Import.
4131 * gnulib/import/math.c: Import.
4132 * gnulib/import/math.in.h: Import.
4133
4353c9e6
JK
41342013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4137 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4138 signature_INTEL_edx comparisons.
4139
e3e06db3
DE
41402013-06-20 Doug Evans <dje@google.com>
4141
6ac97d4c
DE
4142 symtab/15652
4143 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4144 All callers updated.
4145 (open_dwp_file): If we can't find the dwp file, search the basename
4146 in debug-file-directory.
4147
93417882
DE
4148 * dwarf2read.c (struct dwp_file): Fix comment.
4149 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4150
e3e06db3
DE
4151 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4152 better.
4153
0878d0fa
YQ
41542013-06-20 Yao Qi <yao@codesourcery.com>
4155
4156 * breakpoint.c (create_breakpoint): Fix code indentation.
4157
023fa29b
YQ
41582013-06-20 Yao Qi <yao@codesourcery.com>
4159
4160 * breakpoint.c (create_breakpoints_sal_default): Remove
4161 parameter 'lsal'. Update declaration.
4162 (bkpt_create_breakpoints_sal): Caller update.
4163 (tracepoint_create_breakpoints_sal): Likewise.
4164
c898adb7
YQ
41652013-06-20 Pedro Alves <pedro@codesourcery.com>
4166 Yao Qi <yao@codesourcery.com>
4167
4168 * NEWS: Mention the new option '--skip-unavailable' of command
4169 -data-list-register-values.
4170 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4171 --skip-unavailable option. Adjust to use output_register.
4172 (output_register): Add new 'skip_unavailable' parameter.
4173 Handle it.
4174
4d157a3d
MF
41752013-06-19 Mike Frysinger <vapier@gentoo.org>
4176
4177 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4178 common/i386-gcc-cpuid.h.
4179 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4180 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4181 Copy the latest version from upstream gcc.
4182 * common/linux-btrace.c: Include i386-cpuid.h.
4183 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4184 call to i386_cpuid.
4185 (cpu_supports_btrace): Likewise.
4186 * go32-nat.c: Include i386-cpuid.h.
4187 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4188
1ce4db08
DE
41892013-06-19 Doug Evans <dje@google.com>
4190
4191 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4192 (get_section_index): Ditto.
4193
0e4777df
TT
41942013-06-19 Tom Tromey <tromey@redhat.com>
4195
4196 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4197 "dprintf" help.
4198
3190f0c6
DE
41992013-06-18 Doug Evans <dje@google.com>
4200
4201 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4202 before using it.
4203 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4204 Move test of cu_index closer to use. Print complaint if cu_index
4205 is bad.
4206
8b89a20a
JB
42072013-06-18 Joel Brobecker <brobecker@adacore.com>
4208
4209 * machoread.c (oso_vector): Delete this global.
4210 (macho_register_oso): Add new parameter "oso_vector_ptr".
4211 Use it instead of the "oso_vector" global.
4212 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4213 (macho_symfile_read): Use a local oso_vector, to be free'ed
4214 at the end of this function, in place of the old "oso_vector"
4215 global. Update various function calls accordingly. Use one
4216 single cleanup chain for the entire function.
4217
59b0c7c1
JB
42182013-06-18 Joel Brobecker <brobecker@adacore.com>
4219
937c708c 4220 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4221 DWARF2_PER_OBJFILE by uses of DATA instead.
4222
427cd150
TT
42232013-06-18 Tom Tromey <tromey@redhat.com>
4224
4225 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4226 argument.
4227 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4228 Special case signals other than GDB_SIGNAL_TRAP.
4229 (explains_signal_watchpoint): New function.
4230 (base_breakpoint_explains_signal): Add 'sig' argument.
4231 (initialize_breakpoint_ops): Set 'explains_signal' method for
4232 watchpoints.
4233 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4234 signal argument.
4235 (bpstat_explains_signal): Likewise.
4236 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4237
2d57700b
TT
42382013-06-18 Tom Tromey <tromey@redhat.com>
4239
4240 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4241
ac475191
TT
42422013-06-18 Tom Tromey <tromey@redhat.com>
4243
4244 * python/python.c (finish_python_initialization): Decref
4245 'pythondir' on failure path as well.
4246
5bd1ef56
TT
42472013-06-18 Tom Tromey <tromey@redhat.com>
4248
4249 PR symtab/15391:
4250 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4251 after taking bits_to_skip into account. Sign extend byte_offset.
4252 * utils.h (gdb_sign_extend): Declare.
4253 * utils.c (gdb_sign_extend): New function.
4254
92fac807
JK
42552013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4256
4257 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4258
2d503272
PM
42592013-06-17 Pierre Muller <muller@sourceware.org>
4260
4261 * corelow.c (core_open): Print GDB signal name instead of target
4262 signal number.
4263
6916fd98
MF
42642013-06-17 Mike Frysinger <vapier@gentoo.org>
4265
4266 * .gitignore: Add /gcore.
4267
9c02c129
DE
42682013-06-13 Doug Evans <dje@google.com>
4269
4270 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4271 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4272
d0548fa2
PM
42732013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4274
4275 * stack.c (backtrace_command_1): Fix indentation.
4276
22128028
JB
42772013-06-11 Joel Brobecker <brobecker@adacore.com>
4278
4279 * window-nat.c (thread_rec): Add missing empty line after
4280 local variable declaration.
4281
2ed3e009
JB
42822013-06-11 Joel Brobecker <brobecker@adacore.com>
4283
4284 * windows-nat.c (thread_rec): Revert format used to print
4285 error code returned by SuspendThread from %d back to %u.
4286
0c3d84be
JB
42872013-06-11 Joel Brobecker <brobecker@adacore.com>
4288
4289 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4290 ID in debug trace.
4291 (get_windows_debug_event): Likewise, for all debug traces.
4292
80e88e1a
JB
42932013-06-11 Joel Brobecker <brobecker@adacore.com>
4294
4295 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4296 warning message.
4297
1edebdbf
YQ
42982013-06-08 Pedro Alves <pedro@codesourcery.com>
4299 Yao Qi <yao@codesourcery.com>
4300
4301 * mi/mi-main.c (get_register): Remove declaration.
4302 (output_register): Declare.
4303 (mi_cmd_data_list_register_values): Remove local variable
4304 'tuple_cleanup'. Move some code into output_register.
4305 (get_register): Renamed to ...
4306 (output_register): ... this. Output the register's
4307 "number" ui_out tuple here.
4308
47d48711
PA
43092013-06-07 Pedro Alves <palves@redhat.com>
4310
4311 * darwin-nat.c: Fix formating in copyright header.
4312 * darwin-nat.h: Likewise.
4313 * gnu-nat.c: Likewise.
4314 * machoread.c: Likewise.
4315
3aee8918
PA
43162013-06-07 Pedro Alves <palves@redhat.com>
4317
5f2b57b5 4318 PR server/14823
3aee8918
PA
4319 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4320 static. Output a global target description pointer.
4321 (init_registers_${name}): Adjust to initialize a
4322 target description structure.
4323
fe8400b4
WN
43242013-06-07 Will Newton <will.newton@linaro.org>
4325
4326 * printcmd.c (build_address_symbolic): Call
4327 gdbarch_addr_bits_remove for text minimal symbols.
4328
20df6206
WN
43292013-06-07 Will Newton <will.newton@linaro.org>
4330
4331 * MAINTAINERS: Add myself to Write After Approval.
4332
aef525cb
YQ
43332013-06-07 Yao Qi <yao@codesourcery.com>
4334
4335 * tracepoint.c (start_tracing): Move code to ...
4336 (trace_reset_local_state): ... here. New.
4337 (disconnect_tracing): Don't call set_current_traceframe,
4338 set_tracepoint_num, and set_traceframe_context. Call
4339 trace_reset_local_state instead.
4340 (tfile_close): Call trace_reset_local_state.
4341 * ctf.c (ctf_close): Likewise.
4342 * remote.c (remote_close): Likewise.
4343 * tracepoint.h (trace_reset_local_state): Declare.
4344
d2415c6c
DE
43452013-06-06 Doug Evans <dje@google.com>
4346
4347 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4348 and fix header docs.
4349
69fc87c2
DE
43502013-06-05 Doug Evans <dje@google.com>
4351 Keith Seitz <keiths@redhat.com>
4352
4353 PR 15519
4354 * cp-namespace.c (find_symbol_in_baseclass): Call
4355 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4356 Check result of call to lookup_symbol_static.
4357 Call lookup_static_symbol_aux unconditionally.
4358 Call check_typedef on base types before accessing them.
4359 (cp_lookup_nested_symbol): Fix comment.
4360
a513d1e8
LM
43612013-06-05 Luis Machado <lgustavo@codesourcery.com>
4362
4363 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4364 minimal symbols pointing to function descriptors.
4365
351a6f02
TT
43662013-06-05 Tom Tromey <tromey@redhat.com>
4367
4368 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4369
5e1b953b 43702013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4371 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4372
4373 * remote.c (remote_wait_as): Restore signal handler before returning
4374 when GDB gets a notification.
4375
f9e14852
GB
43762013-06-04 Gary Benson <gbenson@redhat.com>
4377
8445cbf1 4378 PR 2328
f9e14852
GB
4379 * breakpoint.h (handle_solib_event): Moved function declaration
4380 to solib.h.
4381 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4382 (bpstat_stop_status): Pass new argument to handle_solib_event.
4383 * solib.h (update_solib_breakpoints): New function declaration.
4384 (handle_solib_event): Moved function declaration from
4385 breakpoint.h.
4386 * solib.c (update_solib_breakpoints): New function.
4387 (handle_solib_event): Moved function from breakpoint.c.
4388 Updated to call solib_ops->handle_event if not NULL.
4389 * solist.h (target_so_ops): New fields "update_breakpoints" and
4390 "handle_event".
4391 * infrun.c (set_stop_on_solib_events): New function.
4392 (_initialize_infrun): Use the above for "set
4393 stop-on-solib-events".
4394 (handle_inferior_event): Pass new argument to handle_solib_event.
4395 * solib-svr4.c (probe.h): New include.
4396 (svr4_free_library_list): New forward declaration.
4397 (probe_action): New enum.
4398 (probe_info): New struct.
4399 (probe_info): New static variable.
4400 (NUM_PROBES): New definition.
4401 (svr4_info): New fields "using_xfer", "probes_table" and
4402 "solib_list".
4403 (free_probes_table): New function.
4404 (free_solib_list): New function.
4405 (svr4_pspace_data_cleanup): Free probes table and solib list.
4406 (svr4_copy_library_list): New function.
4407 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4408 (svr4_read_so_list): New parameter "prev_lm".
4409 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4410 (svr4_current_sos): New function.
4411 (probe_and_action): New struct.
4412 (hash_probe_and_action): New function.
4413 (equal_probe_and_action): Likewise.
4414 (register_solib_event_probe): Likewise.
4415 (solib_event_probe_at): Likewise.
4416 (solib_event_probe_action): Likewise.
4417 (solist_update_full): Likewise.
4418 (solist_update_incremental): Likewise.
4419 (disable_probes_interface_cleanup): Likewise.
4420 (svr4_handle_solib_event): Likewise.
4421 (svr4_update_solib_event_breakpoint): Likewise.
4422 (svr4_update_solib_event_breakpoints): Likewise.
4423 (svr4_create_solib_event_breakpoints): Likewise.
4424 (enable_break): Free probes table before creating breakpoints.
4425 Use svr4_create_solib_event_breakpoints to create breakpoints.
4426 (svr4_solib_create_inferior_hook): Free the solib list.
4427 (_initialize_svr4_solib): Initialise
4428 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4429
ced63ec0
GB
44302013-06-04 Gary Benson <gbenson@redhat.com>
4431
4432 * target.h (target_ops): New field
4433 "to_augmented_libraries_svr4_read".
4434 (target_augmented_libraries_svr4_read): New macro.
4435 * target.c (update_current_target): Handle
4436 to_augmented_libraries_svr4_read.
4437 * remote.c (remote_state): New field
4438 "augmented_libraries_svr4_read".
4439 (remote_augmented_libraries_svr4_read_feature): New function.
4440 (remote_protocol_features): Add entry for
4441 "augmented-libraries-svr4-read".
4442 (remote_augmented_libraries_svr4_read): New function.
4443 (init_remote_ops): Initialize
4444 remote_ops.to_augmented_libraries_svr4_read.
4445
7f91dbec
GB
44462013-06-04 Gary Benson <gbenson@redhat.com>
4447
4448 * NEWS: Update.
4449
607ece04
GB
44502013-06-04 Gary Benson <gbenson@redhat.com>
4451
4452 * objfiles.h (inhibit_section_map_updates): New function
4453 declaration.
4454 (resume_section_map_updates): Likewise.
4455 (resume_section_map_updates_cleanup): Likewise.
4456 * objfiles.c (objfile_pspace_info): Removed field
4457 "objfiles_changed_p". New fields "new_objfiles_available",
4458 "section_map_dirty" and "inhibit_updates".
4459 (allocate_objfile): Set new_objfiles_available.
4460 (free_objfile): Set section_map_dirty.
4461 (objfile_relocate1): Likewise.
4462 (in_plt_section): Likewise.
4463 (find_pc_section): Update the conditions under which the
4464 section map will be updated.
4465 (inhibit_section_map_updates): New function.
4466 (resume_section_map_updates): Likewise.
4467 (resume_section_map_updates_cleanup): Likewise.
4468
9ee6a5ac
GB
44692013-06-04 Gary Benson <gbenson@redhat.com>
4470
4471 * probe.h (get_probe_argument_count): New declaration.
4472 (evaluate_probe_argument): Likewise.
4473 * probe.c (get_probe_argument_count): New function.
4474 (evaluate_probe_argument): Likewise.
4475 (probe_safe_evaluate_at_pc): Use the above new functions.
4476
845d4708
AM
44772013-06-04 Alan Modra <amodra@gmail.com>
4478
4479 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4480 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4481 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4482 target mem reads on optional insns.
4483 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4484 ppc_insns_match_pattern calls.
4485 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4486 Add match for power7 thread safety insns, and new order of
4487 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4488 invocation in comment, and update rest of comment.
4489 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4490 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4491 (ppc64_standard_linkage2_target): Update insn offsets.
4492 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4493 stubs first. Update calls.
4494
404e278f
YQ
44952013-06-04 Yao Qi <yao@codesourcery.com>
4496
4497 * solib.c (solib_find): Don't need dir separator if path has
4498 drive spec.
4499
f6aea118
JB
45002013-06-03 Joel Brobecker <brobecker@adacore.com>
4501
4502 Revert (indirectly causes a SIGSEGV):
4503 * machoread.c (macho_symfile_read): Assign first cleanup to
4504 'back_to'.
4505
87967e27
YQ
45062013-06-03 Yao Qi <yao@codesourcery.com>
4507
4508 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4509 mi-parse.c. Make them static.
4510 (mi_all_values): Likewise.
4511 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4512 mi_parse_print_values. Make it external.
4513 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4514 Remove the declarations.
4515 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4516 * mi/mi-parse.h (mi_parse_print_values): Declare.
4517 * mi/mi-cmd-stack.c: Include mi-parse.h.
4518 (parse_print_values): Remove
4519 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4520 of parse_print_values.
4521 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4522
3ca73e0c
YQ
45232013-05-31 Pedro Alves <pedro@codesourcery.com>
4524 Yao Qi <yao@codesourcery.com>
4525
4526 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4527 (encode_actions): Move code to ...
4528 (all_tracepoint_actions_and_cleanup): ... here. New.
4529 (trace_dump_command): Likewise.
4530
4e993a19
TT
45312013-05-30 Tom Tromey <tromey@redhat.com>
4532
4533 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4534
e3b76b4f
TT
45352013-05-30 Tom Tromey <tromey@redhat.com>
4536
4537 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4538 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4539 'old_chain' argument. Add 'parser_result' argument.
4540 (gdb_xml_create_parser_and_cleanup): Remove old version.
4541 (gdb_xml_parse_quick): Update.
4542 (xml_process_xincludes): Update.
4543 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4544 declare.
4545
db26349c
TT
45462013-05-30 Tom Tromey <tromey@redhat.com>
4547
4548 * probe.c (collect_probes): Check arguments for NULL before
4549 calling compile_rx_or_error.
4550 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4551 Remove NULL return.
4552
77f9e713
TT
45532013-05-30 Tom Tromey <tromey@redhat.com>
4554
4555 * infrun.c (adjust_pc_after_break): Introduce an outer null
4556 cleanup.
4557
45475de7
TT
45582013-05-30 Tom Tromey <tromey@redhat.com>
4559
4560 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4561
ac5007fd
TT
45622013-05-30 Tom Tromey <tromey@redhat.com>
4563
4564 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4565 for 'old_chain'. Do not check 'head' before processing
4566 cleanups.
4567
cd82eddc
TT
45682013-05-30 Tom Tromey <tromey@redhat.com>
4569
4570 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4571 "cleanup_tuple".
4572
57cee33a
TT
45732013-05-30 Tom Tromey <tromey@redhat.com>
4574
4575 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4576 inner scope. Unconditionally call do_cleanups.
4577
795d915c
TT
45782013-05-30 Tom Tromey <tromey@redhat.com>
4579
4580 * source.c (find_and_open_source): Call do_cleanups.
4581
1fc3cf4a
TT
45822013-05-30 Tom Tromey <tromey@redhat.com>
4583
4584 * linux-thread-db.c (thread_db_load_search): Unconditionally
4585 call do_cleanups.
4586
e35ac9bf
TT
45872013-05-30 Tom Tromey <tromey@redhat.com>
4588
4589 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4590 for 'cleanup'; instead use a later one.
4591
f3300387
TT
45922013-05-30 Tom Tromey <tromey@redhat.com>
4593
4594 * python/py-breakpoint.c (bppy_get_commands): Use
4595 explicit, unconditional return.
4596 * python/py-frame.c (frapy_read_var): Likewise.
4597 * python/python.c (gdbpy_decode_line): Likewise.
4598
c27e16e3
TT
45992013-05-30 Tom Tromey <tromey@redhat.com>
4600
4601 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4602 do_cleanups on all return paths.
4603
5ae85e44
TT
46042013-05-30 Tom Tromey <tromey@redhat.com>
4605
4606 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4607
73b8d9da
TT
46082013-05-30 Tom Tromey <tromey@redhat.com>
4609
4610 * stabsread.c (read_struct_type): Call do_cleanups along
4611 all return paths.
4612
7d266584
MR
46132013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4614
4615 * mips-linux-tdep.c: Adjust formatting throughout.
4616
0f900f54
TT
46172013-05-30 Tom Tromey <tromey@redhat.com>
4618
4619 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4620 along all return paths.
4621
a991ac28
TT
46222013-05-30 Tom Tromey <tromey@redhat.com>
4623
4624 * symfile.c (find_separate_debug_file): Call do_cleanups
4625 along all return paths.
4626
1abaf042
TT
46272013-05-30 Tom Tromey <tromey@redhat.com>
4628
4629 * symtab.c (search_symbols): Introduce a null cleanup for
4630 'retval_chain'.
4631
edefe1da
TT
46322013-05-30 Tom Tromey <tromey@redhat.com>
4633
4634 * python/py-value.c (valpy_binop): Call do_cleanups before
4635 exiting loop.
4636
54f72dcc
TT
46372013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * python/py-prettyprint.c (print_children): Remove extra
4640 do_cleanups call.
4641
af1c6971
TT
46422013-05-30 Tom Tromey <tromey@redhat.com>
4643
4644 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4645 all return paths.
4646
b862ce75
TT
46472013-05-30 Tom Tromey <tromey@redhat.com>
4648
4649 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4650 along all return paths.
4651
e12fefc8
TT
46522013-05-30 Tom Tromey <tromey@redhat.com>
4653
4654 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4655 call do_cleanups.
4656
4867f990
TT
46572013-05-30 Tom Tromey <tromey@redhat.com>
4658
4659 * varobj.c (c_value_of_root): Call do_cleanups along all
4660 return paths.
4661
4fd2d6af
TT
46622013-05-30 Tom Tromey <tromey@redhat.com>
4663
4664 * tracepoint.c (trace_dump_command): Unconditionally call
4665 do_cleanups.
4666
752eb8b4
TT
46672013-05-30 Tom Tromey <tromey@redhat.com>
4668
4669 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4670 do_cleanups earlier.
4671
e42d0aa5
TT
46722013-05-30 Tom Tromey <tromey@redhat.com>
4673
4674 * machoread.c (macho_symfile_read): Assign first cleanup to
4675 'back_to'.
4676
4bbc010a
TT
46772013-05-30 Tom Tromey <tromey@redhat.com>
4678
4679 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4680
b9635925
TT
46812013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4684
25f43500
TT
46852013-05-30 Tom Tromey <tromey@redhat.com>
4686
4687 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4688 call discard_cleanups.
4689 (inf_ptrace_attach): Likewise.
4690
d6a2e54a
TT
46912013-05-30 Tom Tromey <tromey@redhat.com>
4692
4693 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4694 return paths.
4695 (mips_initialize): Likewise.
4696 (common_open): Call do_cleanups.
4697
48be7c1b
TT
46982013-05-30 Tom Tromey <tromey@redhat.com>
4699
4700 * utils.c (internal_vproblem): Call do_cleanups.
4701
e61727ab
TT
47022013-05-30 Tom Tromey <tromey@redhat.com>
4703
4704 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4705
b81b921f
TT
47062013-05-30 Tom Tromey <tromey@redhat.com>
4707
4708 * cli/cli-script.c (setup_user_args): Don't return after error.
4709
fe48dfb1
TT
47102013-05-30 Tom Tromey <tromey@redhat.com>
4711
4712 * somread.c (som_symtab_read): Call do_cleanups.
4713
27833de7
TT
47142013-05-30 Tom Tromey <tromey@redhat.com>
4715
4716 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4717
5b3fca71
TT
47182013-05-30 Tom Tromey <tromey@redhat.com>
4719
4720 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4721 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4722 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4723 * source.c (show_substitute_path_command): Call do_cleanups.
4724 (unset_substitute_path_command, set_substitute_path_command):
4725 Likewise.
4726 * symfile.c (load_command): Call do_cleanups.
4727
af83e3f8
TT
47282013-05-30 Tom Tromey <tromey@redhat.com>
4729
4730 * contrib/cleanup_check.py: New file.
4731 * contrib/gcc-with-excheck: Add option parsing.
4732
564eac42
JB
47332013-05-30 Joel Brobecker <brobecker@adacore.com>
4734
4735 * windows-nat.c (windows_delete_thread): Add missing space
4736 in cast expression.
4737
47902076
HAQ
47382013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4739
4740 * inferior.c (top level): Include tilde.h.
4741 (add_inferior_command): Call tilde_expand on the value of 'exec'
4742 argument.
4743
23da373a
YQ
47442013-05-30 Pedro Alves <pedro@codesourcery.com>
4745 Yao Qi <yao@codesourcery.com>
4746
4747 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4748 Caller update.
4749 (encode_actions): Likewise.
4750 * remote.c (remote_download_tracepoint): Caller update.
4751 * tracepoint.h (encode_actions): Update declaration.
4752
a6e6f791
PA
47532013-05-30 Pedro Alves <palves@redhat.com>
4754
4755 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4756 pointer.
4757
36d25514
YQ
47582013-05-30 Yao Qi <yao@codesourcery.com>
4759
4760 * remote.c (remote_check_symbols): Remove unused parameter
4761 'objfile'.
4762 Declaration update.
4763 (remote_start_remote, remote_new_objfile): Caller update.
4764
62a813cc
YQ
47652013-05-30 Yao Qi <yao@codesourcery.com>
4766
4767 * mi/mi-cmds.c (mi_cmds): Define MI command
4768 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4769 DEF_MI_CMD_CLI.
4770
28439a30
PA
47712013-05-29 Pedro Alves <palves@redhat.com>
4772
4773 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4774 (remote_insert_watchpoint, remote_remove_watchpoint)
4775 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4776 (remote_verify_memory, compare_sections_command)
4777 (remote_search_memory): Set the general process/thread on the
4778 remote side.
4779
6ac1c082
PA
47802013-05-29 Pedro Alves <palves@redhat.com>
4781
4782 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4783 (_initialize_aarch64_tdep): Don't call
4784 initialize_tdesc_aarch64_without_fpu.
4785 * features/Makefile (WHICH): Remove reference to
4786 aarch64-without-fpu.
4787 * features/aarch64-without-fpu.c: Delete file.
4788 * regformats/aarch64-without-fpu.dat: Delete file.
4789
a73e3634
YQ
47902013-05-28 Yao Qi <yao@codesourcery.com>
4791
4792 * tracepoint.c (stringify_collection_list): Remove parameter
4793 'string'.
4794 (encode_actions): Caller update. Remove local variables.
4795
c0ea94eb
YQ
47962013-05-24 Yao Qi <yao@codesourcery.com>
4797
4798 * tracepoint.c (TFILE_PID): Remove.
4799 (tfile_open): Don't add thread and inferior.
4800 (tfile_close): Don't set 'inferior_ptid'. Don't call
4801 exit_inferior_silent.
4802 (tfile_thread_alive): Remove.
4803 (init_tfile_ops): Don't set field 'to_thread_alive' of
4804 tfile_ops.
4805
20d7f211
DE
48062013-05-23 Doug Evans <dje@google.com>
4807
4808 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4809
8658d16d
PA
48102013-05-23 Pedro Alves <palves@redhat.com>
4811
4812 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4813 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4814 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4815 Only define if HAVE_SOCKETS is defined.
4816 * configure.ac: Check for sys/socket.h.
4817 * config.in, configure: Regenerate.
4818
21aa081e
PA
48192013-05-23 Pedro Alves <palves@redhat.com>
4820
4821 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4822 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4823 printing uint32_t variables.
4824
c2d6af84
PA
48252013-05-23 Pedro Alves <palves@redhat.com>
4826
4827 * NEWS: Mention GDBserver range stepping support.
4828
c1e36e3e
PA
48292013-05-23 Yao Qi <yao@codesourcery.com>
4830 Pedro Alves <palves@redhat.com>
4831
4832 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4833 field.
4834 * infcmd.c (step_once, until_next_command): Enable range stepping.
4835 * infrun.c (displaced_step_prepare): Disable range stepping.
4836 (resume): Disable range stepping if stepping over a breakpoint or
4837 we have software watchpoints. If range stepping is enabled,
4838 assert the thread is in the stepping range.
4839 (clear_proceed_status_thread): Clear may_range_step.
4840 (handle_inferior_event): Disable range stepping as soon as we know
4841 the thread that hit the event. Re-enable it whenever we're going
4842 to step with a step range.
4843 * remote.c (struct vCont_action_support) <r>: New field.
4844 (use_range_stepping): New global.
4845 (remote_vcont_probe): Handle 'r' action.
4846 (append_resumption): Append an 'r' action if the thread may range
4847 step.
4848 (show_range_stepping): New function.
4849 (set_range_stepping): New function.
4850 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4851 'set range-stepping' and 'show range-stepping' commands.
4852 * NEWS: Mention range stepping, the new vCont;r action, and the
4853 new "set/show range-stepping" commands.
4854
d458bd84
PA
48552013-05-23 Yao Qi <yao@codesourcery.com>
4856 Pedro Alves <palves@redhat.com>
4857
4858 * remote.c (struct vCont_action_support): New struct.
4859 (struct remote_state) <support_vCont_t>: Remove field.
4860 <vCont_actions_support>: New field.
4861 (remote_vcont_probe, remote_stop_ns): Update.
4862
ce4c476a
PA
48632013-05-23 Yao Qi <yao@codesourcery.com>
4864 Pedro Alves <palves@redhat.com>
4865
4866 * gdbthread.h (pc_in_thread_step_range): New declaration.
4867 * thread.c (pc_in_thread_step_range): New function.
4868 * infrun.c (handle_inferior_event): Use it.
4869
ce70887a
JB
48702013-05-23 Joel Brobecker <brobecker@adacore.com>
4871
4872 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4873 of sprintf.
4874
55b87a52
KS
48752013-05-22 Keith Seitz <keiths@redhat.com>
4876
4877 * ada-lang.c (is_known_support_routine): Add explicit free of
4878 'func_name' from find_frame_funname.
4879 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4880 for func_name from find_frame_funname.
4881 * python/py-frame.c (frapy_name): Add explicit free of
4882 'name' from find_frame_funname.
4883 * stack.c (find_frame_funname): Add comment explaining that
4884 funcp must be freed by the caller.
4885 Return copy of symbol names instead of pointers.
4886 (print_frame): Add a cleanup for 'funname' from
4887 find_frame_funname.
4888 * stack.h (find_frame_funname): Remove "const" from
4889 'funname' parameter.
4890
5f2e6b00
TT
48912013-05-22 Tom Tromey <tromey@redhat.com>
4892
4893 PR c++/15401:
4894 * c-valprint.c (c_value_print): Use value_addr for
4895 references. Convert back to reference type with value_ref.
4896
d85c4847
EZ
48972013-05-22 Eli Zaretskii <eliz@gnu.org>
4898
4899 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4900 unloaded DLL, it will be done by handle_solib_event. See
4901 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4902 details.
4903
54eb231c
PM
49042013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4905
4906 * ui-out.c: Create typedef ui_out_level_p and define vector
4907 operations for that type.
4908 (struct ui_out): Use a vector instead of an array.
4909 (current_level): Return level from a vector.
4910 (push_level): Create a level in a vector.
4911 (pop_level): Delete a level in a vector.
4912 (ui_out_new): Create initial level zero level, and store in a
4913 vector.
4914 (ui_out_destroy): Add vector cleanup.
4915
ac90359c
PA
49162013-05-22 Pedro Alves <palves@redhat.com>
4917
4918 * python/python-internal.h (gdb_Py_DECREF): Tag with
4919 "ARI: editCase function".
4920
6dcc1893
PP
49212013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4922
4923 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4924
c8c735b9
PA
49252013-05-21 Pedro Alves <palves@redhat.com>
4926
4927 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4928 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4929 * python/py-utils.c (py_decref): Don't check for NULL before
4930 calling Py_DECREF.
4931
1915daeb
PA
49322013-05-21 Pedro Alves <palves@redhat.com>
4933
4934 * python/py-utils.c (py_decref): Remove extra braces.
4935 (gdb_pymodule_addobject): Remove extra braces.
4936 * python-internal.h (gdb_Py_DECREF): New static inline function.
4937 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4938
bd9673a4
PW
49392013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4940
4941 * breakpoints.c (detach_breakpoints): Do not
4942 detach breakpoints locations with loc_type bp_loc_other.
4943
ff6009d0
JK
49442013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4945
4946 Workaround Python 2.6.
4947 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4948 a block.
4949
3641da11
JK
49502013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 Code cleanup: constification.
4953 * solib.c (solib_ops): Make return type and ops variable type const.
4954 (set_solib_ops): Make the new_ops parameter and ops variable const.
4955 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4956 (solib_add, solib_keep_data_in_core, clear_solib)
4957 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4958 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4959 const.
4960 * solib.h (set_solib_ops): Make the new_ops parameter const.
4961
776af39e
JB
49622013-05-21 Joel Brobecker <brobecker@adacore.com>
4963
4964 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4965 variable.
4966 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4967 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4968 (SYSTEM_GDBINIT_FILES): New variables.
4969 (all): Add stamp-system-gdbinit.
4970 (stamp-system-gdbinit): New rule.
4971 (clean-system-gdbinit, install-system-gdbinit)
4972 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4973 (install-only): Add dependency on install-system-gdbinit.
4974 (uninstall): Add dependency on uninstall-system-gdbinit.
4975 (clean): Add dependency on clean-system-gdbinit.
4976 * system-gdbinit/elinos.py: New file.
4977 * system-gdbinit/wrs-linux.py: New file.
4978
1509e573
JB
49792013-05-21 Joel Brobecker <brobecker@adacore.com>
4980
4981 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4982
c5867ab6
HZ
49832013-05-21 Hui Zhu <hui@codesourcery.com>
4984
4985 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4986 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4987 * mi/mi-cmd-break.c (ctype.h): New include.
4988 (gdb_obstack.h): New include.
4989 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4990 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4991 (mi_cmd_dprintf_insert): New.
4992 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4993 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4994
7d38e38f
TT
49952013-05-20 Tom Tromey <tromey@redhat.com>
4996
4997 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4998
97b77b39
TT
49992013-05-20 Tom Tromey <tromey@redhat.com>
5000
5001 * python/py-value.c (valpy_get_dynamic_type): Simplify
5002 dynamic_type assignment. Use Py_XINCREF.
5003
53e66479
TT
50042013-05-20 Tom Tromey <tromey@redhat.com>
5005
5006 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5007
dcf87832
TT
50082013-05-20 Tom Tromey <tromey@redhat.com>
5009
5010 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5011 (gdbpy_selected_frame): Move object-construction code
5012 out of TRY_CATCH.
5013
aa36459a
TT
50142013-05-20 Tom Tromey <tromey@redhat.com>
5015
5016 * python/py-arch.c (gdbpy_initialize_arch): Use
5017 gdb_pymodule_addobject.
5018 * python/py-block.c (gdbpy_initialize_blocks): Use
5019 gdb_pymodule_addobject.
5020 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5021 gdb_pymodule_addobject.
5022 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5023 gdb_pymodule_addobject.
5024 * python/py-event.c (gdbpy_initialize_event_generic): Use
5025 gdb_pymodule_addobject.
5026 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5027 gdb_pymodule_addobject.
5028 * python/py-evts.c (add_new_registry): Use
5029 gdb_pymodule_addobject.
5030 (gdbpy_initialize_py_events): Likewise.
5031 * python/py-finishbreakpoint.c
5032 (gdbpy_initialize_finishbreakpoints): Use
5033 gdb_pymodule_addobject.
5034 * python/py-frame.c (gdbpy_initialize_frames): Use
5035 gdb_pymodule_addobject.
5036 * python/py-function.c (gdbpy_initialize_functions): Use
5037 gdb_pymodule_addobject.
5038 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5039 gdb_pymodule_addobject.
5040 * python/py-infthread.c (gdbpy_initialize_thread): Use
5041 gdb_pymodule_addobject.
5042 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5043 gdb_pymodule_addobject.
5044 * python/py-param.c (gdbpy_initialize_parameters): Use
5045 gdb_pymodule_addobject.
5046 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5047 gdb_pymodule_addobject.
5048 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5049 gdb_pymodule_addobject.
5050 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5051 gdb_pymodule_addobject.
5052 * python/py-type.c (gdbpy_initialize_types): Use
5053 gdb_pymodule_addobject.
5054 * python/py-utils.c (gdb_pymodule_addobject): New function.
5055 * python/py-value.c (gdbpy_initialize_values): Use
5056 gdb_pymodule_addobject.
5057 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5058 * python/python.c (_initialize_python): Use
5059 gdb_pymodule_addobject.
5060
3d4a3c3e
TT
50612013-05-20 Tom Tromey <tromey@redhat.com>
5062
5063 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5064 * python/py-param.c (get_set_value, get_show_value): Use
5065 explicit decrefs.
5066 * python/python.c (start_type_printers, apply_type_printers):
5067 Use explicit decrefs.
5068
72ff8829
TT
50692013-05-20 Tom Tromey <tromey@redhat.com>
5070
5071 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5072 incref the module.
5073
02146ba5
TT
50742013-05-20 Tom Tromey <tromey@redhat.com>
5075
5076 * python/python.c (gdbpy_run_events): Decref the result
5077 of PyObject_CallObject.
5078
33ee792f
TT
50792013-05-20 Tom Tromey <tromey@redhat.com>
5080
5081 * python/py-symtab.c (set_sal): Use
5082 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5083 (symtab_and_line_to_sal_object): Update.
5084
fcb49fc8
TT
50852013-05-20 Tom Tromey <tromey@redhat.com>
5086
5087 * python/py-param.c (compute_enum_values): Decref 'item'.
5088
0646da15
TT
50892013-05-20 Tom Tromey <tromey@redhat.com>
5090
5091 * mi/mi-main.c: Include python-internal.h.
5092 (mi_cmd_list_features): Check gdb_python_initialized.
5093 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5094 (python_inferior_exit, python_new_objfile, add_thread_object)
5095 (delete_thread_object, py_free_inferior): Check
5096 gdb_python_initialized.
5097 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5098 gdb_python_initialized.
5099 * python/py-type.c (save_objfile_types): Check
5100 gdb_python_initialized.
5101 * python/python-internal.h (gdb_python_initialized): Declare.
5102 * python/python.c (ensure_python_env): Throw exception if
5103 Python not initialized.
5104 (before_prompt_hook, source_python_script_for_objfile)
5105 (start_type_printers, apply_type_printers,
5106 free_type_printers): Check gdb_python_initialized.
5107 * varobj.c (varobj_get_display_hint)
5108 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5109 (install_new_value_visualizer, varobj_set_visualizer)
5110 (value_get_print_value): Check gdb_python_initialized.
5111
999633ed
TT
51122013-05-20 Tom Tromey <tromey@redhat.com>
5113
5114 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5115 Check errors.
5116 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5117 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5118 Check errors.
5119 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5120 Check errors.
5121 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5122 Check errors.
5123 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5124 Check errors.
5125 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5126 init function to return 'int'.
5127 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5128 Return 'int'. Check errors.
5129 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5130 Check errors.
5131 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5132 Return 'int'. Check errors.
5133 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5134 Check errors.
5135 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5136 Check errors.
5137 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5138 Check errors.
5139 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5140 Check errors.
5141 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5142 Check errors.
5143 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5144 Check errors.
5145 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5146 Check errors.
5147 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5148 Check errors.
5149 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5150 Check errors.
5151 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5152 Check errors.
5153 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5154 Check errors.
5155 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5156 Check errors.
5157 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5158 Check errors.
5159 * python/python-internal.h (gdbpy_initialize_auto_load,
5160 gdbpy_initialize_values, gdbpy_initialize_frames,
5161 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5162 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5163 gdbpy_initialize_blocks, gdbpy_initialize_types,
5164 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5165 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5166 gdbpy_initialize_finishbreakpoints,
5167 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5168 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5169 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5170 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5171 gdbpy_initialize_signal_event,
5172 gdbpy_initialize_breakpoint_event,
5173 gdbpy_initialize_continue_event,
5174 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5175 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5176 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5177 * python/python.c (gdb_python_initialized): New global.
5178 (gdbpy_initialize_events): Return 'int'. Check errors.
5179 (_initialize_python): Check errors. Set
5180 gdb_python_initialized.
5181
18868860
TT
51822013-05-20 Tom Tromey <tromey@redhat.com>
5183
5184 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5185 Decref the reslut of PyObject_CallMethod.
5186
9f4ff0c2
TT
51872013-05-20 Tom Tromey <tromey@redhat.com>
5188
5189 * python/py-event.c (gdbpy_initialize_event_generic): Return
5190 early if PyType_Ready fails.
5191
0d3a2e8a
TT
51922013-05-20 Tom Tromey <tromey@redhat.com>
5193
5194 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5195 as 'default' in the switch.
5196
b86af38a
TT
51972013-05-20 Tom Tromey <tromey@redhat.com>
5198
5199 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5200 get_addr_from_python calls out of TRY_CATCH.
5201 (infpy_write_memory, infpy_search_memory): Likewise.
5202 * python/py-utils.c (get_addr_from_python): Return negative
5203 value on error. Use TRY_CATCH.
5204 * python/python-internal.h (get_addr_from_python): Use
5205 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5206
c127ec58
TT
52072013-05-20 Tom Tromey <tromey@redhat.com>
5208
5209 * python/py-event.c (evpy_emit_event): Decref the
5210 result of PyObject_CallFunctionObjArgs.
5211
ba327838
TT
52122013-05-20 Tom Tromey <tromey@redhat.com>
5213
5214 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5215 Correctly decref.
5216
d8191432
TT
52172013-05-20 Tom Tromey <tromey@redhat.com>
5218
5219 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5220
5d153bd1
TT
52212013-05-20 Tom Tromey <tromey@redhat.com>
5222
5223 * python/py-event.h (gdbpy_initialize_event_generic): Use
5224 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5225 * python/py-evts.c (add_new_registry): Use
5226 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5227 * python/python-internal.h
5228 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5229
56cc411c
TT
52302013-05-20 Tom Tromey <tromey@redhat.com>
5231
5232 * python/py-arch.c (archpy_disassemble): Update.
5233 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5234 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5235 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5236 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5237 macro.
5238 (GDB_PY_HANDLE_EXCEPTION): Update.
5239 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5240
8919e174
TT
52412013-05-20 Tom Tromey <tromey@redhat.com>
5242
5243 * python/python-internal.h (events_object_type): Remove.
5244
9b08f225
TT
52452013-05-20 Tom Tromey <tromey@redhat.com>
5246
f5aee5ee
AM
5247 * python/py-event.h (evpy_emit_event): Use
5248 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5249 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5250 New macro.
9b08f225 5251
f04010ff
TT
52522013-05-20 Tom Tromey <tromey@redhat.com>
5253
5254 * py-evtregistry.c (create_event_object): Decref
5255 eventregistry_object if PyList_New fails.
5256
3919fd96
TT
52572013-05-20 Tom Tromey <tromey@redhat.com>
5258
5259 * py-cmd.c (gdbpy_string_to_argv): Check result of
5260 PyList_New.
5261
0430e8cb
TT
52622013-05-20 Tom Tromey <tromey@redhat.com>
5263
5264 * python/python.c (before_prompt_hook): Add cleanup to
5265 decref 'hook'.
5266
764123e4
TT
52672013-05-20 Tom Tromey <tromey@redhat.com>
5268
5269 * python/py-function.c (fnpy_init): Decref result of
5270 PyObject_GetAttrString.
5271
634c58be
TT
52722013-05-20 Tom Tromey <tromey@redhat.com>
5273
5274 * python/py-threadevent.c (get_event_thread): Use
5275 CPYCHECKER_RETURNS_BORROWED_REF.
5276 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5277 New define.
5278 (pspace_to_pspace_object, objfile_to_objfile_object)
5279 (find_thread_object): Use it.
5280
62eec1a5
TT
52812013-05-20 Tom Tromey <tromey@redhat.com>
5282
5283 * python/py-arch.c (arch_object_type): Use
5284 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5285 * python/py-block.c (block_syms_iterator_object_type):
5286 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5287 * python/py-bpevent.c (breakpoint_event_object_type):
5288 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5289 * python/py-cmd.c (cmdpy_object_type): Use
5290 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5291 * python/py-continueevent.c (continue_event_object_type):
5292 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5293 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5294 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5295 * python/py-events.h (thread_event_object_type):
5296 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5297 * python/py-evtregistry.c (eventregistry_object_type): Use
5298 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5299 * python/py-exitedevent.c (exited_event_object_type):
5300 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5301 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5302 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5303 * python/py-function.c (fnpy_object_type): Use
5304 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5305 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5306 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5307 * python/py-infthread.c (thread_object_type): Use
5308 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5309 * python/py-lazy-string.c (lazy_string_object_type):
5310 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5311 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5312 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5313 * python/py-objfile.c (objfile_object_type): Use
5314 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5315 * python/py-param.c (parmpy_object_type):
5316 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5317 * python/py-progspace.c (pspace_object_type):
5318 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5319 * python/py-signalevent.c (signal_event_object_type):
5320 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5321 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5322 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5323 * python/py-type.c (type_object_type, field_object_type)
5324 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5325 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5326 define.
5327 (value_object_type, block_object_type, symbol_object_type)
5328 (event_object_type, stop_event_object_type, breakpoint_object_type)
5329 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5330
81ea8796
AT
53312013-05-20 Andreas Tobler <andreas@fgznet.ch>
5332
5333 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5334 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5335
a2ce51a0
DE
53362013-05-20 Doug Evans <dje@google.com>
5337
5338 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5339 For Fission.
5340 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5341 reading_dwo_directly.
5342 (struct signatured_type): New member dwo_unit.
5343 (struct die_reader_specs): New member comp_dir.
5344 (create_signatured_type_table_from_index): Use malloc for
5345 all_type_units instead of objfile's obstack.
5346 (create_all_type_units): Ditto.
5347 (fill_in_sig_entry_from_dwo_entry): New function.
5348 (add_type_unit): New function.
5349 (lookup_dwo_signatured_type): New function.
5350 (lookup_dwp_signatured_type): New function.
5351 (lookup_signatured_type): New arg cu. All callers updated.
5352 (init_cu_die_reader): Initialize comp_dir.
5353 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5354 Change assert of matching type signatures to call error on mismatch.
5355 (lookup_dwo_unit): Add assert.
5356 (init_tu_and_read_dwo_dies): New function.
5357 (init_cutu_and_read_dies): Call it.
5358 (build_type_unit_groups): Handle case of no type unit groups created.
5359 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5360 (lookup_dwo_cutu): Tweak complaint.
5361 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5362 (dwarf2_per_objfile_free): Free all_type_units.
5363
a25cd31f
JB
53642013-05-20 Joel Brobecker <brobecker@adacore.com>
5365
5366 * windows-nat.c (handle_unload_dll): Add missing empty line.
5367
4d804846
JB
53682013-05-20 Joel Brobecker <brobecker@adacore.com>
5369
5370 * dwarf2read.c (prototyped_function_p): New function.
5371 (read_subroutine_type): Use it.
5372
1c432e72
JB
53732013-05-20 Joel Brobecker <brobecker@adacore.com>
5374
5375 * rs6000-aix-tdep.c: De-indent some example code provided
5376 as a comment.
5377
4feebbdd
EBM
53782013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5379
5380 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5381 region is ok for a hardware watchpoint using the new ptrace interface
5382 on Power servers.
5383
7d0c9981
DE
53842013-05-17 Doug Evans <dje@google.com>
5385
5386 * NEWS: Mention new maintenance commands check-symtabs, and
5387 expand-symtabs, and renamed check-psymtabs.
5388 * psymtab.c (maintenance_check_psymtabs): Renamed from
5389 maintenance_check_symtabs. Only process already-expanded symbol
5390 tables.
5391 (_initialize_psymtab): Update.
5392 * symmisc.c (maintenance_check_symtabs): New function.
5393 (maintenance_expand_name_matcher): New function
5394 (maintenance_expand_file_matcher): New function
5395 (maintenance_expand_symtabs): New function.
5396 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5397 commands.
5398
6cbc7c3d
TT
53992013-05-17 Tom Tromey <tromey@redhat.com>
5400
5401 * python/py-inferior.c (infpy_read_memory): Don't call
5402 PyErr_SetString if PyObject_New fails.
5403 * python/py-frame.c (frame_info_to_frame_object): Don't call
5404 PyErr_SetString if PyObject_New fails.
5405
a48b32c0
L
54062013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5407
5408 * acinclude.m4: Add check for dlopen in libdl.
5409 * configure.ac: Ditto.
5410 * configure: Regenerate.
5411
3de661e6
PM
54122013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5413
5414 * frame.c (frame_stash): Convert to htab.
5415 (frame_addr_hash): New function.
5416 (frame_addr_hash_eq): New function.
5417 (frame_stash_create): Convert function to create
5418 a hash table.
5419 (frame_stash_add): Convert function to add an entry to a hash
5420 table.
5421 (frame_stash_find): Convert function to search the hash table.
5422 (frame_stash_invalidate): Convert function to empty the hash
5423 table.
5424 (get_frame_id): Only add to stash if a frame_id is created.
5425 (_initialize_frame): Call frame_stash_create.
5426
bb4168a9 54272013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5428
5429 * configure.ac: Ensure MIG is available when building for GNU Hurd
5430 hosts.
5431 * configure: Regenerate.
5432
d1be3247
JB
54332013-05-16 Joel Brobecker <brobecker@adacore.com>
5434
5435 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5436
b8fea896
JB
54372013-05-16 Joel Brobecker <brobecker@adacore.com>
5438
5439 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5440 all cleanups are done before returning from this function.
5441
af880d85
JB
54422013-05-15 Joel Brobecker <brobecker@adacore.com>
5443
5444 * utils.h: #include "exceptions.h".
5445 (enum errors): Remove partial declaration.
5446
356a5233
JB
54472013-05-15 Joel Brobecker <brobecker@adacore.com>
5448
5449 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5450 * gdbarch.h, gdbarch.c: Regenerate.
5451 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5452 handling.
5453
5454 * rs6000-aix-tdep.h: New file.
5455 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5456 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5457 "xml-utils.h".
5458 (struct field_info, struct ld_info_desc): New types.
5459 (ld_info32_desc, ld_info64_desc): New static constants.
5460 (struct ld_info): New type.
5461 (rs6000_aix_extract_ld_info): New function.
5462 (rs6000_aix_shared_library_to_xml): Likewise.
5463 (rs6000_aix_ld_info_to_xml): Likewise.
5464 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5465 (rs6000_aix_init_osabi): Add call to
5466 set_gdbarch_core_xfer_shared_libraries_aix.
5467 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5468 Remove "xml-utils.h" include.
5469 (LdInfo): Delete typedef.
5470 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5471 Delete macros.
5472 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5473 Adjust code accordingly.
5474 (rs6000_core_ldinfo): Delete, folded into
5475 rs6000_aix_core_xfer_shared_libraries_aix.
5476 (rs6000_xfer_shared_library): Delete.
5477 (rs6000_xfer_shared_libraries): Reimplement.
5478
742ce053
MM
54792013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5480
5481 * record.c (record_goto_cmdlist): New.
5482 (cmd_record_goto): Split into this ...
5483 (cmd_record_goto_begin): ... this
5484 (cmd_record_goto_end): ... and this.
5485 (_initialize_record): Change "record goto" to prefix command.
5486 Add commands for "record goto begin" and "record goto end".
5487 Add an alias for "record goto start" to "record goto begin".
5488
e93ba630
JK
54892013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5490
5491 * linespec.c (convert_linespec_to_sals): New comment for
5492 SOURCE_FILENAME assignment.
5493
5821aace
JK
54942013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5495
5496 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5497 internal_warning.
5498
a1b8c4cc
TT
54992013-05-14 Tom Tromey <tromey@redhat.com>
5500
5501 * eval.c (parse_and_eval_long): Make 'exp' const.
5502 * value.h (parse_and_eval_long): Update.
5503
23b3a2c3
TT
55042013-05-14 Tom Tromey <tromey@redhat.com>
5505
5506 * ui-file.c (gdb_fopen): Make arguments const.
5507 * ui-file.h (gdb_fopen): Make arguments const.
5508
ca623f82
TT
55092013-05-14 Tom Tromey <tromey@redhat.com>
5510
5511 * remote.c (remote_set_trace_notes): Make arguments const.
5512 * target.c (update_current_target): Update cast.
5513 * target.h (to_set_trace_notes): Make arguments const.
5514
503ebb2c
TT
55152013-05-14 Tom Tromey <tromey@redhat.com>
5516
5517 * go32-nat.c (go32_terminal_info): Make 'args' const.
5518 * inferior.h (child_terminal_info): Update.
5519 * inflow.c (child_terminal_info): Make 'args' const.
5520 * target.c (default_terminal_info): Make 'args' const.
5521 (debug_to_terminal_save_ours): Likewise.
5522 * target.h (struct target_ops) <to_terminal_info>: Make argument
5523 const.
5524
85e1311a
TT
55252013-05-13 Tom Tromey <tromey@redhat.com>
5526
5527 * gcore.c (create_gcore_bfd): Make 'filename' const.
5528 * gcore.h (create_gcore_bfd): Make 'filename' const.
5529 * record-full.c (record_full_save): Make 'recfilename' const.
5530 * target.c (target_save_record): Make 'filename' const.
5531 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5532 const.
5533 (target_save_record): Likewise.
5534
d62bfeaf
TT
55352013-05-13 Tom Tromey <tromey@redhat.com>
5536
f5aee5ee 5537 PR gdb/15338:
d62bfeaf
TT
5538 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5539 ranges section has been read.
5540
ac1ca910
TT
55412013-05-13 Tom Tromey <tromey@redhat.com>
5542
5543 PR exp/15364:
5544 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5545 STRUCTOP_PTR>: Return a not_lval value for
5546 EVAL_AVOID_SIDE_EFFECTS.
5547 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5548 for EVAL_AVOID_SIDE_EFFECTS.
5549
36d1c68c
JB
55502013-05-13 Joel Brobecker <brobecker@adacore.com>
5551
5552 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5553 floating point registers to register type before storing
5554 value.
5555 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5556 Likewise.
5557
21ff4686
TT
55582013-05-10 Joel Brobecker <brobecker@adacore.com>
5559 Tom Tromey <tromey@redhat.com>
5560
5561 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5562 New functions.
5563 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5564 Declare.
5565 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5566 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5567 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5568 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5569
d3685d60
TT
55702013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5571 Tom Tromey <tromey@redhat.com>
5572
5573 PR build/15414:
5574 * configure: Rebuild.
5575 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5576 with -Wno-format.
5577
eb9fe518
PA
55782013-05-10 Pedro Alves <palves@redhat.com>
5579
5580 * remote.c (_initialize_remote): Fix spelling of
5581 qXfer:traceframe-info:read packet in packet config command.
5582
9779ab84
PA
55832013-05-10 David Taylor <dtaylor@emc.com>
5584
5585 PR remote/15455
5586
5587 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5588 "QTro" at start of packet.
5589
060cfbef
JB
55902013-05-10 Joel Brobecker <brobecker@adacore.com>
5591
5592 * solib-aix.c (solib_aix_relocate_section_addresses):
5593 For the .bss section action, apply the same offset as
5594 the .data section.
5595
ab1c4e88
JB
55962013-05-10 Joel Brobecker <brobecker@adacore.com>
5597
5598 * solib-aix.c (solib_aix_relocate_section_addresses):
5599 Remove FIXME comment.
5600
c1357578
JB
56012013-05-10 Joel Brobecker <brobecker@adacore.com>
5602
5603 PR tdep/15420:
5604 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5605 New functions, directly copied from sparc-sol-thread.c.
5606 * sparc-sol-thread.c: Delete.
5607 * configure.ac: Remove code handling sparc-solaris-thread.c.
5608 * configure: Regenerate.
5609
1e611234
PM
56102013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5611
5612 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5613 filter logic.
5614 (backtrace_command): Add "no-filters" option parsing.
5615 (_initialize_stack): Alter help to reflect "no-filters" option.
5616 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5617 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5618 (py-frame.o): Add target
5619 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5620 filter files.
5621 * python/python.h: Add new frame filter constants, and flag enum.
5622 (apply_frame_filter): Add definition.
5623 * python/python.c (apply_frame_filter): New non-Python
5624 enabled function.
5625 * python/py-utils.c (py_xdecref): New function.
5626 (make_cleanup_py_xdecref): Ditto.
5627 * python/py-objfile.c: Declare frame_filters dictionary.
5628 (objfpy_dealloc): Add frame_filters dealloc.
5629 (objfpy_new): Initialize frame_filters attribute.
5630 (objfile_to_objfile_object): Ditto.
5631 (objfpy_get_frame_filters): New function.
5632 (objfpy_set_frame_filters): New function.
5633 * python/py-progspace.c: Declare frame_filters dictionary.
5634 (pspy_dealloc): Add frame_filters dealloc.
5635 (pspy_new): Initialize frame_filters attribute.
5636 (pspacee_to_pspace_object): Ditto.
5637 (pspy_get_frame_filters): New function.
5638 (pspy_set_frame_filters): New function.
5639 * python/py-framefilter.c: New file.
5640 * python/lib/gdb/command/frame_filters.py: New file.
5641 * python/lib/gdb/frames.py: New file.
5642 * python/lib/gdb/__init__.py: Initialize global frame_filters
5643 dictionary
5644 * python/lib/gdb/FrameDecorator.py: New file.
5645 * python/lib/gdb/FrameIterator.py: New file.
5646 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5647 * mi/mi-cmds.h: Declare.
5648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5649 --no-frame-filter logic, and Python frame filter logic.
5650 (stack_enable_frame_filters): New function.
5651 (parse_no_frame_option): Ditto.
5652 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5653 filter logic.
5654 (mi_cmd_stack_list_locals): Ditto.
5655 (mi_cmd_stack_list_args): Ditto.
5656 (mi_cmd_stack_list_variables): Ditto.
5657 * NEWS: Add frame filter note.
5658
2cb9c859
DE
56592013-05-09 Doug Evans <dje@google.com>
5660
6bf667bb
DE
5661 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5662 All callers updated.
5663 (syms_from_objfile): Ditto. Make static.
5664 (symbol_file_add_with_addrs): Renamed from
5665 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5666 num_offsets. All callers updated.
5667 * symfile.h (syms_from_objfile): Delete.
5668
2cb9c859
DE
5669 * symfile.c (decrement_reading_symtab): Add assert.
5670 (increment_reading_symtab): Ditto.
5671
40aea477
JB
56722013-05-09 Joel Brobecker <brobecker@adacore.com>
5673
5674 * source.c (forward_search_command): Replace call to getc
5675 by call to fgetc.
5676 (reverse_search_command): Likewise.
5677
680d1742
DE
56782013-05-08 Doug Evans <dje@google.com>
5679
5680 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5681 matching test.
5682
17e760ae
JB
56832013-05-08 Joel Brobecker <brobecker@adacore.com>
5684
5685 * sol-thread.c (info_cb): Factorize the code a little.
5686
c0f5f490
JB
56872013-05-08 Joel Brobecker <brobecker@adacore.com>
5688
5689 * sol-thread.c (info_cb): Rework the output of the "maintenance
5690 info sol-threads" command a bit.
5691
5d74e061
JB
56922013-05-08 Joel Brobecker <brobecker@adacore.com>
5693
5694 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5695 Replace ti.ti_startfunc by ti.ti_pc.
5696
814a3ff7
JB
56972013-05-08 Joel Brobecker <brobecker@adacore.com>
5698
5699 * solib-aix.c (solib_aix_free_library_list): New function
5700 for the case where HAVE_LIBEXPAT is not defined.
5701
58ce7251
SDJ
57022013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5703
5704 PR breakpoints/15413:
5705 * breakpoint.c (condition_completer): Simplify the code to
5706 disconsider multiple locations of breakpoints when completing the
5707 "condition" command.
5708
be8b1ea6
PM
57092013-05-07 Pierre Muller <muller@sourceware.org>
5710
5711 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5712 instead of <sys/wait.h>.
5713
1e52bda6
PM
57142013-05-07 Pierre Muller <muller@sourceware.org>
5715
5716 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5717 trailing new line from warning message.
5718
27fd0c6b
PM
57192013-05-07 Pierre Muller <muller@sourceware.org>
5720
5721 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5722 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5723
e228ac87
JB
57242013-05-07 Joel Brobecker <brobecker@adacore.com>
5725
5726 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5727 error message (ARI fix).
5728
57292013-05-07 Joel Brobecker <brobecker@adacore.com>
5730
5731 * features/library-list-aix.dtd: Replace library-list by
5732 library-list-aix.
5733 * rs6000-nat.c: Replace library-list by library-list-aix
5734 throughout.
5735 * solib-aix.c: Likewise.
5736
57372013-05-07 Joel Brobecker <brobecker@adacore.com>
5738
5739 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5740 Renames TARGET_OBJECT_AIX_LIBRARIES.
5741 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5742 TARGET_OBJECT_LIBRARIES_AIX throughout.
5743 * solib-aix.c: Likwise.
5744
26a4dda9
YQ
57452013-05-07 Yao Qi <yao@codesourcery.com>
5746
5747 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5748 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5749
3582629f
YQ
57502013-05-07 Yao Qi <yao@codesourcery.com>
5751
5752 * solib-dsbt.c (enable_break): Declare.
5753 (dsbt_current_sos): Remove call to enable_break2.
5754 (enable_break2): Rename to enable_break. Set solib breakpoint
5755 on '_dl_debug_state'.
5756 (enable_break): Remove.
5757
aacbb8a5
LM
57582013-05-07 Luis Machado <lgustavo@codesourcery.com>
5759
5760 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5761 debug state prior to replicating existing hardware watchpoints or
5762 breakpoints.
5763
0c013353
JK
57642013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5765
5766 * gcore.c (gcore_create_callback): Ignore sections with
5767 separate_debug_objfile_backlink != NULL.
5768
a1217d97
SL
57692013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5770 Andrew Jenner <andrew@codesourcery.com>
5771 Chung-Lin Tang <cltang@codesourcery.com>
5772 Julian Brown <julian@codesourcery.com>
5773
5774 Based on the nios2-elf port from Altera Corporation.
5775
5776 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5777 nios2-linux-tdep.o.
5778 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5779 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5780 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5781 * nios2-tdep.h: New.
5782 * nios2-tdep.c: New.
5783 * nios2-linux-tdep.c: New.
5784 * features/Makefile (WHICH): Add nios2-linux.
5785 (nios2-linux-expedite): Set.
5786 * features/nios2-cpu.xml: New.
5787 * features/nios2.xml: New.
5788 * features/nios2-linux.xml: New.
5789 * features/nios2.c: New (autogenerated).
5790 * features/nios2-linux.c: New (autogenerated).
5791 * regformats/nios2-linux.dat: New (autogenerated).
5792 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5793 and commands.
5794
0892cb63
DE
57952013-05-06 Doug Evans <dje@google.com>
5796
3b7bacac
DE
5797 * symfile.c: Whitespace cleanup.
5798
0892cb63
DE
5799 * solist.h (struct target_so_ops): New member clear_so.
5800 * solib-svr4.c (svr4_clear_so): New function.
5801 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5802 * solib.c (clear_so): Renamed from free_so_symbols.
5803 All callers updated. Call target clear_so if it exists.
5804
40501e00
TT
58052013-05-06 Tom Tromey <tromey@redhat.com>
5806
5807 * ada-lang.c (ada_value_primitive_packed_val): Don't
5808 call value_incref.
5809 * value.c (set_value_parent): Incref the new parent and decref
5810 the old parent.
5811 (value_copy, value_primitive_field): Use set_value_parent.
5812
b6807d98
TT
58132013-05-06 Tom Tromey <tromey@redhat.com>
5814
5815 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5816 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5817 if needed.
5818 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5819 * dwarf2read.c (write_constant_as_bytes)
5820 (dwarf2_fetch_constant_bytes): New functions.
5821
3aef2284
TT
58222013-05-06 Tom Tromey <tromey@redhat.com>
5823
5824 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5825 parameters.
5826 (dwarf2_const_value_attr): Update.
5827
66f65e2b
TT
58282013-05-06 Tom Tromey <tromey@redhat.com>
5829
5830 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5831 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5832 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5833 Remove declaration.
5834
7919a973
TT
58352013-05-06 Tom Tromey <tromey@redhat.com>
5836
5837 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5838 objfile's obstack.
5839
a7bfba49
DE
58402013-05-06 Doug Evans <dje@google.com>
5841
3189cb12
DE
5842 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5843 * stabsread.h (process_one_symbol): Update declaration.
5844 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5845 * elfread.c (elf_symfile_relocate_probe): Ditto.
5846 * psymtab.c (relocate_psymtabs): Ditto.
5847 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5848 (objfile_relocate): Ditto.
5849 * objfiles.h (objfile_relocate): Update declaration.
5850 * symfile.c (relative_addr_info_to_section_offsets): Constify
5851 addrs parameter.
5852 (default_symfile_offsets): Ditto.
5853 (syms_from_objfile_1): Constify offsets parameter.
5854 (syms_from_objfile): Ditto.
5855 (symbol_file_add_with_addrs_or_offsets): Ditto.
5856 (symfile_map_offsets_to_segments): Constify data parameter.
5857 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5858 delta parameters of member relocate.
5859 (struct sym_probe_fns): Constify new_offsets,
5860 delta parameters of member sym_relocate_probe.
5861 (struct sym_fns): Constify section_addr_info parameter of member
5862 sym_offsets.
5863 (relative_addr_info_to_section_offsets): Update declaration.
5864 (default_symfile_offsets): Ditto.
5865 (syms_from_objfile): Ditto.
5866 (symfile_map_offsets_to_segments): Ditto.
5867
a7bfba49
DE
5868 * symfile.c (syms_from_objfile_1): Use correct section count when
5869 objfile->sf == NULL.
5870
5f8e0b8f
MF
58712013-05-06 Mike Frysinger <vapier@gentoo.org>
5872
5873 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5874
ea52d893
DE
58752013-05-06 Doug Evans <dje@google.com>
5876
5877 * psympriv.h (struct partial_symtab): Augment comment for member
5878 section_offsets.
5879
4d1eb6b4
JB
58802013-05-06 Joel Brobecker <brobecker@adacore.com>
5881
5882 Reimplement shared library support on ppc-aix...
5883 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5884 * features/library-list-aix.dtd: New file.
5885 * solib-aix.h, solib-aix.c: New file.
5886 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5887 (rs6000_find_toc_address_hook): Delete.
5888 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5889 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5890 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5891 "xml-utils.h".
5892 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5893 (vmap_symtab, fixup_breakpoints): Delete.
5894 (rs6000_xfer_shared_libraries): New function.
5895 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5896 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5897 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5898 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5899 (rs6000_xfer_shared_library): New function.
5900 (find_toc_address): Delete.
5901 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5902 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5903 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5904 before creating minimal symbol. Adjust function description
5905 accordingly.
5906 (scan_xcoff_symtab): Replace call to
5907 prim_record_minimal_symbol_and_info by call to
5908 record_minimal_symbol.
5909 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5910 around default_symfile_offsets.
5911 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5912 powerpc-aix targets.
5913 * config/rs6000/nm-rs6000.h: Delete.
5914 * config/powerpc/aix.mh (NAT_FILE): Delete.
5915 (NATDEPFILES): Remove xcoffsolib.o.
5916 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5917 (ALL_TARGET_OBS): Add solib-aix.o.
5918 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5919 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5920 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5921 * xcoffsolib.h, xcoffsolib.c: Delete.
5922
5923 * solib.c (reload_shared_libraries): Remove reference to
5924 SOLIB_CREATE_INFERIOR_HOOK.
5925 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5926 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5927 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5928 comment.
5929 * corelow.c (deprecated_core_resize_section_table): Delete.
5930 * exec.c: Remove include of xcoffsolib.h".
5931 (map_vmap, vmap): Delete.
5932 (exec_close_1): Remove references to vmap.
5933 (exec_file_attach): Remove vmap handling code, and reference
5934 to DEPRECATED_IBM6000_TARGET.
5935 (bfdsec_to_vmap): Delete.
5936 (exec_files_info): Remove block of code handling VMAP.
5937 * infcmd.c (post_create_inferior): Remove reference to
5938 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5939 * infrun.c (follow_exec): Remove reference to
5940 SOLIB_CREATE_INFERIOR_HOOK.
5941 * stack.c (print_frame): Remove reference to PC_SOLIB.
5942 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5943 (dsbt_relocate_main_executable): Likewise.
5944 * solib-frv.c (frv_current_sos): Likewise.
5945
0c4f667c
JB
59462013-05-06 Joel Brobecker <brobecker@adacore.com>
5947
5948 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5949 to target_write_memory and target_read_memory.
5950
726ce67c
JB
59512013-05-06 Joel Brobecker <brobecker@adacore.com>
5952
5953 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5954 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5955
c8c9911f
JB
59562013-05-06 Joel Brobecker <brobecker@adacore.com>
5957
5958 * darwin-nat.c: Replace all "%x" instances in format strings
5959 into "0x%x" throughout.
5960
fda184b6
JB
59612013-05-06 Joel Brobecker <brobecker@adacore.com>
5962
5963 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5964 gdb_assert by call to MACH_CHECK_ERROR.
5965 (darwin_attach_pid): Raise an error rather than a failed
5966 assertion when various system calls failed. Report a warning
5967 instead of raising a failed assertion when PREV_NOT is not NULL
5968 after call to mach_port_request_notification.
5969 (darwin_ptrace_me): Raise an error rather than a failed
5970 assertion when read returns nonzero.
5971
d1d69afb
JB
59722013-05-06 Joel Brobecker <brobecker@adacore.com>
5973
5974 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5975
dc90b24d
JK
59762013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5977
5978 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5979
faab9922
JK
59802013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5983 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5984 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5985 a stale cleanup. Fix double free of NAME.
5986
e0ea48a0
EZ
59872013-05-04 Eli Zaretskii <eliz@gnu.org>
5988
5989 * windows-nat.c (windows_delete_thread): Accept an additional
5990 argument, the thread's exit code, and announce thread death when
5991 print_thread_events is non-zero and we are deleting a thread that
5992 is not the main thread.
5993 (get_windows_debug_event): Pass thread exit code to
5994 windows_delete_thread.
5995
83b2706a
KB
59962013-05-03 Kevin Buettner <kevinb@redhat.com>
5997
5998 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5999 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6000 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6001 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6002 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6003 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6004 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6005 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6006 (gdbarch_tdep): New struct.
6007 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6008 E_NUM_REGS.
6009 (v850e3v5_register_name): New function.
6010 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6011 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6012 code handling the struct return conventions for the RH850 ABI.
6013 Update all callers.
6014 (v850_eight_byte_align_p): New function.
6015 (v850_push_call_dummy): Push structs by value, not by reference
6016 for the RH850 ABI. Add support for eight byte alignment.
6017 (v850_dbtrap_breakpoint_from_pc): New function.
6018 (v850_gdbarch_init): Add ABI detection code. Register
6019 v850e3v5_register_name for the v850e3v5 architecture. Set the
6020 number of registers for v850e3v5. Register
6021 v850_dbtrap_breakpoint_from_pc as appropriate.
6022 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6023
d445b2f6
DE
60242013-05-03 Doug Evans <dje@google.com>
6025
6026 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6027 of bfd_count_sections.
6028 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6029 * symfile.c (default_symfile_offsets): Ditto.
6030 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6031 one entry, not bfd_count_sections entries.
6032
b3ce41ea
KB
60332013-05-03 Kevin Buettner <kevinb@redhat.com>
6034
6035 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6036 `save' and `restore' register groups. Don't include SPL
6037 or SPH in these groups.
6038 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6039 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6040 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6041 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6042 dwarf2_append_unwinders().
6043
96f7d3f1
PW
60442013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6045
6046 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6047 ignore SIGINT and SIGTRAP in case these internal signals are
6048 caught explicitely.
6049
b9dd1947
JB
60502013-05-01 Joel Brobecker <brobecker@adacore.com>
6051
6052 * darwin-nat.c (darwin_read_write_inferior): Change types
6053 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6054 of copy_count to "mach_msg_type_number_t".
6055 (darwin_read_dyld_info): Change type of parameter
6056 rdaddr to "gdb_byte *".
6057
4ca18a63
JB
60582013-05-01 Joel Brobecker <brobecker@adacore.com>
6059
6060 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6061 of &info->load_map from "char *" to "gdb_byte *".
6062
2b692d32
JB
60632013-05-01 Joel Brobecker <brobecker@adacore.com>
6064
6065 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6066 from "char *" to "gdb_byte *".
6067 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6068
a98c29a0
DE
60692013-04-30 Doug Evans <dje@google.com>
6070
6a506a2d
DE
6071 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6072 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6073 DWO stub. If DWO isn't found, just use stub.
6074 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6075
a98c29a0
DE
6076 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6077 calling init_cutu_and_read_dies.
6078
f92b06da
WT
60792013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6080
6081 * target-descriptions.c (maint_print_c_tdesc_cmd):
6082 Add case to parse structures as register types and
6083 bitfields.
6084
95eebdcc
WT
60852013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6086
6087 * MAINTAINERS (Write After Approval): Add myself to the list.
6088
019c1128
JB
60892013-04-30 Joel Brobecker <brobecker@adacore.com>
6090
6091 * sol-thread.c (rw_common): Change type of parameter "buf"
6092 to "gdb_byte *".
6093 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6094 rw_common to "gdb_byte *" instead of "char *".
6095
5812197c
JB
60962013-04-30 Joel Brobecker <brobecker@adacore.com>
6097
6098 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6099 of local variable msym to const struct bound_minimal_symbol.
6100 Adjust use accordingly.
6101 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6102
ecccb813
TS
61032013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6104
6105 * i386gnu-nat.c (CREG_OFFSET): New macro.
6106 (creg_offset): New array.
6107 (CREG_ADDR): Use creg_offset instead of reg_offset.
6108
f1d02dd4 61092013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6110
6111 * mep-tdep.c (mep_write_pc): Delete.
6112 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6113 Add call to set_gdbarch_pc_regnum.
6114
f1d02dd4 61152013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6116
6117 * common/filestuff.c: Replace #include <dirent.h> by
6118 #include "gdb_dirent.h".
6119
f1d02dd4 61202013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6121
6122 * common/filestuff.c: Replace #include <sys/stat.h> by
6123 #include "gdb_stat.h".
6124
b385a60d
PM
61252013-04-29 Pierre Muller <muller@sourceware.org>
6126
6127 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6128 editCase function rule.
6129 (get_DW_AT_signature_type): Likewise.
6130
d27b54ad
JB
61312013-04-29 Joel Brobecker <brobecker@adacore.com>
6132
6133 * m32r-tdep.c (m32r_write_pc): Delete.
6134 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6135 Add call to set_gdbarch_pc_regnum.
6136
47d21dc5
PM
61372013-04-29 Pierre Muller <muller@sourceware.org>
6138
6139 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6140
9056882e
JB
61412013-04-29 Joel Brobecker <brobecker@adacore.com>
6142
6143 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6144
7ee4732a
YQ
61452013-04-28 Yao Qi <yao@codesourcery.com>
6146
6147 * solib-dsbt.c (fetch_loadmap): Re-indent.
6148 (displacement_from_map, enable_break2): Likewise.
6149 (dsbt_relocate_section_addresses): Likewise.
6150
2260af53 61512013-04-26 Joel Brobecker <brobecker@adacore.com>
6152
6153 GDB 7.6 released.
6154
ff546935
TT
61552013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6156
6157 PR corefiles/14983:
6158 * dwarf2read.c (process_full_comp_unit): Always create a static
6159 block.
6160
40fb6c5e
HZ
61612013-04-25 Hui Zhu <hui@codesourcery.com>
6162
6163 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6164 to loc->cmd_bytecode.
6165
74e04d1c
DE
61662013-04-24 Doug Evans <dje@google.com>
6167
6168 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6169
3cf62c1d
KS
61702013-04-22 Keith Seitz <keiths@redhat.com>
6171
6172 * tracepoint.c (trace_save): Call the writer's start method.
6173
bf9e4d0c
MB
61742013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6175
6176 PR gdb/10462
6177 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6178 before argument.
6179
5d71132c
TT
61802013-04-23 Tom Tromey <tromey@redhat.com>
6181
6182 * common/filestuff.c: Check USE_WIN32API before including
6183 sys/socket.h.
6184 (HAVE_F_GETFD): New define.
6185 (mark_cloexec): Check HAVE_F_GETFD.
6186 (gdb_open_cloexec): Change 'mode' to unsigned long.
6187 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6188 (gdb_pipe_cloexec): Check HAVE_PIPE.
6189 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6190 long.
6191
a11cfd87
HZ
61922013-04-23 Hui Zhu <hui@codesourcery.com>
6193
6194 PR gdb/15293
a11cfd87
HZ
6195 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6196
2d9442cc
HZ
61972013-04-23 Hui Zhu <hui@codesourcery.com>
6198
6199 PR gdb/15165
2d9442cc
HZ
6200 * breakpoint.c (dprintf_print_recreate): New.
6201 (save_breakpoints): Let it not save dprintf commands.
6202 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6203
614c279d
TT
62042013-04-22 Tom Tromey <tromey@redhat.com>
6205
6206 PR gdb/7912:
6207 * Makefile.in (SFILES): Add filestuff.c
6208 (COMMON_OBS): Add filestuff.o.
6209 (filestuff.o): New target.
6210 * auto-load.c (auto_load_objfile_script_1): Use
6211 gdb_fopen_cloexec.
6212 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6213 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6214 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6215 * common/agent.c (gdb_connect_sync_socket): Use
6216 gdb_socket_cloexec.
6217 * common/filestuff.c: New file.
6218 * common/filestuff.h: New file.
6219 * common/linux-osdata.c (linux_common_core_of_thread)
6220 (command_from_pid, commandline_from_pid, print_source_lines)
6221 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6222 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6223 gdb_fopen_cloexec.
6224 * common/linux-procfs.c (linux_proc_get_int)
6225 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6226 * config.in, configure: Rebuild.
6227 * configure.ac: Don't check for sys/socket.h. Check for
6228 fdwalk, pipe2.
6229 * corelow.c (core_open): Use gdb_open_cloexec.
6230 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6231 * fork-child.c (fork_inferior): Call close_most_fds.
6232 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6233 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6234 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6235 Use gdb_fopen_cloexec.
6236 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6237 gdb_open_cloexec.
6238 (linux_async_pipe): Use gdb_pipe_cloexec.
6239 * remote-fileio.c (remote_fileio_func_open): Use
6240 gdb_open_cloexec.
6241 * remote.c (remote_file_put, remote_file_get): Use
6242 gdb_fopen_cloexec.
6243 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6244 close_most_fds.
6245 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6246 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6247 * solib.c (solib_find): Use gdb_open_cloexec.
6248 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6249 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6250 (tfile_open): Use gdb_open_cloexec.
6251 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6252 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6253 * xml-support.c (xml_fetch_content_from_file): Use
6254 gdb_fopen_cloexec.
6255 * main.c (captured_main): Call notice_open_fds.
6256
5fda2332
EBM
62572013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6258
6259 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6260 'char *' to 'gdb_byte *'.
6261 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6262 'gdb_byte'.
6263
eb6c553b
YQ
62642013-04-22 Yao Qi <yao@codesourcery.com>
6265
6266 * infrun.c: Fix typo in comment.
6267
9991b207
SDJ
62682013-04-22 Andrew Haley <aph@redhat.com>
6269
6270 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6271 instead of "long".
6272
8b4833e3
YQ
62732013-04-20 Yao Qi <yao@codesourcery.com>
6274
6275 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6276 'char *' to 'gdb_byte *'. Cast the return value of
6277 'bt_ctf_get_char_array' to 'gdb_byte *'.
6278
bd3f3b55
PA
62792013-04-19 Pedro Alves <palves@redhat.com>
6280
6281 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6282 -Wpointer-sign.
6283 * configure: Regenerate.
6284
c49e7f76
PA
62852013-04-19 Pedro Alves <palves@redhat.com>
6286
6287 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6288 'void *'.
6289
12ff8552
PA
62902013-04-19 Pedro Alves <palves@redhat.com>
6291
6292 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6293 Change type of 'myaddr' parameter to gdb_byte pointer.
6294 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6295 to 'long long' pointer instead of to 'unsigned long long'.
6296 (monitor_write_memory_block, monitor_read_memory_single)
6297 (monitor_read_memory): Change type of 'myaddr' parameter to
6298 gdb_byte pointer.
6299
9c37696b
PA
63002013-04-19 Pedro Alves <palves@redhat.com>
6301
6302 * record.c (validate_history_size): Make parameter 'setting'
6303 unsigned.
6304
a398505b
PA
63052013-04-19 Pedro Alves <palves@redhat.com>
6306
6307 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6308 to 'gdb_byte *'.
6309
9f8afa72
PA
63102013-04-19 Pedro Alves <palves@redhat.com>
6311
6312 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6313 local to int.
6314
c714b426
PA
63152013-04-19 Pedro Alves <palves@redhat.com>
6316
6317 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6318 * ada-tasks.c (read_fat_string_value): Likewise.
6319
507a579c
PA
63202013-04-19 Pedro Alves <palves@redhat.com>
6321
6322 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6323 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6324 'offset', and adjust.
6325
f9d83a0b
PA
63262013-04-19 Pedro Alves <palves@redhat.com>
6327
6328 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6329 (read_index_from_section): Add cast to 'char *'.
6330
745eb4fd
PA
63312013-04-19 Pedro Alves <palves@redhat.com>
6332
6333 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6334
db5be46f
PA
63352013-04-19 Pedro Alves <palves@redhat.com>
6336
6337 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6338
0f928d68
PA
63392013-04-19 Pedro Alves <palves@redhat.com>
6340
6341 * record-full.c (record_full_get_bookmark): Change local 'ret'
6342 type to char * and add cast to gdb_byte *.
6343 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6344 string.
6345 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6346
89f6d837
PA
63472013-04-19 Pedro Alves <palves@redhat.com>
6348
6349 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6350 * python/py-prettyprint.c (print_string_repr): Change type of
6351 'output' local to char *. Add cast to gdb_byte * in
6352 LA_PRINT_STRING call.
6353 (print_children): Change type of 'output' local to char *.
6354 * python/py-value.c (valpy_string): Add cast to const char * in
6355 PyUnicode_Decode call.
6356
ce6ec7d8
PA
63572013-04-19 Pedro Alves <palves@redhat.com>
6358
6359 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6360 and change its type to 'const char *'. Adjust.
6361 (mips_send_packet): Add cast to 'char *', and remove cast to
6362 'unsigned char *'.
6363 (mips_receive_packet): Remove cast to 'unsigned char *'.
6364 (mips_load_srec): Use bfd_byte.
6365 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6366 (pmon_checkset): Make 'value' parameter unsigned.
6367
fda0389f
PA
63682013-04-19 Pedro Alves <palves@redhat.com>
6369
6370 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6371
bc20a4af
PA
63722013-04-19 Pedro Alves <palves@redhat.com>
6373
6374 * remote.c (remote_write_bytes_aux, compare_sections_command)
6375 (remote_read_qxfer)
6376 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6377 (remote_hostio_readlink, remote_bfd_iovec_pread)
6378 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6379 binary buffer, and char when buffer is used as string.
6380 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6381 (trace_save, tfile_open, traceframe_walk_blocks)
6382 (tfile_fetch_registers): Likewise.
6383
c628b528
PA
63842013-04-19 Pedro Alves <palves@redhat.com>
6385
6386 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6387 buffer and size_t size. Adjust.
6388 * ser-base.h (ser_base_write): Adjust.
6389 * ser-go32.c (cnts): Change type to size_t.
6390 (dos_write): Change prototype -- take 'void *'
6391 buffer and size_t size. Adjust.
6392 (dos_info): Print elements of 'cnts' as unsigned long.
6393 * serial.c (serial_write): Likewise.
6394 * serial.h (serial_write): Adjust.
6395 (struct serial_ops) <write>: Change prototype -- take 'void *'
6396 buffer and size_t size. Adjust.
6397
51a5cd90
PA
63982013-04-19 Pedro Alves <palves@redhat.com>
6399
6400 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6401 gdb_byte *.
6402 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6403
a9933661
PA
64042013-04-19 Pedro Alves <palves@redhat.com>
6405
6406 * alpha-tdep.c (alpha_extract_return_value): Use
6407 regcache_cooked_read_unsigned to read 'v0'.
6408
19afdd07
PA
64092013-04-19 Pedro Alves <palves@redhat.com>
6410
6411 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6412 parameters 'at', 'as' and 'offset' to uint32_t.
6413
96b32e50
PA
64142013-04-19 Pedro Alves <palves@redhat.com>
6415
6416 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6417 'is64' to signed 'int'.
6418
eb1bd1fb
PA
64192013-04-19 Pedro Alves <palves@redhat.com>
6420
6421 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6422 parameter to int *.
6423
463920bf
PA
64242013-04-19 Pedro Alves <palves@redhat.com>
6425
6426 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6427 'insnbuf' buffer type to unsigned int[].
6428
70242eb1
PA
64292013-04-19 Pedro Alves <palves@redhat.com>
6430
6431 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6432
9d1dd0e2
PA
64332013-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6436 unsigned long *.
6437
44096aee
PA
64382013-04-19 Pedro Alves <palves@redhat.com>
6439
6440 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6441 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6442 UINT_MAX.
6443 * mips-tdep.c (heuristic_fence_post): Change type to int.
6444 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6445
e4286e57
PA
64462013-04-19 Pedro Alves <palves@redhat.com>
6447
6448 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6449 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6450 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6451
001f13d8
PA
64522013-04-19 Pedro Alves <palves@redhat.com>
6453
6454 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6455 it to get a string view of the byte buffer.
6456 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6457 type to gdb_byte *. Adjust.
6458 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6459 Change local to char *.
6460 * solib-darwin.c (find_program_interpreter): Change return type to
6461 char *. Adjust.
6462 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6463 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6464 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6465 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6466 * solib-svr4.c (find_program_interpreter): Change return type to
6467 char *. Adjust.
6468 (enable_break): Change local 'interp_name' to char *.
6469 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6470 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6471 (spu_pseudo_register_write_spu): Use char for string buffer.
6472 Adjust.
6473 (info_spu_event_command, info_spu_signal_command): Add casts to
6474 'char *'.
6475
948f8e3d
PA
64762013-04-19 Pedro Alves <palves@redhat.com>
6477
6478 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6479 gdb_byte[].
6480 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6481 * ada-lang.c (ada_value_assign): Use gdb_byte.
6482 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6483 (alphanbsd_sigtramp_offset): Use gdb_byte.
6484 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6485 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6486 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6487 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6488 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6489 * arm-tdep.c (arm_stub_unwind_sniffer)
6490 (arm_displaced_init_closure): Use gdb_byte.
6491 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6492 (arm_default_thumb_le_breakpoint)
6493 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6494 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6495 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6496 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6497 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6498 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6499 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6500 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6501 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6502 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6503 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6504 (cris_store_return_value, cris_extract_return_value): Use
6505 gdb_byte.
6506 (constraint): Change type of parameter to char * from signed
6507 char*. Use gdb_byte.
6508 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6509 of local buffer to gdb_byte *.
6510 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6511 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6512 (add_address_entry): Change type of local buffer to gdb_byte[].
6513 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6514 (frv_push_dummy_call): Use gdb_byte.
6515 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6516 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6517 (hppa_hpux_supply_save_state): Use gdb_byte.
6518 * hppa-tdep.c (hppa32_push_dummy_call)
6519 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6520 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6521 (slotN_contents, replace_slotN_contents): Change type of parameter
6522 to gdb_byte *.
6523 (fetch_instruction, ia64_pseudo_register_write)
6524 (ia64_register_to_value, ia64_value_to_register)
6525 (ia64_extract_return_value, ia64_store_return_value)
6526 (ia64_push_dummy_call): Use gdb_byte.
6527 * m32c-tdep.c (m32c_return_value): Remove cast.
6528 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6529 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6530 gdb_byte.
6531 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6532 * mn10300-tdep.c (mn10300_store_return_value)
6533 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6534 gdb_byte.
6535 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6536 (moxie_process_record): Remove casts.
6537 * ppc-ravenscar-thread.c (supply_register_at_address)
6538 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6539 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6540 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6541 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6542 * remote.c (compare_sections_command): Use gdb_byte.
6543 * score-tdep.c (score7_free_memblock): Change type of parameter to
6544 gdb_byte *.
6545 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6546 gdb_byte *. Use gdb_byte.
6547 (sh_push_dummy_call_fpu): Use gdb_byte.
6548 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6549 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6550 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6551 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6552 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6553 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6554 (sh64_store_return_value, sh64_register_convert_to_virtual):
6555 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6556 (sh64_pseudo_register_write): Use gdb_byte.
6557 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6558 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6559 buffer.
6560 (irix_current_sos): Use gdb_byte.
6561 * solib-som.c (som_current_sos): Use gdb_byte.
6562 * sparc-ravenscar-thread.c (supply_register_at_address)
6563 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6564 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6565 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6566 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6567 'gdb_byte *'.
6568 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6569 'gdb_byte *'.
6570 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6571 * xstormy16-tdep.c (xstormy16_extract_return_value)
6572 (xstormy16_store_return_value): Change parameter type to
6573 'gdb_byte *'. Adjust.
6574 (xstormy16_push_dummy_call): Use gdb_byte.
6575 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6576 (call0_analyze_prologue, execute_code): Use gdb_byte.
6577
433730c9
PA
65782013-04-19 Vladimir Kargov <kargov@gmail.com>
6579 Pedro Alves <palves@redhat.com>
6580
6581 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6582 value contents.
6583
ac9ec31b
DE
65842013-04-17 Doug Evans <dje@google.com>
6585
6586 * dwarf2read.c (struct signatured_type): New member type.
6587 (struct attribute): Replace member signatured_type with signature.
6588 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6589 (read_call_site_scope): Call follow_die_ref instead of
6590 follow_die_ref_or_sig.
6591 (read_structure_type): Rewrite handling of signatured types.
6592 (read_enumeration_type): Ditto.
6593 (read_attribute_value): Update.
6594 (build_error_marker_type): New function.
6595 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6596 Don't call error for bad types, just build an error marker type.
6597 (dump_die_shallow): Update.
6598 (follow_die_sig_1): Renamed from follow_die_sig.
6599 Don't call error for bad types, instead return NULL.
6600 (follow_die_sig): New function.
6601 (get_signatured_type, get_DW_AT_signature_type): New functions.
6602
e546e8bb
YZ
66032013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6604
6605 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6606 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6607 function.
e546e8bb 6608
ab116149
YQ
66092013-04-17 Yao Qi <yao@codesourcery.com>
6610
6611 * top.c (print_gdb_configuration): Print configure-time
6612 parameter on using libbabeltrace or not.
6613
488a42b8
PA
66142013-04-16 Pedro Alves <palves@redhat.com>
6615
6616 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6617
f5fb825b
PA
66182013-04-16 Pedro Alves <palves@redhat.com>
6619
85d494ea 6620 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6621 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6622
e1154999
PA
66232013-04-16 Pedro Alves <palves@redhat.com>
6624
6625 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6626 * common/glibc_thread_db.h: ... this new file ...
6627 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6628
e3b50a7f
PA
66292013-04-16 Will Newton <will.newton@gmail.com>
6630 Pedro Alves <palves@redhat.com>
6631
6632 PR build/11881
6633
6634 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6635 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6636 HAVE_THREAD_DB_H.
6637
1c2e4450
PA
66382013-04-16 Pedro Alves <palves@redhat.com>
6639 Eli Zaretskii <eliz@gnu.org>
6640
6641 * NEWS: Mention "set foo unlimited".
6642
4031ecc5
DE
66432013-04-15 Doug Evans <dje@google.com>
6644
19c3d4c9
DE
6645 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6646 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6647 (create_dwo_cu_reader): Renamed from
6648 create_dwo_debug_info_hash_table_reader.
6649 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6650 Remove support for multiple CUs in a DWO file.
6651 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6652
4031ecc5
DE
6653 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6654 instead of phex.
6655 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6656 (create_dwo_in_dwp): Ditto.
6657
b340913d
TT
66582013-04-15 Tom Tromey <tromey@redhat.com>
6659
6660 * NEWS: Move recent entries into "since 7.6" section.
6661
cc16e6c9
TT
66622013-04-15 Tom Tromey <tromey@redhat.com>
6663
6664 PR c++/13588:
6665 * NEWS: Update.
6666 * break-catch-throw.c (struct exception_catchpoint)
6667 <exception_rx, pattern>: New fields.
6668 (fetch_probe_arguments, dtor_exception_catchpoint)
6669 (check_status_exception_catchpoint)
6670 (print_one_detail_exception_catchpoint): New functions.
6671 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6672 Compile regular expression if needed.
6673 (extract_exception_regexp): New function.
6674 (catch_exception_command_1): Use extract_exception_regexp.
6675 (compute_exception): Use fetch_probe_arguments.
6676 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6677 and check_status fields.
6678 * cp-abi.c (cplus_typename_from_type_info): New function.
6679 * cp-abi.h (cplus_typename_from_type_info): Declare.
6680 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6681 * gdb_regex.h (compile_rx_or_error): Declare.
6682 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6683 comment.
6684 (init_gnuv3_ops): Set get_type_from_type_info field.
6685 * probe.c (compile_rx_or_error): Move...
6686 * utils.c (compile_rx_or_error): ... here.
6687
72f1fe8a
TT
66882013-04-15 Tom Tromey <tromey@redhat.com>
6689
6690 PR c++/15176:
6691 * NEWS: Update.
6692 * break-catch-throw.c (compute_exception): New function.
6693 (exception_funcs): New global.
6694 (_initialize_break_catch_throw): Create $_exception.
6695 * cp-abi.c (cplus_type_from_type_info): New function.
6696 * cp-abi.h (cplus_type_from_type_info): Declare.
6697 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6698 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6699 (gnuv3_get_type_from_type_info): New functions.
6700 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6701
fc4746a2
TT
67022013-04-15 Tom Tromey <tromey@redhat.com>
6703
6704 * break-catch-throw.c (struct exception_names): New.
6705 (exception_functions): Change type.
6706 (re_set_exception_catchpoint): Look for SDT probes.
6707
15a73f56
TT
67082013-04-15 Tom Tromey <tromey@redhat.com>
6709
6710 PR c++/10119:
6711 * break-catch-throw.c (exception_functions): New global.
6712 (gnu_v3_exception_catchpoint_ops): Move earlier.
6713 (struct exception_catchpoint): New.
6714 (classify_exception_breakpoint): Rewrite.
6715 (re_set_exception_catchpoint): New function.
6716 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6717 Allocate a struct exception_catchpoint.
6718 (catch_exception_command_1): Update.
6719 (initialize_throw_catchpoint_ops): Set 're_set' method.
6720
916703c0
TT
67212013-04-15 Tom Tromey <tromey@redhat.com>
6722
6723 * Makefile.in (SFILES): Add break-catch-throw.c
6724 (COMMON_OBS): Add break-catch-throw.o.
6725 * break-catch-throw.c: New file.
6726 * breakpoint.c: Move exception-catching code to new file.
6727 (ep_parse_optional_if_clause): No longer static.
6728 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6729
6e72ca20
TT
67302013-04-15 Tom Tromey <tromey@redhat.com>
6731
6732 PR c++/9065:
6733 * NEWS: Update.
6734 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6735 * c-exp.y (TYPEID): New token.
6736 (exp): Add new TYPEID productions.
6737 (ident_tokens): Add "typeid".
6738 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6739 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6740 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6741 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6742 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6743 case.
6744 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6745 (build_std_type_info_type, gnuv3_get_typeid_type)
6746 (gnuv3_get_typeid): New functions.
6747 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6748 new fields on ABI object.
6749 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6750 * std-operator.def (OP_TYPEID): New.
6751
715c6909
TT
67522013-04-15 Tom Tromey <tromey@redhat.com>
6753
6754 * elfread.c (elf_symtab_read): Install versioned symbol under
6755 unversioned name as well.
6756
8de20a37
TT
67572013-04-15 Tom Tromey <tromey@redhat.com>
6758
6759 PR c++/11990:
6760 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6761 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6762 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6763 (gdb_demangle): New function.
6764 * cp-support.h (gdb_demangle): Declare.
6765 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6766 (dwarf2_name): Use gdb_demangle.
6767 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6768 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6769 suffixes from name.
6770 (gnuv3_print_method_ptr): Use gdb_demangle.
6771 * jv-lang.c (java_demangle): Use gdb_demangle.
6772 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6773 * language.c (unk_lang_demangle): Use gdb_demangle.
6774 * symtab.c (symbol_find_demangled_name)
6775 (demangle_for_lookup): Use gdb_demangle.
6776
591f19e8
TT
67772013-04-15 Tom Tromey <tromey@redhat.com>
6778
6779 PR c++/12824:
6780 * NEWS: Update.
6781 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6782 New constant.
6783 (classify_exception_breakpoint): New function.
6784 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6785 (print_mention_exception_catchpoint)
6786 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6787 (catch_exception_command_1): Handle "rethrow" catchpoint.
6788 (catch_rethrow_command): New function.
6789 (_initialize_breakpoint): Add "catch rethrow" command.
6790
4d40cad2
PM
67912013-04-15 Pierre Muller <muller@sourceware.org>
6792
6793 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6794 set_gdbarch_write_pc as deprecated anymore.
6795
30bcb456
JB
67962013-04-15 Joel Brobecker <brobecker@adacore.com>
6797
6798 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6799 declarations.
6800
da9160e4
YQ
68012013-04-13 Yao Qi <yao@codesourcery.com>
6802
6803 * ctf.c (_initialize_ctf): Include "completer.h".
6804 Call add_target_with_completer instead of add_target.
6805
39ed5604
JK
68062013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6807
6808 Fix GDB regression related to PR binutils/14813.
6809 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6810 * minidebug.c (lzma_close): Add return value comment.
6811 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6812 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6813 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6814
68152013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6816
6817 * config.in: Regenerate.
6818
d521ce57
TT
68192013-04-12 Tom Tromey <tromey@redhat.com>
6820
6821 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6822 const.
6823 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6824 (struct die_reader_specs) <buffer>: Likewise.
6825 (die_reader_func_ftype): Make 'info_ptr' const.
6826 (struct line_header) <include_dirs, statement_program_start,
6827 statement_program_end>: Now const.
6828 (struct file_entry) <name>: Likewise.
6829 (struct partial_die_info) <sibling>: Likewise.
6830 (struct dwarf_block) <data>: Likewise.
6831 (dwarf2_read_section): Remove cast.
6832 (dwarf2_get_section_info): Make 'bufp' const.
6833 (read_index_from_section): Constify.
6834 (dw2_get_file_names_reader): Make 'info_ptr' const.
6835 (dw2_get_primary_filename_reader): Likewise.
6836 (read_comp_unit_head): Make 'info_ptr' and return type const.
6837 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6838 Likewise.
6839 (read_abbrev_offset): Constify.
6840 (dwarf2_create_include_psymtab): Make 'name' const.
6841 (create_debug_types_hash_table): Update.
6842 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6843 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6844 Constify.
6845 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6846 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6847 (read_comp_units_from_section): Constify.
6848 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6849 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6850 const.
6851 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6852 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6853 (create_dwp_hash_table, dwarf2_ranges_read)
6854 (dwarf2_record_block_ranges): Constify.
6855 (read_die_and_children, read_die_and_siblings_1)
6856 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6857 const.
6858 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6859 (abbrev_table_read_table): Constify.
6860 (load_partial_dies): Make 'info_ptr' const.
6861 (read_partial_die, read_attribute_value, read_attribute): Make
6862 'info_ptr' and return type const.
6863 (read_address, read_initial_length)
6864 (read_checked_initial_length_and_offset, read_offset)
6865 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6866 const.
6867 (read_direct_string): Make 'buf' and return type const.
6868 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6869 (read_indirect_string): Make return type const.
6870 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6871 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6872 'info_ptr' const.
6873 (read_str_index): Make return type const.
6874 (add_include_dir): Make 'include_dir' const.
6875 (add_file_name): Make 'name' const.
6876 (dwarf_decode_line_header): Constify.
6877 (psymtab_include_file_name): Make return type const.
6878 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6879 (dwarf2_start_subfile): Make 'filename' const.
6880 (dwarf2_const_value_attr): Make 'bytes' const.
6881 (read_signatured_type_reader): Make 'info_ptr' const.
6882 (decode_locdesc): Constify.
6883 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6884 const.
6885 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6886 'mac_end', and return type const.
6887 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6888 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6889 type const.
6890 (per_cu_header_read_in): Constify.
6891 * symfile.h (dwarf2_get_section_info): Update.
6892
d47a1bc1
TT
68932013-04-12 Tom Tromey <tromey@redhat.com>
6894
6895 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6896
6eaaf48b
EZ
68972013-04-12 Eli Zaretskii <eliz@gnu.org>
6898
fc4c25bf 6899 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6900 * top.c (print_gdb_configuration): New function, displays the
6901 details about GDB configure-time parameters.
6902 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6903 * cli/cli-cmds.c (show_configuration): New function.
6904 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6905 * main.c (captured_main) <print_configuration>: New static var.
6906 <long_options>: Use it.
6907 If --configuration was given, call print_gdb_configuration.
6908
b292c783
JK
69092013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6910 Pedro Alves <palves@redhat.com>
6911
6912 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6913 (generated_files): Add gcore.
6914 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6915 HAVE_NATIVE_GCORE_HOST.
6916 (gcore): New.
6917 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6918 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6919 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6920 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6921 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6922 Add HAVE_NATIVE_GCORE_HOST.
6923 * configure: Regenerate.
6924 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6925 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6926 AC_CONFIG_FILES for gcore.
6927 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6928 gdb_have_gcore.
6929 * gdb_gcore.sh: Rename to ...
6930 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6931 and GCORE_TRANSFORM_NAME substitutions.
6932
c96b3c4f
JK
6933 Fix parsing tabs in ${gdb_target_obs}.
6934 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6935
d6cb50a2
JK
69362013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 * remote.c (unpush_and_perror): Add output message final dot.
6939
cf2cb5ec
YQ
69402013-04-11 Yao Qi <yao@codesourcery.com>
6941
6942 * tracepoint.c (tfile_interp_line): Fit parameters line and
6943 utpp in one line.
6944
07293be4
JB
69452013-04-10 Joel Brobecker <brobecker@adacore.com>
6946
6947 * solib.c (solib_map_sections): Remove code overwriting
6948 SO->SO_NAME with the bfd's filename.
6949
f81d1120
PA
69502013-04-10 Pedro Alves <palves@redhat.com>
6951
6952 * cli/cli-decode.c (integer_unlimited_completer): New function.
6953 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6954 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6955 completer.
6956 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6957 (is_unlimited_literal): New function.
6958 (do_set_command): Handle literal "unlimited" arguments.
6959 * frame.c (_initialize_frame) <set backtrace limit>: Document
6960 "unlimited".
6961 * printcmd.c (_initialize_printcmd) <set print
6962 max-symbolic-offset>: Add help text.
6963 * record-full.c (_initialize_record_full) <set record full
6964 insn-number-max>: Likewise.
6965 * record.c (_initialize_record) <set record
6966 instruction-history-size, set record function-call-history-size>:
6967 Add help text.
6968 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6969 help text.
6970 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6971 Likewise.
6972 * source.c (_initialize_source) <set listsize>: Add help text.
6973 * utils.c (initialize_utils) <set height, set width>: Likewise.
6974 <set pagination>: Mention "set height unlimited".
6975 * valprint.c (_initialize_valprint) <set print elements, set print
6976 repeats>: Document "unlimited".
6977
2f9d54cf
PA
69782013-04-10 Pedro Alves <palves@redhat.com>
6979
6980 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6981 instead of disconnect_tracing.
6982 * infcmd.c (detach_command, disconnect_command): Call
6983 query_if_trace_running. Adjust.
6984 * top.c: Include "tracepoint.h".
6985 (quit_target): Delete. Contents moved ...
6986 (quit_force): ... here. Wrap each stage of teardown in
6987 TRY_CATCH. Call disconnect_tracing before detaching.
6988
393fd4c3
YQ
69892013-04-10 Hui Zhu <hui@codesourcery.com>
6990 Yao Qi <yao@codesourcery.com>
6991
6992 * configure.ac: Check libbabeltrace is installed.
6993 * config.in: Regenerate.
6994 * configure: Regenerate.
6995 * Makefile.in (LIBBABELTRACE): New.
6996 (CLIBS): Add LIBBABELTRACE.
6997 * ctf.c: Include "exec.h".
6998 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6999 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7000 (ctf_save_metadata_header): Define new type aliases in
7001 metadata.
7002 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7003 in metadata. Start a new faked packet for trace status.
7004 (ctf_write_status): Write trace status to CTF.
7005 (ctf_write_uploaded_tsv): Write TSV to CTF.
7006 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7007 (ctf_write_definition_end): End the faked packet.
7008
7009 (ctx, ctf_iter, trace_dirname): New.
7010 (start_pos): New variable.
7011 (ctf_destroy, ctf_open_dir, ctf_open): New.
7012 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7013 macros.
7014 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7015 (ctf_fetch_registers, ctf_xfer_partial): New.
7016 (ctf_get_trace_state_variable_value): New.
7017 (ctf_get_tpnum_from_frame_event): New.
7018 (ctf_get_traceframe_address): New.
7019 (ctf_trace_find, ctf_has_stack): New.
7020 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7021 (ctf_get_trace_status, ctf_read_status): New.
7022 (_initialize_ctf): New.
7023 * tracepoint.c (get_tracepoint_number): New
7024 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7025 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7026 * tracepoint.h: ... here.
7027 (get_tracepoint_number): Declare it.
7028 (get_uploaded_tsv): Declare it.
7029
7030 * NEWS: Mention new configure option.
7031
5c2b4418
HZ
70322013-04-10 Pedro Alves <palves@redhat.com>
7033 Hui Zhu <hui@codesourcery.com>
7034
7035 * breakpoint.c (dprintf_re_set): New.
7036 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7037 to dprintf_re_set.
7038
a5c66735
JB
70392013-04-09 Joel Brobecker <brobecker@adacore.com>
7040
7041 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7042 Remove solib-svr4.o from the list.
7043
9e77999c
JB
70442013-04-09 Joel Brobecker <brobecker@adacore.com>
7045
7046 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7047 Use gdb_assert_not_reached instead of invalid boolean expression.
7048
1927e618
PA
70492013-04-09 Pedro Alves <palves@redhat.com>
7050
7051 * remote.c (unpush_and_perror): New function.
7052 (readchar, remote_serial_write): Use it.
7053
10782d74
MM
70542013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7055
7056 * NEWS: Mention new btrace RSP packets.
7057
4c8429ef
TT
70582013-04-08 Tom Tromey <tromey@redhat.com>
7059
7060 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7061 long.
7062
8625fc1b
TT
70632013-04-08 Tom Tromey <tromey@redhat.com>
7064
7065 * maint.c (print_bfd_section_info): Print the section index.
7066 * symmisc.c (dump_msymbols): Print the section index.
7067
e27d198c
TT
70682013-04-08 Tom Tromey <tromey@redhat.com>
7069
7070 PR symtab/8424:
7071 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7072 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7073 * breakpoint.c (resolve_sal_pc): Update.
7074 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7075 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7076 (minsym_lookup_iterator_cb): Use it.
7077 (default_read_var_value): Update.
7078 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7079 Update.
7080 * infcmd.c (jump_command): Update.
7081 * linespec.c (minsym_found): Update.
7082 * maint.c (maintenance_translate_address): Update.
7083 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7084 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7085 * parse.c (write_exp_msymbol): Update.
7086 * printcmd.c (address_info): Update.
7087 * psymtab.c (find_pc_sect_psymbol): Update.
7088 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7089 SYMBOL_OBJ_SECTION.
7090 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7091 Don't initialize SYMBOL_OBJ_SECTION.
7092 * spu-tdep.c (spu_catch_start): Update.
7093 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7094 * symmisc.c (dump_msymbols, print_symbol): Update.
7095 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7096 how fallback section is computed.
7097 (fixup_symbol_section): Update.
7098 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7099 Update.
7100 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7101 Initialize SYMBOL_SECTION.
7102 * symtab.h (struct general_symbol_info) <section>: Update comment.
7103 <obj_section>: Remove.
7104 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7105 (SYMBOL_OBJFILE): New macro.
7106
e6dc44a8
TT
71072013-04-08 Tom Tromey <tromey@redhat.com>
7108
7109 * coffread.c (record_minimal_symbol): Update.
7110 * dbxread.c (record_minimal_symbol): Update.
7111 * elfread.c (record_minimal_symbol): Update.
7112 * machoread.c (macho_symtab_add_minsym): Update.
7113 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7114 Update.
7115 * minsyms.c (prim_record_minimal_symbol): Update.
7116 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7117 argument.
7118 (prim_record_minimal_symbol_and_info): Likewise.
7119 * minsyms.h (prim_record_minimal_symbol_full)
7120 (prim_record_minimal_symbol_and_info): Update.
7121 * symtab.c (allocate_symbol, initialize_symbol)
7122 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7123 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7124 Update.
7125
36192a8d
TT
71262013-04-08 Tom Tromey <tromey@redhat.com>
7127
7128 PR symtab/8423:
7129 * solib-som.c (som_solib_section_offsets): Use BFD section
7130 indices. Set offsets for all sections.
7131 * somread.c (som_symtab_read): Compute BFD section for
7132 symbol. Use prim_record_minimal_symbol_and_info.
7133 (som_symfile_read): Fix comment.
7134 (struct find_section_offset_arg): New.
7135 (find_section_offset, set_section_index): New functions.
7136 (som_symfile_offsets): Use set_section_index to compute
7137 section indices.
7138
65cf3563
TT
71392013-04-08 Tom Tromey <tromey@redhat.com>
7140
7141 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7142 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7143 gdb_bfd_section_index.
7144 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7145 New functions.
7146 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7147 Declare.
7148 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7149 Update.
7150 * objfiles.c (add_to_objfile_sections_full): New function.
7151 (add_to_objfile_sections): Use it.
7152 (build_section_table): Rewrite.
7153 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7154 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7155 (struct objfile) <sections>: Update comment.
7156 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7157 is NULL.
7158 (ALL_OBJSECTIONS): Use it.
7159 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7160 * solib-frv.c (frv_relocate_main_executable): Update.
7161 * solib-target.c (solib_target_relocate_section_addresses):
7162 Use gdb_bfd_section_index.
7163 * symfile.c (build_section_addr_info_from_section_table):
7164 Use gdb_bfd_section_index.
7165 (build_section_addr_info_from_bfd, place_section): Likewise.
7166 * symtab.c (fixup_section): Update.
7167 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7168
7cbd4a93
TT
71692013-04-08 Tom Tromey <tromey@redhat.com>
7170
7171 * minsyms.h (struct bound_minimal_symbol): New.
7172 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7173 Remove objfile argument.
7174 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7175 Return bound_minimal_symbol.
7176 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7177 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7178 Return bound_minimal_symbol.
7179 (in_gnu_ifunc_stub): Update.
7180 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7181 Remove 'objfile_p' argument.
7182 (lookup_solib_trampoline_symbol_by_pc): Update.
7183 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7184 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7185 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7186 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7187 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7188 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7189 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7190 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7191 stack.c, symtab.c, tui/tui-disasm.c: Update.
7192
f85f34ed
TT
71932013-04-08 Tom Tromey <tromey@redhat.com>
7194
7195 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7196 Use symbol's obstack, not an objfile.
7197 * coffread.c (process_coff_symbol): Update.
7198 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7199 * jv-lang.c (add_class_symbol): Update.
7200 * mdebugread.c (new_symbol): Update.
7201 * minsyms.c (prim_record_minimal_symbol_full)
7202 (terminate_minimal_symbol_table): Update.
7203 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7204 * stabsread.c (define_symbol, read_enum_type): Update.
7205 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7206 Handle Ada specially.
7207 (symbol_set_language): Add 'obstack' argument.
7208 (symbol_set_names): Update.
7209 (symbol_natural_name, symbol_demangled_name): Always use
7210 ada_decode_symbol.
7211 * symtab.h (struct general_symbol_info)
7212 <language_specific::obstack>: New field.
7213 <ada_mangled>: New field.
7214 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7215 (symbol_set_language): Update.
7216
ccde22c0
TT
72172013-04-08 Tom Tromey <tromey@redhat.com>
7218
7219 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7220 Take an obstack, not an objfile.
7221 (symbol_set_names): Update.
7222 * symtab.h (symbol_set_demangled_name): Update.
7223
e623cf5d
TT
72242013-04-08 Tom Tromey <tromey@redhat.com>
7225
7226 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7227 allocate_symbol.
7228 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7229 (read_func_scope): Call allocate_template_symbol.
7230 (new_symbol_full): Call allocate_symbol.
7231 * jit.c (finalize_symtab): Call allocate_symbol.
7232 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7233 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7234 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7235 (common_block_end): Call allocate_symbol.
7236 * symtab.c (allocate_symbol, initialize_symbol)
7237 (allocate_template_symbol): New functions.
7238 * symtab.c (allocate_symbol, initialize_symbol)
7239 (allocate_template_symbol): Declare.
7240 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7241
f6de8ec2
PA
72422013-04-08 Pedro Alves <palves@redhat.com>
7243 Keith Seitz <keiths@redhat.com>
7244
7245 * breakpoint.c (create_breakpoint): Rename
7246 "parse_condition_and_thread" parameter to "parse_arg". Update
7247 describing comment. If !PARSE_ARG, then error out if ARG is not
7248 the empty string after extracting the location.
7249 * breakpoint.h (create_breakpoint): Rename
7250 "parse_condition_and_thread" parameter to "parse_arg".
7251
f65ce5fb
AR
72522013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7253
7254 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7255
cc5925ad
YQ
72562013-04-07 Yao Qi <yao@codesourcery.com>
7257
7258 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7259 and 'addr2' to CORE_ADDR.
7260 * target.c (update_current_target): Update.
7261 * target.h (struct target_ops) <to_trace_find>: Change parameter
7262 type to CORE_ADDR.
7263 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7264 'addr2' to CORE_ADDR.
7265 (tfile_trace_find): Likewise.
7266 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7267 Change local variable 'addr' to type CORE_ADDR.
7268 * tracepoint.h (tfind_1): Update declaration.
7269
d9ac0664
EZ
72702013-04-06 Eli Zaretskii <eliz@gnu.org>
7271
7272 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7273 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7274 Include main.h.
7275
7276 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7277 here...
7278 * main.h (windows_get_absolute_argv0): ...to here.
7279
02142a6c
DE
72802013-04-05 Doug Evans <dje@google.com>
7281
7282 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7283 (read_cutu_die_from_dwo): Add comments.
7284 (read_structure_type): Update comment.
7285 (read_enumeration_type, read_namespace_type): Update comment.
7286 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7287
43662968
JK
72882013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7289
7290 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7291 * Makefile.in (gdb.z): Remove.
7292 (install-only): Remove $(man1dir) and gdb.1 installation.
7293 * gdb.1: Remove.
7294
9ead1b84
JK
72952013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7296
7297 Fix compatibility with Linux kernel 3.8.3.
7298 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7299 to more inner block. Remove parsing of NUMBER from outer block.
7300 Parse NUMBER only if KEYWORD has been identified.
7301
d1794952
JK
73022013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7303
7304 Fix variable name shadowing.
7305 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7306 filename to mapsfilename and update its uses.
7307
9025569e
EZ
73082013-04-05 Eli Zaretskii <eliz@gnu.org>
7309
7310 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7311 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7312 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7313 details of the problem.
7314
c9a6ce02
PA
73152013-04-04 Pedro Alves <palves@redhat.com>
7316 Hui Zhu <hui@codesourcery.com>
7317
7318 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7319 tracepoint, reset its STEP_COUNT and call validate_actionline.
7320
5ff888ce
DE
73212013-04-03 Doug Evans <dje@google.com>
7322
bf6af496
DE
7323 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7324 read_die_and_siblings.
7325 (read_die_and_siblings): New function.
7326 (read_cutu_die_from_dwo): Dump die if requested.
7327 (read_die_and_children): Call read_full_die_1 and
7328 read_die_and_siblings_1.
7329 (read_full_die): Dump die if requested.
7330
7331 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7332
0ac5b59e
DE
7333 * dwarf2read.c (struct dwo_file): New member comp_dir.
7334 Rename member name to dwo_name. All uses updated.
7335 (hash_dwo_file): Include comp_dir in computation.
7336 (eq_dwo_file): Ditto.
7337 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7338 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7339
5ff888ce
DE
7340 * psymtab.c (read_psymtabs_with_fullname): Don't call
7341 psymtab_to_fullname if the basenames are different.
7342
ec83d211
JK
73432013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7344
7345 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7346 New entry about "fullname" presence.
7347
4f4352f7
PA
73482013-04-03 Pedro Alves <palves@redhat.com>
7349
7350 * NEWS: Mention x86_64/Cygwin as new native configuration.
7351
3d1d5ea3
DE
73522013-04-02 Doug Evans <dje@google.com>
7353
7354 * dwarf2read.c (read_structure_type): Fix typo in comment.
7355
be9a8770
PA
73562013-04-02 Pedro Alves <palves@redhat.com>
7357
7358 * NEWS: Mention "set/show debug aarch64", "set/show debug
7359 coff-pe-read" and "set/show debug mach-o".
7360
a46c1e42
PA
73612013-04-02 Pedro Alves <palves@redhat.com>
7362
7363 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7364
3ad18b19
EZ
73652013-04-02 Eli Zaretskii <eliz@gnu.org>
7366
7367 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7368 gdb_string.h is now in common/.
7369
e9f1758d
PA
73702013-04-02 Pedro Alves <palves@redhat.com>
7371
7372 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7373 under "New options".
7374
049dc89b
JK
73752013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7376
7377 Revert this patch:
7378 PR gdb/15275
7379 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7380
c33e31fd
PA
73812013-04-02 Pedro Alves <palves@redhat.com>
7382
7383 PR gdb/15275
7384
7385 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7386 (remote_serial_write): New function.
7387 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7388
ea5f3910
JW
73892013-04-01 Jiong Wang <jiwang@tilera.com>
7390
7391 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7392 "New targets" sections.
ea5f3910 7393
5c6fa7ab
DE
73942013-04-01 Doug Evans <dje@google.com>
7395
c0f78cd4
DE
7396 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7397 (process_enumeration_scope): Simplify.
7398
0186c6a7
DE
7399 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7400 type_unit_group ...
7401 (struct signatured_type): ... to here.
7402 (sig_type_ptr): New typedef.
7403 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7404 out of union 't'. All uses updated.
7405 (dw2_get_file_names_reader): Assert not called for a type unit.
7406 (dw2_get_file_names): Assert not called for a type unit or type
7407 unit group.
7408 (build_type_psymtabs_reader): Assert called for a type unit.
7409 (build_type_psymtab_dependencies): Assert called for a type unit group.
7410
5c6fa7ab
DE
7411 * dwarf2read.c (free_dwo_file): Add comment.
7412 (dwarf2_per_objfile_free): Unref dwp bfd.
7413
b3c0ad67 74142013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7415
7416 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7417 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7418 (read_pe_exported_syms): Remove unused 'exportix'.
7419 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7420 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7421 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7422
e2df1547
AR
74232013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7424
7425 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7426 (print_it_watchpoint): Remove unused 'bl'.
7427 (say_where): Remove unused 'uiout'.
7428 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7429 (bkpt_breakpoint_hit): Remove unused 'b'.
7430 (internal_bkpt_print_it): Remove unused 'uiout'.
7431 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7432
d81e75c0
TD
74332013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7434
7435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7436 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7437
5a8b3f62
DE
74382013-03-29 Doug Evans <dje@google.com>
7439
ab5088bf
DE
7440 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7441 Delete arg is_dwp. All callers updated.
7442 (open_dwp_file): New function.
7443 (open_and_init_dwp_file): Call it.
7444 (get_dwp_file): New function.
7445 (lookup_dwo_cutu): Call it.
7446
a8ad1e57
DE
7447 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7448 unnecessary, cleanup.
7449
6296d8c1
DE
7450 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7451
b0c7bfa9
DE
7452 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7453 (lookup_dwo_unit): New function.
7454 (init_cutu_and_read_dies): Move DWO handling to new functions.
7455
c88ee1f0
DE
7456 * dwarf2read.c (struct signatured_type): Tweak comment.
7457 (struct dwo_unit): Tweak comment.
7458 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7459 (create_dwo_debug_info_hash_table): Tweak comment.
7460 (dwarf2_per_cu_offset_and_type): Tweak comment.
7461
5a8b3f62
DE
7462 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7463 missing .debug_types section.
7464
9852c492
YQ
74652013-03-29 Yao Qi <yao@codesourcery.com>
7466
7467 * corelow.c: Include "completer.h".
7468 (_initialize_corelow): Call add_target_with_completer with
7469 argument 'filename_completer'.
7470 * tracepoint.c: Likewise.
7471 * exec.c (_initialize_exec): Likewise.
7472 * target.c (add_target): Rename to ...
7473 (add_target_with_completer): ... this. Call set_cmd_completer
7474 if parameter completer is not NULL.
7475 (add_target): New.
7476 * target.h: Include "command.h".
7477 (add_target_with_completer): Declare it.
7478
af312be7
JB
74792013-03-28 Joel Brobecker <brobecker@adacore.com>
7480
7481 * coffread.c (is_import_fixup_symbol): New function.
7482 (record_minimal_symbol): Use is_import_fixup_symbol to
7483 detect import fixup symbols, and discard them.
7484
8a0459fd
DE
74852013-03-28 Doug Evans <dje@google.com>
7486
0349ea22
DE
7487 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7488 types hash table until we know we need it.
7489
f652bce2
DE
7490 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7491 index numbers.
7492
e4a48d9d
DE
7493 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7494 All callers updated.
7495 (dw2_print_stats): Print #read CUs too.
7496 (dump_die_shallow): Print signatured types better.
7497
8a0459fd
DE
7498 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7499 info_or_types_section to section. All uses updated.
7500 (struct dwo_unit): Ditto.
7501
bd3eecc3
PA
75022013-03-28 Pedro Alves <palves@redhat.com>
7503
7504 * NEWS (New options): New section.
7505 (New options): Mention set/show remote trace-status-packet.
7506 * remote.c (PACKET_qTStatus): New enumeration value.
7507 (remote_get_trace_status): Skip sending qTStatus if the packet is
7508 disabled. Use packet_ok.
7509 (_initialize_remote): Register a configuration command for
7510 qTStatus packet.
7511
41245087
DE
75122013-03-28 Doug Evans <dje@google.com>
7513
7edbb660
DE
7514 * symfile.c (find_separate_debug_file): Add comment.
7515 (terminate_after_last_dir_separator): Tweak comment.
7516
0018ea6f
DE
7517 * dwarf2read.c (create_partial_symtab): Add forward decl.
7518 (create_partial_symtab): Move to be closer to other psymtab functions.
7519 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7520
ca69b9e6
DE
7521 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7522 (compute_symtab_includes): Remove unnecessary forward declaration.
7523 (die_needs_namespace): Add comment marking group of functions for
7524 dwarf2 name computation.
7525
a9375afe
DE
7526 * typeprint.c (_initialize_typeprint): Improve type help text.
7527
41245087
DE
7528 * python/python.c (finish_python_initialization): Provide suggestion
7529 for how to tell gdb to find its python files.
7530
7f7cc265
PA
75312013-03-28 Pedro Alves <palves@redhat.com>
7532
7533 PR gdb/15294
7534
7535 * source.c (_initialize_source): Change back "set listsize" to an
7536 integer command.
7537
ec21308c
JK
75382013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7539
7540 PR gdb/15275
7541 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7542
840a9a1f
PA
75432013-03-27 Pedro Alves <palves@redhat.com>
7544
7545 * top.c (history_size): Rename to ...
7546 (history_size_setshow_var): ... this. Add comment.
7547 (show_commands): Use readline's 'history_length' instead of
7548 computing the history length by calling history_get in a loop.
7549 (set_history_size_command): Error out for sizes over INT_MAX.
7550 Restore previous history size on invalid size.
7551 (init_history): If HISTSIZE is negative, leave the history size as
7552 zero. Add comments.
7553 (init_main): Adjust.
7554
826ecc4d
PA
75552013-03-27 Pedro Alves <palves@redhat.com>
7556
7557 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7558 coff_pe_read" command to "set debug coff-pe-read".
7559
0ccfeeae
MM
75602013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7561
7562 * record.c (command_size_to_target_size): Fix size comparison.
7563 Change parameter type from pointer to integer to integer.
7564 Update all users.
7565
40653b35
PM
75662013-03-27 Pierre Muller <muller@sourceware.org>
7567
7568 * windows-nat.c (handle_output_debug_string): Avoid typecast
7569 from integer of different size warning.
7570
c62fa0e2
JB
75712013-03-26 Joel Brobecker <brobecker@adacore.com>
7572
7573 * windows-nat.c (handle_output_debug_string): Add empty line
7574 after local block variable definition.
7575
2c619be2
PA
75762013-03-26 Pedro Alves <palves@redhat.com>
7577
7578 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7579 (net_open): Make 'polls' local unsigned.
7580
1b493192
PA
75812013-03-26 Pedro Alves <palves@redhat.com>
7582
7583 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7584 a zuinteger command instead of uinteger.
7585
7ee70bf5
PA
75862013-03-26 Pedro Alves <palves@redhat.com>
7587
7588 * record-full.c (record_full_insn_num): Make it unsigned.
7589 (record_full_check_insn_num, record_full_message)
7590 (record_full_registers_change, record_full_xfer_partial): Remove
7591 record_full_insn_max_num check (it's always != 0).
7592 (record_full_info, record_full_restore): Use %u as format string.
7593 (): Use %u as format string.
7594 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7595 check (it's always != 0).
7596
dfd1f9bb
PA
75972013-03-26 Pedro Alves <palves@redhat.com>
7598
7599 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7600 and "set dcache size" commands zuinteger instead of uinteger.
7601
addb4faf
PA
76022013-03-26 Pedro Alves <palves@redhat.com>
7603
7604 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7605 command zuinteger instead of uinteger.
7606
b75bf488
PA
76072013-03-26 Pedro Alves <palves@redhat.com>
7608
7609 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7610 zuinteger instead of uinteger.
7611
42c634cb
PA
76122013-03-26 Pedro Alves <palves@redhat.com>
7613
7614 * record.c (record_insn_history_size_setshow_var)
7615 (record_call_history_size_setshow_var): New globals.
7616 (command_size_to_target_size): New function.
7617 (cmd_record_insn_history, cmd_record_call_history): Use
7618 command_size_to_target_size instead of cast.
7619 (validate_history_size, set_record_insn_history_size)
7620 (set_record_call_history_size): New functions.
7621 (_initialize_record): Install set_record_insn_history_size and
7622 set_record_call_history_size as "set" hooks of "set record
7623 instruction-history-size" and "set record
7624 function-call-history-size".
7625
1fb2e2b5
PA
76262013-03-26 Pedro Alves <palves@redhat.com>
7627
7628 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7629 use with history_max_entries use. Remove FIXME note.
7630
99c819ee
MM
76312013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7632
7633 * record-btrace.c (record_btrace_close): Call
7634 record_btrace_auto_disable.
7635
9f9e404c
JB
76362013-03-25 Joel Brobecker <brobecker@adacore.com>
7637
7638 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7639
ebcdfe33
DE
76402013-03-25 Doug Evans <dje@google.com>
7641
7642 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7643
24955f63
TT
76442013-03-25 Tom Tromey <tromey@redhat.com>
7645
7646 PR symtab/11462:
7647 * c-exp.y (exp): Add new productions for destructors after '.' and
7648 '->'.
7649 (write_destructor_name): New function.
7650
fce632b6
TT
76512013-03-25 Tom Tromey <tromey@redhat.com>
7652
7653 PR c++/9197:
7654 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7655 value_struct_elt, not lookup_struct_elt_type.
7656 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7657 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7658 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7659
a4341769
YQ
76602013-03-25 Yao Qi <yao@codesourcery.com>
7661
7662 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7663 instead of '_mkdir'.
7664
b5981e5a
EZ
76652013-03-23 Eli Zaretskii <eliz@gnu.org>
7666
7667 * windows-nat.c (windows_get_absolute_argv0): New function.
7668 * windows-nat.h: Add its prototype.
7669
7670 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7671 Use IS_DIR_SEPARATOR instead of looking for a character inside
7672 SLASH_STRING. Include filenames.h.
7673 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7674 relocate_gdb_directory works when passed gdb_program_name.
7675 Include windows-nat.h.
7676
598d3636
JK
76772013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7678
7679 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7680 * remote.c (trace_error): Remove the special handling of '2'.
7681 (readchar) <SERIAL_EOF>
7682 (readchar) <SERIAL_ERROR>
7683 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7684 (remote_get_trace_status): Call throw_exception if EX is
7685 TARGET_CLOSE_ERROR.
7686 * utils.c (perror_with_name): Rename to ...
7687 (throw_perror_with_name): ... here. New parameter errcode, describe it
7688 in the function comment.
7689 (perror_with_name): New function wrapper.
7690 * utils.h (enum errors): New stub declaration.
7691 (throw_perror_with_name): New declaration.
7692
82b821e9
PA
76932013-03-22 Pedro Alves <palves@redhat.com>
7694 Yao Qi <yao@codesourcery.com>
7695 Mark Kettenis <kettenis@gnu.org>
7696
7697 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7698 Don't let the user set the value to UINT_MAX directly.
7699 <var_integer>: Don't let the user set the value to INT_MAX
7700 directly.
7701
78a095c3
JK
77022013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 * remote.c (remote_unpush_target): New function.
7705 (remote_open_1): Remove two pop_target calls, update one comment, add
7706 comment to target_preopen call. Replace pop_target call by
7707 remote_unpush_target call.
7708 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7709 pop_target calls by remote_unpush_target calls.
7710
3e74e146
PA
77112013-03-22 Pedro Alves <palves@redhat.com>
7712
7713 * linux-nat.c (linux_child_follow_fork): Don't call
7714 linux_enable_event_reporting.
7715 (linux_handle_extended_wait): Don't call
7716 linux_enable_event_reporting.
7717
a2213dca
PA
77182013-03-22 Pedro Alves <palves@redhat.com>
7719
7720 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7721 use it to rewrite the trampoline buffers with type gdb_byte[], and
7722 undefine the macro. Remove char* cast.
7723
bd712aed
DE
77242013-03-21 Doug Evans <dje@google.com>
7725
7726 New commands "mt set per-command {space,time,symtab} {on,off}".
7727 * NEWS: Add entry.
7728 * event-top.c: #include "maint.h".
7729 * main.c: #include "maint.h".
7730 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7731 timeval-utils.h, maint.h, cli/cli-setshow.h.
7732 (per_command_time, per_command_space): New static globals.
7733 (per_command_symtab): New static global.
7734 (per_command_setlist, per_command_showlist): New static globals.
7735 (struct cmd_stats): Move here from utils.c.
7736 (set_per_command_time): Renamed from set_display_time in utils.c
7737 and moved here. All callers updated.
7738 (set_per_command_space): Renamed from set_display_space in utils.c
7739 and moved here. All callers updated.
7740 (count_symtabs_and_blocks): New function.
7741 (report_command_stats): Moved here from utils.c. Add support for
7742 printing symtab stats. Only print data if enabled before command
7743 executed.
7744 (make_command_stats_cleanup): Ditto.
7745 (sert_per_command_cmd, show_per_command_cmd): New functions.
7746 (_initialize_maint_cmds): Add new commands
7747 mt set per-command {space,time,symtab} {on,off}.
7748 * maint.h: New file.
7749 * top.c: #include "maint.h".
7750 * utils.c (reset_prompt_for_continue_wait_time): New function.
7751 (get_prompt_for_continue_wait_time): New function.
7752 * utils.h (reset_prompt_for_continue_wait_time): Declare
7753 (get_prompt_for_continue_wait_time): Declare.
7754 (make_command_stats_cleanup): Moved to maint.h.
7755 (set_display_time, set_display_space): Moved to maint.h and renamed
7756 to set_per_command_time, set_per_command_space.
7757 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7758 parse_binary_operation and made non-static. Don't call error,
7759 just return an error marker. All callers updated.
7760 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7761
d76488d8
TT
77622013-03-21 Tom Tromey <tromey@redhat.com>
7763
7764 * symfile.c (alloc_section_addr_info): Update header. Don't set
7765 'num_sections' field.
7766 (build_section_addr_info_from_section_table): Set 'num_sections'.
7767 (build_section_addr_info_from_bfd): Likewise.
7768 (build_section_addr_info_from_objfile): Remove dead loop
7769 condition.
7770 (free_section_addr_info): Unconditionally call xfree.
7771 (relative_addr_info_to_section_offsets, addrs_section_sort)
7772 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7773 condition.
7774 (syms_from_objfile_1): Remove dead 'if' condition. Check
7775 'num_sections'.
7776 (add_symbol_file_command): Set 'num_sections'.
7777 * symfile-mem.c (symbol_file_add_from_memory): Set
7778 'num_sections'.
7779 * somread.c (som_symfile_offsets): Remove dead loop condition.
7780 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7781 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7782
a72e5169 77832013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7784
7785 * tracepoint.h (decode_agent_options): Add 'trace_string'
7786 argument.
7787 * tracepoint.c (decode_agent_options): Add 'trace_string'
7788 argument.
7789 (validate_actionline): Update.
7790 (collect_symbol): Add 'trace_string' argument.
7791 (struct add_local_symbols_data) <trace_string>: New field.
7792 (do_collect_symbol): Update.
7793 (add_local_symbols): Add 'trace_string' argument.
7794 (encode_actions_1): Update.
7795 (trace_dump_actions): Update.
7796 * dwarf2loc.c (access_memory): Update.
7797 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7798 * ax-general.c (new_agent_expr): Update.
7799 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7800 (gen_trace_for_return_address): Add argument.
7801 (trace_kludge, trace_string_kludge): Remove.
7802 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7803 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7804 (gen_trace_for_var): Add 'trace_string' argument.
7805 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7806 (gen_printf, agent_eval_command_one): Update.
7807
b2f83c08
TT
78082013-03-21 Tom Tromey <tromey@redhat.com>
7809
7810 PR exp/15109:
7811 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7812 Handle FILENAME token.
7813
9507860e
TT
78142013-03-21 Tom Tromey <tromey@redhat.com>
7815
7816 * c-exp.y (YYPRINT): Define.
7817 (c_print_token): New function.
7818
e403aa4b
TT
78192013-03-21 Tom Tromey <tromey@redhat.com>
7820
7821 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7822
af307d6a
YQ
78232013-03-21 Yao Qi <yao@codesourcery.com>
7824
7825 * ctf.c: Include "gdb_stat.h".
7826 [USE_WIN32API]: New macro 'mkdir'.
7827 (ctf_start): Use permission bits macros if they are defined.
7828
fb81d016
KS
78292013-03-20 Keith Seitz <keiths@redhat.com>
7830
7831 * breakpoint.h (struct breakpoint): Add comment to
7832 extra_string indicating that this member is mallod'd.
7833 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7834
ef0026f0
PA
78352013-03-20 Pedro Alves <palves@redhat.com>
7836
7837 PR gdb/15289
7838
7839 * cli/cli-setshow.c (do_set_command)
7840 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7841 the result of parsing the command argument. Throw error if the
7842 value is greater than UINT_MAX. Print the invalid value with
7843 plongest.
7844 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7845 result of parsing the command argument. Throw error if the value
7846 is greater than INT_MAX, not greater or equal. Also throw error
7847 if the value is less than INT_MIN. Print the invalid value with
7848 plongest.
7849 <var_zuinteger_unlimited>: Throw error if the value is greater
7850 than INT_MAX, not greater or equal.
7851 (do_show_command) <var_integer, var_zinteger,
7852 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7853
24d6c2a0
TT
78542013-03-20 Tom Tromey <tromey@redhat.com>
7855
7856 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7857 if possible.
7858 * dwarf2read.c (read_func_scope): Remove old FIXME.
7859 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7860 not LOC_COMPUTED.
7861 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7862 Unconditionally call via computed ops, if possible.
7863 * printcmd.c (address_info): Unconditionally call via computed ops,
7864 if possible.
7865 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7866 if possible.
7867 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7868 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7869 if possible.
7870
f1e6e072
TT
78712013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 Tom Tromey <tromey@redhat.com>
7873
7874 PR symtab/8421:
7875 * coffread.c (coff_register_index): New global.
7876 (process_coff_symbol, coff_read_enum_type): Set
7877 SYMBOL_ACLASS_INDEX.
7878 (_initialize_coffread): Initialize new global.
7879 * dwarf2loc.c (locexpr_find_frame_base_location)
7880 (dwarf2_block_frame_base_locexpr_funcs)
7881 (loclist_find_frame_base_location)
7882 (dwarf2_block_frame_base_loclist_funcs): New.
7883 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7884 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7885 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7886 (dwarf2_block_frame_base_loclist_funcs): New.
7887 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7888 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7889 globals.
7890 (read_func_scope): Update.
7891 (fixup_go_packaging, mark_common_block_symbol_computed)
7892 (var_decode_location, new_symbol_full, dwarf2_const_value):
7893 Set SYMBOL_ACLASS_INDEX.
7894 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7895 (_initialize_dwarf2_read): Initialize new globals.
7896 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7897 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7898 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7899 globals.
7900 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7901 (_initialize_mdebugread): Initialize new globals.
7902 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7903 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7904 (stab_register_index, stab_regparm_index): New globals.
7905 (define_symbol, read_enum_type, common_block_end): Set
7906 SYMBOL_ACLASS_INDEX.
7907 (_initialize_stabsread): Initialize new globals.
7908 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7909 globals.
7910 (MAX_SYMBOL_IMPLS): New define.
7911 (register_symbol_computed_impl, register_symbol_block_impl)
7912 (register_symbol_register_impl)
7913 (initialize_ordinary_address_classes): New functions.
7914 (_initialize_symtab): Call initialize_ordinary_address_classes.
7915 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7916 (struct symbol_impl): New.
7917 (SYMBOL_ACLASS_BITS): New define.
7918 (struct symbol) <aclass, ops>: Remove fields.
7919 <aclass_index>: New field.
7920 (symbol_impls): Declare.
7921 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7922 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7923 (register_symbol_computed_impl, register_symbol_block_impl)
7924 (register_symbol_register_impl): Declare.
7925 (struct symbol_computed_ops): Add location_has_loclist.
7926 (struct symbol_block_ops): New.
7927 (SYMBOL_BLOCK_OPS): New.
7928 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7929
dbccfd4c
TT
79302013-03-20 Tom Tromey <tromey@redhat.com>
7931
7932 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7933 (print_partial_symbols, recursively_search_psymtabs): Use
7934 PSYMBOL_CLASS.
7935
e3f1ad4f
PM
79362013-03-20 Pierre Muller <muller@sourceware.org>
7937
7938 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7939 addtion, subtraction, multiplication and division binary operator.
7940
460014f5
JK
79412013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7942
7943 Code cleanup.
7944 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7945 * bsd-kvm.c (bsd_kvm_close): Likewise.
7946 * bsd-uthread.c (bsd_uthread_close): Likewise.
7947 * corelow.c (core_close): Likewise.
7948 (core_close_cleanup): Remove parameter quitting from a caller.
7949 * event-top.c (async_disconnect): Likewise.
7950 * exec.c (exec_close_1): Remove parameter quitting.
7951 * go32-nat.c (go32_close): Likewise.
7952 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7953 parameter quitting from a caller.
7954 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7955 variable.
7956 (mips_linux_close): Remove parameter quitting. Remove parameter
7957 quitting from a caller.
7958 * monitor.c (monitor_close): Remove parameter quitting.
7959 * monitor.h (monitor_close): Likewise.
7960 * record-btrace.c (record_btrace_close): Likewise.
7961 * record-full.c (record_full_close): Likewise.
7962 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7963 it also from fprintf_unfiltered.
7964 * remote-mips.c (mips_close): Remove parameter quitting.
7965 (mips_detach): Remove parameter quitting from a caller.
7966 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7967 (gdbsim_close): Remove duplicate function comment. Remove parameter
7968 quitting and remove it also from printf_filtered.
7969 * remote.c (remote_close): Remove parameter quitting.
7970 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7971 * target.c (update_current_target): Remove parameter int from to_close
7972 de_fault.
7973 (push_target, unpush_target, pop_target): Remove parameter quitting from
7974 a caller.
7975 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7976 Remove parameter quitting from a caller.
7977 (target_preopen): Remove parameter quitting from a caller.
7978 (target_close): Remove parameter quitting. Remove parameter quitting
7979 from a caller two times. Remove parameter quitting also from
7980 fprintf_unfiltered.
7981 * target.h (struct target_ops): Remove parameter quitting and as int
7982 from fields to_xclose and to_close.
7983 (extern struct target_ops current_target):
7984 (target_close, pop_all_targets): Remove parameter quitting. Update the
7985 comment.
7986 (pop_all_targets_above): Remove parameter quitting.
7987 * top.c (quit_target): Remove parameter quitting from a caller.
7988 * tracepoint.c (tfile_close): Remove parameter quitting.
7989 * windows-nat.c (windows_close): Remove parameter quitting.
7990
35a7120b
CV
79912013-03-20 Corinna Vinschen <vinschen@redhat.com>
7992
7993 * windows-nat.c (handle_output_debug_string): Replace call
7994 to string_to_core_addr with call to strtoull.
7995
8249a5a9
YQ
79962013-03-20 Yao Qi <yao@codesourcery.com>
7997
7998 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7999 and write it to CTF metadata.
8000
2c15ef43
CV
80012013-03-19 Corinna Vinschen <vinschen@redhat.com>
8002
8003 * windows-nat.c (handle_output_debug_string): Change type of n to
8004 SIZE_T to avoid crash on 64 bit systems.
8005
1cdd3232
EZ
80062013-03-17 Eli Zaretskii <eliz@gnu.org>
8007
8008 * python/python-internal.h (HAVE_SNPRINTF)
8009 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8010 about redefinition of snprintf by pyerrors.h.
8011
3cb2ab1a
SE
80122013-03-15 Steve Ellcey <sellcey@mips.com>
8013
8014 * remote-sim.c (sim_command_completer): Make char arguments const.
8015
9ce98649
TT
80162013-03-15 Tom Tromey <tromey@redhat.com>
8017
8018 PR c++/15116:
8019 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8020
dccee2de
TT
80212013-03-14 Tom Tromey <tromey@redhat.com>
8022
8023 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8024 New fields.
8025 (get_file_crc): Move from symfile.c.
8026 (gdb_bfd_crc): New function.
8027 * gdb_bfd.h (gdb_bfd_crc): Declare.
8028 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8029 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8030 (separate_debug_file_exists): Use gdb_bfd_crc.
8031
cc0ea93c
TT
80322013-03-14 Tom Tromey <tromey@redhat.com>
8033
8034 * symfile.c (get_debug_link_info): Remove.
8035 (find_separate_debug_file_by_debuglink): Use
8036 bfd_get_debug_link_info.
8037
08c23b0d
TT
80382013-03-14 Tom Tromey <tromey@redhat.com>
8039
8040 * symtab.c (error_in_psymtab_expansion): New function.
8041 (lookup_symbol_aux_quick)
8042 (basic_lookup_transparent_type_quick): Remove "last resort"
8043 code. Use error_in_psymtab_expansion.
8044
288e77a7
JK
80452013-03-14 Doug Evans <dje@google.com>
8046 Jan Kratochvil <jan.kratochvil@redhat.com>
8047
8048 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8049 any successful compare_filenames_for_search or FILENAME_CMP.
8050 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8051 * symtab.c (iterate_over_some_symtabs): Likewise.
8052
8f1b8b82
JK
80532013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8054
8055 * source.c (print_source_lines_base): Make a local copy of
8056 symtab_to_fullname.
8057
23eb71e4
JK
80582013-03-14 Hui Zhu <hui_zhu@mentor.com>
8059 Jan Kratochvil <jan.kratochvil@redhat.com>
8060
8061 * source.c (print_source_lines_base): Suppress "file" for TUI.
8062
bb869963
SDJ
80632013-03-14 Keith Seitz <keiths@redhat.com>
8064 Alan Matsuoka <alanm@redhat.com>
8065
8066 PR c++/15203
8067 PR c++/15210
8068 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8069 TYPE_CODE_METHOD.
8070 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8071 symbols.
8072
d6682f9e
YQ
80732013-03-14 Yao Qi <yao@codesourcery.com>
8074
8075 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8076 status to tfile if trace is stopped by command 'tstop'.
8077
a22fa6e4
YQ
80782013-03-14 Yao Qi <yao@codesourcery.com>
8079
8080 * tracepoint.c (tfile_write_status): Write trace notes and user
8081 name into tfile if they are not NULL.
8082
d0353e76
YQ
80832013-03-14 Hui Zhu <hui@codesourcery.com>
8084 Yao Qi <yao@codesourcery.com>
8085
8086 * Makefile.in (REMOTE_OBS): Add ctf.o.
8087 (SFILES): Add ctf.c.
8088 (HFILES_NO_SRCDIR): Add ctf.h.
8089 * ctf.c, ctf.h: New files.
8090 * tracepoint.c: Include 'ctf.h'.
8091 (collect_pseudocommand): Remove static.
8092 (trace_save_command): Parse option "-ctf".
8093 Produce different trace file writers per option.
8094 Adjust output message.
8095 (trace_save_tfile, trace_save_ctf): New.
8096 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8097 * mi/mi-main.c: Include 'ctf.h'.
8098 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8099 trace_save_tfile or trace_save_ctf.
8100 * NEWS: Mention these changes.
8101
3f43bc09
YQ
81022013-03-14 Yao Qi <yao@codesourcery.com>
8103
8104 * tracepoint.c (trace_file_writer_xfree): New.
8105 (struct tfile_writer_data): New.
8106 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8107 (tfile_write_header, tfile_write_regblock_type): New.
8108 (tfile_write_status, tfile_write_uploaded_tsv): New.
8109 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8110 (tfile_write_raw_data, (tfile_end): New.
8111 (tfile_write_ops): New global variable.
8112 (TRACE_WRITE_R_BLOCK): New macro.
8113 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8114 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8115 (TRACE_WRITE_V_BLOCK): New macro.
8116 (trace_save): Add extra one parameter WRITER. Make it static.
8117 Use WRITER to writer trace.
8118 (tfile_trace_file_writer_new): New.
8119 (trace_save_command): Caller update.
8120 (trace_save_tfile): Write trace data in TFILE format.
8121 * tracepoint.h (struct trace_frame_write_ops): New.
8122 (struct trace_file_write_ops): New.
8123 (struct trace_file_writer): New.
8124 (trace_save): Remove its declaration.
8125 (trace_save_tfile): Declare it.
8126 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8127 instead of trace_save.
8128
58665b40
PA
81292013-03-13 Pedro Alves <palves@redhat.com>
8130
8131 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8132
10217050
PA
81332013-03-13 Pedro Alves <palves@redhat.com>
8134
8135 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8136 commented out code.
8137 * demangle.c (current_demangling_style_string): Make it const.
8138 (set_demangling_command): Assert the demangling style is known.
8139 Remove all handling of unknown styles. Set
8140 'current_demangling_style_string' to an element of the
8141 demangling_style_names array.
8142 (set_demangling_style): Delete.
8143 (_initialize_demangler): Set current_demangling_style_string to the
8144 element of the demangling_style_names array that corresponds to
8145 the default demangling style. Remove FIXME note. Don't call
8146 set_demangling_style.
8147 * gdb-demangle.h (set_demangling_style): Remove declaration.
8148
6f937416
PA
81492013-03-13 Pedro Alves <palves@redhat.com>
8150
8151 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8152 fields const.
8153 (ada_make_symbol_completion_list): Make "text0" parameter const.
8154 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8155 * breakpoint.c (condition_completer): Make "text" and "word"
8156 parameters const. Adjust.
8157 (check_tracepoint_command): Adjust to validate_actionline
8158 prototype change.
8159 (catch_syscall_completer): Make "text" and "word" parameters
8160 const.
8161 * cli/cli-cmds.c (show_user): Make "comname" local const.
8162 (valid_command_p): Make "command" parameter const.
8163 (alias_command): Make "alias_prefix" and "command_prefix" locals
8164 const.
8165 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8166 (add_alias_cmd): Make "name" and "oldname" parameters const.
8167 Adjust. No longer make copy of OLDNAME.
8168 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8169 (add_setshow_cmd_full, add_setshow_enum_cmd)
8170 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8171 (add_setshow_filename_cmd, add_setshow_string_cmd)
8172 (add_setshow_string_noescape_cmd)
8173 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8174 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8175 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8176 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8177 Make "name" parameter const.
8178 (help_cmd): Rename "command" parameter to "arg". New const local
8179 "command".
8180 (find_cmd): Make "command" parameter const.
8181 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8182 deprecated_cmd_warning prototype change.
8183 (undef_cmd_error): Make "cmdtype" parameter const.
8184 (lookup_cmd): Make "line" parameter const.
8185 (deprecated_cmd_warning): Change type of "text" parameter to
8186 pointer to const char, from pointer to pointer to char. Adjust.
8187 (lookup_cmd_composition): Make "text" parameter const.
8188 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8189 parameters const.
8190 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8191 const.
8192 * cli/cli-script.c (validate_comname): Make "tem" local const.
8193 (define_command): New const local "tem_c". Use it in calls to
8194 lookup_cmd.
8195 (document_command): Make "tem" and "comfull" locals const.
8196 (show_user_1): Make "prefix" and "name" parameters const.
8197 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8198 const.
8199 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8200 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8201 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8202 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8203 (complete_on_enum, add_setshow_enum_cmd)
8204 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8205 (add_setshow_filename_cmd, add_setshow_string_cmd)
8206 (add_setshow_string_noescape_cmd)
8207 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8208 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8209 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8210 Change prototypes, constifying strings.
8211 * completer.c (noop_completer, filename_completer): Make "text"
8212 and "prefix" parameters const.
8213 (location_completer, expression_completer)
8214 (complete_line_internal): Make "text" and "prefix" parameters
8215 const and adjust.
8216 (command_completer, signal_completer): Make "text" and "prefix"
8217 parameters const.
8218 * completer.h (noop_completer, filename_completer)
8219 (expression_completer, location_completer, command_completer)
8220 (signal_completer): Change prototypes.
8221 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8222 parameters const.
8223 * cp-abi.c (cp_abi_completer): Likewise.
8224 * expression.h (parse_expression_for_completion): Change
8225 prototype.
8226 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8227 parameters const.
8228 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8229 * infrun.c (handle_completer): Make "text" and "word" parameters
8230 const.
8231 * interps.c (interpreter_completer): Make "text" and "word"
8232 parameters const.
8233 * language.h (struct language_defn)
8234 <la_make_symbol_completion_list>: Make "text" and "word"
8235 parameters const.
8236 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8237 (parse_exp_in_context): Rename to ...
8238 (parse_exp_in_context_1): ... this.
8239 (parse_exp_in_context): Reimplement, with const hack from
8240 parse_exp_1.
8241 (parse_expression_for_completion): Make "string" parameter const.
8242 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8243 to pointer to const char. Adjust.
8244 (print_command_1): Make "exp" parameter const.
8245 (output_command): Rename to ...
8246 (output_command_const): ... this. Make "exp" parameter const.
8247 (output_command): Reimplement.
8248 (x_command): Adjust.
8249 (display_command): Rename "exp" parameter to "arg". New "exp"
8250 local, const version of "arg".
8251 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8252 "cmd_name" local const.
8253 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8254 call.
8255 (cmdpy_completer): Make "text" and "word" parameters const.
8256 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8257 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8258 const.
8259 * remote.c (_initialize_remote): Make "cmd_name" local const.
8260 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8261 parameters const. Adjust.
8262 (completion_list_add_fields): Make "sym_text", "text" and "word"
8263 parameters const.
8264 (struct add_name_data) <sym_text, text, word>: Make fields const.
8265 (default_make_symbol_completion_list_break_on): Make "text" and
8266 "word" parameters const. Adjust locals.
8267 (default_make_symbol_completion_list)
8268 (make_symbol_completion_list, make_symbol_completion_type)
8269 (make_symbol_completion_list_fn): Make "text" and "word"
8270 parameters const.
8271 (make_file_symbol_completion_list): Make "text", "word" and
8272 "srcfile" parameters const. Adjust locals.
8273 (add_filename_to_list): Make "text" and "word" parameters const.
8274 (struct add_partial_filename_data) <text, word>: Make fields
8275 const.
8276 (make_source_files_completion_list): Make "text" and "word"
8277 parameters const.
8278 * symtab.h (default_make_symbol_completion_list_break_on)
8279 (default_make_symbol_completion_list, make_symbol_completion_list)
8280 (make_symbol_completion_type enum type_code)
8281 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8282 (make_source_files_completion_list): Change prototype.
8283 * top.c (execute_command): Adjust to pass pointer to pointer to
8284 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8285 change.
8286 (set_verbose): Make "cmdname" local const.
8287 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8288 and adjust.
8289 (validate_actionline): Make "line" parameter a pointer to const
8290 char, and adjust.
8291 (encode_actions_1): Make "action_exp" local const, and adjust.
8292 (encode_actions): Adjust.
8293 (replace_comma): Delete.
8294 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8295 const, and adjust. Don't frob the action string while splitting
8296 it at commas. Instead, make a copy of each split substring in
8297 turn.
8298 (trace_dump_command): Adjust to validate_actionline prototype
8299 change.
8300 * tracepoint.h (decode_agent_options, decode_agent_options)
8301 (encode_actions, validate_actionline): Change prototypes.
8302 * valprint.h (output_command): Delete declaration.
8303 (output_command_const): Declare.
8304 * value.c (function_destroyer): Cast const away in xfree call.
8305
a0bcdaa7
PA
83062013-03-13 Pedro Alves <palves@redhat.com>
8307
8308 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8309 rather than casting 'const char * const *' to 'const char **'.
8310 * ada-lex.l (processInt): Make "trailer" local const. Remove
8311 'const char **' cast.
8312 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8313 locals, and use those as strtol output pointer, instead than doing
8314 invalid casts to from 'const char **' to 'char **'.
8315 (_initialize_demangle): Remove cast.
8316 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8317 locals, and use those as strtol output pointer, instead than doing
8318 invalid casts to from 'const char **' to 'char **'.
8319 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8320 casts.
8321 * stap-probe.c (stap_parse_register_operand)
8322 (stap_parse_single_operand): Likewise.
8323
8ddb1965
YQ
83242013-03-13 Yao Qi <yao@codesourcery.com>
8325
8326 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8327 the last matched 'V' blcok in trace frame.
8328
2d450646
JB
83292013-03-12 Joel Brobecker <brobecker@adacore.com>
8330
8331 * NEWS: Create a new section for the next release branch.
8332 Rename the section of the current branch, now that it has
8333 been cut.
8334
b4b79973 83352013-03-12 Joel Brobecker <brobecker@adacore.com>
8336
8337 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8338 * version.in: Bump version to 7.6.50.20130312-cvs.
8339
ee047554
KS
83402013-03-12 Keith Seitz <keiths@redhat.com>
8341
8342 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8343 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8344 Remove temporary copy of input string.
8345 (mi_execute_command_wrapper): Make "cmd" const.
8346 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8347 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8348 Use const strings.
8349 (mi_parse): Make "cmd" const.
8350 Use const strings.
8351 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8352
bbc13ae3
KS
83532013-03-12 Keith Seitz <keiths@redhat.com>
8354
8355 * ada-lang.c (ada_read_renaming_var_value): Pass const
8356 pointer to expression string to parse_exp_1.
8357 (create_excep_cond_exprs): Likewise.
8358 * ax-gdb.c (agent_eval_command_one): Likewise.
8359 (maint_agent_printf_command): Likewise.
8360 Constify much of the string handling/parsing.
8361 * breakpoint.c (set_breakpoint_condition): Pass const
8362 pointer to expression string to parse_exp_1.
8363 (update_watchpoint): Likewise.
8364 (parse_cmd_to_aexpr): Constify string handling.
8365 Pass const pointer to parse_exp_1.
8366 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8367 (find_condition_and_thread): Likewise.
8368 Make TOK const.
8369 (watch_command_1): Make "arg" const.
8370 Constify string handling.
8371 Copy the expression string instead of changing the input
8372 string.
8373 (update_breakpoint_location): Pass const pointer to
8374 parse_exp_1.
8375 * eval.c (parse_and_eval_address): Make "exp" const.
8376 (parse_to_comma_and_eval): Make "expp" const.
8377 (parse_and_eval): Make "exp" const.
8378 * expression.h (parse_expression): Make argument const.
8379 (parse_exp_1): Make first argument const.
8380 * findcmd.c (parse_find_args): Treat "args" as const.
8381 * linespec.c (parse_linespec): Pass const pointer to
8382 linespec_expression_to_pc.
8383 (linespec_expression_to_pc): Make "exp_ptr" const.
8384 * parse.c (parse_exp_1): Make "stringptr" const.
8385 Make a copy of the expression to pass to parse_exp_in_context until
8386 this whole interface can be constified.
8387 (parse_expression): Make "string" const.
8388 * printcmd.c (ui_printf): Treat "arg" as const.
8389 Handle const strings.
8390 * tracepoint.c (validate_actionline): Pass const pointer to
8391 all calls to parse_exp_1.
8392 (encode_actions_1): Likewise.
8393 * value.h (parse_to_comma_and_eval): Make argument const.
8394 (parse_and_eval_address): Likewise.
8395 (parse_and_eval): Likewise.
8396 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8397 (varobj_set_value): Likewise.
8398 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8399 constify string handling.
8400 Pass const pointers to parse_and_eval_address and
8401 parse_to_comman_and_eval.
8402 * cli/cli-utils.c (skip_to_space): Rename to ...
8403 (skip_to_space_const): ... this. Handle const strings.
8404 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8405 skip_to_space_const.
8406 (skip_to_space_const): Declare.
8407 * common/format.c (parse_format_string): Make "arg" const.
8408 Handle const strings.
8409 * common/format.h (parse_format_string): Make "arg" const.
8410 * gdbserver/ax.c (ax_printf): Make "format" const.
8411 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8412 of the expression string.
8413
f3cec7e6
HZ
84142013-03-12 Hui Zhu <hui@codesourcery.com>
8415
8416 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8417
9df7235c
HZ
84182013-03-12 Yao Qi <yao@codesourcery.com>
8419 Hui Zhu <hui@codesourcery.com>
8420
8421 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8422 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8423 DW_OP_deref_size.
8424
82d049ab
PH
84252013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8426
5f8e0b8f
MF
8427 * ada-lex.l (rules): Only recognize 'thread' as a
8428 delimiter when followed by numerals, as for c-exp.y.
8429 Use new rewind_to_char function to rewind the input for
8430 expression-delimiting tokens.
8431 (rewind_to_char): New function.
82d049ab 8432
8c1fb155
JK
84332013-03-11 Pedro Alves <palves@redhat.com>
8434 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * configure: Regenerate.
8437 * configure.ac (check dynamic export flag): Link python test with
8438 $PYTHON_LIBS.
8439
cc81e1c6
DE
84402013-03-11 Doug Evans <dje@google.com>
8441 Keith Seitz <keiths@redhat.com>
8442
8443 * linespec.c (find_linespec_symbols): Call find_function_symbols
8444 first, and then call lookup_prefix_sym/find_method.
8445
39086a0e
PA
84462013-03-11 Pedro Alves <palves@redhat.com>
8447
8448 * charset.c (convert_between_encodings): Don't cast between
8449 different pointer to pointer types. Instead, make the 'inp' local
8450 be of the type iconv expects.
8451 (wchar_iterate): Don't cast between different pointer to pointer
8452 types. Instead, use new pointer local of the type iconv expects.
8453 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8454 Add new local of type char pointer, and use it to get a
8455 char/string view of the byte buffer, instead of casting between
8456 pointer to pointer types.
8457
90585175
HAQ
84582013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8459
8460 * remote.c (remote_set_trace_buffer_size): Move != operator
8461 to the start of next line to fix an ARI warning.
8462
59ea5688
MM
84632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8464
8465 * NEWS: Add record changes.
8466
946287b7
MM
84672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8468
8469 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8470 the instruction history disassembly.
8471 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8472 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8473
afedecd3
MM
84742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8475
8476 * Makefile.in (SFILES): Add record-btrace.c
8477 (COMMON_OBS): Add record-btrace.o
8478 * record-btrace.c: New.
8479 * objfiles.c: Include btrace.h.
8480 (free_objfile): call btrace_free_objfile.
8481
15984c13
MM
84822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8483
8484 * target.c (target_call_history, target_call_history_from,
8485 target_call_history_range): New.
8486 * target.h (target_ops) <to_call_history, to_call_history_from,
8487 to_call_history_range>: New fields.
8488 (target_call_history, target_call_history_from,
8489 target_call_history_range): New declaration.
8490 * record.c (get_call_history_modifiers, cmd_record_call_history,
8491 record_call_history_size): New.
8492 (_initialize_record): Add the "record function-call-history" command.
8493 Add "set/show record function-call-history-size" commands.
8494 * record.h (record_print_flag): New.
8495
67c86d06
MM
84962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8497
8498 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8499 to_insn_history_range>: New fields.
8500 (target_insn_history): New.
8501 (target_insn_history_from): New.
8502 (target_insn_history_range): New.
8503 * target.c (target_insn_history): New.
8504 (target_insn_history_from): New.
8505 (target_insn_history_range): New.
8506 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8507 (record_insn_history_size): New.
8508 (get_insn_number): New.
8509 (get_context_size): New.
8510 (no_chunk): New.
8511 (get_insn_history_modifiers): New.
8512 (cmd_record_insn_history): New.
8513 (_initialize_record): Add "set/show record instruction-history-size"
8514 command. Add "record instruction-history" command.
8515
7c1687a9
MM
85162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8517
8518 * record.h (record_disconnect): New.
8519 (record_detach): New.
8520 (record_mourn_inferior): New.
8521 (record_kill): New.
8522 * record-full.c (record_disconnect, record_detach,
8523 record_mourn_inferior, record_kill): Move to...
8524 * record.c: ...here.
8525 (DEBUG): New.
8526 (record_stop): New.
8527 (record_unpush): New.
8528 (cmd_record_stop): Call record_stop. Replace unpush_target
8529 call with record_unpush call.
8530 (record_disconnect, record_detach): Assert that the target
8531 is of record stratum. Call record_unpush, record_stop, and
8532 DEBUG.
8533 (record_mourn_inferior, record_kill): Assert that the target
8534 is of record stratum. Call record_unpush and DEBUG.
8535
25ea693b
MM
85362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8537
8538 * record-full.h, record-full.c (record_memory_query): Rename
8539 to ...
8540 (record_full_memory_query): ...this. Update all users.
8541 (record_arch_list_add_reg): Rename to ...
8542 (record_full_arch_list_add_reg): ...this. Update all users.
8543 (record_arch_list_add_mem): Rename to ...
8544 (record_full_arch_list_add_mem): ...this. Update all users.
8545 (record_arch_list_add_end): Rename to ...
8546 (record_full_arch_list_add_end): ...this. Update all users.
8547 (record_gdb_operation_disable_set): Rename to ...
8548 (record_full_gdb_operation_disable_set): ...this.
8549 Update all users.
8550
88d1aa9d
MM
85512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8552
8553 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8554 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8555 (RECORD_IS_REPLAY): Renamed to ...
8556 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8557 (RECORD_FILE_MAGIC): Renamed to ...
8558 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8559 (record_mem_entry): Renamed to ...
8560 (record_full_mem_entry): ... this. Updated all users.
8561 (record_reg_entry): Renamed to ...
8562 (record_full_reg_entry): ... this. Updated all users.
8563 (record_end_entry): Renamed to ...
8564 (record_full_end_entry): ... this. Updated all users.
8565 (record_type) <record_end, record_reg, record_mem>: Renamed
8566 to ...
8567 (record_full_type) <record_full_end, record_full_reg,
8568 record_full_mem>: ... this. Updated all users.
8569 (record_entry): Renamed to ...
8570 (record_full_entry): ... this. Updated all users.
8571 (record_core_buf_entry): Renamed to ...
8572 (record_full_core_buf_entry): ... this. Updated all users.
8573 (record_core_regbuf): Renamed to ...
8574 (record_full_core_regbuf): ... this. Updated all users.
8575 (record_core_start): Renamed to ...
8576 (record_full_core_start): ... this. Updated all users.
8577 (record_core_end): Renamed to ...
8578 (record_full_core_end): ... this. Updated all users.
8579 (record_core_buf_list): Renamed to ...
8580 (record_full_core_buf_list): ... this. Updated all users.
8581 (record_first): Renamed to ...
8582 (record_full_first): ... this. Updated all users.
8583 (record_list): Renamed to ...
8584 (record_full_list): ... this. Updated all users.
8585 (record_arch_list_head): Renamed to ...
8586 (record_full_arch_list_head): ... this. Updated all users.
8587 (record_arch_list_tail): Renamed to ...
8588 (record_full_arch_list_tail): ... this. Updated all users.
8589 (record_stop_at_limit): Renamed to ...
8590 (record_full_stop_at_limit): ... this. Updated all users.
8591 (record_insn_max_num): Renamed to ...
8592 (record_full_insn_max_num): ... this. Updated all users.
8593 (record_insn_num): Renamed to ...
8594 (record_full_insn_num): ... this. Updated all users.
8595 (record_insn_count): Renamed to ...
8596 (record_full_insn_count): ... this. Updated all users.
8597 (record_ops): Renamed to ...
8598 (record_full_ops): ... this. Updated all users.
8599 (record_core_ops): Renamed to ...
8600 (record_full_core_ops): ... this. Updated all users.
8601 (set_record_cmdlist): Renamed to ...
8602 (set_record_full_cmdlist): ... this. Updated all users.
8603 (show_record_cmdlist): Renamed to ...
8604 (show_record_full_cmdlist): ... this. Updated all users.
8605 (record_cmdlist): Renamed to ...
8606 (record_full_cmdlist): ... this. Updated all users.
8607 (record_beneath_to_resume_ops): Renamed to ...
8608 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8609 (record_beneath_to_resume): Renamed to ...
8610 (record_full_beneath_to_resume): ... this. Updated all users.
8611 (record_beneath_to_wait_ops): Renamed to ...
8612 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8613 (record_beneath_to_wait): Renamed to ...
8614 (record_full_beneath_to_wait): ... this. Updated all users.
8615 (record_beneath_to_store_registers_ops): Renamed to ...
8616 (record_full_beneath_to_store_registers_ops): ... this.
8617 Updated all users.
8618 (record_beneath_to_store_registers): Renamed to ...
8619 (record_full_beneath_to_store_registers): ... this.
8620 Updated all users.
8621 (record_beneath_to_xfer_partial_ops): Renamed to ...
8622 (record_full_beneath_to_xfer_partial_ops): ... this.
8623 Updated all users.
8624 (record_beneath_to_xfer_partial): Renamed to ...
8625 (record_full_beneath_to_xfer_partial): ... this.
8626 Updated all users.
8627 (record_beneath_to_insert_breakpoint): Renamed to ...
8628 (record_full_beneath_to_insert_breakpoint): ... this.
8629 Updated all users.
8630 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8631 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8632 Updated all users.
8633 (record_beneath_to_stopped_data_address): Renamed to ...
8634 (record_full_beneath_to_stopped_data_address): ... this.
8635 Updated all users.
8636 (record_beneath_to_async): Renamed to ...
8637 (record_full_beneath_to_async): ... this. Updated all users.
8638 (record_goto_insn): Renamed to ...
8639 (record_full_goto_insn): ... this. Updated all users.
8640 (record_save): Renamed to ...
8641 (record_full_save): ... this. Updated all users.
8642 (record_reg_alloc): Renamed to ...
8643 (record_full_reg_alloc): ... this. Updated all users.
8644 (record_reg_release): Renamed to ...
8645 (record_full_reg_release): ... this. Updated all users.
8646 (record_mem_alloc): Renamed to ...
8647 (record_full_mem_alloc): ... this. Updated all users.
8648 (record_mem_release): Renamed to ...
8649 (record_full_mem_release): ... this. Updated all users.
8650 (record_end_alloc): Renamed to ...
8651 (record_full_end_alloc): ... this. Updated all users.
8652 (record_end_release): Renamed to ...
8653 (record_full_end_release): ... this. Updated all users.
8654 (record_entry_release): Renamed to ...
8655 (record_full_entry_release): ... this. Updated all users.
8656 (record_list_release): Renamed to ...
8657 (record_full_list_release): ... this. Updated all users.
8658 (record_list_release_following): Renamed to ...
8659 (record_full_list_release_following): ... this.
8660 Updated all users.
8661 (record_list_release_first): Renamed to ...
8662 (record_full_list_release_first): ... this. Updated all users.
8663 (record_arch_list_add): Renamed to ...
8664 (record_full_arch_list_add): ... this. Updated all users.
8665 (record_get_loc): Renamed to ...
8666 (record_full_get_loc): ... this. Updated all users.
8667 (record_check_insn_num): Renamed to ...
8668 (record_full_check_insn_num): ... this. Updated all users.
8669 (record_arch_list_cleanups): Renamed to ...
8670 (record_full_arch_list_cleanups): ... this. Updated all users.
8671 (record_message): Renamed to ...
8672 (record_full_message): ... this. Updated all users.
8673 (record_message_wrapper): Renamed to ...
8674 (record_full_message_wrapper): ... this. Updated all users.
8675 (record_message_wrapper_safe): Renamed to ...
8676 (record_full_message_wrapper_safe): ... this. Updated all users.
8677 (record_gdb_operation_disable): Renamed to ...
8678 (record_full_gdb_operation_disable): ... this. Updated all users.
8679 (record_hw_watchpoint): Renamed to ...
8680 (record_full_hw_watchpoint): ... this. Updated all users.
8681 (record_exec_insn): Renamed to ...
8682 (record_full_exec_insn): ... this. Updated all users.
8683 (record_restore): Renamed to ...
8684 (record_full_restore): ... this. Updated all users.
8685 (record_async_inferior_event_token): Renamed to ...
8686 (record_full_async_inferior_event_token): ... this.
8687 Updated all users.
8688 (record_async_inferior_event_handler): Renamed to ...
8689 (record_full_async_inferior_event_handler): ... this.
8690 Updated all users.
8691 (record_core_open_1): Renamed to ...
8692 (record_full_core_open_1): ... this. Updated all users.
8693 (record_open_1): Renamed to ...
8694 (record_full_open_1): ... this. Updated all users.
8695 (record_open): Renamed to ...
8696 (record_full_open): ... this. Updated all users.
8697 (record_close): Renamed to ...
8698 (record_full_close): ... this. Updated all users.
8699 (record_resume_step): Renamed to ...
8700 (record_full_resume_step): ... this. Updated all users.
8701 (record_resumed): Renamed to ...
8702 (record_full_resumed): ... this. Updated all users.
8703 (record_execution_dir): Renamed to ...
8704 (record_full_execution_dir): ... this. Updated all users.
8705 (record_resume): Renamed to ...
8706 (record_full_resume): ... this. Updated all users.
8707 (record_get_sig): Renamed to ...
8708 (record_full_get_sig): ... this. Updated all users.
8709 (record_sig_handler): Renamed to ...
8710 (record_full_sig_handler): ... this. Updated all users.
8711 (record_wait_cleanups): Renamed to ...
8712 (record_full_wait_cleanups): ... this. Updated all users.
8713 (record_wait_1): Renamed to ...
8714 (record_full_wait_1): ... this. Updated all users.
8715 (record_wait): Renamed to ...
8716 (record_full_wait): ... this. Updated all users.
8717 (record_stopped_by_watchpoint): Renamed to ...
8718 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8719 (record_disconnect): Renamed to ...
8720 (record_full_disconnect): ... this. Updated all users.
8721 (record_detach): Renamed to ...
8722 (record_full_detach): ... this. Updated all users.
8723 (record_mourn_inferior): Renamed to ...
8724 (record_full_mourn_inferior): ... this. Updated all users.
8725 (record_kill): Renamed to ...
8726 (record_full_kill): ... this. Updated all users.
8727 (record_stopped_data_address): Renamed to ...
8728 (record_full_stopped_data_address): ... this. Updated all users.
8729 (record_registers_change): Renamed to ...
8730 (record_full_registers_change): ... this. Updated all users.
8731 (record_store_registers): Renamed to ...
8732 (record_full_store_registers): ... this. Updated all users.
8733 (record_xfer_partial): Renamed to ...
8734 (record_full_xfer_partial): ... this. Updated all users.
8735 (record_breakpoint): Renamed to ...
8736 (record_full_breakpoint): ... this. Updated all users.
8737 (record_breakpoint_p): Renamed to ...
8738 (record_full_breakpoint_p): ... this. Updated all users.
8739 (record_breakpoints): Renamed to ...
8740 (record_full_breakpoints): ... this. Updated all users.
8741 (record_sync_record_breakpoints): Renamed to ...
8742 (record_full_sync_record_breakpoints): ... this.
8743 Updated all users.
8744 (record_init_record_breakpoints): Renamed to ...
8745 (record_full_init_record_breakpoints): ... this.
8746 Updated all users.
8747 (record_insert_breakpoint): Renamed to ...
8748 (record_full_insert_breakpoint): ... this. Updated all users.
8749 (record_remove_breakpoint): Renamed to ...
8750 (record_full_remove_breakpoint): ... this. Updated all users.
8751 (record_can_execute_reverse): Renamed to ...
8752 (record_full_can_execute_reverse): ... this. Updated all users.
8753 (record_get_bookmark): Renamed to ...
8754 (record_full_get_bookmark): ... this. Updated all users.
8755 (record_goto_bookmark): Renamed to ...
8756 (record_full_goto_bookmark): ... this. Updated all users.
8757 (record_async): Renamed to ...
8758 (record_full_async): ... this. Updated all users.
8759 (record_can_async_p): Renamed to ...
8760 (record_full_can_async_p): ... this. Updated all users.
8761 (record_is_async_p): Renamed to ...
8762 (record_full_is_async_p): ... this. Updated all users.
8763 (record_execution_direction): Renamed to ...
8764 (record_full_execution_direction): ... this. Updated all users.
8765 (record_info): Renamed to ...
8766 (record_full_info): ... this. Updated all users.
8767 (record_delete): Renamed to ...
8768 (record_full_delete): ... this. Updated all users.
8769 (record_is_replaying): Renamed to ...
8770 (record_full_is_replaying): ... this. Updated all users.
8771 (record_goto_entry): Renamed to ...
8772 (record_full_goto_entry): ... this. Updated all users.
8773 (record_goto_begin): Renamed to ...
8774 (record_full_goto_begin): ... this. Updated all users.
8775 (record_goto_end): Renamed to ...
8776 (record_full_goto_end): ... this. Updated all users.
8777 (record_goto): Renamed to ...
8778 (record_full_goto): ... this. Updated all users.
8779 (init_record_ops): Renamed to ...
8780 (init_record_full_ops): ... this. Updated all users.
8781 (record_core_resume): Renamed to ...
8782 (record_full_core_resume): ... this. Updated all users.
8783 (record_core_kill): Renamed to ...
8784 (record_full_core_kill): ... this. Updated all users.
8785 (record_core_fetch_registers): Renamed to ...
8786 (record_full_core_fetch_registers): ... this. Updated all users.
8787 (record_core_prepare_to_store): Renamed to ...
8788 (record_full_core_prepare_to_store): ... this. Updated all users.
8789 (record_core_store_registers): Renamed to ...
8790 (record_full_core_store_registers): ... this. Updated all users.
8791 (record_core_xfer_partial): Renamed to ...
8792 (record_full_core_xfer_partial): ... this. Updated all users.
8793 (record_core_insert_breakpoint): Renamed to ...
8794 (record_full_core_insert_breakpoint): ... this. Updated all users.
8795 (record_core_remove_breakpoint): Renamed to ...
8796 (record_full_core_remove_breakpoint): ... this. Updated all users.
8797 (record_core_has_execution): Renamed to ...
8798 (record_full_core_has_execution): ... this. Updated all users.
8799 (init_record_core_ops): Renamed to ...
8800 (init_record_full_core_ops): ... this. Updated all users.
8801 (cmd_record_restore): Renamed to ...
8802 (cmd_record_full_restore): ... this. Updated all users.
8803 (record_save_cleanups): Renamed to ...
8804 (record_full_save_cleanups): ... this. Updated all users.
8805 (cmd_record_start): Renamed to ...
8806 (cmd_record_full_start): ... this. Updated all users.
8807 (set_record_insn_max_num): Renamed to ...
8808 (set_record_full_insn_max_num): ... this. Updated all users.
8809 (set_record_command): Renamed to ...
8810 (set_record_full_command): ... this. Updated all users.
8811 (show_record_command): Renamed to ...
8812 (show_record_full_command): ... this. Updated all users.
8813 (_initialize_record): Renamed to ...
8814 (_initialize_record_full): ... this. Updated all users.
8815
d02ed0bb
MM
88162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8817
8818 * record.h: Split into this and ...
8819 * record-full.h: ... this.
8820 * record.c: Split into this and ...
8821 * record-full.c: ... this.
8822 * target.h (target_ops): Add new fields to_info_record,
8823 to_save_record, to_delete_record, to_record_is_replaying,
8824 to_goto_record_begin, to_goto_record_end, to_goto_record.
8825 (target_info_record): New.
8826 (target_save_record): New.
8827 (target_supports_delete_record): New.
8828 (target_delete_record): New.
8829 (target_record_is_replaying): New.
8830 (target_goto_record_begin): New.
8831 (target_goto_record_end): New.
8832 (target_goto_record): New.
8833 * target.c (target_info_record): New.
8834 (target_save_record): New.
8835 (target_supports_delete_record): New.
8836 (target_delete_record): New.
8837 (target_record_is_replaying): New.
8838 (target_goto_record_begin): New.
8839 (target_goto_record_end): New.
8840 (target_goto_record): New.
8841 * record.h: Declare struct cmd_list_element.
8842 (record_cmdlist): New declaration.
8843 (set_record_cmdlist): New declaration.
8844 (show_record_cmdlist): New declaration.
8845 (info_record_cmdlist): New declaration.
8846 (cmd_record_goto): New declaration.
8847 * record.c: Remove unnecessary includes.
8848 Include inferior.h.
8849 (cmd_record_goto): Remove declaration.
8850 (record_cmdlist): Now extern. Initialize.
8851 (set_record_cmdlist): Now extern. Initialize.
8852 (show_record_cmdlist): Now extern. Initialize.
8853 (info_record_cmdlist): Now extern. Initialize.
8854 (find_record_target): New.
8855 (require_record_target): New.
8856 (cmd_record_start): Update.
8857 (cmd_record_delete): Remove target-specific code.
8858 Call target_delete_record.
8859 (cmd_record_stop): Unpush any record target.
8860 (set_record_insn_max_num): Move to record-full.c
8861 (set_record_command): Add comment.
8862 (show_record_command): Add comment.
8863 (info_record_command): Update comment.
8864 Remove target-specific code.
8865 Call the record target's to_info_record.
8866 (cmd_record_start): New.
8867 (cmd_record_goto): Now extern.
8868 Remove target-specific code.
8869 Call target_goto_begin, target_goto_end, or target_goto.
8870 (_initialize_record): Move record target ops initialization to
8871 record-full.c.
8872 Change "record" command help text.
8873 Move "record restore", "record set", and "record show" commands to
8874 record-full.c.
8875 * Makefile.in (SFILES): Add record-full.c.
8876 (HFILES_NO_SRCDIR): Add record-full.h.
8877 (COMMON_OBS): Add record-full.o.
8878 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8879 * arm-tdep.c: Include record-full.h.
8880 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8881 * i386-tdep.c: Include record-full.h.
8882 * infrun.c: Include record-full.h.
8883 * linux-record.c: Include record-full.h.
8884 * moxie-tdep.c: Include record-full.h.
8885 * record-full.c: Include record-full.h.
8886 Change module comment.
8887 (set_record_full_cmdlist): New.
8888 (show_record_full_cmdlist): New.
8889 (record_full_cmdlist): New.
8890 (record_goto_insn): New declaration.
8891 (record_save): New declaration.
8892 (record_check_insn_num): Change query string.
8893 (record_info): New.
8894 (record_delete): New.
8895 (record_is_replaying): New.
8896 (record_goto_entry): New.
8897 (record_goto_begin): New.
8898 (record_goto_end): New.
8899 (record_goto): New.
8900 (init_record_ops): Update.
8901 (init_record_core_ops): Update.
8902 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8903 (cmd_record_start): New.
8904 (set_record_insn_max_num): Moved from record.c
8905 (set_record_full_command): New.
8906 (show_record_full_command): New.
8907 (_initialize_record_full): New.
8908
b48d48eb
MM
89092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8910
8911 * target.h (add_deprecated_target_alias): New.
8912 * target.c (add_deprecated_target_alias): New.
8913
a950d57c
MM
89142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8915
8916 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8917 and signal.h.
8918 (linux_supports_btrace): Add kernel and
8919 cpuid check.
8920 (kernel_supports_btrace): New function.
8921 (cpu_supports_btrace): New function.
8922 (intel_supports_btrace): New function.
8923
9accd112
MM
89242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8925
8926 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8927 * remote.c: Include btrace.h.
8928 (struct btrace_target_info): New struct.
8929 (remote_supports_btrace): New function.
8930 (send_Qbtrace): New function.
8931 (remote_enable_btrace): New function.
8932 (remote_disable_btrace): New function.
8933 (remote_teardown_btrace): New function.
8934 (remote_read_btrace): New function.
8935 (init_remote_ops): Add btrace ops.
8936 (enum <unnamed>): Add btrace packets.
8937 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8938 (_initialize_remote): Add packet configuration for branch tracing.
8939
c12a2917
MM
89402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8941
8942 * features/btrace.dtd: New file.
8943 * Makefile.in (XMLFILES): Add btrace.dtd.
8944 * btrace.h (parse_xml_btrace): New declaration.
8945 * btrace.c: Include xml-support.h.
8946 (parse_xml_btrace): New function.
8947 (parse_xml_btrace_block): New function.
8948 (block_attributes): New struct.
8949 (btrace_attributes): New struct.
8950 (btrace_children): New struct.
8951 (btrace_elements): New struct.
8952
3e3aea48
MM
89532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8954
8955 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8956 (amd64_linux_enable_btrace): New.
8957 (amd64_linux_disable_btrace): New.
8958 (amd64_linux_teardown_btrace): New.
8959 (_initialize_amd64_linux_nat): Initialize btrace ops.
8960 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8961 (i386_linux_enable_btrace): New.
8962 (i386_linux_disable_btrace): New.
8963 (i386_linux_teardown_btrace): New.
8964 (_initialize_i386_linux_nat): Initialize btrace ops.
8965 * config/i386/linux.mh: Add linux-btrace.o.
8966 * config/i386/linux64.mh: Add linux-btrace.o.
8967
7c97f91e
MM
89682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8969
8970 * common/linux_btrace.h: New file.
8971 * common/linux_btrace.c: New file.
8972 * Makefile.in (SFILES): Add btrace.c.
8973 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8974 (COMMON_OBS): Add btrace.o.
8975 (linux-btrace.o): New rule.
8976
1999790b 89772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8978
8979 * target.h: Include btrace.h.
8980 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8981 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8982 * target.c (target_supports_btrace): New function.
8983 (target_enable_btrace): New function.
8984 (target_disable_btrace): New function.
8985 (target_teardown_btrace): New function.
8986 (target_read_btrace): New function.
8987 * btrace.h: New file.
8988 * btrace.c: New file.
8989 * Makefile.in: Add btrace.c.
8990 * gdbthread.h: Include btrace.h.
8991 (struct thread_info): Add btrace field.
8992 * thread.c: Include btrace.h.
8993 (clear_thread_inferior_resources): Call target_teardown_btrace.
8994 * common/btrace-common.h: New file.
8995
61a31a67
JK
89962013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8999 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9000 kill_status to outer block.
9001
05c56a9d
JK
90022013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9003
9004 Fix entry-values if the callee called a noreturn function.
9005 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9006 get_frame_address_in_block. Add new comment.
9007
9112db09
JK
90082013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9009
9010 Fix entry-values in C++ across CUs.
9011 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9012 lookup_minimal_symbol. Add a comment.
9013 * dwarf2read.c
9014 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9015 DW_AT_linkage_name.
9016
9b67fcec
YQ
90172013-03-08 Yao Qi <yao@codesourcery.com>
9018
9019 * tracepoint.c (_initialize_tracepoint): Indent the code.
9020
6221be90
PA
90212013-03-08 Pedro Alves <palves@redhat.com>
9022
9023 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9024 (parse_find_args, find_command): Change type of pattern buffer
9025 locals to 'gdb_byte *'.
9026
be9a119c 90272013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9028 Hafiz Abid Qadeer <abidh@codesourcery.com>
9029
9030 * NEWS: Mention set and show trace-buffer-size commands.
9031 Mention new packet.
9032 * target.h (struct target_ops): New method
9033 to_set_trace_buffer_size.
9034 (target_set_trace_buffer_size): New macro.
9035 * target.c (update_current_target): Set up new method.
9036 * tracepoint.c (trace_buffer_size): New global.
9037 (start_tracing): Send it to the target.
9038 (set_trace_buffer_size): New function.
9039 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9040 * remote.c (remote_set_trace_buffer_size): New function.
9041 (_initialize_remote): Use it.
9042 (QTBuffer:size) New remote command.
9043 (PACKET_QTBuffer_size): New enum.
9044 (remote_protocol_features): Add an entry for
9045 PACKET_QTBuffer_size.
9046
7da3ab79
TT
90472013-03-08 Tom Tromey <tromey@redhat.com>
9048
9049 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9050 variable.
9051
0c1f71e7
PA
90522013-03-07 Pedro Alves <palves@redhat.com>
9053
9054 * target.c (target_read_stralloc, target_fileio_read_alloc):
9055 *Cast pointer to 'gdb_byte *' in target call.
9056
c8af03a2
PA
90572013-03-07 Pedro Alves <palves@redhat.com>
9058
9059 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9060 call.
9061
529480d0
KS
90622013-03-07 Keith Seitz <keiths@redhat.com>
9063
9064 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9065 (trace_pass_command): Likewise.
9066 * cli/cli-cmds.c: Include cli/cli-utils.h.
9067 (source_command): Use skip-spaces.
9068 (disassemble_command): Likewise.
9069 * findcmd.c: Include cli/cli-utils.h.
9070 (parse_find_args): Use skip_spaces.
9071 * go32-nat.c: Include cli/cli-utils.h.
9072 (go32_sldt): Use skip_spaces.
9073 (go32_sgdt): Likewise.
9074 (go32_sidt): Likewise.
9075 (go32_pde): Likewise.
9076 (go32_pte): Likewise.
9077 (go32_pte_for_address): Likewise.
9078 * infcmd.c: Include cli/cli-utils.h.
9079 (registers_info): Use skip_spaces.
9080 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9081 (linux_info_proc): Likewise.
9082 * linux-thread-db.c: Include cli/cli-utils.h.
9083 (info_auto_load_libthread_db): Use skip_spaces_const.
9084 * m32r-rom.c: Include cli/cli-utils.h.
9085 (m32r_upload_command): Use skip_spaces.
9086 * maint.c: Include cli/cli-utils.h.
9087 (maintenance_translate_address): Use skip_spaces.
9088 * mi/mi-parse.c: Include cli/cli-utils.h.
9089 (mi_parse_argv): Use skip_spaces.
9090 (mi_parse): Likewise.
9091 * minsyms.c: Include cli/cli-utils.h.
9092 (msymbol_hash_iw): Use skip_spaces_const.
9093 * objc-lang.c: Include cli/cli-utils.h.
9094 (parse_selector): Use skip_spaces.
9095 (parse_method): Likewise.
9096 * python/python.c: Include cli/cli-utils.h.
9097 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9098 (python_command)[HAVE_PYTHON]: Likewise.
9099 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9100 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9101 (m32r_load): Use skip_spaces.
9102 * serial.c: Include cli/cli-utils.h.
9103 (serial_open): Use skip_spaces_const.
9104 * stack.c: Include cli/cli-utils.h.
9105 (parse_frame_specification_1): Use skip_spaces_const.
9106 * symfile.c: Include cli/cli-utils.h.
9107 (set_ext_lang_command): Use skip_spaces.
9108 * symtab.c: Include cli/cli-utils.h.
9109 (rbreak_command): Use skip_spaces.
9110 * thread.c (thread_name_command): Use skip_spaces.
9111 * tracepoint.c (validate_actionline): Use skip_spaces.
9112 (encode_actions_1): Likewise.
9113 (trace_find_range_command): Likewise.
9114 (trace_find_outside_command): Likewise.
9115 (trace_dump_actions): Likewise.
9116
ac91cd70
PA
91172013-03-07 Pedro Alves <palves@redhat.com>
9118
9119 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9120 * expprint.c (print_subexp_standard): Likewise.
9121 * utils.c (host_char_to_target): Likewise.
9122 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9123 * varobj.c (value_get_print_value): Change type of local to char*.
9124 Cast it gdb_byte * in call to language printer.
9125
2898e560
PA
91262013-03-07 Pedro Alves <palves@redhat.com>
9127
9128 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9129 gdb_byte *'.
9130 (make_wchar_iterator): Remove cast to char*.
9131 (wchar_iterate): Change type of local.
9132
a09b4448
PA
91332013-03-07 Pedro Alves <palves@redhat.com>
9134
9135 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9136 for 'regcache->register_status'.
9137
20ced3e4
PA
91382013-03-07 Pedro Alves <palves@redhat.com>
9139
c2d6a675 9140 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9141 int.
9142
fe106009
PA
91432013-03-07 Pedro Alves <palves@redhat.com>
9144
9145 * stap-probe.c (handle_stap_probe): Add cast to char*.
9146
8ac2c12b
PA
91472013-03-07 Pedro Alves <palves@redhat.com>
9148
9149 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9150 RECORD_MSGRCV>: Pass a signed variable to
9151 regcache_raw_read_signed, instead of an unsigned one.
9152
99f0a309
PA
91532013-03-07 Pedro Alves <palves@redhat.com>
9154
9155 * remote-notif.c (notif_debug): Change type to int.
9156 * remote-notif.h (notif_debug): Likewise.
9157
964b8317
PA
91582013-03-07 Pedro Alves <palves@redhat.com>
9159
9160 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9161
f0cc8ad4
PA
91622013-03-07 Pedro Alves <palves@redhat.com>
9163
9164 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9165 * remote.h (hex2bin, bin2hex): ... here.
9166 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9167
77dec115
EZ
91682013-03-07 Eli Zaretskii <eliz@gnu.org>
9169
9170 * utils.c (initialize_utils): Improve doc strings of "set/show
9171 width", "set/show height", and "set/show pagination".
9172
741d92cf
KS
91732013-03-06 Keith Seitz <keiths@redhat.com>
9174
9175 * ax-gdb.c (gen_printf): Make FORMAT const.
9176 * ax-gdb.h (gen_printf): Likewise.
9177 * ax-general.c (ax_string): Make STR const.
9178 * ax.h (ax_string): Likewise.
9179
7b6c814e
DE
91802013-03-06 Doug Evans <dje@google.com>
9181
9182 * elfread.c (elf_symfile_read): Move debugging printf to more
9183 logical location.
9184
634334ab
PA
91852013-03-06 Pedro Alves <palves@redhat.com>
9186
9187 * python/py-utils.c (target_string_to_unicode): Delete function.
9188 * python/python-internal.h (target_string_to_unicode): Delete
9189 declaration.
9190
e482a1a7
PM
91912013-03-06 Pierre Muller <muller@sourceware.org>
9192
9193 * linespec.c (get_current_search_block): ARI fix, use (void)
9194 for empty parameter list.
9195
4eeaa230
DE
91962013-03-05 Doug Evans <dje@google.com>
9197
9198 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9199 of old ada_lookup_symbol_list. In !full_search case, don't
9200 search superblocks.
9201 (ada_lookup_symbol_list): Delete arg full_search, all callers
9202 updated. Call ada_lookup_symbol_list_worker.
9203 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9204 * ada-lang.h (ada_lookup_symbol_list): Update.
9205 * language.h (language_defn): Update comment for
9206 la_iterate_over_symbols.
9207 * linespec.c (iterate_over_file_blocks): New function.
9208 (iterate_over_all_matching_symtabs): Call it.
9209 (lookup_prefix_sym): Ditto.
9210 (get_current_search_block): New function.
9211 (get_search_block): Delete.
9212 (find_label_symbols): Call get_current_search_block.
9213 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9214 * symtab.c (iterate_over_symbols): Don't search superblocks.
9215
b69b1fb1
YQ
92162013-03-05 Yao Qi <yao@codesourcery.com>
9217
9218 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9219 parameter VAR's type from "unsigned int" to "int".
9220 * command.h (var_zuinteger_unlimited): Update its comments.
9221 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9222
3c095f49
CV
92232013-03-05 Corinna Vinschen <vinschen@redhat.de>
9224
9225 * NEWS: Mention new target x86_64-*-cygwin*.
9226
b5b0b0af
CV
92272013-03-05 Corinna Vinschen <vinschen@redhat.de>
9228
9229 * configure.host: Add x86_64-*-cygwin* as host.
9230 * configure.tgt: Add x86_64-*-cygwin* as target.
9231 * config/i386/cygwin64.mh: New file.
9232
f6f99966
JK
92332013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9234
9235 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9236
33f448b1
JK
92372013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * linespec.c (struct linespec_canonical_name): New.
9240 (struct linespec_state): Change canonical_names type to it.
9241 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9242 xrealloc element size. Initialize the different CANONICAL fields.
9243 (canonical_to_fullform): New.
9244 (filter_results): Use it. Add variables canonical, fullform and
9245 cleanup.
9246 (struct decode_line_2_item, decode_line_2_compare_items): New.
9247 (decode_line_2): Remove variables iter and item_names, add variables
9248 items and items_count. Modify the code for these new variables.
9249
feb14725
CV
92502013-03-04 Corinna Vinschen <vinschen@redhat.com>
9251
9252 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9253 calling do_cleanup.
9254
e83b17ba
HZ
92552013-03-04 Luis Machado <lgustavo@codesourcery.com>
9256
9257 * tracepoint.c (build_traceframe_info): Add code for byte order.
9258
a2d13a0d
KB
92592013-03-02 Kevin Buettner <kevinb@redhat.com>
9260
8dddcae8
KB
9261 * v850-tdep.c: (v850e2_register_name): Revise system register
9262 names to match current V850E2M architecture specifications.
9263 Update register number enum comments too.
f5aee5ee 9264
d79e58d8
JW
92652013-03-01 Jiong Wang <jiwang@tilera.com>
9266 Pedro Alves <palves@redhat.com>
9267
9268 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9269 to END_ADDR.
9270 (tilegx_skip_prologue): Limit prologue analysis to section end.
9271
c4be5165
JK
92722013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9275 use it.
9276
e362b510
PA
92772013-03-01 Pedro Alves <palves@redhat.com>
9278
9279 Use gdb_byte for bytes from the program being debugged.
9280
9281 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9282 Change type of local 'buf' to gdb_byte.
9283 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9284 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9285 * cris-tdep.c (cris_sigcontext_addr)
9286 (cris_sigtramp_frame_unwind_cache): Likewise.
9287 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9288 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9289 Likewise.
9290 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9291 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9292 (hppa32_hpux_search_dummy_call_sequence)
9293 (hppa_hpux_supply_save_state): Likewise.
9294 * hppa-linux-tdep.c (insns_match_pattern)
9295 (hppa_linux_find_global_pointer): Likewise.
9296 * hppa-tdep.c (hppa_in_function_epilogue_p)
9297 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9298 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9299 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9300 (i386fbsd_collect_uthread): Likewise.
9301 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9302 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9303 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9304 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9305 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9306 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9307 (ia64_libunwind_frame_prev_register)
9308 (ia64_libunwind_sigtramp_frame_this_id)
9309 (ia64_find_global_pointer_from_dynamic_section)
9310 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9311 (ia64_unwind_pc): Likewise.
9312 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9313 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9314 (m68hc11_extract_return_value): Likewise.
9315 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9316 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9317 (mep_get_insn, mep_push_dummy_call): Likewise.
9318 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9319 (mips_linux_in_dynsym_stub): Likewise.
9320 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9321 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9322 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9323 to gdb_byte.
9324 * remote-mips.c (mips_set_register): Likewise.
9325 * remote-sim.c (gdbsim_fetch_register): Likewise.
9326 * score-tdep.c (score7_fetch_inst): Change type of parameter
9327 'memblock' and local 'buf' to gdb_byte.
9328 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9329 Change type of local 'buf' to gdb_byte. Adjust.
9330 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9331 to gdb_byte**.
9332 (score7_analyze_prologue): Change type of 'memblock' and
9333 'memblock_ptr' locals to gdb_byte*.
9334 * sh64-tdep.c (sh64_extract_return_value)
9335 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9336 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9337 * solib-pa64.c (pa64_solib_create_inferior_hook)
9338 (pa64_open_symbol_file_object): Remove local 'buf'.
9339 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9340 (som_open_symbol_file_object): Likewise.
9341 * solib-spu.c (spu_current_sos): Likewise.
9342 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9343 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9344 (spu_store_registers): Likewise.
9345 * target.c (debug_print_register): Likewise.
9346 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9347 * xstormy16-tdep.c (xstormy16_store_return_value)
9348 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9349 (xstormy16_find_jmp_table_entry): Likewise.
9350
75cc61ca 93512013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9352
9353 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9354 (tilegx_gdbarch_init): Install it.
9355
ddb08e9c
TT
93562013-02-28 Tom Tromey <tromey@redhat.com>
9357
9358 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9359 PyLong_Check.
9360
62d7fb51
DE
93612013-02-28 Doug Evans <dje@google.com>
9362
9363 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9364 * python/python.c (gdbpy_find_pc_line): Ditto.
9365
c4a9e8b4
TT
93662013-02-28 Tom Tromey <tromey@redhat.com>
9367
9368 * contrib/excheck.py: New file.
9369 * contrib/exsummary.py: New file.
9370 * contrib/gcc-with-excheck: New file.
9371
7f6a5dde
TT
93722013-02-28 Tom Tromey <tromey@redhat.com>
9373
9374 * python/python.c (gdbpy_print_stack): Call begin_line and
9375 fprintf_filtered inside TRY_CATCH.
9376
9e974e55
TT
93772013-02-28 Tom Tromey <tromey@redhat.com>
9378
9379 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9380 inside TRY_CATCH.
9381
dd5fa3e7
TT
93822013-02-28 Tom Tromey <tromey@redhat.com>
9383
9384 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9385 frame_object_to_frame_info inside TRY_CATCH.
9386
86a3263f
TT
93872013-02-28 Tom Tromey <tromey@redhat.com>
9388
9389 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9390 TRY_CATCH.
9391
81b52a3a
TT
93922013-02-28 Tom Tromey <tromey@redhat.com>
9393
9394 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9395
d50a0ce2
CV
93962013-02-27 Corinna Vinschen <vinschen@redhat.com>
9397
9398 * windows-nat.c: Throughout, fix format strings and casts of
9399 printf-like functions to avoid type related warnings on all
9400 platforms.
9401 (handle_output_debug_string): Fetch context information address
9402 from debug string using string_to_core_addr.
9403
e1f58301
JW
94042013-02-27 Jiong Wang <jiwang@tilera.com>
9405
9406 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9407 * regformats/reg-tilegx32.dat: New.
9408
4fcd89fc
JW
94092013-02-27 Jiong Wang <jiwang@tilera.com>
9410
9411 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9412
748d24e6
JW
94132013-02-27 Jiong Wang <jiwang@tilera.com>
9414
9415 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9416
6c8e944d
YQ
94172013-02-27 Yao Qi <yao@codesourcery.com>
9418 Pedro Alves <palves@redhat.com>
9419
9420 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9421 pc/tp/range/outside, look for the next trace frame instead of
9422 always starting from frame 0.
6c8e944d 9423
acd7db30
AG
94242013-02-26 Anthony Green <green@moxielogic.com>
9425
9426 * configure.tgt: Add support for moxie-*-rtems* target.
9427
025e6dce
PA
94282013-02-25 Pedro Alves <palves@redhat.com>
9429
9430 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9431 warning text.
9432
ca9c94ef
MR
94332013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9434
9435 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9436 if $fp is used as the virtual frame pointer.
9437
24c274a1
AM
94382013-02-23 Alan Modra <amodra@gmail.com>
9439
9440 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9441 symbol size.
9442 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9443 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9444 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9445 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9446
bfada189
JK
94472013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9448
9449 Code cleanup.
9450 * elfread.c (build_id_bfd_get): Make the return type const.
9451 (build_id_verify): Make the check parameter const.
9452 (build_id_to_debug_filename): Make the build_id parameter and variable
9453 data const.
9454 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9455
c0355132
AM
94562013-02-21 Alan Modra <amodra@gmail.com>
9457
9458 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9459
9f44fbc0
SCR
94602013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9461
9462 Add a new method 'disassemble' to gdb.Architecture class.
9463 * python/py-arch.c (archpy_disassmble): Implementation of the
9464 new method gdb.Architecture.disassemble.
9465 (arch_object_methods): Add entry for the new method.
9466
b74ea3eb
JW
94672013-02-20 Jiong Wang <jiwang@tilera.com>
9468
9469 * MAINTAINERS (Write After Approval): Add myself to the list.
9470
61a672f1
PA
94712013-02-19 Pedro Alves <palves@redhat.com>
9472
9473 Garbage collect 'struct monitor_ops'::load_routine.
9474
9475 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9476 * monitor.c (monitor_load): No longer call
9477 current_monitor->load_routine.
9478 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9479 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9480 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9481
40e397df
PA
94822013-02-19 Pedro Alves <palves@redhat.com>
9483
9484 PR gdb/15161
9485
9486 Harmonize with generic_load.
9487
9488 * monitor.c: Include "readline/readline.h".
9489 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9490 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9491 long/strtol for the 'load_offset' local. Error out if no argument
9492 is given or if too many arguments are given. Tilde expand the
9493 passed in file name.
9494
f698ca8e
KT
94952013-02-19 Kai Tietz <ktietz@redhat.com>
9496
9497 PR gdb/15161
9498 * symfile.c (load_section_data): Change type of load_offset
9499 to CORE_ADDR.
9500 (generic_load): User strtoulst instead of strtoul for conversion
9501 of load_offset.
9502
3361b059
WL
95032013-02-19 Jiong Wang <jiwang@tilera.com>
9504
9505 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9506 for return address, "lr" register, saved on stack.
9507 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9508 after we invoke tilegx_analyze_prologue.
9509
3e9d5130
WL
95102013-02-19 Jiong Wang <jiwang@tilera.com>
9511
bb1bcd86
WL
9512 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9513
3361b059 95142013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9515
b74ea3eb 9516 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9517
4aaf2503
WL
95182013-02-19 Jiong Wang <jiwang@tilera.com>
9519
b74ea3eb 9520 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9521 (tilegx_write_pc): New function.
9522 (tilegx_cannot_reference_register): Return zero if REGNO
9523 is TILEGX_FAULTNUM_REGNUM.
9524 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9525 (tilegx_register_name): Add handling of "faultnum" register.
9526 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9527 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9528 handling of TILEGX_FAULTNUM_REGNUM.
9529 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9530
bc23a956
WL
95312013-02-19 Jiong Wang <jiwang@tilera.com>
9532
9533 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9534 should be aligned to 64bit.
bc23a956 9535
42f45f1a
KT
95362013-02-19 Kai Tietz <ktietz@redhat.com>
9537
9538 * windows-nat.c (windows_xfer_memory): Fix debug-output
9539 for LLP64.
9540
6ce4c112
LL
95412013-02-19 Lei Liu <lei.liu2@windriver.com>
9542
9543 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9544 Don't check DSP register number if HAVE_DSP is not set.
9545
30e8ee25
AM
95462013-02-19 Alan Modra <amodra@gmail.com>
9547
9548 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9549 throughout file instead.
9550 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9551 Don't xmalloc return value.
9552 (build_id_verify): Similarly. Don't xfree.
9553 (build_id_to_debug_filename): Update.
9554 (find_separate_debug_file_by_buildid): Update, don't xfree.
9555
4c9ad8c2
TT
95562013-02-18 Tom Tromey <tromey@redhat.com>
9557
9558 PR gdb/15102:
9559 * dwarf2read.c (read_subrange_type): Use result of
9560 'check_typedef'.
9561
983dc440
YQ
95622013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9563
9564 * frame.c: Remove one extra white space after #include
9565 directive.
9566
7fb2b84a
JK
95672013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9568
9569 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9570
edceb2a9
JK
95712013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9572
9573 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9574 and dir commands into an if block.
9575
e81b7af8
TT
95762013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9577
9578 * python/py-breakpoint (struct pybp_code): Use int instead of
9579 enum type_code.
9580
f5911ea1
HAQ
95812013-02-15 Pedro Alves <pedro@codesourcery.com>
9582 Hafiz Abid Qadeer <abidh@codesourcery.com>
9583
9584 * NEWS: Mention new field "trace-file".
9585 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9586 (tfile_open): Record the trace file's filename in the trace
9587 status.
9588 (tfile_files_info): Mention the name of the trace file.
9589 Check the "filename" field explicitely.
9590 (trace_status_command): Explicitely check "filename" field.
9591 (trace_find_command): Ditto.
9592 (trace_find_pc_command): Ditto.
9593 (trace_find_tracepoint_command): Ditto.
9594 (trace_find_line_command): Ditto.
9595 (trace_find_range_command): Ditto.
9596 (trace_find_outside_command): Ditto.
9597 * tracepoint.h (struct trace_status) <from_file>: Rename it
9598 to "filename" and make it hold the trace file's filename
9599 instead of a boolean.
9600 * remote.c (remote_get_trace_status): Initialize "filename"
9601 field with NULL instead of 0.
9602
796cb314
YQ
96032013-02-15 Yao Qi <yao@codesourcery.com>
9604
9605 * remote.c: Fix a typo.
9606
42e79b1d
PM
96072013-02-14 Pierre Muller <muller@sourceware.org>
9608
9609 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9610
baea0dae
PA
96112013-02-14 Pedro Alves <palves@redhat.com>
9612
9613 * utils.c (savestring): Don't #undef it. Move function to
9614 common/common-utils.c.
9615 * common/common-utils.c: Include gdb_string.h.
9616 (savestring): Move here from utils.c.
9617 * common/common-utils.h (savestring): Declare.
9618
57c3b6ed
PA
96192013-02-14 Pedro Alves <palves@redhat.com>
9620
9621 * utils.c (savestring): Rename parameter 'size' to 'len'.
9622
d6c44983
YZ
96232013-02-14 Pedro Alves <palves@redhat.com>
9624 Yufeng Zhang <yufeng.zhang@arm.com>
9625
9626 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9627 (aarch64_inferior_data, struct aarch64_inferior_data):
9628 Delete.
9629 (struct aarch64_process_info): New.
9630 (aarch64_process_list): New global.
9631 (aarch64_find_process_pid, aarch64_add_process)
9632 (aarch64_process_info_get): New functions.
9633 (aarch64_inferior_data_get): Delete.
9634 (aarch64_process_info_get): New function.
9635 (aarch64_forget_process): New function.
9636 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9637 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9638 aarch64_get_debug_reg_state.
9639 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9640 instead of linux_nat_iterate_watchpoint_lwps.
9641 (aarch64_linux_new_fork): New function.
9642 (aarch64_linux_child_post_startup_inferior): Use
9643 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9644 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9645 (aarch64_linux_remove_hw_breakpoint)
9646 (aarch64_handle_aligned_watchpoint)
9647 (aarch64_handle_unaligned_watchpoint)
9648 (aarch64_linux_insert_watchpoint)
9649 (aarch64_linux_remove_watchpoint)
9650 (aarch64_linux_stopped_data_address): Adjust to pass the current
9651 process id to aarch64_debug_reg_state.
9652 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9653 linux_nat_new_fork hook, and aarch64_forget_process as
9654 linux_nat_forget_process hook; remove the call to
9655 register_inferior_data_with_cleanup.
9656
4819b3f8
PA
96572013-02-14 Pedro Alves <palves@redhat.com>
9658
9659 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9660 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9661 lval_memory.
9662
1773c82c
HAQ
96632013-02-14 Pedro Alves <pedro@codesourcery.com>
9664 Hafiz Abid Qadeer <abidh@codesourcery.com>
9665
9666 * tracepoint.h (validate_trace_state_variable_name): Declare.
9667 * tracepoint.c (validate_trace_state_variable_name): New.
9668 (trace_variable_command): Parse the trace state variable's name
9669 without using parse_expression. Do several validations.
9670 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9671 trace state variable's name with parse_expression. Validate it.
9672
53778a97
YQ
96732013-02-14 Yao Qi <yao@codesourcery.com>
9674
9675 * infcmd.c (breakpoint_proceeded): Remove it.
9676
7b3ae3a6
YQ
96772013-02-14 Yao Qi <yao@codesourcery.com>
9678
9679 * tracepoint.c (end_actions_pseudocommand): Make it static.
9680 (while_stepping_pseudocommand): Likewise.
9681 * tracepoint.h (end_actions_pseudocommand): Remove the
9682 declaration.
9683 (while_stepping_pseudocommand): Likewise.
9684
64580925
YQ
96852013-02-14 Yao Qi <yao@codesourcery.com>
9686
9687 * cli/cli-decode.c (help_cmd): Remove the declaration of
9688 "cmdlist".
9689 (help_all): Likewise.
9690
26cb8b7c
PA
96912013-02-13 Pedro Alves <palves@redhat.com>
9692
9693 * amd64-linux-nat.c (update_debug_registers_callback):
9694 Update comment.
9695 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9696 iterate_over_lwps.
9697 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9698 i386_debug_reg_state.
9699 (amd64_linux_new_fork): New function.
9700 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9701 linux_nat_new_fork hook, and i386_forget_process as
9702 linux_nat_forget_process hook.
9703 * i386-linux-nat.c (update_debug_registers_callback):
9704 Update comment.
a8256ea1 9705 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9706 iterate_over_lwps.
9707 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9708 i386_debug_reg_state.
9709 (i386_linux_new_fork): New function.
9710 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9711 linux_nat_new_fork hook, and i386_forget_process as
9712 linux_nat_forget_process hook.
9713 * i386-nat.c (i386_init_dregs): Delete.
9714 (i386_inferior_data, struct i386_inferior_data):
9715 Delete.
9716 (struct i386_process_info): New.
9717 (i386_process_list): New global.
9718 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9719 New functions.
9720 (i386_inferior_data_get): Delete.
9721 (i386_process_info_get): New function.
9722 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9723 (i386_forget_process): New function.
9724 (i386_cleanup_dregs): Rewrite.
9725 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9726 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9727 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9728 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9729 to i386_debug_reg_state.
9730 (i386_use_watchpoints): Don't register inferior data.
9731 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9732 adjust comment.
9733 (i386_forget_process): Declare.
9734 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9735 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9736 New static globals.
9737 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9738 (add_initial_lwp): New, factored out from ...
9739 (add_lwp): ... this. Don't check the number of lwps before
9740 calling linux_nat_new_thread.
9741 (linux_nat_iterate_watchpoint_lwps): Delete.
9742 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9743 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9744 forks and vforks.
9745 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9746 initial lwp.
9747 (linux_nat_kill, linux_nat_mourn_inferior): Call
9748 linux_nat_forget_process.
9749 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9750 (linux_nat_forget_process): New functions.
9751 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9752 type.
9753 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9754 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9755 types.
9756 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9757 (linux_nat_forget_process): New declarations.
9758
9759 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9760 (amd64fbsd_mourn_inferior): New function.
9761 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9762 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9763
5befea72
MS
97642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9765
55015247
YQ
9766 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9767 Adding _().
5befea72 9768
1d3ffd6b
MS
97692013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9770
9771 * aarch64-linux-nat.c (debug_reg_change_callback)
9772 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9773 %s and phex().
9774
6eb04473
MS
97752013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9776
9777 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9778 with LONGEST.
9779
a016fc87
HAQ
97802013-02-13 Pedro Alves <palves@redhat.com>
9781 Hafiz Abid Qadeer <abidh@codesourcery.com>
9782
9783 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9784
e234dfaf
TT
97852013-02-12 Tom Tromey <tromey@redhat.com>
9786
9787 PR symtab/11464:
9788 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9789 NAME return.
9790 (classify_inner_name): Remove 'first_name' argument, add
9791 'context'. Remove unused variable.
9792 (yylex): Explicitly maintain the context type. Exit loop earlier
9793 if NAME result is seen.
9794
0b1afbb3
PA
97952013-02-12 Pedro Alves <palves@redhat.com>
9796
9797 * amd64-darwin-tdep.c: Add (C) after Copyright.
9798 * cli/cli-cmds.h: Ditto.
9799 * cli/cli-decode.c: Ditto.
9800 * cli/cli-decode.h: Ditto.
9801 * cli/cli-dump.c: Ditto.
9802 * cli/cli-dump.h: Ditto.
9803 * cli/cli-interp.c: Ditto.
9804 * cli/cli-logging.c: Ditto.
9805 * cli/cli-script.c: Ditto.
9806 * cli/cli-script.h: Ditto.
9807 * cli/cli-setshow.c: Ditto.
9808 * cli/cli-setshow.h: Ditto.
9809 * cli/cli-utils.c: Ditto.
9810 * cli/cli-utils.h: Ditto.
9811 * config/alpha/nm-osf3.h: Ditto.
9812 * config/djgpp/djconfig.sh: Ditto.
9813 * config/i386/nm-fbsd.h: Ditto.
9814 * config/i386/nm-i386gnu.h: Ditto.
9815 * config/nm-linux.h: Ditto.
9816 * config/nm-nto.h: Ditto.
9817 * config/rs6000/nm-rs6000.h: Ditto.
9818 * config/sparc/nm-sol2.h: Ditto.
9819 * darwin-nat-info.c: Ditto.
9820 * dfp.c: Ditto.
9821 * dfp.h: Ditto.
9822 * gdb-demangle.h: Ditto.
9823 * i386-darwin-nat.c: Ditto.
9824 * i386-darwin-tdep.c: Ditto.
9825 * linux-fork.h: Ditto.
9826 * m32c-tdep.c: Ditto.
9827 * microblaze-linux-tdep.c: Ditto.
9828 * microblaze-rom.c: Ditto.
9829 * microblaze-tdep.c: Ditto.
9830 * microblaze-tdep.h: Ditto.
9831 * mips-linux-tdep.h: Ditto.
9832 * ppc-ravenscar-thread.c: Ditto.
9833 * ppc-ravenscar-thread.h: Ditto.
9834 * prologue-value.c: Ditto.
9835 * prologue-value.h: Ditto.
9836 * ravenscar-thread.c: Ditto.
9837 * ravenscar-thread.h: Ditto.
9838 * sparc-ravenscar-thread.c: Ditto.
9839 * sparc-ravenscar-thread.h: Ditto.
9840 * tilegx-linux-tdep.c: Ditto.
9841 * unwind_stop_reasons.def: Ditto.
9842 * windows-nat.h: Ditto.
9843 * xtensa-linux-tdep.c: Ditto.
9844 * xtensa-xtregs.c: Ditto.
9845 * regformats/regdat.sh: Ditto.
9846 * regformats/regdef.h: Ditto.
9847
6c01dd94
PA
98482013-02-12 Pedro Alves <palves@redhat.com>
9849
9850 * break-catch-sig.c: Update copyright years.
9851
b65a2bd9
SCR
98522013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9853
9854 Add support for a destructor for ui_out data and use it to
9855 provide a ui_out destructor.
9856 * ui-out.h: Declare the new ui_out destructor.
9857 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9858 * ui-out.c (default_data_destroy): Add a default data destructor
9859 which does nothing.
9860 (default_ui_out_impl): Set the new data_destroy field to
9861 default_data_destroy
9862 (uo_data_destroy): Local function which invokes the data
9863 destructor if present.
9864 (clear_table): Local function which clears the table data of a
9865 ui_out object.
9866 (ui_out_destroy): Public function which frees a ui_out object.
9867 (ui_out_table_end): Use the new clear_table function.
9868 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9869 NULL.
9870 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9871 to NULL.
9872
c2792f5a
DE
98732013-02-11 Doug Evans <dje@google.com>
9874
9875 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9876 (printf_decfloat): New function. Broken out from ui_printf.
9877 Remove unnecessary code to shift the entire format string down.
9878 (printf_pointer): New function.
9879 (ui_printf): Code to print C strings, wide C strings, decfloats,
9880 and pointers moved to separate functions.
9881
d9e98382
SDJ
98822013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9883
9884 * valops.c (value_assign): Handling bitfield offset in
9885 `lval_internalvar_component' case.
9886
4ff3ce77
DE
98872013-02-08 Doug Evans <dje@google.com>
9888
9889 * common/format.c (parse_format_string): Fix whitespace.
9890
901900c4
MGD
98912013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9892
9893 * stack.c (return_command): Work around uninitialized variable
9894 warning.
9895
b5dbc8d4
YZ
98962013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9897
9898 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9899 number of the registers from 36 to 34.
9900
51d66578
MS
99012013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9902
9903 * NEWS: Mention new AArch64 native and target support.
9904
176b1c95
MS
99052013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9906
9907 * MAINTAINERS (Write After Approval): Add myself.
9908
9d19df75
MS
99092013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9910 Marcus Shawcroft <marcus.shawcroft@arm.com>
9911 Nigel Stephens <nigel.stephens@arm.com>
9912 Yufeng Zhang <yufeng.zhang@arm.com>
9913
9914 * aarch64-linux-nat.c: New file.
9915 * config/aarch64/linux.mh: New file.
9916 * configure.host: Add AArch64.
9917 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9918
7e1e0340
DE
99192013-02-07 Doug Evans <dje@google.com>
9920
9921 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9922 disassemble command.
9923
45e25a36
MS
99242013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9925
9926 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9927 set_gdbarch_fetch_tls_load_module_address.
9928
bbfdfe1c
DM
99292013-02-06 David S. Miller <davem@davemloft.net>
9930
9931 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9932 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9933 * value.c (struct_return_convention): New function.
9934 (using_struct_return): Implement in terms of struct_return_convention.
9935 * value.h (struct_return_convention): Declare.
9936 * stack.c (return_command): Allow successful overriding of the return
9937 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9938
bc9abe4a
TT
99392013-02-06 Tom Tromey <tromey@redhat.com>
9940
9941 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9942 outside of TRY_CATCH.
9943
134a2066
YQ
99442013-02-06 Yao Qi <yao@codesourcery.com>
9945
9946 * mi/mi-interp.c: Include "tracepoint.h".
9947 (mi_tsv_modified): Declare.
9948 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9949 (mi_interpreter_init): Call observer_attach_tsv_modified.
9950 (mi_tsv_modified): New.
9951 (mi_tsv_created, mi_tsv_deleted): Update.
9952 * tracepoint.c (trace_variable_command): Call
9953 observer_notify_tsv_modified if the initial value of tsv is
9954 changed.
9955 (delete_trace_state_variable): Call
9956 observer_notify_tsv_deleted earlier.
9957 (trace_variable_command): Caller update.
9958 (create_tsv_from_upload): Likewise.
9959 * observer.sh: Declare "struct trace_state_variable".
9960
9961 * NEWS: Mention the new MI notification "=tsv-modified".
9962
59be2b6a
DE
99632013-02-05 Doug Evans <dje@google.com>
9964
9965 * completer.c (location_completer): Fix typo in comment.
9966
d30113d4
JK
99672013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9968
9969 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9970 ADDRESS sorted.
9971
14ac654f
MS
99722013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9973
9974 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9975 Refactor if statement to avoid trailing || operator.
9976
543bf33d
AT
99772013-02-05 Andreas Tobler <andreast@fgznet.ch>
9978
9979 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9980
dc18f110
AT
99812013-02-04 Andreas Tobler <andreast@fgznet.ch>
9982
9983 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9984 * configure.host: Add powerpc*-*-freebsd* target.
9985 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9986 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9987 * config/powerpc/fbsd.mh: New file.
9988
b3ac9c77
SDJ
99892013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9990 Denys Vlasenko <dvlasenk@redhat.com>
9991 Pedro Alves <palves@redhat.com>
9992
9993 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9994 (struct elf_internal_linux_prpsinfo): Forward declare.
9995 * gdbarch.h, gdbarch.c: Regenerate.
9996 * linux-tdep.c: Include `cli/cli-utils.h'.
9997 (linux_fill_prpsinfo): New function.
9998 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9999 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10000 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10001 depending on gdbarch pointer bitness.
10002 * ppc-linux-tdep.c: Include elf-bfd.h.
10003 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10004 on 32-bit.
10005
176eb98c
MS
100062013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10007 Marcus Shawcroft <marcus.shawcroft@arm.com>
10008 Nigel Stephens <nigel.stephens@arm.com>
10009 Yufeng Zhang <yufeng.zhang@arm.com>
10010
10011 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10012
cf0dbd6f
MS
100132013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10014 Marcus Shawcroft <marcus.shawcroft@arm.com>
10015 Nigel Stephens <nigel.stephens@arm.com>
10016 Yufeng Zhang <yufeng.zhang@arm.com>
10017
10018 * aarch64-newlib-tdep.c: New file.
10019 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10020 aarch64*-*-elf.
10021 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10022 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10023 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10024 * osabi.c (gdb_osabi_names): Add "Newlib".
10025
1ae3db19
MS
100262013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10027 Marcus Shawcroft <marcus.shawcroft@arm.com>
10028 Nigel Stephens <nigel.stephens@arm.com>
10029 Yufeng Zhang <yufeng.zhang@arm.com>
10030
10031 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10032 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10033 * aarch64-linux-tdep.c: New file.
10034 * aarch64-linux-tdep.h: New file.
10035 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10036 * configure.tgt: Add aarch64-none-linux-gnu.
10037
07b287a0
MS
100382013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10039 Marcus Shawcroft <marcus.shawcroft@arm.com>
10040 Nigel Stephens <nigel.stephens@arm.com>
10041 Yufeng Zhang <yufeng.zhang@arm.com>
10042
10043 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10044 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10045 (ALLDEPFILES): Add aarch64-tdep.c.
10046 * aarch64-tdep.c: New file.
10047 * aarch64-tdep.h: New file.
10048 * configure.tgt: Add AArch64.
10049 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10050 (aarch64-expedite): New definition.
10051 * features/aarch64-core.xml: New file.
10052 * features/aarch64-fpu.xml: New file.
10053 * features/aarch64-without-fpu.c: New file (generated).
10054 * features/aarch64-without-fpu.xml: New file.
10055 * features/aarch64.c: New file (generated).
10056 * features/aarch64.xml: New file.
10057 * regformats/aarch64-without-fpu.dat: New file (generated).
10058 * regformats/aarch64.dat: New file (generated).
10059
0f1b18ab
JK
100602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * contrib/expect-read1.c: New file.
10063 * contrib/expect-read1.sh: New file.
10064
233d95b5
JK
100652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 * dwarf2read.c (file_file_name): New function with code from
10068 file_full_name.
10069 (file_full_name): Move most of the code to file_file_name.
10070 (macro_start_file): Rename variable full_name to file_name and use
10071 file_file_name for it. Add comp_dir parameter to new_macro_table.
10072 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10073 macro_source_file->filename access by macro_source_fullname call.
10074 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10075 caller.
10076 * macrotab.c (struct macro_table): New field comp_dir.
10077 (macro_include): New variables link_fullname and source_fullname.
10078 Replace any macro_source_file->filename access by macro_source_fullname
10079 call.
10080 (macro_lookup_inclusion): Remove the partial filenames checking code.
10081 (check_for_redefinition): New variables source_fullname and
10082 found_key_fullname. Replace any macro_source_file->filename access by
10083 macro_source_fullname call.
10084 (macro_undef): New variables source_fullname and key_fullname. Replace
10085 any macro_source_file->filename access by macro_source_fullname call.
10086 (macro_lookup_definition): New variables retval and source_fullname.
10087 Replace any macro_source_file->filename access by macro_source_fullname
10088 call.
10089 (foreach_macro): New variable key_fullname. Replace any
10090 macro_source_file->filename access by macro_source_fullname call.
10091 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10092 macro_source_file->filename access by macro_source_fullname call.
10093 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10094 (macro_source_fullname): New function.
10095 * macrotab.h (struct macro_source_file): Extent the filename field
10096 comment.
10097 (new_macro_table): New parameter comp_dir, add a comment for it.
10098 (macro_source_fullname): new declaration.
10099
da235a7c
JK
101002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10101
10102 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10103 this_real_name to outer block. Use it also for
10104 compare_filenames_for_search.
10105 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10106 with dw2_get_real_path for file_matcher, considering also
10107 BASENAMES_MAY_DIFFER.
10108 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10109
fbd9ab74
JK
101102013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10113 to the file_matcher parameter. Pass 0 to it.
10114 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10115 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10116 NULL psymtab_to_fullname result.
10117 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10118 an expected filename instead.
10119 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10120 file_matcher parameter. Call also psymtab_to_fullname, after newly
10121 considering BASENAMES_MAY_DIFFER.
10122 * source.c (rewrite_source_path): Remove static.
10123 * source.h (rewrite_source_path): New declaration.
10124 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10125 the expand_symtabs_matching field. Comment it.
10126 * symtab.c (file_matches): New function comment. Add parameter
10127 basenames, implement it.
10128 (search_symbols_file_matches): Add basenames parameter. Update the
10129 file_matches caller.
10130 (search_symbols): Match FILES also against symtab_to_fullname.
10131 Optimize it for BASENAMES_MAY_DIFFER.
10132
56d397a3
JK
101332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 * source.c (print_source_lines_base): Print for TUI also "fullname".
10136 * tui/tui-data.c (init_content_element): Change tui_locator_element
10137 field to full_name.
10138 * tui/tui-data.h (struct tui_locator_element): Likewise.
10139 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10140 tui_update_locator_filename calls to tui_update_locator_fullname.
10141 Replace symtab->filename refererence by symtab_to_fullname call.
10142 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10143 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10144 field to full_name. Replace symtab->filename refererence by
10145 symtab_to_fullname call.
10146 (tui_show_symtab_source): Rename parameter to fullname. Change
10147 tui_locator_element field to full_name.
10148 * tui/tui-stack.c: Include source.h.
10149 (tui_set_locator_filename): Rename the declaration to ...
10150 (tui_set_locator_fullname): ... here. Rename its parameter to
10151 fullname, updates its comment.
10152 (tui_set_locator_info): Rename its parameter to fullname.
10153 (tui_set_locator_filename): Rename the definition to ...
10154 (tui_set_locator_fullname): ... here. Rename its parameter to
10155 fullname, updates its comment. Change tui_locator_element field to
10156 full_name.
10157 (tui_set_locator_info): Rename its parameter to fullname.
10158 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10159 (tui_update_locator_filename): Rename to ...
10160 (tui_update_locator_fullname): ... here. Rename callee to
10161 tui_set_locator_fullname.
10162 (tui_show_frame_info): Replace symtab->filename refererence by
10163 symtab_to_fullname call.
10164 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10165 (tui_update_locator_fullname): ... here.
10166 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10167 tui_update_locator_fullname. Replace symtab->filename refererence by
10168 symtab_to_fullname call.
10169 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10170 Rename the callee to tui_update_locator_fullname.
10171 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10172
05cba821
JK
101732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10174
10175 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10176 by symtab_to_filename_for_display calls.
10177 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10178 (clear_command): New variable sal_fullname, initialize it. Replace
10179 compare_filenames_for_search by filename_cmp with sal_fullname.
10180 (say_where, update_static_tracepoint): Replace symtab->filename
10181 refererences by symtab_to_filename_for_display calls.
10182 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10183 Likewise.
10184 * dwarf2read.c: Include source.h.
10185 (fixup_go_packaging): Replace symtab->filename refererences by
10186 symtab_to_filename_for_display calls.
10187 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10188 Replace symtab->filename refererences by symtab_to_filename_for_display
10189 calls.
10190 (create_sals_line_offset, convert_linespec_to_sals): New variable
10191 fullname, initialize it, replace symtab->filename reference by the
10192 variable.
10193 * linux-fork.c: Include source.h.
10194 (info_checkpoints_command): Replace symtab->filename refererences by
10195 symtab_to_filename_for_display calls.
10196 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10197 by symtab_to_filename_for_display calls.
10198 * mdebugread.c: Include source.h.
10199 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10200 symtab_to_filename_for_display calls.
10201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10202 (mi_cmd_file_list_exec_source_files): Likewise.
10203 * printcmd.c: Include source.h.
10204 (build_address_symbolic): Replace symtab->filename refererences by
10205 symtab_to_filename_for_display calls.
10206 * psymtab.c (partial_map_symtabs_matching_filename)
10207 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10208 with psymtab_to_fullname.
10209 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10210 by symtab_to_filename_for_display calls.
10211 (stpy_get_filename): New variable filename, initialize it, use instead
10212 of symtab->filename refererences.
10213 (salpy_str): Make variable filename const char *. Replace
10214 symtab->filename refererences by symtab_to_filename_for_display calls.
10215 * skip.c: Include source.h and filenames.h.
10216 (skip_file_command): Remove const from the symtab variable. Replace
10217 symtab->filename refererences by symtab_to_fullname call.
10218 (function_name_is_marked_for_skip): New variables searched_for_fullname
10219 and fullname. Use them to search also with symtab's fullname.
10220 * source.c (find_source_lines): Replace symtab->filename refererences
10221 by symtab_to_filename_for_display calls.
10222 (print_source_lines_base): New variable filename, use it instead of
10223 symtab->filename. Replace symtab->filename refererences by
10224 symtab_to_filename_for_display calls.
10225 (line_info, forward_search_command): Replace symtab->filename
10226 refererences by symtab_to_filename_for_display calls.
10227 (reverse_search_command): Replace symtab->filename refererences by
10228 symtab_to_filename_for_display calls. New variable filename for it.
10229 * stack.c (frame_info): Likewise.
10230 * symmisc.c: Include source.h.
10231 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10232 (maintenance_info_symtabs): Replace symtab->filename refererences by
10233 symtab_to_filename_for_display calls.
10234 * symtab.c (iterate_over_some_symtabs): Call
10235 compare_filenames_for_search also with symtab_to_fullname.
10236 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10237 symtab->filename refererences by symtab_to_filename_for_display calls.
10238 (find_line_symtab): Replace symtab->filename refererences by
10239 symtab_to_filename_for_display calls.
10240 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10241 (print_symbol_info): Make the last parameter const char *. New
10242 variable s_filename. Use it in the function.
10243 (symtab_symbol_info): Make the last_filename variable const char *.
10244 Replace symtab->filename refererences by symtab_to_filename_for_display
10245 calls.
10246 (rbreak_command): New variable fullname. Use it. Replace
10247 symtab->filename refererence by symtab_to_filename_for_display call.
10248 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10249 (print_one_static_tracepoint_marker): Replace symtab->filename
10250 refererences by symtab_to_filename_for_display calls.
10251 * tui/tui-source.c (tui_set_source_content): New variables filename and
10252 s_filename. Replace symtab->filename refererences by this variable.
10253 Replace other symtab->filename refererences by
10254 symtab_to_filename_for_display calls.
10255
1b56eb55
JK
102562013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10257 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 Add a new variable that controls a way in which filenames are
10260 displayed.
10261 * NEWS (set filename-display): New entry.
10262 * source.c (filename_display_basename, filename_display_relative)
10263 (filename_display_absolute, filename_display_kind_names)
10264 (filename_display_string, show_filename_display_string)
10265 (symtab_to_filename_for_display): New.
10266 (_initialize_source): Added initialization of 'filename-display'
10267 variable.
10268 * source.h (symtab_to_filename_for_display): Added declaration.
10269 * stack.c (print_frame): Added new variable and calling of a new
10270 function and condition with this variable. Changed third argument of
10271 calling of a function.
10272
aa079c93
JK
102732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10274
10275 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10276 Rename field reference filename to fullname.
10277 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10278 fullname. New comment for it.
10279 * tui/tui-source.c (tui_set_source_content): Rename field reference
10280 filename to fullname. Initialize field by symtab_to_fullname now.
10281 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10282 reference filename to fullname. Use symtab_to_fullname during
10283 comparison.
10284
652a8996
JK
102852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10286
10287 Code cleanup.
10288 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10289 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10290 filename to fullname. Rename variable this_name to this_fullname.
10291 Lowercase FILENAME_CMP call.
10292 (dw2_find_symbol_file): New comment for the returned string.
10293 (dwarf2_gdb_index_functions): Rename the function to
10294 dw2_expand_symtabs_with_fullname.
10295 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10296 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10297 fullname.
10298 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10299 * symfile.h (struct quick_symbol_functions): Rename field
10300 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10301 parameter filename to fullname. Document returned string meaning for
10302 find_symbol_file.
10303 * symtab.c (find_line_symtab): Rename the called function to
10304 expand_symtabs_with_fullname.
10305
af529f8f
JK
103062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10307
10308 Code cleanup.
10309 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10310 call of filename_cmp with compare_filenames_for_search.
10311 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10312 is_abs, unify the call of FILENAME_CMP with
10313 compare_filenames_for_search. New gdb_asserts for real_path and name.
10314 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10315 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10316 * symfile.h (struct quick_symbol_functions): Extend the comment for
10317 map_symtabs_matching_filename.
10318 * symtab.c (compare_filenames_for_search): Remove the function comment
10319 relative path requirement. Handle absolute filenames, with a comment.
10320 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10321 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10322 real_path and name. Unify the call of compare_filenames_for_search
10323 with FILENAME_CMP.
10324 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10325
2f202fde
JK
103262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10327
10328 Code cleanup.
10329 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10330 source_file references by symtab field references. Remove variables
10331 sal and fullname.
10332 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10333 (clear_command, say_where): Replace bp_location field source_file
10334 references by symtab field references.
10335 (bp_location_dtor): Remove the source_file reference.
10336 (update_static_tracepoint): Replace bp_location field source_file
10337 references by symtab field references.
10338 (breakpoint_free_objfile): New function.
10339 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10340 Replace the field source_file by field symtab, extend its comment.
10341 (breakpoint_free_objfile): New declaration.
10342 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10343 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10344 field source_file references by symtab field references.
10345
f5b95b50
JK
103462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10347
10348 Replace xfullpath calls by gdb_realpath calls.
10349 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10350 function comment.
10351 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10352 Remove it from the iterate_over_some_symtabs call.
10353 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10354 Remove it from the dw2_map_expand_apply calls, remove a block handling
10355 it.
10356 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10357 Remove it from the iterate_over_some_symtabs call.
10358 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10359 Remove it from the partial_map_expand_apply calls, remove a block
10360 handling it. Drop gdb_realpath call and cleanups from the real_path
10361 handling.
10362 * source.c (openp): Drop the comment part about xfullpath. Replace
10363 xfullpath calls by gdb_realpath calls.
10364 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10365 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10366 from method map_symtabs_matching_filename and its comment.
10367 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10368 gdb_realpath call.
10369 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10370 remove it also from the function comment, remove a block handling it.
10371 Drop gdb_realpath call and cleanups from the real_path handling.
10372 (iterate_over_symtabs): Drop variable full_path and its use.
10373 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10374 * utils.c (xfullpath): Remove.
10375 * utils.h (xfullpath): Remove.
10376
d78489bf
AT
103772013-02-01 Andreas Tobler <andreast@fgznet.ch>
10378
10379 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10380 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10381 (ALLDEPFILES): Add ppc64-tdep.c.
10382 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10383 ppc64-tdep.o to gdb_target_obs.
10384 * ppc64-tdep.h: New file.
10385 * ppc64-tdep.c: New file.
10386 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10387 ppc-linux-tdep.c to here.
10388 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10389 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10390 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10391 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10392 from ppc-linux-tdep.c to here.
10393 (ppc64_convert_from_func_ptr_addr): Rename from
10394 ppc64_linux_convert_from_func_ptr_addr to
10395 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10396 here.
10397 * rs6000-tdep.c:
10398 (read_insn): Move from ppc-linux-tdep.c to here.
10399 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10400 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10401 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10402 Removed above functions.
10403 (ppc_linux_init_abi): Adjust.
10404
8db60374
AR
104052013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10406
10407 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10408
f2e5f4ce
AR
104092013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10410
10411 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10412
c1f7d745
PA
104132013-02-01 Pedro Alves <palves@redhat.com>
10414
10415 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10416 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10417
8a92335b
JK
104182013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10419
10420 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10421 files with no separate debug info.
10422 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10423 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10424 only for files with no separate debug info.
10425
8eacb197
TT
104262013-01-31 Tom Tromey <tromey@redhat.com>
10427
10428 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10429 change type.
10430 (struct jit_program_space_data): Rename from jit_inferior_data.
10431 Update comments.
10432 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10433 Change return type. Attach data to program space.
10434 (jit_program_space_data_cleanup): Rename from
10435 jit_inferior_data_cleanup; change argument type.
10436 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10437 change type.
10438 (jit_register_code): Update.
10439 (jit_update_inferior_cache): Remove.
10440 (jit_breakpoint_deleted): Get jit data from the location's program
10441 space.
10442 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10443 'ps_data', change type.
10444 (jit_inferior_init, jit_breakpoint_re_set_internal)
10445 (jit_event_handler): Update.
10446 (free_objfile_data): Get data from objfile's program space.
10447 (_initialize_jit): Update.
10448
f25c0135
TT
104492013-01-31 Tom Tromey <tromey@redhat.com>
10450
10451 PR gdb/13987:
10452 * jit.c (struct jit_inferior_data) <cached_code_address,
10453 jit_breakpoint>: New fields.
10454 (jit_breakpoint_re_set_internal): Fix logging. Only create
10455 breakpoint if cached address has changed.
10456 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10457 functions.
10458 (_initialize_jit): Register breakpoint deleted observer.
10459
974a734b
AR
104602013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10461
10462 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10463 (save_infcall_suspend_state): Ifdef out unused inf.
10464 (restore_infcall_suspend_state): Ifdef out unused inf.
10465 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10466 (jit_frame_sniffer): Remove unused inf_data.
10467
df54f8eb
AR
104682013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10469
10470 * c-exp.y (classify_inner_name): Remove unused type.
10471 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10472 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10473 need_escape.
10474 (c_get_string): Remove unused kind.
10475 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10476
5799c0b9
AR
104772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10478
10479 * charset.c (intermediate_encoding): Remove unused i.
10480 * completer.c (signal_completer): Remove unused i.
10481 * continuations.c (discard_my_continuations_1): Remove unused
10482 continuation_ptr.
10483 * corelow.c (core_close): Remove unuseD name.
10484 (get_core_siginfo): Remove unused pid.
10485 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10486 i, cps.
10487 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10488 (loclist_describe_location): Remove unused first.
10489 * event-top.c (command_line_handler): Remove unused got_eof.
10490 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10491 (resize_section_table): Remove unused old_value.
10492 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10493 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10494 * i386-tdep.c (i386_process_record): Remove unused rex.
10495 * infcmd.c (get_return_value): Remove unused uiout.
10496 * jv-lang.c (type_from_class): Remove unused is_array.
10497 * jv-valprint.c (java_val_print): Remove unused i.
10498 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10499 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10500 * m2-typeprint.c (m2_print_type): Remove unused code.
10501 * macroexp.c (get_character_constant): Remove unused body_start.
10502 (macro_stringify): Remove unused result.
10503 * objc-lang.c (find_methods): Remove unused gdbarch.
10504 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10505 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10506 * stack.c (print_frame_args): Remove unused summary.
10507 * thread.c (thread_apply_command): Remove unused p.
10508 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10509 * valops.c (search_struct_method): Remove unused skip.
10510 * valprint.c (generic_val_print): Remove unused byte_order.
10511 * varobj.c (varobj_update): Remove unused changed.
10512 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10513 (alias_command): Remove unused c.
10514 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10515 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10516 format.
10517 (mi_cmd_data_write_memory): Remove unused word_format.
10518 (mi_cmd_data_write_memory_bytes): Remove unused r.
10519 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10520 p_start, p_end.
10521 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10522 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10523 line_width.
10524
c656bca5
AR
105252013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10526
10527 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10528 * symtab.c (iterate_over_symtabs): Remove unused s.
10529 (find_pc_sect_symtab): Remove unused pspAce.
10530 (find_pc_sect_line): Remove unused alt_symtab.
10531 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10532 (completion_list_add_name): Remove unused newsize.
10533
7078baeb
TT
105342013-01-31 Tom Tromey <tromey@redhat.com>
10535
10536 PR c++/14998:
10537 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10538 TYPE_CODE_FUNC.
10539
c2e8b827
AR
105402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10541
10542 * target.c (target_read_string): Remove unused origlen.
10543
0e43993a
AR
105442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10545
10546 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10547 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10548 * ax-general.c (ax_print): Remove unused is_float.
10549 * blockframe.c (block_innermost_frame): Remove unused start, end.
10550 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10551
765a97ab
AR
105522013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10553
10554 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10555 (svr4_read_so_list): Remove unused lmo.
10556 * solib-target.c (solib_target_relocate_section_addresses): Remove
10557 unused flags.
10558
a99dad3d
TT
105592013-01-30 Tom Tromey <tromey@redhat.com>
10560
10561 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10562
3bff1ecd
TT
105632013-01-30 Tom Tromey <tromey@redhat.com>
10564
10565 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10566 * utils.c (gnu_debuglink_crc32): Remove.
10567 * utils.h (gnu_debuglink_crc32): Don't declare.
10568
7d455152
TT
105692013-01-30 Tom Tromey <tromey@redhat.com>
10570
10571 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10572 (read_structure_type, read_enumeration_type): Remove cast.
10573
abee88f2
TT
105742013-01-30 Tom Tromey <tromey@redhat.com>
10575
10576 * dwarf2read.c (read_namespace_type): Remove cast.
10577 (read_typedef): Likewise.
10578
8d9878a4
TT
105792013-01-29 Tom Tromey <tromey@redhat.com>
10580
10581 * dwarf2read.c (free_dwo_file): Remove assert.
10582
a543d2a9
TT
105832013-01-29 Tom Tromey <tromey@redhat.com>
10584
10585 * value.c (deprecated_set_value_modifiable): Remove.
10586 * value.h (deprecated_set_value_modifiable): Remove.
10587
bed911e5
DE
105882013-01-28 Doug Evans <dje@google.com>
10589
10590 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10591 to addresses from dwo files.
10592
28c64fc2
SCR
105932013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10594
10595 * valops.c (find_overload_match): Remove unused argument 'lax'.
10596 * value.h: Remove unused argument 'lax' from the declaration of
10597 find_overload_match.
10598 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10599 to find_overload_match.
10600 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10601 argument to find_overload_match.
10602
4d4ec4e5
TT
106032013-01-25 Tom Tromey <tromey@redhat.com>
10604
10605 * dwarf2read.c (processing_has_namespace_info): Remove.
10606 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10607 (process_die, read_func_scope, dwarf2_start_symtab)
10608 (new_symbol_full): Update.
10609
195a3f6c
TT
106102013-01-25 Tom Tromey <tromey@redhat.com>
10611
10612 * cp-namespace.c (cp_set_block_scope): Remove.
10613 * cp-support.h (cp_set_block_scope): Remove.
10614 * dbxread.c: Include block.h.
10615 (cp_set_block_scope): New function.
10616 (process_one_symbol): Update.
10617 * dwarf2read.c (read_func_scope): Use block_set_scope.
10618
8ba0730a
PA
106192013-01-25 Pedro Alves <palves@redhat.com>
10620
10621 * remote.c (add_current_inferior_and_thread): Tweak comment.
10622
12aaed36
TT
106232013-01-25 Tom Tromey <tromey@redhat.com>
10624
10625 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10626 (cp_add_using_directive): Add 'copy_names' argument.
10627 * cp-support.h (cp_add_using_directive): Update.
10628 (struct using_direct) <import_src, import_dest, alias,
10629 declaration>: Now const.
10630 * dwarf2read.c (read_import_statement): Use obconcat.
10631 Don't copy names passed to cp_add_using_directive.
10632
7fc75ca7
TT
106332013-01-25 Tom Tromey <tromey@redhat.com>
10634
10635 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10636
3405876a
PA
106372013-01-25 Pedro Alves <palves@redhat.com>
10638
10639 * remote.c (stop_reply_extract_thread): New.
10640 (add_current_inferior_and_thread): New parameter 'wait_status'.
10641 Handle it.
10642 (remote_start_remote): Pass wait status to
10643 add_current_inferior_and_thread.
10644 (extended_remote_run): Update comment.
10645 (extended_remote_create_inferior_1): Pass wait status to
10646 add_current_inferior_and_thread.
10647
8954db33
AB
106482013-01-25 Andrew Burgess <aburgess@broadcom.com>
10649 Ulrich Weigand <uweigand@de.ibm.com>
10650
10651 * valarith.c (value_vector_widen): New function for replicating a
10652 scalar into a vector.
10653 (value_binop): Use value_vector_widen to widen scalar to vector
10654 rather than casting, this better matches gcc C behaviour.
10655 * valops.c (value_casst): Update logic for casting between vector
10656 types, and for casting from scalar to vector, try to match gcc C
10657 behaviour.
10658 * value.h (value_vector_widen): Declare.
10659 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10660 function, handle special case for casting scalar to vector.
10661 (opencl_relop): Use opencl_value_cast.
10662 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10663 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10664 in order to use opencl_value_cast.
10665
843b20dc
YQ
106662013-01-25 Yao Qi <yao@codesourcery.com>
10667
10668 * event-loop.c: Include "queue.h".
10669 (gdb_event_p): New typedef.
10670 (DECLARE_QUEUE_P): Use.
10671 (DEFINE_QUEUE_P): Use.
10672 (async_queue_event): Remove.
10673 (gdb_event_xfree): New.
10674 (initialize_event_loop): New.
10675 (process_event): Use QUEUE macros.
10676 (event_queue): Remove.
10677 (gdb_wait_for_event): Caller update.
10678 (check_async_event_handlers): Likewise.
10679 (poll_timers): Likewise.
10680 * event-loop.h (initialize_event_loop): Declare.
10681 * event-loop.c (gdb_event_xfree): New.
10682 * top.c (gdb_init): Call initialize_event_loop.
10683
20ad8856
YQ
106842013-01-25 Yao Qi <yao@codesourcery.com>
10685
10686 * event-loop.c (async_queue_event): Remove one parameter
10687 'position'. Remove code handling 'position' == TAIL.
10688 (gdb_wait_for_event): Caller update.
10689 (check_async_event_handlers): Caller update.
10690 (poll_timers): Caller update.
10691 * event-loop.h (enum queue_position): Remove.
10692
3bbbe775
MK
106932013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10694
10695 * MAINTAINERS: Update my email.
10696
a87d9ac4
YQ
106972013-01-25 Yao Qi <yao@codesourcery.com>
10698
10699 * main.c (print_gdb_help): Remove "--epoch" from the help
10700 message.
10701
2077afdd
TD
107022013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10703
10704 * symtab.c (skip_prologue_using_sal): Consider a file
10705 change the same as an increased line number
10706
63da4037
TD
107072013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10708
30e8ee25 10709 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10710
45e6c716
TT
107112013-01-24 Tom Tromey <tromey@redhat.com>
10712
10713 * ada-lang.h (ada_decode_symbol): Make return type const.
10714 * ada-lang.c (ada_decode_symbol): Likewise.
10715
b1ae631a
DE
107162013-01-23 Doug Evans <dje@google.com>
10717
10718 * linespec.c (find_linespec_symbols): Make static.
10719
55a78401
SDJ
107202013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10721
10722 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10723 type on float conversion for complex type.
10724
bea883fd
SCR
107252013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10726
10727 Add a new class gdb.Architecture which exposes GDB's
10728 internal representation of architecture via GDB Python API.
10729 * Makefile.in: Add entries corresponding to the new file
10730 python/py-arch.c.
10731 * NEWS (Python Scripting): Add entries for the new class
10732 gdb.Architecture and the new method gdb.Frame.architecture.
10733 * python/py-arch.c: Implement gdb.Architecture class.
10734 * python/py-frame.c (frapy_arch): Implement the method
10735 gdb.Frame.architecture().
10736 (frame_object_methods): Add 'architecture' to the method table.
10737 * python/python-internal.h: Add declarations of new utility
10738 functions.
10739 * python/python.c (_initialize_python): Initialize
10740 gdb.Architecture class.
10741
796a7ff8
DE
107422013-01-23 Doug Evans <dje@google.com>
10743
10744 Work around binutils/15021.
10745 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10746 type_unit_group out of union s. All uses updated.
10747 (read_index_from_section): Watch for index version 8.
10748 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10749 an imported symtab.
10750 (write_psymtabs_to_index): Increment version number to 8.
10751
0928e93d
PA
107522013-01-22 Pedro Alves <palves@redhat.com>
10753
10754 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10755 user-visible.
10756
9c97429f
PA
107572013-01-22 Pedro Alves <palves@redhat.com>
10758
10759 * annotate.c (annotate_breakpoints_changed): Rename to ...
10760 (annotate_breakpoints_invalid): ... this. Make static.
10761 (breakpoint_changed): Adjust.
10762 (_initialize_annotate): Always install the observers. Install a
10763 "breakpoint_created" observer.
10764 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10765 * breakpoint.c (set_breakpoint_condition)
10766 (breakpoint_set_commands, do_map_commands_command)
10767 (init_raw_breakpoint, clear_command, set_ignore_count)
10768 (enable_breakpoint_disp): No longer call
10769 annotate_breakpoints_changed.
10770
bd00c694
PA
107712013-01-22 Pedro Alves <palves@redhat.com>
10772
10773 * annotate.c: Include "inferior.h".
10774 (frames_invalid_emitted)
10775 (breakpoints_invalid_emitted): New globals.
10776 (async_background_execution_p): New function.
10777 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10778 emitting the annotation if it has already been emitted.
10779 (annotate_display_prompt): New function.
10780 * annotate.h (annotate_display_prompt): New declaration.
10781 * event-top.c: Include annotate.h.
10782 (display_gdb_prompt): Call annotate_display_prompt.
10783
187d10dd
PA
107842013-01-22 Pedro Alves <palves@redhat.com>
10785
10786 * annotate.c (ignore_count_changed): Delete.
10787 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10788 (annotate_ignore_count_change): Delete.
10789 (annotate_stopped): Don't emit a delayed breakpoints-changed
10790 annotation.
10791 * annotate.h (annotate_ignore_count_change): Delete.
10792 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10793 annotate_ignore_count_change.
10794
d84cf7eb
TT
107952013-01-22 Tom Tromey <tromey@redhat.com>
10796
10797 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10798 require_rvalue for a register location.
10799
8f1d5693
MK
108002013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10801
10802 * breakpoint.c (print_one_breakpoint_location): Add MI
10803 field 'thread-groups' when printing a breakpoint.
10804 (output_thread_groups): New function.
10805
aa6199c6
SCR
108062013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10807
10808 * python/lib/gdb/commands/explore.py
10809 (CompoundExplorer.explore_expr): Correct the name of a method
10810 being invoked.
10811 (ExploreTypeCommand.invoke): Add a missing 'return'.
10812
d2afef13
TT
108132013-01-21 Tom Tromey <tromey@redhat.com>
10814
10815 * gdb_obstack.h (obconcat): Move declaration here, from...
10816 * symfile.h (obconcat): ... here.
10817 * gdb_obstack.c: New file.
10818 (obconcat): Move from...
10819 * symfile.c (obconcat): ... here.
10820 * Makefile.in (SFILES): Add gdb_obstack.c.
10821 (COMMON_OBS): Add gdb_obstack.o.
10822
10f0c4bb
TT
108232013-01-21 Tom Tromey <tromey@redhat.com>
10824
10825 * symfile.h (obsavestring): Don't declare.
10826 * symfile.c (obsavestring): Remove.
10827 * ada-exp.y: Use obstack_copy0, not obsavestring.
10828 * ada-lang.c: Use obstack_copy0, not obsavestring.
10829 * coffread.c: Use obstack_copy0, not obsavestring.
10830 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10831 * dbxread.c: Use obstack_copy0, not obsavestring.
10832 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10833 * jit.c: Use obstack_copy0, not obsavestring.
10834 * mdebugread.c: Use obstack_copy0, not obsavestring.
10835 * psymtab.c: Use obstack_copy0, not obsavestring.
10836 * stabsread.c: Use obstack_copy0, not obsavestring.
10837 * xcoffread.c: Use obstack_copy0, not obsavestring.
10838
86f62fd7
TT
108392013-01-21 Tom Tromey <tromey@redhat.com>
10840
10841 * dwarf2read.c (fixup_go_packaging): Save package name
10842 on objfile obstack.
10843 * gdbtypes.c (init_type): Don't copy name.
10844
15d034d0
TT
108452013-01-21 Tom Tromey <tromey@redhat.com>
10846
10847 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10848 const.
10849 (struct attribute) <u.str>: Now const.
10850 (struct fnfieldlist) <name>: Now const.
10851 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10852 (partial_die_parent_scope): Make return type const.
10853 (partial_die_full_name, add_partial_symbol): Update.
10854 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10855 'name' const.
10856 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10857 (read_file_scope, read_func_scope, dwarf2_add_field)
10858 (dwarf2_add_member_fn, read_structure_type)
10859 (process_enumeration_scope, read_array_type, read_module_type)
10860 (read_base_type, read_subrange_type): Update.
10861 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10862 (new_symbol_full, guess_full_die_structure_name): Update.
10863 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10864 (dwarf2_name): Return const type.
10865 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10866 const.
10867
748e18ae
TT
108682013-01-21 Tom Tromey <tromey@redhat.com>
10869
10870 * gdbtypes.c (init_type): Make 'name' const.
10871 * gdbtypes.h (init_type): Update.
10872
46212e0b
TT
108732013-01-21 Tom Tromey <tromey@redhat.com>
10874
10875 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10876 (start_symtab): Make 'name' and 'dirname' const. Use
10877 set_last_source_file.
10878 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10879 (last_source_file): Define. Now static.
10880 (set_last_source_file, get_last_source_file): New functions.
10881 * buildsym.h (last_source_file): Don't declare.
10882 (start_symtab): Update.
10883 (set_last_source_file, get_last_source_file): Declare.
10884 * coffread.c (complete_symtab): Use set_last_source_file.
10885 (coff_end_symtab): Likewise.
10886 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10887 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10888 set_last_source_file.
10889 (process_one_symbol): Use get_last_source_file.
10890 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10891 (psymtab_to_symtab_1): Use get_last_source_file.
10892 * xcoffread.c (process_linenos): Use get_last_source_file.
10893 (complete_symtab): Use set_last_source_file.
10894 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10895 (scan_xcoff_symtab): Use set_last_source_file.
10896
9d2ceabe
TT
108972013-01-21 Tom Tromey <tromey@redhat.com>
10898
10899 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10900 (symbol_set_names): Remove casts. Handle field const-ness.
10901
cfc594ee
TT
109022013-01-21 Tom Tromey <tromey@redhat.com>
10903
10904 * dwarf2read.c (new_symbol_full): Remove cast.
10905 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10906 * symtab.h (symbol_set_demangled_name): Update.
10907
5484b13a
TT
109082013-01-21 Tom Tromey <tromey@redhat.com>
10909
10910 * main.c (captured_main): Call bfd_init.
10911
1605ef26
TT
109122013-01-21 Tom Tromey <tromey@redhat.com>
10913
10914 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10915 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10916 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10917 * NEWS: Update.
10918
3b74cdc3
JK
109192013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10920
10921 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10922
5a352474
JK
109232013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10924
10925 Fix gdb.fortran/common-block.exp crash in PIE mode.
10926 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10927 LOC_COMMON_BLOCK.
10928 * f-valprint.c (info_common_command_for_block): Expect
10929 LOC_COMMON_BLOCK in gdb_assert.
10930 * symtab.h (struct general_symbol_info): Update comment for the
10931 common_block member.
10932 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10933 (enum address_class): New member LOC_COMMON_BLOCK.
10934
c60797fd
DB
109352013-01-18 David Blaikie <dblaikie@gmail.com>
10936
10937 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10938
46f35228
TT
109392013-01-18 Tom Tromey <tromey@redhat.com>
10940
10941 PR c++/14999:
10942 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10943 Call require_rvalue.
10944
257e7a09
YQ
109452013-01-18 Yao Qi <yao@codesourcery.com>
10946
10947 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10948 (dbx_read_symtab): New declaration.
10949 (dbx_psymtab_to_symtab): Delete.
10950 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10951 Rename parameter PST to SELF. Exchanged two parameters.
10952 (start_psymtab): Caller update.
10953 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10954 (dwarf2_read_symtab): New declaration.
10955 (dwarf2_psymtab_to_symtab): Delete.
10956 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10957 Rename parameter PST to SELF. Exchanged two parameters.
10958 (create_partial_symtab): Caller update.
10959 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10960 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10961 Rename parameter PST to SELF. Exchanged two parameters.
10962 (parse_partial_symbols, new_psymtab): Caller update.
10963 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10964 two parameters.
10965 * psymtab.c (psymtab_to_symtab): Caller update.
10966 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10967 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10968 Rename parameter PST to SELF. Exchanged two parameters.
10969 (xcoff_start_psymtab): Caller update.
10970
0de5618e
YQ
109712013-01-18 Yao Qi <yao@codesourcery.com>
10972
10973 * infrun.c (proceed): Rename local variable 'oneproc' to
10974 'force_step'.
10975
5c04624b
DE
109762013-01-17 Doug Evans <dje@google.com>
10977
848e3e78
DE
10978 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10979 (dw2_build_type_unit_groups): Delete. All uses updated.
10980
5c04624b
DE
10981 * symtab.h (struct symbol_search): Add comment.
10982
d84fca2c
JK
109832013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 * symtab.c (compare_filenames_for_search): New comment for
10986 HAS_DRIVE_SPEC.
10987
6108433d
TT
109882013-01-17 Tom Tromey <tromey@redhat.com>
10989
10990 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10991
c89ffd86
JK
109922013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10995 initialize it by existing make_cleanup. Call new do_cleanups.
10996
db2b2972
TT
109972013-01-17 Tom Tromey <tromey@redhat.com>
10998
10999 * cp-abi.c (cp_abi_completer): New function.
11000 (_initialize_cp_abi): Set completer for "set cp-abi".
11001
be7d37a2
TT
110022013-01-17 Tom Tromey <tromey@redhat.com>
11003
11004 * mem-break.c: Remove obsolete comment.
11005 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11006
c9fb1240
SD
110072012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11008
11009 * jit.c (jit_reader_load_command): Interpret the jit reader name
11010 as an absolute path if it begins with a forward slash.
11011
db334a01
SD
110122012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11013
11014 PR gdb/14550
11015
11016 * jit.c (finalize_symtab): Ensure that only the global block has a
11017 NULL superblock.
11018
7d928dac
PA
110192013-01-17 Pedro Alves <palves@redhat.com>
11020
11021 * acinclude.m4: Include ../config/plugins.m4,
11022 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11023 * Makefile.in (aclocal_m4_deps): Update.
11024 * aclocal.m4: Renegerate.
11025
fb8cf7c5
DE
110262013-01-16 Doug Evans <dje@google.com>
11027
11028 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11029
ab04a2af
TT
110302013-01-16 Pedro Alves <palves@redhat.com>
11031 Tom Tromey <tromey@redhat.com>
11032
11033 PR cli/7221:
11034 * NEWS: Add "catch signal".
11035 * breakpoint.c (base_breakpoint_ops): No longer static.
11036 (bpstat_explains_signal): New function.
11037 (init_catchpoint): No longer static.
11038 (base_breakpoint_explains_signal): New function.
11039 (base_breakpoint_ops): Initialize new field.
11040 * breakpoint.h (enum bpstat_signal_value): New.
11041 (struct breakpoint_ops) <explains_signal>: New field.
11042 (bpstat_explains_signal): Remove macro, declare as function.
11043 (base_breakpoint_ops, init_catchpoint): Declare.
11044 * break-catch-sig.c: New file.
11045 * inferior.h (signal_catch_update): Declare.
11046 * infrun.c (signal_catch): New global.
11047 (handle_syscall_event): Update for change to
11048 bpstat_explains_signal.
11049 (handle_inferior_event): Likewise. Always handle random signals
11050 via bpstats.
11051 (signal_cache_update): Check signal_catch.
11052 (signal_catch_update): New function.
11053 (_initialize_infrun): Initialize signal_catch.
11054 * Makefile.in (SFILES): Add break-catch-sig.c.
11055 (COMMON_OBS): Add break-catch-sig.o.
11056
8ac3646f
TT
110572013-01-16 Tom Tromey <tromey@redhat.com>
11058
11059 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11060 (print_one_catch_solib, print_one_catch_syscall)
11061 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11062 "catch-type".
11063
5a18e302
YQ
110642013-01-16 Yao Qi <yao@codesourcery.com>
11065
11066 * printcmd.c (current_display_number): Make it static.
11067
3f01d0d0
YQ
110682013-01-16 Yao Qi <yao@codesourcery.com>
11069
11070 * infcmd.c (step_once): Don't check '!single_inst' as it was
11071 checked before.
11072
1ed59174
JK
110732013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11074
11075 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11076
44478ab3
TT
110772013-01-14 Tom Tromey <tromey@redhat.com>
11078
11079 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11080 set command.
11081 * command.h (add_setshow_string_noescape_cmd): Update.
11082 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11083 (complete_set_gnutarget): New function.
11084 (_initialize_core): Set the "set gnutarget" completer.
11085
06d66ee9
TT
110862013-01-14 Tom Tromey <tromey@redhat.com>
11087
11088 PR symtab/14442:
11089 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11090 (c_type_print_modifier): Likewise.
11091 * dwarf2read.c (read_tag_restrict_type): New function.
11092 (read_type_die_1): Handle DW_TAG_restrict_type.
11093 * gdbtypes.c (make_restrict_type): New function.
11094 (recursive_dump_type): Handle TYPE_RESTRICT.
11095 * gdbtypes.h (enum type_flag_values): Renumber.
11096 (enum type_instance_flag_value): Add
11097 TYPE_INSTANCE_FLAG_RESTRICT.
11098 (TYPE_RESTRICT): New macro.
11099 (make_restrict_type): Declare.
11100
c9bf0622
TT
111012013-01-14 Tom Tromey <tromey@redhat.com>
11102
11103 PR symtab/14931:
11104 * psymtab.c (struct psymtab_state): New.
11105 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11106 functions.
11107 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11108 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11109
44d594fd
PA
111102013-01-14 Richard Sharman <richard_sharman@mitel.com>
11111 Pedro Alves <palves@redhat.com>
11112
11113 PR remote/14786
11114
11115 * remote.c (remote_threads_info): Make a copy of the reply from
11116 qfThreadInfo and use that instead of rs->buf.
11117
442e4d9c
YQ
111182013-01-14 Yao Qi <yao@codesourcery.com>
11119
11120 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11121 (dbx_psymtab_to_symtab): Likewise.
11122 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11123 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11124 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11125
5b12a61c
JK
111262013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11129 make_cleanup_restore_current_language. Call set_language. Move
11130 OLD_CHAIN and INNER_CHAIN cleanups.
11131 * utils.c (do_restore_current_language)
11132 (make_cleanup_restore_current_language): New functions.
11133 * utils.h (make_cleanup_restore_current_language): New declaration.
11134
f0a4b570
JK
111352013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11138 non-existing files.
11139
57b3c00c
JK
11140 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11141 non-existing files if FILENAME is already absolute.
11142
daefa854
JK
111432013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11144
11145 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11146 fputs_filtered. Append trailing newline.
11147
ca9c6ee2
YQ
111482013-01-11 Yao Qi <yao@codesourcery.com>
11149 Stan Shebs <stan@codesourcery.com>
11150
11151 * psymtab.c (init_psymbol_list): Clarify the comment.
11152
f28045c2
YQ
111532013-01-11 Yao Qi <yao@codesourcery.com>
11154
11155 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11156 (update_dprintf_command_list): Assert that 'printf_line' is
11157 non-null. Remove condition check.
11158
da5132d3
JK
111592013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11160
11161 Code cleanup.
11162 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11163 type const char *.
11164 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11165 const char *.
11166 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11167
843e694d
AG
111682013-01-09 Anthony Green <green@moxielogic.com>
11169
11170 * cp-abi.c (cplus_print_vtable): Don't return value from void
11171 function.
11172 * ada-lang.c (re_set_catch_assert): Ditto.
11173
da51c347
DE
111742013-01-09 Doug Evans <dje@google.com>
11175
11176 * symfile.h (quick_symbol_functions): Delete member
11177 pre_expand_symtabs_matching. All uses removed.
11178 * dwarf2read.c (dw2_lookup_symbol): Implement.
11179 (dw2_do_expand_symtabs_matching): Delete.
11180 (dw2_pre_expand_symtabs_matching): Delete.
11181 (struct dw2_symtab_iterator): New type.
11182 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11183 (dw2_expand_symtabs_for_function): Rewrite.
11184 (dwarf2_gdb_index_functions): Update.
11185 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11186 (psym_functions): Update.
11187
b2259038
TT
111882013-01-09 Tom Tromey <tromey@redhat.com>
11189
11190 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11191 * configure: Rebuild.
11192 * configure.ac: Add somread.o to the build if BFD has SOM
11193 support.
11194 * somread.c: Include som/aout.h, not syms.h.
11195 (som_symtab_read): Use som_external_symbol_dictionary_record.
11196 Unpack records manually.
11197 (_initialize_somread): Declare.
11198
bdad4180
MF
111992012-01-08 Mike Frysinger <vapier@gentoo.org>
11200
11201 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11202 Cast return_address to 64bits.
11203
03cdf680
HZ
112042013-01-08 Hui Zhu <hui_zhu@mentor.com>
11205
11206 * printcmd.c: Remove define of function output_command.
11207 * tracepoint.c: Remove extern of function output_command.
11208 * valprint.h: (output_command): New extern.
11209
8a808554
TT
112102013-01-07 Tom Tromey <tromey@redhat.com>
11211
11212 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11213 Remove.
11214 (objc_language_defn): Use c_printchar, c_printstr,
11215 c_emit_char.
11216
e93a8774
TT
112172013-01-07 Tom Tromey <tromey@redhat.com>
11218
11219 PR cli/7719:
11220 * NEWS: Update.
11221 * ada-valprint.c (printstr, print_field_values): Remove
11222 "inspect_it" code.
11223 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11224 code.
11225 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11226 code.
11227 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11228 * main.c (captured_main): Remove "epoch" argument.
11229 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11230 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11231 * p-valprint.c (pascal_object_print_value_fields): Remove
11232 "inspect_it" code.
11233 * printcmd.c (print_command_1): Remove 'inspect' argument.
11234 (print_command, call_command): Update.
11235 (inspect_command): Remove.
11236 (_initialize_printcmd): Make "inspect" an alias for "print".
11237 * top.c (epoch_interface): Remove.
11238 * top.h (epoch_interface): Remove.
11239 * valprint.c (user_print_options): Update.
11240 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11241 * valprint.h (struct value_print_options) <inspect_it>: Remove
11242 field.
11243
112442013-01-04 Tom Tromey <tromey@redhat.com>
11245
11246 * valprint.h (read_string): Add 'extern'.
11247
b967eb24
JB
112482013-01-07 Joel Brobecker <brobecker@adacore.com>
11249
11250 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11251 used to decide whether to define darwin_read_dyld_info or not.
11252
78a8b30e
PM
112532013-01-03 Pierre Muller <muller@sourceware.org>
11254
11255 * main.c (relocate_gdb_directory): Avoid calling stat function
11256 if DIR is empty.
11257
50da2f25
YQ
112582013-01-03 Yao Qi <yao@codesourcery.com>
11259
11260 * psymtab.c (fixup_psymbol_section): Update declaration.
11261 (fixup_psymbol_section): Remove code returning value.
11262
e7e8980f
YQ
112632013-01-03 Yao Qi <yao@codesourcery.com>
11264
11265 * symtab.h: Remove some out of date comments.
11266 (enum exception_event_kind): Move it ...
11267 * breakpoint.c: ... here.
11268
569283d4
MF
112692013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11270
9f9d9a96 11271 PR gdb/14405
569283d4
MF
11272 * darwin-nat.c (darwin_read_dyld_info): Only build if
11273 TASK_DYLD_INFO_COUNT is defined.
11274 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11275 TASK_DYLD_INFO_COUNT is defined.
11276
2e36fbea
TT
112772013-01-02 Tom Tromey <tromey@redhat.com>
11278
11279 * symfile.h (struct ecoff_debug_hack): Remove.
11280 * objfiles.c: Don't include mdebugread.h.
11281
4f05add4
TT
112822013-01-02 Tom Tromey <tromey@redhat.com>
11283
11284 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11285 * configure.ac: Check for Mach-O support in BFD. Update
11286 CONFIG_OBS.
11287 * configure: Rebuild.
11288
def63ff0
TT
112892013-01-02 Tom Tromey <tromey@redhat.com>
11290
11291 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11292 * configure.ac: Use GDB_AC_CHECK_BFD.
11293 * configure: Rebuild.
11294
60c5dd93
MK
112952013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11296
11297 * MAINTAINERS: Update my email.
11298
6e58437e
JB
112992013-01-01 Joel Brobecker <brobecker@adacore.com>
11300
11301 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11302
627fe805
JB
113032013-01-01 Joel Brobecker <brobecker@adacore.com>
11304
11305 * rs6000-nat.c (bss_data_overlap): New function.
11306 (vmap_symtab): Use it to adjust the .bss section's offset.
11307
28e7fd62
JB
113082013-01-01 Joel Brobecker <brobecker@adacore.com>
11309
11310 Update year range in copyright notice of all files.
11311
e93a8774 113122013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11313
11314 * top.c (print_gdb_version): Update copyright year.
11315
72b20e9c 11316For older changes see ChangeLog-2012.
c906108c
SS
11317\f
11318Local Variables:
11319mode: change-log
11320left-margin: 8
11321fill-column: 74
11322version-control: never
57da7796 11323coding: utf-8
c906108c 11324End:
This page took 2.470529 seconds and 4 git commands to generate.