* corelow.c (core_open): Print GDB signal name instead of target
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2d503272
PM
12013-06-17 Pierre Muller <muller@sourceware.org>
2
3 * corelow.c (core_open): Print GDB signal name instead of target
4 signal number.
5
6916fd98
MF
62013-06-17 Mike Frysinger <vapier@gentoo.org>
7
8 * .gitignore: Add /gcore.
9
9c02c129
DE
102013-06-13 Doug Evans <dje@google.com>
11
12 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
13 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
14
d0548fa2
PM
152013-06-12 Phil Muldoon <pmuldoon@redhat.com>
16
17 * stack.c (backtrace_command_1): Fix indentation.
18
22128028
JB
192013-06-11 Joel Brobecker <brobecker@adacore.com>
20
21 * window-nat.c (thread_rec): Add missing empty line after
22 local variable declaration.
23
2ed3e009
JB
242013-06-11 Joel Brobecker <brobecker@adacore.com>
25
26 * windows-nat.c (thread_rec): Revert format used to print
27 error code returned by SuspendThread from %d back to %u.
28
0c3d84be
JB
292013-06-11 Joel Brobecker <brobecker@adacore.com>
30
31 * windows-nat.c (windows_continue): Add "0x" prefix for thread
32 ID in debug trace.
33 (get_windows_debug_event): Likewise, for all debug traces.
34
80e88e1a
JB
352013-06-11 Joel Brobecker <brobecker@adacore.com>
36
37 * window-nat.c (thread_rec): Add thread ID in SuspendThread
38 warning message.
39
1edebdbf
YQ
402013-06-08 Pedro Alves <pedro@codesourcery.com>
41 Yao Qi <yao@codesourcery.com>
42
43 * mi/mi-main.c (get_register): Remove declaration.
44 (output_register): Declare.
45 (mi_cmd_data_list_register_values): Remove local variable
46 'tuple_cleanup'. Move some code into output_register.
47 (get_register): Renamed to ...
48 (output_register): ... this. Output the register's
49 "number" ui_out tuple here.
50
47d48711
PA
512013-06-07 Pedro Alves <palves@redhat.com>
52
53 * darwin-nat.c: Fix formating in copyright header.
54 * darwin-nat.h: Likewise.
55 * gnu-nat.c: Likewise.
56 * machoread.c: Likewise.
57
3aee8918
PA
582013-06-07 Pedro Alves <palves@redhat.com>
59
5f2b57b5 60 PR server/14823
3aee8918
PA
61 * regformats/regdat.sh: Output #include tdesc.h. Make globals
62 static. Output a global target description pointer.
63 (init_registers_${name}): Adjust to initialize a
64 target description structure.
65
fe8400b4
WN
662013-06-07 Will Newton <will.newton@linaro.org>
67
68 * printcmd.c (build_address_symbolic): Call
69 gdbarch_addr_bits_remove for text minimal symbols.
70
20df6206
WN
712013-06-07 Will Newton <will.newton@linaro.org>
72
73 * MAINTAINERS: Add myself to Write After Approval.
74
aef525cb
YQ
752013-06-07 Yao Qi <yao@codesourcery.com>
76
77 * tracepoint.c (start_tracing): Move code to ...
78 (trace_reset_local_state): ... here. New.
79 (disconnect_tracing): Don't call set_current_traceframe,
80 set_tracepoint_num, and set_traceframe_context. Call
81 trace_reset_local_state instead.
82 (tfile_close): Call trace_reset_local_state.
83 * ctf.c (ctf_close): Likewise.
84 * remote.c (remote_close): Likewise.
85 * tracepoint.h (trace_reset_local_state): Declare.
86
d2415c6c
DE
872013-06-06 Doug Evans <dje@google.com>
88
89 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
90 and fix header docs.
91
69fc87c2
DE
922013-06-05 Doug Evans <dje@google.com>
93 Keith Seitz <keiths@redhat.com>
94
95 PR 15519
96 * cp-namespace.c (find_symbol_in_baseclass): Call
97 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
98 Check result of call to lookup_symbol_static.
99 Call lookup_static_symbol_aux unconditionally.
100 Call check_typedef on base types before accessing them.
101 (cp_lookup_nested_symbol): Fix comment.
102
a513d1e8
LM
1032013-06-05 Luis Machado <lgustavo@codesourcery.com>
104
105 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
106 minimal symbols pointing to function descriptors.
107
351a6f02
TT
1082013-06-05 Tom Tromey <tromey@redhat.com>
109
110 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
111
5e1b953b 1122013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 113 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
114
115 * remote.c (remote_wait_as): Restore signal handler before returning
116 when GDB gets a notification.
117
f9e14852
GB
1182013-06-04 Gary Benson <gbenson@redhat.com>
119
8445cbf1 120 PR 2328
f9e14852
GB
121 * breakpoint.h (handle_solib_event): Moved function declaration
122 to solib.h.
123 * breakpoint.c (handle_solib_event): Moved function to solib.c.
124 (bpstat_stop_status): Pass new argument to handle_solib_event.
125 * solib.h (update_solib_breakpoints): New function declaration.
126 (handle_solib_event): Moved function declaration from
127 breakpoint.h.
128 * solib.c (update_solib_breakpoints): New function.
129 (handle_solib_event): Moved function from breakpoint.c.
130 Updated to call solib_ops->handle_event if not NULL.
131 * solist.h (target_so_ops): New fields "update_breakpoints" and
132 "handle_event".
133 * infrun.c (set_stop_on_solib_events): New function.
134 (_initialize_infrun): Use the above for "set
135 stop-on-solib-events".
136 (handle_inferior_event): Pass new argument to handle_solib_event.
137 * solib-svr4.c (probe.h): New include.
138 (svr4_free_library_list): New forward declaration.
139 (probe_action): New enum.
140 (probe_info): New struct.
141 (probe_info): New static variable.
142 (NUM_PROBES): New definition.
143 (svr4_info): New fields "using_xfer", "probes_table" and
144 "solib_list".
145 (free_probes_table): New function.
146 (free_solib_list): New function.
147 (svr4_pspace_data_cleanup): Free probes table and solib list.
148 (svr4_copy_library_list): New function.
149 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
150 (svr4_read_so_list): New parameter "prev_lm".
151 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
152 (svr4_current_sos): New function.
153 (probe_and_action): New struct.
154 (hash_probe_and_action): New function.
155 (equal_probe_and_action): Likewise.
156 (register_solib_event_probe): Likewise.
157 (solib_event_probe_at): Likewise.
158 (solib_event_probe_action): Likewise.
159 (solist_update_full): Likewise.
160 (solist_update_incremental): Likewise.
161 (disable_probes_interface_cleanup): Likewise.
162 (svr4_handle_solib_event): Likewise.
163 (svr4_update_solib_event_breakpoint): Likewise.
164 (svr4_update_solib_event_breakpoints): Likewise.
165 (svr4_create_solib_event_breakpoints): Likewise.
166 (enable_break): Free probes table before creating breakpoints.
167 Use svr4_create_solib_event_breakpoints to create breakpoints.
168 (svr4_solib_create_inferior_hook): Free the solib list.
169 (_initialize_svr4_solib): Initialise
170 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
171
ced63ec0
GB
1722013-06-04 Gary Benson <gbenson@redhat.com>
173
174 * target.h (target_ops): New field
175 "to_augmented_libraries_svr4_read".
176 (target_augmented_libraries_svr4_read): New macro.
177 * target.c (update_current_target): Handle
178 to_augmented_libraries_svr4_read.
179 * remote.c (remote_state): New field
180 "augmented_libraries_svr4_read".
181 (remote_augmented_libraries_svr4_read_feature): New function.
182 (remote_protocol_features): Add entry for
183 "augmented-libraries-svr4-read".
184 (remote_augmented_libraries_svr4_read): New function.
185 (init_remote_ops): Initialize
186 remote_ops.to_augmented_libraries_svr4_read.
187
7f91dbec
GB
1882013-06-04 Gary Benson <gbenson@redhat.com>
189
190 * NEWS: Update.
191
607ece04
GB
1922013-06-04 Gary Benson <gbenson@redhat.com>
193
194 * objfiles.h (inhibit_section_map_updates): New function
195 declaration.
196 (resume_section_map_updates): Likewise.
197 (resume_section_map_updates_cleanup): Likewise.
198 * objfiles.c (objfile_pspace_info): Removed field
199 "objfiles_changed_p". New fields "new_objfiles_available",
200 "section_map_dirty" and "inhibit_updates".
201 (allocate_objfile): Set new_objfiles_available.
202 (free_objfile): Set section_map_dirty.
203 (objfile_relocate1): Likewise.
204 (in_plt_section): Likewise.
205 (find_pc_section): Update the conditions under which the
206 section map will be updated.
207 (inhibit_section_map_updates): New function.
208 (resume_section_map_updates): Likewise.
209 (resume_section_map_updates_cleanup): Likewise.
210
9ee6a5ac
GB
2112013-06-04 Gary Benson <gbenson@redhat.com>
212
213 * probe.h (get_probe_argument_count): New declaration.
214 (evaluate_probe_argument): Likewise.
215 * probe.c (get_probe_argument_count): New function.
216 (evaluate_probe_argument): Likewise.
217 (probe_safe_evaluate_at_pc): Use the above new functions.
218
845d4708
AM
2192013-06-04 Alan Modra <amodra@gmail.com>
220
221 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
222 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
223 (ppc_insns_match_pattern): Add frame param. Avoid multiple
224 target mem reads on optional insns.
225 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
226 ppc_insns_match_pattern calls.
227 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
228 Add match for power7 thread safety insns, and new order of
229 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
230 invocation in comment, and update rest of comment.
231 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
232 PPC64_STANDARD_LINKAGE3_LEN): Delete.
233 (ppc64_standard_linkage2_target): Update insn offsets.
234 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
235 stubs first. Update calls.
236
404e278f
YQ
2372013-06-04 Yao Qi <yao@codesourcery.com>
238
239 * solib.c (solib_find): Don't need dir separator if path has
240 drive spec.
241
f6aea118
JB
2422013-06-03 Joel Brobecker <brobecker@adacore.com>
243
244 Revert (indirectly causes a SIGSEGV):
245 * machoread.c (macho_symfile_read): Assign first cleanup to
246 'back_to'.
247
87967e27
YQ
2482013-06-03 Yao Qi <yao@codesourcery.com>
249
250 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
251 mi-parse.c. Make them static.
252 (mi_all_values): Likewise.
253 (mi_parse_values_option): Move to mi-parse.c. Rename it to
254 mi_parse_print_values. Make it external.
255 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
256 Remove the declarations.
257 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
258 * mi/mi-parse.h (mi_parse_print_values): Declare.
259 * mi/mi-cmd-stack.c: Include mi-parse.h.
260 (parse_print_values): Remove
261 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
262 of parse_print_values.
263 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
264
3ca73e0c
YQ
2652013-05-31 Pedro Alves <pedro@codesourcery.com>
266 Yao Qi <yao@codesourcery.com>
267
268 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
269 (encode_actions): Move code to ...
270 (all_tracepoint_actions_and_cleanup): ... here. New.
271 (trace_dump_command): Likewise.
272
4e993a19
TT
2732013-05-30 Tom Tromey <tromey@redhat.com>
274
275 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
276
e3b76b4f
TT
2772013-05-30 Tom Tromey <tromey@redhat.com>
278
279 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
280 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
281 'old_chain' argument. Add 'parser_result' argument.
282 (gdb_xml_create_parser_and_cleanup): Remove old version.
283 (gdb_xml_parse_quick): Update.
284 (xml_process_xincludes): Update.
285 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
286 declare.
287
db26349c
TT
2882013-05-30 Tom Tromey <tromey@redhat.com>
289
290 * probe.c (collect_probes): Check arguments for NULL before
291 calling compile_rx_or_error.
292 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
293 Remove NULL return.
294
77f9e713
TT
2952013-05-30 Tom Tromey <tromey@redhat.com>
296
297 * infrun.c (adjust_pc_after_break): Introduce an outer null
298 cleanup.
299
45475de7
TT
3002013-05-30 Tom Tromey <tromey@redhat.com>
301
302 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
303
ac5007fd
TT
3042013-05-30 Tom Tromey <tromey@redhat.com>
305
306 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
307 for 'old_chain'. Do not check 'head' before processing
308 cleanups.
309
cd82eddc
TT
3102013-05-30 Tom Tromey <tromey@redhat.com>
311
312 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
313 "cleanup_tuple".
314
57cee33a
TT
3152013-05-30 Tom Tromey <tromey@redhat.com>
316
317 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
318 inner scope. Unconditionally call do_cleanups.
319
795d915c
TT
3202013-05-30 Tom Tromey <tromey@redhat.com>
321
322 * source.c (find_and_open_source): Call do_cleanups.
323
1fc3cf4a
TT
3242013-05-30 Tom Tromey <tromey@redhat.com>
325
326 * linux-thread-db.c (thread_db_load_search): Unconditionally
327 call do_cleanups.
328
e35ac9bf
TT
3292013-05-30 Tom Tromey <tromey@redhat.com>
330
331 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
332 for 'cleanup'; instead use a later one.
333
f3300387
TT
3342013-05-30 Tom Tromey <tromey@redhat.com>
335
336 * python/py-breakpoint.c (bppy_get_commands): Use
337 explicit, unconditional return.
338 * python/py-frame.c (frapy_read_var): Likewise.
339 * python/python.c (gdbpy_decode_line): Likewise.
340
c27e16e3
TT
3412013-05-30 Tom Tromey <tromey@redhat.com>
342
343 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
344 do_cleanups on all return paths.
345
5ae85e44
TT
3462013-05-30 Tom Tromey <tromey@redhat.com>
347
348 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
349
73b8d9da
TT
3502013-05-30 Tom Tromey <tromey@redhat.com>
351
352 * stabsread.c (read_struct_type): Call do_cleanups along
353 all return paths.
354
7d266584
MR
3552013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
356
357 * mips-linux-tdep.c: Adjust formatting throughout.
358
0f900f54
TT
3592013-05-30 Tom Tromey <tromey@redhat.com>
360
361 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
362 along all return paths.
363
a991ac28
TT
3642013-05-30 Tom Tromey <tromey@redhat.com>
365
366 * symfile.c (find_separate_debug_file): Call do_cleanups
367 along all return paths.
368
1abaf042
TT
3692013-05-30 Tom Tromey <tromey@redhat.com>
370
371 * symtab.c (search_symbols): Introduce a null cleanup for
372 'retval_chain'.
373
edefe1da
TT
3742013-05-30 Tom Tromey <tromey@redhat.com>
375
376 * python/py-value.c (valpy_binop): Call do_cleanups before
377 exiting loop.
378
54f72dcc
TT
3792013-05-30 Tom Tromey <tromey@redhat.com>
380
381 * python/py-prettyprint.c (print_children): Remove extra
382 do_cleanups call.
383
af1c6971
TT
3842013-05-30 Tom Tromey <tromey@redhat.com>
385
386 * python/py-frame.c (frapy_read_var): Call do_cleanups along
387 all return paths.
388
b862ce75
TT
3892013-05-30 Tom Tromey <tromey@redhat.com>
390
391 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
392 along all return paths.
393
e12fefc8
TT
3942013-05-30 Tom Tromey <tromey@redhat.com>
395
396 * cli/cli-logging.c (set_logging_redirect): Unconditionally
397 call do_cleanups.
398
4867f990
TT
3992013-05-30 Tom Tromey <tromey@redhat.com>
400
401 * varobj.c (c_value_of_root): Call do_cleanups along all
402 return paths.
403
4fd2d6af
TT
4042013-05-30 Tom Tromey <tromey@redhat.com>
405
406 * tracepoint.c (trace_dump_command): Unconditionally call
407 do_cleanups.
408
752eb8b4
TT
4092013-05-30 Tom Tromey <tromey@redhat.com>
410
411 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
412 do_cleanups earlier.
413
e42d0aa5
TT
4142013-05-30 Tom Tromey <tromey@redhat.com>
415
416 * machoread.c (macho_symfile_read): Assign first cleanup to
417 'back_to'.
418
4bbc010a
TT
4192013-05-30 Tom Tromey <tromey@redhat.com>
420
421 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
422
b9635925
TT
4232013-05-30 Tom Tromey <tromey@redhat.com>
424
425 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
426
25f43500
TT
4272013-05-30 Tom Tromey <tromey@redhat.com>
428
429 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
430 call discard_cleanups.
431 (inf_ptrace_attach): Likewise.
432
d6a2e54a
TT
4332013-05-30 Tom Tromey <tromey@redhat.com>
434
435 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
436 return paths.
437 (mips_initialize): Likewise.
438 (common_open): Call do_cleanups.
439
48be7c1b
TT
4402013-05-30 Tom Tromey <tromey@redhat.com>
441
442 * utils.c (internal_vproblem): Call do_cleanups.
443
e61727ab
TT
4442013-05-30 Tom Tromey <tromey@redhat.com>
445
446 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
447
b81b921f
TT
4482013-05-30 Tom Tromey <tromey@redhat.com>
449
450 * cli/cli-script.c (setup_user_args): Don't return after error.
451
fe48dfb1
TT
4522013-05-30 Tom Tromey <tromey@redhat.com>
453
454 * somread.c (som_symtab_read): Call do_cleanups.
455
27833de7
TT
4562013-05-30 Tom Tromey <tromey@redhat.com>
457
458 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
459
5b3fca71
TT
4602013-05-30 Tom Tromey <tromey@redhat.com>
461
462 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
463 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
464 * interps.c (interpreter_exec_cmd): Call do_cleanups.
465 * source.c (show_substitute_path_command): Call do_cleanups.
466 (unset_substitute_path_command, set_substitute_path_command):
467 Likewise.
468 * symfile.c (load_command): Call do_cleanups.
469
af83e3f8
TT
4702013-05-30 Tom Tromey <tromey@redhat.com>
471
472 * contrib/cleanup_check.py: New file.
473 * contrib/gcc-with-excheck: Add option parsing.
474
564eac42
JB
4752013-05-30 Joel Brobecker <brobecker@adacore.com>
476
477 * windows-nat.c (windows_delete_thread): Add missing space
478 in cast expression.
479
47902076
HAQ
4802013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
481
482 * inferior.c (top level): Include tilde.h.
483 (add_inferior_command): Call tilde_expand on the value of 'exec'
484 argument.
485
23da373a
YQ
4862013-05-30 Pedro Alves <pedro@codesourcery.com>
487 Yao Qi <yao@codesourcery.com>
488
489 * tracepoint.c (encode_actions_1): Remove parameter 't'.
490 Caller update.
491 (encode_actions): Likewise.
492 * remote.c (remote_download_tracepoint): Caller update.
493 * tracepoint.h (encode_actions): Update declaration.
494
a6e6f791
PA
4952013-05-30 Pedro Alves <palves@redhat.com>
496
497 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
498 pointer.
499
36d25514
YQ
5002013-05-30 Yao Qi <yao@codesourcery.com>
501
502 * remote.c (remote_check_symbols): Remove unused parameter
503 'objfile'.
504 Declaration update.
505 (remote_start_remote, remote_new_objfile): Caller update.
506
62a813cc
YQ
5072013-05-30 Yao Qi <yao@codesourcery.com>
508
509 * mi/mi-cmds.c (mi_cmds): Define MI command
510 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
511 DEF_MI_CMD_CLI.
512
28439a30
PA
5132013-05-29 Pedro Alves <palves@redhat.com>
514
515 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
516 (remote_insert_watchpoint, remote_remove_watchpoint)
517 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
518 (remote_verify_memory, compare_sections_command)
519 (remote_search_memory): Set the general process/thread on the
520 remote side.
521
6ac1c082
PA
5222013-05-29 Pedro Alves <palves@redhat.com>
523
524 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
525 (_initialize_aarch64_tdep): Don't call
526 initialize_tdesc_aarch64_without_fpu.
527 * features/Makefile (WHICH): Remove reference to
528 aarch64-without-fpu.
529 * features/aarch64-without-fpu.c: Delete file.
530 * regformats/aarch64-without-fpu.dat: Delete file.
531
a73e3634
YQ
5322013-05-28 Yao Qi <yao@codesourcery.com>
533
534 * tracepoint.c (stringify_collection_list): Remove parameter
535 'string'.
536 (encode_actions): Caller update. Remove local variables.
537
c0ea94eb
YQ
5382013-05-24 Yao Qi <yao@codesourcery.com>
539
540 * tracepoint.c (TFILE_PID): Remove.
541 (tfile_open): Don't add thread and inferior.
542 (tfile_close): Don't set 'inferior_ptid'. Don't call
543 exit_inferior_silent.
544 (tfile_thread_alive): Remove.
545 (init_tfile_ops): Don't set field 'to_thread_alive' of
546 tfile_ops.
547
20d7f211
DE
5482013-05-23 Doug Evans <dje@google.com>
549
550 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
551
8658d16d
PA
5522013-05-23 Pedro Alves <palves@redhat.com>
553
554 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
555 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
556 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
557 Only define if HAVE_SOCKETS is defined.
558 * configure.ac: Check for sys/socket.h.
559 * config.in, configure: Regenerate.
560
21aa081e
PA
5612013-05-23 Pedro Alves <palves@redhat.com>
562
563 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
564 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
565 printing uint32_t variables.
566
c2d6af84
PA
5672013-05-23 Pedro Alves <palves@redhat.com>
568
569 * NEWS: Mention GDBserver range stepping support.
570
c1e36e3e
PA
5712013-05-23 Yao Qi <yao@codesourcery.com>
572 Pedro Alves <palves@redhat.com>
573
574 * gdbthread.h (struct thread_control_state) <may_range_step>: New
575 field.
576 * infcmd.c (step_once, until_next_command): Enable range stepping.
577 * infrun.c (displaced_step_prepare): Disable range stepping.
578 (resume): Disable range stepping if stepping over a breakpoint or
579 we have software watchpoints. If range stepping is enabled,
580 assert the thread is in the stepping range.
581 (clear_proceed_status_thread): Clear may_range_step.
582 (handle_inferior_event): Disable range stepping as soon as we know
583 the thread that hit the event. Re-enable it whenever we're going
584 to step with a step range.
585 * remote.c (struct vCont_action_support) <r>: New field.
586 (use_range_stepping): New global.
587 (remote_vcont_probe): Handle 'r' action.
588 (append_resumption): Append an 'r' action if the thread may range
589 step.
590 (show_range_stepping): New function.
591 (set_range_stepping): New function.
592 (_initialize_remote): Call add_setshow_boolean_cmd to register the
593 'set range-stepping' and 'show range-stepping' commands.
594 * NEWS: Mention range stepping, the new vCont;r action, and the
595 new "set/show range-stepping" commands.
596
d458bd84
PA
5972013-05-23 Yao Qi <yao@codesourcery.com>
598 Pedro Alves <palves@redhat.com>
599
600 * remote.c (struct vCont_action_support): New struct.
601 (struct remote_state) <support_vCont_t>: Remove field.
602 <vCont_actions_support>: New field.
603 (remote_vcont_probe, remote_stop_ns): Update.
604
ce4c476a
PA
6052013-05-23 Yao Qi <yao@codesourcery.com>
606 Pedro Alves <palves@redhat.com>
607
608 * gdbthread.h (pc_in_thread_step_range): New declaration.
609 * thread.c (pc_in_thread_step_range): New function.
610 * infrun.c (handle_inferior_event): Use it.
611
ce70887a
JB
6122013-05-23 Joel Brobecker <brobecker@adacore.com>
613
614 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
615 of sprintf.
616
55b87a52
KS
6172013-05-22 Keith Seitz <keiths@redhat.com>
618
619 * ada-lang.c (is_known_support_routine): Add explicit free of
620 'func_name' from find_frame_funname.
621 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
622 for func_name from find_frame_funname.
623 * python/py-frame.c (frapy_name): Add explicit free of
624 'name' from find_frame_funname.
625 * stack.c (find_frame_funname): Add comment explaining that
626 funcp must be freed by the caller.
627 Return copy of symbol names instead of pointers.
628 (print_frame): Add a cleanup for 'funname' from
629 find_frame_funname.
630 * stack.h (find_frame_funname): Remove "const" from
631 'funname' parameter.
632
5f2e6b00
TT
6332013-05-22 Tom Tromey <tromey@redhat.com>
634
635 PR c++/15401:
636 * c-valprint.c (c_value_print): Use value_addr for
637 references. Convert back to reference type with value_ref.
638
d85c4847
EZ
6392013-05-22 Eli Zaretskii <eliz@gnu.org>
640
641 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
642 unloaded DLL, it will be done by handle_solib_event. See
643 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
644 details.
645
54eb231c
PM
6462013-05-22 Phil Muldoon <pmuldoon@redhat.com>
647
648 * ui-out.c: Create typedef ui_out_level_p and define vector
649 operations for that type.
650 (struct ui_out): Use a vector instead of an array.
651 (current_level): Return level from a vector.
652 (push_level): Create a level in a vector.
653 (pop_level): Delete a level in a vector.
654 (ui_out_new): Create initial level zero level, and store in a
655 vector.
656 (ui_out_destroy): Add vector cleanup.
657
ac90359c
PA
6582013-05-22 Pedro Alves <palves@redhat.com>
659
660 * python/python-internal.h (gdb_Py_DECREF): Tag with
661 "ARI: editCase function".
662
6dcc1893
PP
6632013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
664
665 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
666
c8c735b9
PA
6672013-05-21 Pedro Alves <palves@redhat.com>
668
669 * python/py-prettyprint.c (apply_val_pretty_printer): Check
670 whether PRINTER is NULL before installing a Py_DECREF cleanup.
671 * python/py-utils.c (py_decref): Don't check for NULL before
672 calling Py_DECREF.
673
1915daeb
PA
6742013-05-21 Pedro Alves <palves@redhat.com>
675
676 * python/py-utils.c (py_decref): Remove extra braces.
677 (gdb_pymodule_addobject): Remove extra braces.
678 * python-internal.h (gdb_Py_DECREF): New static inline function.
679 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
680
bd9673a4
PW
6812013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
682
683 * breakpoints.c (detach_breakpoints): Do not
684 detach breakpoints locations with loc_type bp_loc_other.
685
ff6009d0
JK
6862013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
687
688 Workaround Python 2.6.
689 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
690 a block.
691
3641da11
JK
6922013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 Code cleanup: constification.
695 * solib.c (solib_ops): Make return type and ops variable type const.
696 (set_solib_ops): Make the new_ops parameter and ops variable const.
697 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
698 (solib_add, solib_keep_data_in_core, clear_solib)
699 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
700 (reload_shared_libraries, solib_global_lookup): Make the ops variable
701 const.
702 * solib.h (set_solib_ops): Make the new_ops parameter const.
703
776af39e
JB
7042013-05-21 Joel Brobecker <brobecker@adacore.com>
705
706 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
707 variable.
708 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
709 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
710 (SYSTEM_GDBINIT_FILES): New variables.
711 (all): Add stamp-system-gdbinit.
712 (stamp-system-gdbinit): New rule.
713 (clean-system-gdbinit, install-system-gdbinit)
714 (uninstall-system-gdbinit): New rules. Make them .PHONY.
715 (install-only): Add dependency on install-system-gdbinit.
716 (uninstall): Add dependency on uninstall-system-gdbinit.
717 (clean): Add dependency on clean-system-gdbinit.
718 * system-gdbinit/elinos.py: New file.
719 * system-gdbinit/wrs-linux.py: New file.
720
1509e573
JB
7212013-05-21 Joel Brobecker <brobecker@adacore.com>
722
723 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
724
c5867ab6
HZ
7252013-05-21 Hui Zhu <hui@codesourcery.com>
726
727 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
728 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
729 * mi/mi-cmd-break.c (ctype.h): New include.
730 (gdb_obstack.h): New include.
731 (mi_argv_to_format, mi_cmd_break_insert_1): New.
732 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
733 (mi_cmd_dprintf_insert): New.
734 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
735 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
736
7d38e38f
TT
7372013-05-20 Tom Tromey <tromey@redhat.com>
738
739 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
740
97b77b39
TT
7412013-05-20 Tom Tromey <tromey@redhat.com>
742
743 * python/py-value.c (valpy_get_dynamic_type): Simplify
744 dynamic_type assignment. Use Py_XINCREF.
745
53e66479
TT
7462013-05-20 Tom Tromey <tromey@redhat.com>
747
748 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
749
dcf87832
TT
7502013-05-20 Tom Tromey <tromey@redhat.com>
751
752 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
753 (gdbpy_selected_frame): Move object-construction code
754 out of TRY_CATCH.
755
aa36459a
TT
7562013-05-20 Tom Tromey <tromey@redhat.com>
757
758 * python/py-arch.c (gdbpy_initialize_arch): Use
759 gdb_pymodule_addobject.
760 * python/py-block.c (gdbpy_initialize_blocks): Use
761 gdb_pymodule_addobject.
762 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
763 gdb_pymodule_addobject.
764 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
765 gdb_pymodule_addobject.
766 * python/py-event.c (gdbpy_initialize_event_generic): Use
767 gdb_pymodule_addobject.
768 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
769 gdb_pymodule_addobject.
770 * python/py-evts.c (add_new_registry): Use
771 gdb_pymodule_addobject.
772 (gdbpy_initialize_py_events): Likewise.
773 * python/py-finishbreakpoint.c
774 (gdbpy_initialize_finishbreakpoints): Use
775 gdb_pymodule_addobject.
776 * python/py-frame.c (gdbpy_initialize_frames): Use
777 gdb_pymodule_addobject.
778 * python/py-function.c (gdbpy_initialize_functions): Use
779 gdb_pymodule_addobject.
780 * python/py-inferior.c (gdbpy_initialize_inferior): Use
781 gdb_pymodule_addobject.
782 * python/py-infthread.c (gdbpy_initialize_thread): Use
783 gdb_pymodule_addobject.
784 * python/py-objfile.c (gdbpy_initialize_objfile): Use
785 gdb_pymodule_addobject.
786 * python/py-param.c (gdbpy_initialize_parameters): Use
787 gdb_pymodule_addobject.
788 * python/py-progspace.c (gdbpy_initialize_pspace): Use
789 gdb_pymodule_addobject.
790 * python/py-symbol.c (gdbpy_initialize_symbols): Use
791 gdb_pymodule_addobject.
792 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
793 gdb_pymodule_addobject.
794 * python/py-type.c (gdbpy_initialize_types): Use
795 gdb_pymodule_addobject.
796 * python/py-utils.c (gdb_pymodule_addobject): New function.
797 * python/py-value.c (gdbpy_initialize_values): Use
798 gdb_pymodule_addobject.
799 * python/python-internal.h (gdb_pymodule_addobject): Declare.
800 * python/python.c (_initialize_python): Use
801 gdb_pymodule_addobject.
802
3d4a3c3e
TT
8032013-05-20 Tom Tromey <tromey@redhat.com>
804
805 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
806 * python/py-param.c (get_set_value, get_show_value): Use
807 explicit decrefs.
808 * python/python.c (start_type_printers, apply_type_printers):
809 Use explicit decrefs.
810
72ff8829
TT
8112013-05-20 Tom Tromey <tromey@redhat.com>
812
813 * python/py-evts.c (gdbpy_initialize_py_events): Don't
814 incref the module.
815
02146ba5
TT
8162013-05-20 Tom Tromey <tromey@redhat.com>
817
818 * python/python.c (gdbpy_run_events): Decref the result
819 of PyObject_CallObject.
820
33ee792f
TT
8212013-05-20 Tom Tromey <tromey@redhat.com>
822
823 * python/py-symtab.c (set_sal): Use
824 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
825 (symtab_and_line_to_sal_object): Update.
826
fcb49fc8
TT
8272013-05-20 Tom Tromey <tromey@redhat.com>
828
829 * python/py-param.c (compute_enum_values): Decref 'item'.
830
0646da15
TT
8312013-05-20 Tom Tromey <tromey@redhat.com>
832
833 * mi/mi-main.c: Include python-internal.h.
834 (mi_cmd_list_features): Check gdb_python_initialized.
835 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
836 (python_inferior_exit, python_new_objfile, add_thread_object)
837 (delete_thread_object, py_free_inferior): Check
838 gdb_python_initialized.
839 * python/py-prettyprint.c (apply_val_pretty_printer): Check
840 gdb_python_initialized.
841 * python/py-type.c (save_objfile_types): Check
842 gdb_python_initialized.
843 * python/python-internal.h (gdb_python_initialized): Declare.
844 * python/python.c (ensure_python_env): Throw exception if
845 Python not initialized.
846 (before_prompt_hook, source_python_script_for_objfile)
847 (start_type_printers, apply_type_printers,
848 free_type_printers): Check gdb_python_initialized.
849 * varobj.c (varobj_get_display_hint)
850 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
851 (install_new_value_visualizer, varobj_set_visualizer)
852 (value_get_print_value): Check gdb_python_initialized.
853
999633ed
TT
8542013-05-20 Tom Tromey <tromey@redhat.com>
855
856 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
857 Check errors.
858 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
859 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
860 Check errors.
861 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
862 Check errors.
863 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
864 Check errors.
865 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
866 Check errors.
867 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
868 init function to return 'int'.
869 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
870 Return 'int'. Check errors.
871 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
872 Check errors.
873 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
874 Return 'int'. Check errors.
875 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
876 Check errors.
877 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
878 Check errors.
879 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
880 Check errors.
881 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
882 Check errors.
883 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
884 Check errors.
885 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
886 Check errors.
887 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
888 Check errors.
889 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
890 Check errors.
891 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
892 Check errors.
893 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
894 Check errors.
895 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
896 Check errors.
897 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
898 Check errors.
899 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
900 Check errors.
901 * python/python-internal.h (gdbpy_initialize_auto_load,
902 gdbpy_initialize_values, gdbpy_initialize_frames,
903 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
904 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
905 gdbpy_initialize_blocks, gdbpy_initialize_types,
906 gdbpy_initialize_functions, gdbpy_initialize_pspace,
907 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
908 gdbpy_initialize_finishbreakpoints,
909 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
910 gdbpy_initialize_thread, gdbpy_initialize_inferior,
911 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
912 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
913 gdbpy_initialize_signal_event,
914 gdbpy_initialize_breakpoint_event,
915 gdbpy_initialize_continue_event,
916 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
917 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
918 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
919 * python/python.c (gdb_python_initialized): New global.
920 (gdbpy_initialize_events): Return 'int'. Check errors.
921 (_initialize_python): Check errors. Set
922 gdb_python_initialized.
923
18868860
TT
9242013-05-20 Tom Tromey <tromey@redhat.com>
925
926 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
927 Decref the reslut of PyObject_CallMethod.
928
9f4ff0c2
TT
9292013-05-20 Tom Tromey <tromey@redhat.com>
930
931 * python/py-event.c (gdbpy_initialize_event_generic): Return
932 early if PyType_Ready fails.
933
0d3a2e8a
TT
9342013-05-20 Tom Tromey <tromey@redhat.com>
935
936 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
937 as 'default' in the switch.
938
b86af38a
TT
9392013-05-20 Tom Tromey <tromey@redhat.com>
940
941 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
942 get_addr_from_python calls out of TRY_CATCH.
943 (infpy_write_memory, infpy_search_memory): Likewise.
944 * python/py-utils.c (get_addr_from_python): Return negative
945 value on error. Use TRY_CATCH.
946 * python/python-internal.h (get_addr_from_python): Use
947 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
948
c127ec58
TT
9492013-05-20 Tom Tromey <tromey@redhat.com>
950
951 * python/py-event.c (evpy_emit_event): Decref the
952 result of PyObject_CallFunctionObjArgs.
953
ba327838
TT
9542013-05-20 Tom Tromey <tromey@redhat.com>
955
956 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
957 Correctly decref.
958
d8191432
TT
9592013-05-20 Tom Tromey <tromey@redhat.com>
960
961 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
962
5d153bd1
TT
9632013-05-20 Tom Tromey <tromey@redhat.com>
964
965 * python/py-event.h (gdbpy_initialize_event_generic): Use
966 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
967 * python/py-evts.c (add_new_registry): Use
968 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
969 * python/python-internal.h
970 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
971
56cc411c
TT
9722013-05-20 Tom Tromey <tromey@redhat.com>
973
974 * python/py-arch.c (archpy_disassemble): Update.
975 * python/py-type.c (typy_get_composite, typy_lookup_typename)
976 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
977 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
978 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
979 macro.
980 (GDB_PY_HANDLE_EXCEPTION): Update.
981 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
982
8919e174
TT
9832013-05-20 Tom Tromey <tromey@redhat.com>
984
985 * python/python-internal.h (events_object_type): Remove.
986
9b08f225
TT
9872013-05-20 Tom Tromey <tromey@redhat.com>
988
989 * python/py-event.h (evpy_emit_event): Use
990 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
991 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
992 New macro.
993
f04010ff
TT
9942013-05-20 Tom Tromey <tromey@redhat.com>
995
996 * py-evtregistry.c (create_event_object): Decref
997 eventregistry_object if PyList_New fails.
998
3919fd96
TT
9992013-05-20 Tom Tromey <tromey@redhat.com>
1000
1001 * py-cmd.c (gdbpy_string_to_argv): Check result of
1002 PyList_New.
1003
0430e8cb
TT
10042013-05-20 Tom Tromey <tromey@redhat.com>
1005
1006 * python/python.c (before_prompt_hook): Add cleanup to
1007 decref 'hook'.
1008
764123e4
TT
10092013-05-20 Tom Tromey <tromey@redhat.com>
1010
1011 * python/py-function.c (fnpy_init): Decref result of
1012 PyObject_GetAttrString.
1013
634c58be
TT
10142013-05-20 Tom Tromey <tromey@redhat.com>
1015
1016 * python/py-threadevent.c (get_event_thread): Use
1017 CPYCHECKER_RETURNS_BORROWED_REF.
1018 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1019 New define.
1020 (pspace_to_pspace_object, objfile_to_objfile_object)
1021 (find_thread_object): Use it.
1022
62eec1a5
TT
10232013-05-20 Tom Tromey <tromey@redhat.com>
1024
1025 * python/py-arch.c (arch_object_type): Use
1026 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1027 * python/py-block.c (block_syms_iterator_object_type):
1028 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1029 * python/py-bpevent.c (breakpoint_event_object_type):
1030 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1031 * python/py-cmd.c (cmdpy_object_type): Use
1032 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1033 * python/py-continueevent.c (continue_event_object_type):
1034 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1035 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1036 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1037 * python/py-events.h (thread_event_object_type):
1038 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1039 * python/py-evtregistry.c (eventregistry_object_type): Use
1040 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1041 * python/py-exitedevent.c (exited_event_object_type):
1042 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1043 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1044 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1045 * python/py-function.c (fnpy_object_type): Use
1046 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1047 * python/py-inferior.c (inferior_object_type, membuf_object_type):
1048 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1049 * python/py-infthread.c (thread_object_type): Use
1050 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1051 * python/py-lazy-string.c (lazy_string_object_type):
1052 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1053 * python/py-newobjfileevent.c (new_objfile_event_object_type):
1054 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1055 * python/py-objfile.c (objfile_object_type): Use
1056 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1057 * python/py-param.c (parmpy_object_type):
1058 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1059 * python/py-progspace.c (pspace_object_type):
1060 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1061 * python/py-signalevent.c (signal_event_object_type):
1062 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1063 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1064 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1065 * python/py-type.c (type_object_type, field_object_type)
1066 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1067 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1068 define.
1069 (value_object_type, block_object_type, symbol_object_type)
1070 (event_object_type, stop_event_object_type, breakpoint_object_type)
1071 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1072
81ea8796
AT
10732013-05-20 Andreas Tobler <andreas@fgznet.ch>
1074
1075 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1076 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1077
a2ce51a0
DE
10782013-05-20 Doug Evans <dje@google.com>
1079
1080 When reading CU, stay in DWO. Be more tolerent of bad debug info.
1081 For Fission.
1082 * dwarf2read.c (struct dwarf2_per_cu_data): New member
1083 reading_dwo_directly.
1084 (struct signatured_type): New member dwo_unit.
1085 (struct die_reader_specs): New member comp_dir.
1086 (create_signatured_type_table_from_index): Use malloc for
1087 all_type_units instead of objfile's obstack.
1088 (create_all_type_units): Ditto.
1089 (fill_in_sig_entry_from_dwo_entry): New function.
1090 (add_type_unit): New function.
1091 (lookup_dwo_signatured_type): New function.
1092 (lookup_dwp_signatured_type): New function.
1093 (lookup_signatured_type): New arg cu. All callers updated.
1094 (init_cu_die_reader): Initialize comp_dir.
1095 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
1096 Change assert of matching type signatures to call error on mismatch.
1097 (lookup_dwo_unit): Add assert.
1098 (init_tu_and_read_dwo_dies): New function.
1099 (init_cutu_and_read_dies): Call it.
1100 (build_type_unit_groups): Handle case of no type unit groups created.
1101 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1102 (lookup_dwo_cutu): Tweak complaint.
1103 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1104 (dwarf2_per_objfile_free): Free all_type_units.
1105
a25cd31f
JB
11062013-05-20 Joel Brobecker <brobecker@adacore.com>
1107
1108 * windows-nat.c (handle_unload_dll): Add missing empty line.
1109
4d804846
JB
11102013-05-20 Joel Brobecker <brobecker@adacore.com>
1111
1112 * dwarf2read.c (prototyped_function_p): New function.
1113 (read_subroutine_type): Use it.
1114
1c432e72
JB
11152013-05-20 Joel Brobecker <brobecker@adacore.com>
1116
1117 * rs6000-aix-tdep.c: De-indent some example code provided
1118 as a comment.
1119
4feebbdd
EBM
11202013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
1121
1122 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1123 region is ok for a hardware watchpoint using the new ptrace interface
1124 on Power servers.
1125
7d0c9981
DE
11262013-05-17 Doug Evans <dje@google.com>
1127
1128 * NEWS: Mention new maintenance commands check-symtabs, and
1129 expand-symtabs, and renamed check-psymtabs.
1130 * psymtab.c (maintenance_check_psymtabs): Renamed from
1131 maintenance_check_symtabs. Only process already-expanded symbol
1132 tables.
1133 (_initialize_psymtab): Update.
1134 * symmisc.c (maintenance_check_symtabs): New function.
1135 (maintenance_expand_name_matcher): New function
1136 (maintenance_expand_file_matcher): New function
1137 (maintenance_expand_symtabs): New function.
1138 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1139 commands.
1140
6cbc7c3d
TT
11412013-05-17 Tom Tromey <tromey@redhat.com>
1142
1143 * python/py-inferior.c (infpy_read_memory): Don't call
1144 PyErr_SetString if PyObject_New fails.
1145 * python/py-frame.c (frame_info_to_frame_object): Don't call
1146 PyErr_SetString if PyObject_New fails.
1147
a48b32c0
L
11482013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
1149
1150 * acinclude.m4: Add check for dlopen in libdl.
1151 * configure.ac: Ditto.
1152 * configure: Regenerate.
1153
3de661e6
PM
11542013-05-17 Phil Muldoon <pmuldoon@redhat.com>
1155
1156 * frame.c (frame_stash): Convert to htab.
1157 (frame_addr_hash): New function.
1158 (frame_addr_hash_eq): New function.
1159 (frame_stash_create): Convert function to create
1160 a hash table.
1161 (frame_stash_add): Convert function to add an entry to a hash
1162 table.
1163 (frame_stash_find): Convert function to search the hash table.
1164 (frame_stash_invalidate): Convert function to empty the hash
1165 table.
1166 (get_frame_id): Only add to stash if a frame_id is created.
1167 (_initialize_frame): Call frame_stash_create.
1168
bb4168a9 11692013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
1170
1171 * configure.ac: Ensure MIG is available when building for GNU Hurd
1172 hosts.
1173 * configure: Regenerate.
1174
d1be3247
JB
11752013-05-16 Joel Brobecker <brobecker@adacore.com>
1176
1177 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1178
b8fea896
JB
11792013-05-16 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (ada_make_symbol_completion_list): Make sure
1182 all cleanups are done before returning from this function.
1183
af880d85
JB
11842013-05-15 Joel Brobecker <brobecker@adacore.com>
1185
1186 * utils.h: #include "exceptions.h".
1187 (enum errors): Remove partial declaration.
1188
356a5233
JB
11892013-05-15 Joel Brobecker <brobecker@adacore.com>
1190
1191 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1192 * gdbarch.h, gdbarch.c: Regenerate.
1193 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1194 handling.
1195
1196 * rs6000-aix-tdep.h: New file.
1197 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1198 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1199 "xml-utils.h".
1200 (struct field_info, struct ld_info_desc): New types.
1201 (ld_info32_desc, ld_info64_desc): New static constants.
1202 (struct ld_info): New type.
1203 (rs6000_aix_extract_ld_info): New function.
1204 (rs6000_aix_shared_library_to_xml): Likewise.
1205 (rs6000_aix_ld_info_to_xml): Likewise.
1206 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1207 (rs6000_aix_init_osabi): Add call to
1208 set_gdbarch_core_xfer_shared_libraries_aix.
1209 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1210 Remove "xml-utils.h" include.
1211 (LdInfo): Delete typedef.
1212 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1213 Delete macros.
1214 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1215 Adjust code accordingly.
1216 (rs6000_core_ldinfo): Delete, folded into
1217 rs6000_aix_core_xfer_shared_libraries_aix.
1218 (rs6000_xfer_shared_library): Delete.
1219 (rs6000_xfer_shared_libraries): Reimplement.
1220
742ce053
MM
12212013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1222
1223 * record.c (record_goto_cmdlist): New.
1224 (cmd_record_goto): Split into this ...
1225 (cmd_record_goto_begin): ... this
1226 (cmd_record_goto_end): ... and this.
1227 (_initialize_record): Change "record goto" to prefix command.
1228 Add commands for "record goto begin" and "record goto end".
1229 Add an alias for "record goto start" to "record goto begin".
1230
e93ba630
JK
12312013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1232
1233 * linespec.c (convert_linespec_to_sals): New comment for
1234 SOURCE_FILENAME assignment.
1235
5821aace
JK
12362013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1237
1238 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1239 internal_warning.
1240
a1b8c4cc
TT
12412013-05-14 Tom Tromey <tromey@redhat.com>
1242
1243 * eval.c (parse_and_eval_long): Make 'exp' const.
1244 * value.h (parse_and_eval_long): Update.
1245
23b3a2c3
TT
12462013-05-14 Tom Tromey <tromey@redhat.com>
1247
1248 * ui-file.c (gdb_fopen): Make arguments const.
1249 * ui-file.h (gdb_fopen): Make arguments const.
1250
ca623f82
TT
12512013-05-14 Tom Tromey <tromey@redhat.com>
1252
1253 * remote.c (remote_set_trace_notes): Make arguments const.
1254 * target.c (update_current_target): Update cast.
1255 * target.h (to_set_trace_notes): Make arguments const.
1256
503ebb2c
TT
12572013-05-14 Tom Tromey <tromey@redhat.com>
1258
1259 * go32-nat.c (go32_terminal_info): Make 'args' const.
1260 * inferior.h (child_terminal_info): Update.
1261 * inflow.c (child_terminal_info): Make 'args' const.
1262 * target.c (default_terminal_info): Make 'args' const.
1263 (debug_to_terminal_save_ours): Likewise.
1264 * target.h (struct target_ops) <to_terminal_info>: Make argument
1265 const.
1266
85e1311a
TT
12672013-05-13 Tom Tromey <tromey@redhat.com>
1268
1269 * gcore.c (create_gcore_bfd): Make 'filename' const.
1270 * gcore.h (create_gcore_bfd): Make 'filename' const.
1271 * record-full.c (record_full_save): Make 'recfilename' const.
1272 * target.c (target_save_record): Make 'filename' const.
1273 * target.h (struct target_ops) <to_save_record>: Make 'filename'
1274 const.
1275 (target_save_record): Likewise.
1276
d62bfeaf
TT
12772013-05-13 Tom Tromey <tromey@redhat.com>
1278
92ce080b 1279 PR gdb/15338:
d62bfeaf
TT
1280 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1281 ranges section has been read.
1282
ac1ca910
TT
12832013-05-13 Tom Tromey <tromey@redhat.com>
1284
1285 PR exp/15364:
1286 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1287 STRUCTOP_PTR>: Return a not_lval value for
1288 EVAL_AVOID_SIDE_EFFECTS.
1289 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1290 for EVAL_AVOID_SIDE_EFFECTS.
1291
36d1c68c
JB
12922013-05-13 Joel Brobecker <brobecker@adacore.com>
1293
1294 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1295 floating point registers to register type before storing
1296 value.
1297 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1298 Likewise.
1299
21ff4686
TT
13002013-05-10 Joel Brobecker <brobecker@adacore.com>
1301 Tom Tromey <tromey@redhat.com>
1302
1303 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1304 New functions.
1305 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1306 Declare.
1307 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1308 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1309 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1310 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1311
d3685d60
TT
13122013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1313 Tom Tromey <tromey@redhat.com>
1314
1315 PR build/15414:
1316 * configure: Rebuild.
1317 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1318 with -Wno-format.
1319
eb9fe518
PA
13202013-05-10 Pedro Alves <palves@redhat.com>
1321
1322 * remote.c (_initialize_remote): Fix spelling of
1323 qXfer:traceframe-info:read packet in packet config command.
1324
9779ab84
PA
13252013-05-10 David Taylor <dtaylor@emc.com>
1326
1327 PR remote/15455
1328
1329 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1330 "QTro" at start of packet.
1331
060cfbef
JB
13322013-05-10 Joel Brobecker <brobecker@adacore.com>
1333
1334 * solib-aix.c (solib_aix_relocate_section_addresses):
1335 For the .bss section action, apply the same offset as
1336 the .data section.
1337
ab1c4e88
JB
13382013-05-10 Joel Brobecker <brobecker@adacore.com>
1339
1340 * solib-aix.c (solib_aix_relocate_section_addresses):
1341 Remove FIXME comment.
1342
c1357578
JB
13432013-05-10 Joel Brobecker <brobecker@adacore.com>
1344
1345 PR tdep/15420:
1346 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1347 New functions, directly copied from sparc-sol-thread.c.
1348 * sparc-sol-thread.c: Delete.
1349 * configure.ac: Remove code handling sparc-solaris-thread.c.
1350 * configure: Regenerate.
1351
1e611234
PM
13522013-05-10 Phil Muldoon <pmuldoon@redhat.com>
1353
1354 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1355 filter logic.
1356 (backtrace_command): Add "no-filters" option parsing.
1357 (_initialize_stack): Alter help to reflect "no-filters" option.
1358 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1359 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1360 (py-frame.o): Add target
1361 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1362 filter files.
1363 * python/python.h: Add new frame filter constants, and flag enum.
1364 (apply_frame_filter): Add definition.
1365 * python/python.c (apply_frame_filter): New non-Python
1366 enabled function.
1367 * python/py-utils.c (py_xdecref): New function.
1368 (make_cleanup_py_xdecref): Ditto.
1369 * python/py-objfile.c: Declare frame_filters dictionary.
1370 (objfpy_dealloc): Add frame_filters dealloc.
1371 (objfpy_new): Initialize frame_filters attribute.
1372 (objfile_to_objfile_object): Ditto.
1373 (objfpy_get_frame_filters): New function.
1374 (objfpy_set_frame_filters): New function.
1375 * python/py-progspace.c: Declare frame_filters dictionary.
1376 (pspy_dealloc): Add frame_filters dealloc.
1377 (pspy_new): Initialize frame_filters attribute.
1378 (pspacee_to_pspace_object): Ditto.
1379 (pspy_get_frame_filters): New function.
1380 (pspy_set_frame_filters): New function.
1381 * python/py-framefilter.c: New file.
1382 * python/lib/gdb/command/frame_filters.py: New file.
1383 * python/lib/gdb/frames.py: New file.
1384 * python/lib/gdb/__init__.py: Initialize global frame_filters
1385 dictionary
1386 * python/lib/gdb/FrameDecorator.py: New file.
1387 * python/lib/gdb/FrameIterator.py: New file.
1388 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1389 * mi/mi-cmds.h: Declare.
1390 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1391 --no-frame-filter logic, and Python frame filter logic.
1392 (stack_enable_frame_filters): New function.
1393 (parse_no_frame_option): Ditto.
1394 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1395 filter logic.
1396 (mi_cmd_stack_list_locals): Ditto.
1397 (mi_cmd_stack_list_args): Ditto.
1398 (mi_cmd_stack_list_variables): Ditto.
1399 * NEWS: Add frame filter note.
1400
2cb9c859
DE
14012013-05-09 Doug Evans <dje@google.com>
1402
6bf667bb
DE
1403 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1404 All callers updated.
1405 (syms_from_objfile): Ditto. Make static.
1406 (symbol_file_add_with_addrs): Renamed from
1407 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
1408 num_offsets. All callers updated.
1409 * symfile.h (syms_from_objfile): Delete.
1410
2cb9c859
DE
1411 * symfile.c (decrement_reading_symtab): Add assert.
1412 (increment_reading_symtab): Ditto.
1413
40aea477
JB
14142013-05-09 Joel Brobecker <brobecker@adacore.com>
1415
1416 * source.c (forward_search_command): Replace call to getc
1417 by call to fgetc.
1418 (reverse_search_command): Likewise.
1419
680d1742
DE
14202013-05-08 Doug Evans <dje@google.com>
1421
1422 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1423 matching test.
1424
17e760ae
JB
14252013-05-08 Joel Brobecker <brobecker@adacore.com>
1426
1427 * sol-thread.c (info_cb): Factorize the code a little.
1428
c0f5f490
JB
14292013-05-08 Joel Brobecker <brobecker@adacore.com>
1430
1431 * sol-thread.c (info_cb): Rework the output of the "maintenance
1432 info sol-threads" command a bit.
1433
5d74e061
JB
14342013-05-08 Joel Brobecker <brobecker@adacore.com>
1435
1436 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1437 Replace ti.ti_startfunc by ti.ti_pc.
1438
814a3ff7
JB
14392013-05-08 Joel Brobecker <brobecker@adacore.com>
1440
1441 * solib-aix.c (solib_aix_free_library_list): New function
1442 for the case where HAVE_LIBEXPAT is not defined.
1443
58ce7251
SDJ
14442013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1445
1446 PR breakpoints/15413:
1447 * breakpoint.c (condition_completer): Simplify the code to
1448 disconsider multiple locations of breakpoints when completing the
1449 "condition" command.
1450
be8b1ea6
PM
14512013-05-07 Pierre Muller <muller@sourceware.org>
1452
1453 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1454 instead of <sys/wait.h>.
1455
1e52bda6
PM
14562013-05-07 Pierre Muller <muller@sourceware.org>
1457
1458 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1459 trailing new line from warning message.
1460
27fd0c6b
PM
14612013-05-07 Pierre Muller <muller@sourceware.org>
1462
1463 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1464 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1465
e228ac87
JB
14662013-05-07 Joel Brobecker <brobecker@adacore.com>
1467
1468 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1469 error message (ARI fix).
1470
14712013-05-07 Joel Brobecker <brobecker@adacore.com>
1472
1473 * features/library-list-aix.dtd: Replace library-list by
1474 library-list-aix.
1475 * rs6000-nat.c: Replace library-list by library-list-aix
1476 throughout.
1477 * solib-aix.c: Likewise.
1478
14792013-05-07 Joel Brobecker <brobecker@adacore.com>
1480
1481 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1482 Renames TARGET_OBJECT_AIX_LIBRARIES.
1483 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1484 TARGET_OBJECT_LIBRARIES_AIX throughout.
1485 * solib-aix.c: Likwise.
1486
26a4dda9
YQ
14872013-05-07 Yao Qi <yao@codesourcery.com>
1488
1489 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1490 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1491
3582629f
YQ
14922013-05-07 Yao Qi <yao@codesourcery.com>
1493
1494 * solib-dsbt.c (enable_break): Declare.
1495 (dsbt_current_sos): Remove call to enable_break2.
1496 (enable_break2): Rename to enable_break. Set solib breakpoint
1497 on '_dl_debug_state'.
1498 (enable_break): Remove.
1499
aacbb8a5
LM
15002013-05-07 Luis Machado <lgustavo@codesourcery.com>
1501
1502 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1503 debug state prior to replicating existing hardware watchpoints or
1504 breakpoints.
1505
0c013353
JK
15062013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1507
1508 * gcore.c (gcore_create_callback): Ignore sections with
1509 separate_debug_objfile_backlink != NULL.
1510
a1217d97
SL
15112013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1512 Andrew Jenner <andrew@codesourcery.com>
1513 Chung-Lin Tang <cltang@codesourcery.com>
1514 Julian Brown <julian@codesourcery.com>
1515
1516 Based on the nios2-elf port from Altera Corporation.
1517
1518 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1519 nios2-linux-tdep.o.
1520 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1521 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1522 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1523 * nios2-tdep.h: New.
1524 * nios2-tdep.c: New.
1525 * nios2-linux-tdep.c: New.
1526 * features/Makefile (WHICH): Add nios2-linux.
1527 (nios2-linux-expedite): Set.
1528 * features/nios2-cpu.xml: New.
1529 * features/nios2.xml: New.
1530 * features/nios2-linux.xml: New.
1531 * features/nios2.c: New (autogenerated).
1532 * features/nios2-linux.c: New (autogenerated).
1533 * regformats/nios2-linux.dat: New (autogenerated).
1534 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1535 and commands.
1536
0892cb63
DE
15372013-05-06 Doug Evans <dje@google.com>
1538
3b7bacac
DE
1539 * symfile.c: Whitespace cleanup.
1540
0892cb63
DE
1541 * solist.h (struct target_so_ops): New member clear_so.
1542 * solib-svr4.c (svr4_clear_so): New function.
1543 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1544 * solib.c (clear_so): Renamed from free_so_symbols.
1545 All callers updated. Call target clear_so if it exists.
1546
40501e00
TT
15472013-05-06 Tom Tromey <tromey@redhat.com>
1548
1549 * ada-lang.c (ada_value_primitive_packed_val): Don't
1550 call value_incref.
1551 * value.c (set_value_parent): Incref the new parent and decref
1552 the old parent.
1553 (value_copy, value_primitive_field): Use set_value_parent.
1554
b6807d98
TT
15552013-05-06 Tom Tromey <tromey@redhat.com>
1556
1557 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1558 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1559 if needed.
1560 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1561 * dwarf2read.c (write_constant_as_bytes)
1562 (dwarf2_fetch_constant_bytes): New functions.
1563
3aef2284
TT
15642013-05-06 Tom Tromey <tromey@redhat.com>
1565
1566 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1567 parameters.
1568 (dwarf2_const_value_attr): Update.
1569
66f65e2b
TT
15702013-05-06 Tom Tromey <tromey@redhat.com>
1571
1572 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1573 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1574 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1575 Remove declaration.
1576
7919a973
TT
15772013-05-06 Tom Tromey <tromey@redhat.com>
1578
1579 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1580 objfile's obstack.
1581
a7bfba49
DE
15822013-05-06 Doug Evans <dje@google.com>
1583
3189cb12
DE
1584 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1585 * stabsread.h (process_one_symbol): Update declaration.
1586 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1587 * elfread.c (elf_symfile_relocate_probe): Ditto.
1588 * psymtab.c (relocate_psymtabs): Ditto.
1589 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1590 (objfile_relocate): Ditto.
1591 * objfiles.h (objfile_relocate): Update declaration.
1592 * symfile.c (relative_addr_info_to_section_offsets): Constify
1593 addrs parameter.
1594 (default_symfile_offsets): Ditto.
1595 (syms_from_objfile_1): Constify offsets parameter.
1596 (syms_from_objfile): Ditto.
1597 (symbol_file_add_with_addrs_or_offsets): Ditto.
1598 (symfile_map_offsets_to_segments): Constify data parameter.
1599 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1600 delta parameters of member relocate.
1601 (struct sym_probe_fns): Constify new_offsets,
1602 delta parameters of member sym_relocate_probe.
1603 (struct sym_fns): Constify section_addr_info parameter of member
1604 sym_offsets.
1605 (relative_addr_info_to_section_offsets): Update declaration.
1606 (default_symfile_offsets): Ditto.
1607 (syms_from_objfile): Ditto.
1608 (symfile_map_offsets_to_segments): Ditto.
1609
a7bfba49
DE
1610 * symfile.c (syms_from_objfile_1): Use correct section count when
1611 objfile->sf == NULL.
1612
5f8e0b8f
MF
16132013-05-06 Mike Frysinger <vapier@gentoo.org>
1614
1615 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1616
ea52d893
DE
16172013-05-06 Doug Evans <dje@google.com>
1618
1619 * psympriv.h (struct partial_symtab): Augment comment for member
1620 section_offsets.
1621
4d1eb6b4
JB
16222013-05-06 Joel Brobecker <brobecker@adacore.com>
1623
1624 Reimplement shared library support on ppc-aix...
1625 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1626 * features/library-list-aix.dtd: New file.
1627 * solib-aix.h, solib-aix.c: New file.
1628 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1629 (rs6000_find_toc_address_hook): Delete.
1630 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1631 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1632 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1633 "xml-utils.h".
1634 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1635 (vmap_symtab, fixup_breakpoints): Delete.
1636 (rs6000_xfer_shared_libraries): New function.
1637 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1638 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1639 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1640 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1641 (rs6000_xfer_shared_library): New function.
1642 (find_toc_address): Delete.
1643 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1644 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1645 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1646 before creating minimal symbol. Adjust function description
1647 accordingly.
1648 (scan_xcoff_symtab): Replace call to
1649 prim_record_minimal_symbol_and_info by call to
1650 record_minimal_symbol.
1651 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1652 around default_symfile_offsets.
1653 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1654 powerpc-aix targets.
1655 * config/rs6000/nm-rs6000.h: Delete.
1656 * config/powerpc/aix.mh (NAT_FILE): Delete.
1657 (NATDEPFILES): Remove xcoffsolib.o.
1658 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1659 (ALL_TARGET_OBS): Add solib-aix.o.
1660 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1661 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1662 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1663 * xcoffsolib.h, xcoffsolib.c: Delete.
1664
1665 * solib.c (reload_shared_libraries): Remove reference to
1666 SOLIB_CREATE_INFERIOR_HOOK.
1667 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1668 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1669 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1670 comment.
1671 * corelow.c (deprecated_core_resize_section_table): Delete.
1672 * exec.c: Remove include of xcoffsolib.h".
1673 (map_vmap, vmap): Delete.
1674 (exec_close_1): Remove references to vmap.
1675 (exec_file_attach): Remove vmap handling code, and reference
1676 to DEPRECATED_IBM6000_TARGET.
1677 (bfdsec_to_vmap): Delete.
1678 (exec_files_info): Remove block of code handling VMAP.
1679 * infcmd.c (post_create_inferior): Remove reference to
1680 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1681 * infrun.c (follow_exec): Remove reference to
1682 SOLIB_CREATE_INFERIOR_HOOK.
1683 * stack.c (print_frame): Remove reference to PC_SOLIB.
1684 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1685 (dsbt_relocate_main_executable): Likewise.
1686 * solib-frv.c (frv_current_sos): Likewise.
1687
0c4f667c
JB
16882013-05-06 Joel Brobecker <brobecker@adacore.com>
1689
1690 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1691 to target_write_memory and target_read_memory.
1692
726ce67c
JB
16932013-05-06 Joel Brobecker <brobecker@adacore.com>
1694
1695 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1696 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1697
c8c9911f
JB
16982013-05-06 Joel Brobecker <brobecker@adacore.com>
1699
1700 * darwin-nat.c: Replace all "%x" instances in format strings
1701 into "0x%x" throughout.
1702
fda184b6
JB
17032013-05-06 Joel Brobecker <brobecker@adacore.com>
1704
1705 * darwin-nat.c (darwin_mourn_inferior): Replace call to
1706 gdb_assert by call to MACH_CHECK_ERROR.
1707 (darwin_attach_pid): Raise an error rather than a failed
1708 assertion when various system calls failed. Report a warning
1709 instead of raising a failed assertion when PREV_NOT is not NULL
1710 after call to mach_port_request_notification.
1711 (darwin_ptrace_me): Raise an error rather than a failed
1712 assertion when read returns nonzero.
1713
d1d69afb
JB
17142013-05-06 Joel Brobecker <brobecker@adacore.com>
1715
1716 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1717
dc90b24d
JK
17182013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1721
faab9922
JK
17222013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1723
1724 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1725 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1726 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
1727 a stale cleanup. Fix double free of NAME.
1728
e0ea48a0
EZ
17292013-05-04 Eli Zaretskii <eliz@gnu.org>
1730
1731 * windows-nat.c (windows_delete_thread): Accept an additional
1732 argument, the thread's exit code, and announce thread death when
1733 print_thread_events is non-zero and we are deleting a thread that
1734 is not the main thread.
1735 (get_windows_debug_event): Pass thread exit code to
1736 windows_delete_thread.
1737
83b2706a
KB
17382013-05-03 Kevin Buettner <kevinb@redhat.com>
1739
1740 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1741 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1742 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1743 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1744 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1745 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1746 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1747 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1748 (gdbarch_tdep): New struct.
1749 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1750 E_NUM_REGS.
1751 (v850e3v5_register_name): New function.
1752 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1753 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
1754 code handling the struct return conventions for the RH850 ABI.
1755 Update all callers.
1756 (v850_eight_byte_align_p): New function.
1757 (v850_push_call_dummy): Push structs by value, not by reference
1758 for the RH850 ABI. Add support for eight byte alignment.
1759 (v850_dbtrap_breakpoint_from_pc): New function.
1760 (v850_gdbarch_init): Add ABI detection code. Register
1761 v850e3v5_register_name for the v850e3v5 architecture. Set the
1762 number of registers for v850e3v5. Register
1763 v850_dbtrap_breakpoint_from_pc as appropriate.
1764 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1765
d445b2f6
DE
17662013-05-03 Doug Evans <dje@google.com>
1767
1768 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1769 of bfd_count_sections.
1770 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1771 * symfile.c (default_symfile_offsets): Ditto.
1772 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
1773 one entry, not bfd_count_sections entries.
1774
b3ce41ea
KB
17752013-05-03 Kevin Buettner <kevinb@redhat.com>
1776
1777 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1778 `save' and `restore' register groups. Don't include SPL
1779 or SPH in these groups.
1780 (rl78_dwarf_reg_to_regnum): Adjust mapping for
1781 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
1782 RL78_ES_REGNUM, and RL78_CS_REGNUM.
1783 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
1784 dwarf2_append_unwinders().
1785
96f7d3f1
PW
17862013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1787
1788 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1789 ignore SIGINT and SIGTRAP in case these internal signals are
1790 caught explicitely.
1791
b9dd1947
JB
17922013-05-01 Joel Brobecker <brobecker@adacore.com>
1793
1794 * darwin-nat.c (darwin_read_write_inferior): Change types
1795 of parameters rdaddr and wraddr to "gdb_byte *". Change type
1796 of copy_count to "mach_msg_type_number_t".
1797 (darwin_read_dyld_info): Change type of parameter
1798 rdaddr to "gdb_byte *".
1799
4ca18a63
JB
18002013-05-01 Joel Brobecker <brobecker@adacore.com>
1801
1802 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1803 of &info->load_map from "char *" to "gdb_byte *".
1804
2b692d32
JB
18052013-05-01 Joel Brobecker <brobecker@adacore.com>
1806
1807 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1808 from "char *" to "gdb_byte *".
1809 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1810
a98c29a0
DE
18112013-04-30 Doug Evans <dje@google.com>
1812
6a506a2d
DE
1813 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1814 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1815 DWO stub. If DWO isn't found, just use stub.
1816 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1817
a98c29a0
DE
1818 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1819 calling init_cutu_and_read_dies.
1820
f92b06da
WT
18212013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1822
1823 * target-descriptions.c (maint_print_c_tdesc_cmd):
1824 Add case to parse structures as register types and
1825 bitfields.
1826
95eebdcc
WT
18272013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
1828
1829 * MAINTAINERS (Write After Approval): Add myself to the list.
1830
019c1128
JB
18312013-04-30 Joel Brobecker <brobecker@adacore.com>
1832
1833 * sol-thread.c (rw_common): Change type of parameter "buf"
1834 to "gdb_byte *".
1835 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1836 rw_common to "gdb_byte *" instead of "char *".
1837
5812197c
JB
18382013-04-30 Joel Brobecker <brobecker@adacore.com>
1839
1840 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1841 of local variable msym to const struct bound_minimal_symbol.
1842 Adjust use accordingly.
1843 [ti.ti_state == TD_THR_SLEEP]: Likewise.
1844
ecccb813
TS
18452013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
1846
1847 * i386gnu-nat.c (CREG_OFFSET): New macro.
1848 (creg_offset): New array.
1849 (CREG_ADDR): Use creg_offset instead of reg_offset.
1850
f1d02dd4 18512013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
1852
1853 * mep-tdep.c (mep_write_pc): Delete.
1854 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1855 Add call to set_gdbarch_pc_regnum.
1856
f1d02dd4 18572013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
1858
1859 * common/filestuff.c: Replace #include <dirent.h> by
1860 #include "gdb_dirent.h".
1861
f1d02dd4 18622013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
1863
1864 * common/filestuff.c: Replace #include <sys/stat.h> by
1865 #include "gdb_stat.h".
1866
b385a60d
PM
18672013-04-29 Pierre Muller <muller@sourceware.org>
1868
1869 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1870 editCase function rule.
1871 (get_DW_AT_signature_type): Likewise.
1872
d27b54ad
JB
18732013-04-29 Joel Brobecker <brobecker@adacore.com>
1874
1875 * m32r-tdep.c (m32r_write_pc): Delete.
1876 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1877 Add call to set_gdbarch_pc_regnum.
1878
47d21dc5
PM
18792013-04-29 Pierre Muller <muller@sourceware.org>
1880
1881 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1882
9056882e
JB
18832013-04-29 Joel Brobecker <brobecker@adacore.com>
1884
1885 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1886
7ee4732a
YQ
18872013-04-28 Yao Qi <yao@codesourcery.com>
1888
1889 * solib-dsbt.c (fetch_loadmap): Re-indent.
1890 (displacement_from_map, enable_break2): Likewise.
1891 (dsbt_relocate_section_addresses): Likewise.
1892
2260af53 18932013-04-26 Joel Brobecker <brobecker@adacore.com>
1894
1895 GDB 7.6 released.
1896
ff546935
TT
18972013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
1898
1899 PR corefiles/14983:
1900 * dwarf2read.c (process_full_comp_unit): Always create a static
1901 block.
1902
40fb6c5e
HZ
19032013-04-25 Hui Zhu <hui@codesourcery.com>
1904
1905 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1906 to loc->cmd_bytecode.
1907
74e04d1c
DE
19082013-04-24 Doug Evans <dje@google.com>
1909
1910 * dwarf2read.c (setup_type_unit_groups): Fix comment.
1911
3cf62c1d
KS
19122013-04-22 Keith Seitz <keiths@redhat.com>
1913
1914 * tracepoint.c (trace_save): Call the writer's start method.
1915
bf9e4d0c
MB
19162013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
1917
1918 PR gdb/10462
1919 * cli/cli-decode.c (lookup_command): Show an error if there is no space
1920 before argument.
1921
5d71132c
TT
19222013-04-23 Tom Tromey <tromey@redhat.com>
1923
1924 * common/filestuff.c: Check USE_WIN32API before including
1925 sys/socket.h.
1926 (HAVE_F_GETFD): New define.
1927 (mark_cloexec): Check HAVE_F_GETFD.
1928 (gdb_open_cloexec): Change 'mode' to unsigned long.
1929 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1930 (gdb_pipe_cloexec): Check HAVE_PIPE.
1931 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1932 long.
1933
a11cfd87
HZ
19342013-04-23 Hui Zhu <hui@codesourcery.com>
1935
1936 PR gdb/15293
a11cfd87
HZ
1937 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1938
2d9442cc
HZ
19392013-04-23 Hui Zhu <hui@codesourcery.com>
1940
1941 PR gdb/15165
2d9442cc
HZ
1942 * breakpoint.c (dprintf_print_recreate): New.
1943 (save_breakpoints): Let it not save dprintf commands.
1944 (initialize_breakpoint_ops): Set dprintf_print_recreate.
1945
614c279d
TT
19462013-04-22 Tom Tromey <tromey@redhat.com>
1947
1948 PR gdb/7912:
1949 * Makefile.in (SFILES): Add filestuff.c
1950 (COMMON_OBS): Add filestuff.o.
1951 (filestuff.o): New target.
1952 * auto-load.c (auto_load_objfile_script_1): Use
1953 gdb_fopen_cloexec.
1954 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1955 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1956 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1957 * common/agent.c (gdb_connect_sync_socket): Use
1958 gdb_socket_cloexec.
1959 * common/filestuff.c: New file.
1960 * common/filestuff.h: New file.
1961 * common/linux-osdata.c (linux_common_core_of_thread)
1962 (command_from_pid, commandline_from_pid, print_source_lines)
1963 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1964 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1965 gdb_fopen_cloexec.
1966 * common/linux-procfs.c (linux_proc_get_int)
1967 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1968 * config.in, configure: Rebuild.
1969 * configure.ac: Don't check for sys/socket.h. Check for
1970 fdwalk, pipe2.
1971 * corelow.c (core_open): Use gdb_open_cloexec.
1972 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1973 * fork-child.c (fork_inferior): Call close_most_fds.
1974 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1975 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1976 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1977 Use gdb_fopen_cloexec.
1978 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1979 gdb_open_cloexec.
1980 (linux_async_pipe): Use gdb_pipe_cloexec.
1981 * remote-fileio.c (remote_fileio_func_open): Use
1982 gdb_open_cloexec.
1983 * remote.c (remote_file_put, remote_file_get): Use
1984 gdb_fopen_cloexec.
1985 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1986 close_most_fds.
1987 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1988 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1989 * solib.c (solib_find): Use gdb_open_cloexec.
1990 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1991 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1992 (tfile_open): Use gdb_open_cloexec.
1993 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1994 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1995 * xml-support.c (xml_fetch_content_from_file): Use
1996 gdb_fopen_cloexec.
1997 * main.c (captured_main): Call notice_open_fds.
1998
5fda2332
EBM
19992013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
2000
2001 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2002 'char *' to 'gdb_byte *'.
2003 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2004 'gdb_byte'.
2005
eb6c553b
YQ
20062013-04-22 Yao Qi <yao@codesourcery.com>
2007
2008 * infrun.c: Fix typo in comment.
2009
9991b207
SDJ
20102013-04-22 Andrew Haley <aph@redhat.com>
2011
2012 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2013 instead of "long".
2014
8b4833e3
YQ
20152013-04-20 Yao Qi <yao@codesourcery.com>
2016
2017 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2018 'char *' to 'gdb_byte *'. Cast the return value of
2019 'bt_ctf_get_char_array' to 'gdb_byte *'.
2020
bd3f3b55
PA
20212013-04-19 Pedro Alves <palves@redhat.com>
2022
2023 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2024 -Wpointer-sign.
2025 * configure: Regenerate.
2026
c49e7f76
PA
20272013-04-19 Pedro Alves <palves@redhat.com>
2028
2029 * ser-tcp.c (net_read_prim): Cast second argument to recv to
2030 'void *'.
2031
12ff8552
PA
20322013-04-19 Pedro Alves <palves@redhat.com>
2033
2034 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2035 Change type of 'myaddr' parameter to gdb_byte pointer.
2036 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
2037 to 'long long' pointer instead of to 'unsigned long long'.
2038 (monitor_write_memory_block, monitor_read_memory_single)
2039 (monitor_read_memory): Change type of 'myaddr' parameter to
2040 gdb_byte pointer.
2041
9c37696b
PA
20422013-04-19 Pedro Alves <palves@redhat.com>
2043
2044 * record.c (validate_history_size): Make parameter 'setting'
2045 unsigned.
2046
a398505b
PA
20472013-04-19 Pedro Alves <palves@redhat.com>
2048
2049 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2050 to 'gdb_byte *'.
2051
9f8afa72
PA
20522013-04-19 Pedro Alves <palves@redhat.com>
2053
2054 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2055 local to int.
2056
c714b426
PA
20572013-04-19 Pedro Alves <palves@redhat.com>
2058
2059 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2060 * ada-tasks.c (read_fat_string_value): Likewise.
2061
507a579c
PA
20622013-04-19 Pedro Alves <palves@redhat.com>
2063
2064 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2065 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
2066 'offset', and adjust.
2067
f9d83a0b
PA
20682013-04-19 Pedro Alves <palves@redhat.com>
2069
2070 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2071 (read_index_from_section): Add cast to 'char *'.
2072
745eb4fd
PA
20732013-04-19 Pedro Alves <palves@redhat.com>
2074
2075 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2076
db5be46f
PA
20772013-04-19 Pedro Alves <palves@redhat.com>
2078
2079 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2080
0f928d68
PA
20812013-04-19 Pedro Alves <palves@redhat.com>
2082
2083 * record-full.c (record_full_get_bookmark): Change local 'ret'
2084 type to char * and add cast to gdb_byte *.
2085 (record_full_goto_bookmark): Handle 'bookmark' argument as a
2086 string.
2087 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2088
89f6d837
PA
20892013-04-19 Pedro Alves <palves@redhat.com>
2090
2091 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2092 * python/py-prettyprint.c (print_string_repr): Change type of
2093 'output' local to char *. Add cast to gdb_byte * in
2094 LA_PRINT_STRING call.
2095 (print_children): Change type of 'output' local to char *.
2096 * python/py-value.c (valpy_string): Add cast to const char * in
2097 PyUnicode_Decode call.
2098
ce6ec7d8
PA
20992013-04-19 Pedro Alves <palves@redhat.com>
2100
2101 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2102 and change its type to 'const char *'. Adjust.
2103 (mips_send_packet): Add cast to 'char *', and remove cast to
2104 'unsigned char *'.
2105 (mips_receive_packet): Remove cast to 'unsigned char *'.
2106 (mips_load_srec): Use bfd_byte.
2107 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2108 (pmon_checkset): Make 'value' parameter unsigned.
2109
fda0389f
PA
21102013-04-19 Pedro Alves <palves@redhat.com>
2111
2112 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2113
bc20a4af
PA
21142013-04-19 Pedro Alves <palves@redhat.com>
2115
2116 * remote.c (remote_write_bytes_aux, compare_sections_command)
2117 (remote_read_qxfer)
2118 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2119 (remote_hostio_readlink, remote_bfd_iovec_pread)
2120 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2121 binary buffer, and char when buffer is used as string.
2122 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2123 (trace_save, tfile_open, traceframe_walk_blocks)
2124 (tfile_fetch_registers): Likewise.
2125
c628b528
PA
21262013-04-19 Pedro Alves <palves@redhat.com>
2127
2128 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2129 buffer and size_t size. Adjust.
2130 * ser-base.h (ser_base_write): Adjust.
2131 * ser-go32.c (cnts): Change type to size_t.
2132 (dos_write): Change prototype -- take 'void *'
2133 buffer and size_t size. Adjust.
2134 (dos_info): Print elements of 'cnts' as unsigned long.
2135 * serial.c (serial_write): Likewise.
2136 * serial.h (serial_write): Adjust.
2137 (struct serial_ops) <write>: Change prototype -- take 'void *'
2138 buffer and size_t size. Adjust.
2139
51a5cd90
PA
21402013-04-19 Pedro Alves <palves@redhat.com>
2141
2142 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2143 gdb_byte *.
2144 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2145
a9933661
PA
21462013-04-19 Pedro Alves <palves@redhat.com>
2147
2148 * alpha-tdep.c (alpha_extract_return_value): Use
2149 regcache_cooked_read_unsigned to read 'v0'.
2150
19afdd07
PA
21512013-04-19 Pedro Alves <palves@redhat.com>
2152
2153 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2154 parameters 'at', 'as' and 'offset' to uint32_t.
2155
96b32e50
PA
21562013-04-19 Pedro Alves <palves@redhat.com>
2157
2158 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2159 'is64' to signed 'int'.
2160
eb1bd1fb
PA
21612013-04-19 Pedro Alves <palves@redhat.com>
2162
2163 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2164 parameter to int *.
2165
463920bf
PA
21662013-04-19 Pedro Alves <palves@redhat.com>
2167
2168 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2169 'insnbuf' buffer type to unsigned int[].
2170
70242eb1
PA
21712013-04-19 Pedro Alves <palves@redhat.com>
2172
2173 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2174
9d1dd0e2
PA
21752013-04-19 Pedro Alves <palves@redhat.com>
2176
2177 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2178 unsigned long *.
2179
44096aee
PA
21802013-04-19 Pedro Alves <palves@redhat.com>
2181
2182 * alpha-tdep.c (heuristic_fence_post): Change type to int.
2183 (alpha_heuristic_proc_start): Adjust to check -1 instead of
2184 UINT_MAX.
2185 * mips-tdep.c (heuristic_fence_post): Change type to int.
2186 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2187
e4286e57
PA
21882013-04-19 Pedro Alves <palves@redhat.com>
2189
2190 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2191 (struct gdbarch_tdep) <cris_version>: Make unsigned.
2192 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2193
001f13d8
PA
21942013-04-19 Pedro Alves <palves@redhat.com>
2195
2196 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
2197 it to get a string view of the byte buffer.
2198 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2199 type to gdb_byte *. Adjust.
2200 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2201 Change local to char *.
2202 * solib-darwin.c (find_program_interpreter): Change return type to
2203 char *. Adjust.
2204 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2205 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2206 * solib-frv.c (enable_break2): Change local 'buf' to char *.
2207 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2208 * solib-svr4.c (find_program_interpreter): Change return type to
2209 char *. Adjust.
2210 (enable_break): Change local 'interp_name' to char *.
2211 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2212 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2213 (spu_pseudo_register_write_spu): Use char for string buffer.
2214 Adjust.
2215 (info_spu_event_command, info_spu_signal_command): Add casts to
2216 'char *'.
2217
948f8e3d
PA
22182013-04-19 Pedro Alves <palves@redhat.com>
2219
2220 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2221 gdb_byte[].
2222 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2223 * ada-lang.c (ada_value_assign): Use gdb_byte.
2224 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2225 (alphanbsd_sigtramp_offset): Use gdb_byte.
2226 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2227 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2228 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2229 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2230 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2231 * arm-tdep.c (arm_stub_unwind_sniffer)
2232 (arm_displaced_init_closure): Use gdb_byte.
2233 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2234 (arm_default_thumb_le_breakpoint)
2235 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2236 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2237 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2238 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2239 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2240 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2241 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2242 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2243 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2244 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2245 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2246 (cris_store_return_value, cris_extract_return_value): Use
2247 gdb_byte.
2248 (constraint): Change type of parameter to char * from signed
2249 char*. Use gdb_byte.
2250 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2251 of local buffer to gdb_byte *.
2252 * dwarf2read.c (read_index_from_section): Use gdb_byte.
2253 (create_dwp_hash_table): Change type of locals to gdb_byte *.
2254 (add_address_entry): Change type of local buffer to gdb_byte[].
2255 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2256 (frv_push_dummy_call): Use gdb_byte.
2257 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2258 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2259 (hppa_hpux_supply_save_state): Use gdb_byte.
2260 * hppa-tdep.c (hppa32_push_dummy_call)
2261 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2262 * ia64-tdep.c (extract_bit_field, replace_bit_field)
2263 (slotN_contents, replace_slotN_contents): Change type of parameter
2264 to gdb_byte *.
2265 (fetch_instruction, ia64_pseudo_register_write)
2266 (ia64_register_to_value, ia64_value_to_register)
2267 (ia64_extract_return_value, ia64_store_return_value)
2268 (ia64_push_dummy_call): Use gdb_byte.
2269 * m32c-tdep.c (m32c_return_value): Remove cast.
2270 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2271 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2272 gdb_byte.
2273 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2274 * mn10300-tdep.c (mn10300_store_return_value)
2275 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2276 gdb_byte.
2277 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2278 (moxie_process_record): Remove casts.
2279 * ppc-ravenscar-thread.c (supply_register_at_address)
2280 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2281 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2282 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2283 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2284 * remote.c (compare_sections_command): Use gdb_byte.
2285 * score-tdep.c (score7_free_memblock): Change type of parameter to
2286 gdb_byte *.
2287 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2288 gdb_byte *. Use gdb_byte.
2289 (sh_push_dummy_call_fpu): Use gdb_byte.
2290 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2291 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2292 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2293 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2294 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2295 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2296 (sh64_store_return_value, sh64_register_convert_to_virtual):
2297 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2298 (sh64_pseudo_register_write): Use gdb_byte.
2299 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2300 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
2301 buffer.
2302 (irix_current_sos): Use gdb_byte.
2303 * solib-som.c (som_current_sos): Use gdb_byte.
2304 * sparc-ravenscar-thread.c (supply_register_at_address)
2305 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2306 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2307 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2308 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2309 'gdb_byte *'.
2310 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2311 'gdb_byte *'.
2312 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2313 * xstormy16-tdep.c (xstormy16_extract_return_value)
2314 (xstormy16_store_return_value): Change parameter type to
2315 'gdb_byte *'. Adjust.
2316 (xstormy16_push_dummy_call): Use gdb_byte.
2317 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2318 (call0_analyze_prologue, execute_code): Use gdb_byte.
2319
433730c9
PA
23202013-04-19 Vladimir Kargov <kargov@gmail.com>
2321 Pedro Alves <palves@redhat.com>
2322
2323 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2324 value contents.
2325
ac9ec31b
DE
23262013-04-17 Doug Evans <dje@google.com>
2327
2328 * dwarf2read.c (struct signatured_type): New member type.
2329 (struct attribute): Replace member signatured_type with signature.
2330 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2331 (read_call_site_scope): Call follow_die_ref instead of
2332 follow_die_ref_or_sig.
2333 (read_structure_type): Rewrite handling of signatured types.
2334 (read_enumeration_type): Ditto.
2335 (read_attribute_value): Update.
2336 (build_error_marker_type): New function.
2337 (lookup_die_type): Add assert. Rewrite handling of signatured types.
2338 Don't call error for bad types, just build an error marker type.
2339 (dump_die_shallow): Update.
2340 (follow_die_sig_1): Renamed from follow_die_sig.
2341 Don't call error for bad types, instead return NULL.
2342 (follow_die_sig): New function.
2343 (get_signatured_type, get_DW_AT_signature_type): New functions.
2344
e546e8bb
YZ
23452013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
2346
2347 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
2348 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2349 function.
e546e8bb 2350
ab116149
YQ
23512013-04-17 Yao Qi <yao@codesourcery.com>
2352
2353 * top.c (print_gdb_configuration): Print configure-time
2354 parameter on using libbabeltrace or not.
2355
488a42b8
PA
23562013-04-16 Pedro Alves <palves@redhat.com>
2357
2358 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2359
f5fb825b
PA
23602013-04-16 Pedro Alves <palves@redhat.com>
2361
85d494ea 2362 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
2363 (git 568035b7874a099087b77f7bba3e36a1173787b0).
2364
e1154999
PA
23652013-04-16 Pedro Alves <palves@redhat.com>
2366
2367 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2368 * common/glibc_thread_db.h: ... this new file ...
2369 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2370
e3b50a7f
PA
23712013-04-16 Will Newton <will.newton@gmail.com>
2372 Pedro Alves <palves@redhat.com>
2373
2374 PR build/11881
2375
2376 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2377 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2378 HAVE_THREAD_DB_H.
2379
1c2e4450
PA
23802013-04-16 Pedro Alves <palves@redhat.com>
2381 Eli Zaretskii <eliz@gnu.org>
2382
2383 * NEWS: Mention "set foo unlimited".
2384
4031ecc5
DE
23852013-04-15 Doug Evans <dje@google.com>
2386
19c3d4c9
DE
2387 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2388 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2389 (create_dwo_cu_reader): Renamed from
2390 create_dwo_debug_info_hash_table_reader.
2391 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2392 Remove support for multiple CUs in a DWO file.
2393 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2394
4031ecc5
DE
2395 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2396 instead of phex.
2397 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2398 (create_dwo_in_dwp): Ditto.
2399
b340913d
TT
24002013-04-15 Tom Tromey <tromey@redhat.com>
2401
2402 * NEWS: Move recent entries into "since 7.6" section.
2403
cc16e6c9
TT
24042013-04-15 Tom Tromey <tromey@redhat.com>
2405
2406 PR c++/13588:
2407 * NEWS: Update.
2408 * break-catch-throw.c (struct exception_catchpoint)
2409 <exception_rx, pattern>: New fields.
2410 (fetch_probe_arguments, dtor_exception_catchpoint)
2411 (check_status_exception_catchpoint)
2412 (print_one_detail_exception_catchpoint): New functions.
2413 (handle_gnu_v3_exceptions): Add "except_rx" argument.
2414 Compile regular expression if needed.
2415 (extract_exception_regexp): New function.
2416 (catch_exception_command_1): Use extract_exception_regexp.
2417 (compute_exception): Use fetch_probe_arguments.
2418 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2419 and check_status fields.
2420 * cp-abi.c (cplus_typename_from_type_info): New function.
2421 * cp-abi.h (cplus_typename_from_type_info): Declare.
2422 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2423 * gdb_regex.h (compile_rx_or_error): Declare.
2424 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2425 comment.
2426 (init_gnuv3_ops): Set get_type_from_type_info field.
2427 * probe.c (compile_rx_or_error): Move...
2428 * utils.c (compile_rx_or_error): ... here.
2429
72f1fe8a
TT
24302013-04-15 Tom Tromey <tromey@redhat.com>
2431
2432 PR c++/15176:
2433 * NEWS: Update.
2434 * break-catch-throw.c (compute_exception): New function.
2435 (exception_funcs): New global.
2436 (_initialize_break_catch_throw): Create $_exception.
2437 * cp-abi.c (cplus_type_from_type_info): New function.
2438 * cp-abi.h (cplus_type_from_type_info): Declare.
2439 (struct cp_abi_ops) <get_type_from_type_info>: New field.
2440 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2441 (gnuv3_get_type_from_type_info): New functions.
2442 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2443
fc4746a2
TT
24442013-04-15 Tom Tromey <tromey@redhat.com>
2445
2446 * break-catch-throw.c (struct exception_names): New.
2447 (exception_functions): Change type.
2448 (re_set_exception_catchpoint): Look for SDT probes.
2449
15a73f56
TT
24502013-04-15 Tom Tromey <tromey@redhat.com>
2451
2452 PR c++/10119:
2453 * break-catch-throw.c (exception_functions): New global.
2454 (gnu_v3_exception_catchpoint_ops): Move earlier.
2455 (struct exception_catchpoint): New.
2456 (classify_exception_breakpoint): Rewrite.
2457 (re_set_exception_catchpoint): New function.
2458 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
2459 Allocate a struct exception_catchpoint.
2460 (catch_exception_command_1): Update.
2461 (initialize_throw_catchpoint_ops): Set 're_set' method.
2462
916703c0
TT
24632013-04-15 Tom Tromey <tromey@redhat.com>
2464
2465 * Makefile.in (SFILES): Add break-catch-throw.c
2466 (COMMON_OBS): Add break-catch-throw.o.
2467 * break-catch-throw.c: New file.
2468 * breakpoint.c: Move exception-catching code to new file.
2469 (ep_parse_optional_if_clause): No longer static.
2470 * breakpoint.h (ep_parse_optional_if_clause): Declare.
2471
6e72ca20
TT
24722013-04-15 Tom Tromey <tromey@redhat.com>
2473
2474 PR c++/9065:
2475 * NEWS: Update.
2476 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2477 * c-exp.y (TYPEID): New token.
2478 (exp): Add new TYPEID productions.
2479 (ident_tokens): Add "typeid".
2480 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2481 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2482 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2483 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2484 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2485 case.
2486 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2487 (build_std_type_info_type, gnuv3_get_typeid_type)
2488 (gnuv3_get_typeid): New functions.
2489 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2490 new fields on ABI object.
2491 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2492 * std-operator.def (OP_TYPEID): New.
2493
715c6909
TT
24942013-04-15 Tom Tromey <tromey@redhat.com>
2495
2496 * elfread.c (elf_symtab_read): Install versioned symbol under
2497 unversioned name as well.
2498
8de20a37
TT
24992013-04-15 Tom Tromey <tromey@redhat.com>
2500
2501 PR c++/11990:
2502 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2503 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2504 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2505 (gdb_demangle): New function.
2506 * cp-support.h (gdb_demangle): Declare.
2507 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2508 (dwarf2_name): Use gdb_demangle.
2509 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2510 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2511 suffixes from name.
2512 (gnuv3_print_method_ptr): Use gdb_demangle.
2513 * jv-lang.c (java_demangle): Use gdb_demangle.
2514 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2515 * language.c (unk_lang_demangle): Use gdb_demangle.
2516 * symtab.c (symbol_find_demangled_name)
2517 (demangle_for_lookup): Use gdb_demangle.
2518
591f19e8
TT
25192013-04-15 Tom Tromey <tromey@redhat.com>
2520
2521 PR c++/12824:
2522 * NEWS: Update.
2523 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2524 New constant.
2525 (classify_exception_breakpoint): New function.
2526 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2527 (print_mention_exception_catchpoint)
2528 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2529 (catch_exception_command_1): Handle "rethrow" catchpoint.
2530 (catch_rethrow_command): New function.
2531 (_initialize_breakpoint): Add "catch rethrow" command.
2532
4d40cad2
PM
25332013-04-15 Pierre Muller <muller@sourceware.org>
2534
2535 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2536 set_gdbarch_write_pc as deprecated anymore.
2537
30bcb456
JB
25382013-04-15 Joel Brobecker <brobecker@adacore.com>
2539
2540 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2541 declarations.
2542
da9160e4
YQ
25432013-04-13 Yao Qi <yao@codesourcery.com>
2544
2545 * ctf.c (_initialize_ctf): Include "completer.h".
2546 Call add_target_with_completer instead of add_target.
2547
39ed5604
JK
25482013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2549
2550 Fix GDB regression related to PR binutils/14813.
2551 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2552 * minidebug.c (lzma_close): Add return value comment.
2553 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2554 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2555 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2556
25572013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
2558
2559 * config.in: Regenerate.
2560
d521ce57
TT
25612013-04-12 Tom Tromey <tromey@redhat.com>
2562
2563 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2564 const.
2565 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2566 (struct die_reader_specs) <buffer>: Likewise.
2567 (die_reader_func_ftype): Make 'info_ptr' const.
2568 (struct line_header) <include_dirs, statement_program_start,
2569 statement_program_end>: Now const.
2570 (struct file_entry) <name>: Likewise.
2571 (struct partial_die_info) <sibling>: Likewise.
2572 (struct dwarf_block) <data>: Likewise.
2573 (dwarf2_read_section): Remove cast.
2574 (dwarf2_get_section_info): Make 'bufp' const.
2575 (read_index_from_section): Constify.
2576 (dw2_get_file_names_reader): Make 'info_ptr' const.
2577 (dw2_get_primary_filename_reader): Likewise.
2578 (read_comp_unit_head): Make 'info_ptr' and return type const.
2579 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2580 Likewise.
2581 (read_abbrev_offset): Constify.
2582 (dwarf2_create_include_psymtab): Make 'name' const.
2583 (create_debug_types_hash_table): Update.
2584 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2585 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2586 Constify.
2587 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2588 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2589 (read_comp_units_from_section): Constify.
2590 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2591 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2592 const.
2593 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2594 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2595 (create_dwp_hash_table, dwarf2_ranges_read)
2596 (dwarf2_record_block_ranges): Constify.
2597 (read_die_and_children, read_die_and_siblings_1)
2598 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2599 const.
2600 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2601 (abbrev_table_read_table): Constify.
2602 (load_partial_dies): Make 'info_ptr' const.
2603 (read_partial_die, read_attribute_value, read_attribute): Make
2604 'info_ptr' and return type const.
2605 (read_address, read_initial_length)
2606 (read_checked_initial_length_and_offset, read_offset)
2607 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2608 const.
2609 (read_direct_string): Make 'buf' and return type const.
2610 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2611 (read_indirect_string): Make return type const.
2612 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2613 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2614 'info_ptr' const.
2615 (read_str_index): Make return type const.
2616 (add_include_dir): Make 'include_dir' const.
2617 (add_file_name): Make 'name' const.
2618 (dwarf_decode_line_header): Constify.
2619 (psymtab_include_file_name): Make return type const.
2620 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2621 (dwarf2_start_subfile): Make 'filename' const.
2622 (dwarf2_const_value_attr): Make 'bytes' const.
2623 (read_signatured_type_reader): Make 'info_ptr' const.
2624 (decode_locdesc): Constify.
2625 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2626 const.
2627 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2628 'mac_end', and return type const.
2629 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2630 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2631 type const.
2632 (per_cu_header_read_in): Constify.
2633 * symfile.h (dwarf2_get_section_info): Update.
2634
d47a1bc1
TT
26352013-04-12 Tom Tromey <tromey@redhat.com>
2636
2637 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2638
6eaaf48b
EZ
26392013-04-12 Eli Zaretskii <eliz@gnu.org>
2640
fc4c25bf 2641 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
2642 * top.c (print_gdb_configuration): New function, displays the
2643 details about GDB configure-time parameters.
2644 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
2645 * cli/cli-cmds.c (show_configuration): New function.
2646 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
2647 * main.c (captured_main) <print_configuration>: New static var.
2648 <long_options>: Use it.
2649 If --configuration was given, call print_gdb_configuration.
2650
b292c783
JK
26512013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2652 Pedro Alves <palves@redhat.com>
2653
2654 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2655 (generated_files): Add gcore.
2656 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2657 HAVE_NATIVE_GCORE_HOST.
2658 (gcore): New.
2659 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2660 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2661 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2662 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2663 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2664 Add HAVE_NATIVE_GCORE_HOST.
2665 * configure: Regenerate.
2666 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2667 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2668 AC_CONFIG_FILES for gcore.
2669 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2670 gdb_have_gcore.
2671 * gdb_gcore.sh: Rename to ...
2672 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2673 and GCORE_TRANSFORM_NAME substitutions.
2674
c96b3c4f
JK
2675 Fix parsing tabs in ${gdb_target_obs}.
2676 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2677
d6cb50a2
JK
26782013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 * remote.c (unpush_and_perror): Add output message final dot.
2681
cf2cb5ec
YQ
26822013-04-11 Yao Qi <yao@codesourcery.com>
2683
2684 * tracepoint.c (tfile_interp_line): Fit parameters line and
2685 utpp in one line.
2686
07293be4
JB
26872013-04-10 Joel Brobecker <brobecker@adacore.com>
2688
2689 * solib.c (solib_map_sections): Remove code overwriting
2690 SO->SO_NAME with the bfd's filename.
2691
f81d1120
PA
26922013-04-10 Pedro Alves <palves@redhat.com>
2693
2694 * cli/cli-decode.c (integer_unlimited_completer): New function.
2695 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2696 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2697 completer.
2698 * cli/cli-setshow.c: Include "cli/cli-utils.h".
2699 (is_unlimited_literal): New function.
2700 (do_set_command): Handle literal "unlimited" arguments.
2701 * frame.c (_initialize_frame) <set backtrace limit>: Document
2702 "unlimited".
2703 * printcmd.c (_initialize_printcmd) <set print
2704 max-symbolic-offset>: Add help text.
2705 * record-full.c (_initialize_record_full) <set record full
2706 insn-number-max>: Likewise.
2707 * record.c (_initialize_record) <set record
2708 instruction-history-size, set record function-call-history-size>:
2709 Add help text.
2710 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2711 help text.
2712 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2713 Likewise.
2714 * source.c (_initialize_source) <set listsize>: Add help text.
2715 * utils.c (initialize_utils) <set height, set width>: Likewise.
2716 <set pagination>: Mention "set height unlimited".
2717 * valprint.c (_initialize_valprint) <set print elements, set print
2718 repeats>: Document "unlimited".
2719
2f9d54cf
PA
27202013-04-10 Pedro Alves <palves@redhat.com>
2721
2722 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2723 instead of disconnect_tracing.
2724 * infcmd.c (detach_command, disconnect_command): Call
2725 query_if_trace_running. Adjust.
2726 * top.c: Include "tracepoint.h".
2727 (quit_target): Delete. Contents moved ...
2728 (quit_force): ... here. Wrap each stage of teardown in
2729 TRY_CATCH. Call disconnect_tracing before detaching.
2730
393fd4c3
YQ
27312013-04-10 Hui Zhu <hui@codesourcery.com>
2732 Yao Qi <yao@codesourcery.com>
2733
2734 * configure.ac: Check libbabeltrace is installed.
2735 * config.in: Regenerate.
2736 * configure: Regenerate.
2737 * Makefile.in (LIBBABELTRACE): New.
2738 (CLIBS): Add LIBBABELTRACE.
2739 * ctf.c: Include "exec.h".
2740 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2741 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2742 (ctf_save_metadata_header): Define new type aliases in
2743 metadata.
2744 (ctf_write_header): Define event type "tsv_def" and "tp_def"
2745 in metadata. Start a new faked packet for trace status.
2746 (ctf_write_status): Write trace status to CTF.
2747 (ctf_write_uploaded_tsv): Write TSV to CTF.
2748 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2749 (ctf_write_definition_end): End the faked packet.
2750
2751 (ctx, ctf_iter, trace_dirname): New.
2752 (start_pos): New variable.
2753 (ctf_destroy, ctf_open_dir, ctf_open): New.
2754 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2755 macros.
2756 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2757 (ctf_fetch_registers, ctf_xfer_partial): New.
2758 (ctf_get_trace_state_variable_value): New.
2759 (ctf_get_tpnum_from_frame_event): New.
2760 (ctf_get_traceframe_address): New.
2761 (ctf_trace_find, ctf_has_stack): New.
2762 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2763 (ctf_get_trace_status, ctf_read_status): New.
2764 (_initialize_ctf): New.
2765 * tracepoint.c (get_tracepoint_number): New
2766 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 2767 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
2768 * tracepoint.h: ... here.
2769 (get_tracepoint_number): Declare it.
2770 (get_uploaded_tsv): Declare it.
2771
2772 * NEWS: Mention new configure option.
2773
5c2b4418
HZ
27742013-04-10 Pedro Alves <palves@redhat.com>
2775 Hui Zhu <hui@codesourcery.com>
2776
2777 * breakpoint.c (dprintf_re_set): New.
2778 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2779 to dprintf_re_set.
2780
a5c66735
JB
27812013-04-09 Joel Brobecker <brobecker@adacore.com>
2782
2783 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2784 Remove solib-svr4.o from the list.
2785
9e77999c
JB
27862013-04-09 Joel Brobecker <brobecker@adacore.com>
2787
2788 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2789 Use gdb_assert_not_reached instead of invalid boolean expression.
2790
1927e618
PA
27912013-04-09 Pedro Alves <palves@redhat.com>
2792
2793 * remote.c (unpush_and_perror): New function.
2794 (readchar, remote_serial_write): Use it.
2795
10782d74
MM
27962013-04-09 Markus Metzger <markus.t.metzger@intel.com>
2797
2798 * NEWS: Mention new btrace RSP packets.
2799
4c8429ef
TT
28002013-04-08 Tom Tromey <tromey@redhat.com>
2801
2802 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2803 long.
2804
8625fc1b
TT
28052013-04-08 Tom Tromey <tromey@redhat.com>
2806
2807 * maint.c (print_bfd_section_info): Print the section index.
2808 * symmisc.c (dump_msymbols): Print the section index.
2809
e27d198c
TT
28102013-04-08 Tom Tromey <tromey@redhat.com>
2811
2812 PR symtab/8424:
2813 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2814 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2815 * breakpoint.c (resolve_sal_pc): Update.
2816 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2817 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2818 (minsym_lookup_iterator_cb): Use it.
2819 (default_read_var_value): Update.
2820 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2821 Update.
2822 * infcmd.c (jump_command): Update.
2823 * linespec.c (minsym_found): Update.
2824 * maint.c (maintenance_translate_address): Update.
2825 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2826 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2827 * parse.c (write_exp_msymbol): Update.
2828 * printcmd.c (address_info): Update.
2829 * psymtab.c (find_pc_sect_psymbol): Update.
2830 (fixup_psymbol_section): Check SYMBOL_SECTION, not
2831 SYMBOL_OBJ_SECTION.
2832 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2833 Don't initialize SYMBOL_OBJ_SECTION.
2834 * spu-tdep.c (spu_catch_start): Update.
2835 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2836 * symmisc.c (dump_msymbols, print_symbol): Update.
2837 * symtab.c (fixup_section): Don't set 'obj_section'. Change
2838 how fallback section is computed.
2839 (fixup_symbol_section): Update.
2840 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2841 Update.
2842 (allocate_symbol, initialize_symbol, allocate_template_symbol):
2843 Initialize SYMBOL_SECTION.
2844 * symtab.h (struct general_symbol_info) <section>: Update comment.
2845 <obj_section>: Remove.
2846 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
2847 (SYMBOL_OBJFILE): New macro.
2848
e6dc44a8
TT
28492013-04-08 Tom Tromey <tromey@redhat.com>
2850
2851 * coffread.c (record_minimal_symbol): Update.
2852 * dbxread.c (record_minimal_symbol): Update.
2853 * elfread.c (record_minimal_symbol): Update.
2854 * machoread.c (macho_symtab_add_minsym): Update.
2855 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2856 Update.
2857 * minsyms.c (prim_record_minimal_symbol): Update.
2858 (prim_record_minimal_symbol_full): Remove 'bfd_section'
2859 argument.
2860 (prim_record_minimal_symbol_and_info): Likewise.
2861 * minsyms.h (prim_record_minimal_symbol_full)
2862 (prim_record_minimal_symbol_and_info): Update.
2863 * symtab.c (allocate_symbol, initialize_symbol)
2864 (allocate_template_symbol): Initialize SYMBOL_SECTION.
2865 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2866 Update.
2867
36192a8d
TT
28682013-04-08 Tom Tromey <tromey@redhat.com>
2869
2870 PR symtab/8423:
2871 * solib-som.c (som_solib_section_offsets): Use BFD section
2872 indices. Set offsets for all sections.
2873 * somread.c (som_symtab_read): Compute BFD section for
2874 symbol. Use prim_record_minimal_symbol_and_info.
2875 (som_symfile_read): Fix comment.
2876 (struct find_section_offset_arg): New.
2877 (find_section_offset, set_section_index): New functions.
2878 (som_symfile_offsets): Use set_section_index to compute
2879 section indices.
2880
65cf3563
TT
28812013-04-08 Tom Tromey <tromey@redhat.com>
2882
2883 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2884 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2885 gdb_bfd_section_index.
2886 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2887 New functions.
2888 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2889 Declare.
2890 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2891 Update.
2892 * objfiles.c (add_to_objfile_sections_full): New function.
2893 (add_to_objfile_sections): Use it.
2894 (build_section_table): Rewrite.
2895 (objfile_relocate1): Use gdb_bfd_section_index. Update.
2896 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2897 (struct objfile) <sections>: Update comment.
2898 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2899 is NULL.
2900 (ALL_OBJSECTIONS): Use it.
2901 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2902 * solib-frv.c (frv_relocate_main_executable): Update.
2903 * solib-target.c (solib_target_relocate_section_addresses):
2904 Use gdb_bfd_section_index.
2905 * symfile.c (build_section_addr_info_from_section_table):
2906 Use gdb_bfd_section_index.
2907 (build_section_addr_info_from_bfd, place_section): Likewise.
2908 * symtab.c (fixup_section): Update.
2909 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2910
7cbd4a93
TT
29112013-04-08 Tom Tromey <tromey@redhat.com>
2912
2913 * minsyms.h (struct bound_minimal_symbol): New.
2914 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2915 Remove objfile argument.
2916 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2917 Return bound_minimal_symbol.
2918 * minsyms.c (lookup_minimal_symbol_by_pc_1)
2919 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2920 Return bound_minimal_symbol.
2921 (in_gnu_ifunc_stub): Update.
2922 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2923 Remove 'objfile_p' argument.
2924 (lookup_solib_trampoline_symbol_by_pc): Update.
2925 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2926 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2927 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2928 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2929 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2930 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2931 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2932 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2933 stack.c, symtab.c, tui/tui-disasm.c: Update.
2934
f85f34ed
TT
29352013-04-08 Tom Tromey <tromey@redhat.com>
2936
2937 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2938 Use symbol's obstack, not an objfile.
2939 * coffread.c (process_coff_symbol): Update.
2940 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2941 * jv-lang.c (add_class_symbol): Update.
2942 * mdebugread.c (new_symbol): Update.
2943 * minsyms.c (prim_record_minimal_symbol_full)
2944 (terminate_minimal_symbol_table): Update.
2945 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
2946 * stabsread.c (define_symbol, read_enum_type): Update.
2947 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2948 Handle Ada specially.
2949 (symbol_set_language): Add 'obstack' argument.
2950 (symbol_set_names): Update.
2951 (symbol_natural_name, symbol_demangled_name): Always use
2952 ada_decode_symbol.
2953 * symtab.h (struct general_symbol_info)
2954 <language_specific::obstack>: New field.
2955 <ada_mangled>: New field.
2956 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2957 (symbol_set_language): Update.
2958
ccde22c0
TT
29592013-04-08 Tom Tromey <tromey@redhat.com>
2960
2961 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2962 Take an obstack, not an objfile.
2963 (symbol_set_names): Update.
2964 * symtab.h (symbol_set_demangled_name): Update.
2965
e623cf5d
TT
29662013-04-08 Tom Tromey <tromey@redhat.com>
2967
2968 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2969 allocate_symbol.
2970 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2971 (read_func_scope): Call allocate_template_symbol.
2972 (new_symbol_full): Call allocate_symbol.
2973 * jit.c (finalize_symtab): Call allocate_symbol.
2974 * jv-lang.c (add_class_symbol): Call allocate_symbol.
2975 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2976 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2977 (common_block_end): Call allocate_symbol.
2978 * symtab.c (allocate_symbol, initialize_symbol)
2979 (allocate_template_symbol): New functions.
2980 * symtab.c (allocate_symbol, initialize_symbol)
2981 (allocate_template_symbol): Declare.
2982 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2983
f6de8ec2
PA
29842013-04-08 Pedro Alves <palves@redhat.com>
2985 Keith Seitz <keiths@redhat.com>
2986
2987 * breakpoint.c (create_breakpoint): Rename
2988 "parse_condition_and_thread" parameter to "parse_arg". Update
2989 describing comment. If !PARSE_ARG, then error out if ARG is not
2990 the empty string after extracting the location.
2991 * breakpoint.h (create_breakpoint): Rename
2992 "parse_condition_and_thread" parameter to "parse_arg".
2993
f65ce5fb
AR
29942013-04-08 Aleksandar Ristovski <aristovski@qnx.com
2995
2996 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2997
cc5925ad
YQ
29982013-04-07 Yao Qi <yao@codesourcery.com>
2999
3000 * remote.c (remote_trace_find): Change type of parameters 'addr1'
3001 and 'addr2' to CORE_ADDR.
3002 * target.c (update_current_target): Update.
3003 * target.h (struct target_ops) <to_trace_find>: Change parameter
3004 type to CORE_ADDR.
3005 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3006 'addr2' to CORE_ADDR.
3007 (tfile_trace_find): Likewise.
3008 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3009 Change local variable 'addr' to type CORE_ADDR.
3010 * tracepoint.h (tfind_1): Update declaration.
3011
d9ac0664
EZ
30122013-04-06 Eli Zaretskii <eliz@gnu.org>
3013
3014 * windows-nat.c (windows_get_absolute_argv0): Move from here...
3015 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3016 Include main.h.
3017
3018 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3019 here...
3020 * main.h (windows_get_absolute_argv0): ...to here.
3021
02142a6c
DE
30222013-04-05 Doug Evans <dje@google.com>
3023
3024 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3025 (read_cutu_die_from_dwo): Add comments.
3026 (read_structure_type): Update comment.
3027 (read_enumeration_type, read_namespace_type): Update comment.
3028 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3029
43662968
JK
30302013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 Convert man pages to texinfo, new gdbinit.5 texinfo page.
3033 * Makefile.in (gdb.z): Remove.
3034 (install-only): Remove $(man1dir) and gdb.1 installation.
3035 * gdb.1: Remove.
3036
9ead1b84
JK
30372013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 Fix compatibility with Linux kernel 3.8.3.
3040 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3041 to more inner block. Remove parsing of NUMBER from outer block.
3042 Parse NUMBER only if KEYWORD has been identified.
3043
d1794952
JK
30442013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3045
3046 Fix variable name shadowing.
3047 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3048 filename to mapsfilename and update its uses.
3049
9025569e
EZ
30502013-04-05 Eli Zaretskii <eliz@gnu.org>
3051
3052 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3053 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3054 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3055 details of the problem.
3056
c9a6ce02
PA
30572013-04-04 Pedro Alves <palves@redhat.com>
3058 Hui Zhu <hui@codesourcery.com>
3059
3060 * breakpoint.c (validate_commands_for_breakpoint): If validating a
3061 tracepoint, reset its STEP_COUNT and call validate_actionline.
3062
5ff888ce
DE
30632013-04-03 Doug Evans <dje@google.com>
3064
bf6af496
DE
3065 * dwarf2read.c (read_die_and_siblings_1): Renamed from
3066 read_die_and_siblings.
3067 (read_die_and_siblings): New function.
3068 (read_cutu_die_from_dwo): Dump die if requested.
3069 (read_die_and_children): Call read_full_die_1 and
3070 read_die_and_siblings_1.
3071 (read_full_die): Dump die if requested.
3072
3073 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3074
0ac5b59e
DE
3075 * dwarf2read.c (struct dwo_file): New member comp_dir.
3076 Rename member name to dwo_name. All uses updated.
3077 (hash_dwo_file): Include comp_dir in computation.
3078 (eq_dwo_file): Ditto.
3079 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
3080 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3081
5ff888ce
DE
3082 * psymtab.c (read_psymtabs_with_fullname): Don't call
3083 psymtab_to_fullname if the basenames are different.
3084
ec83d211
JK
30852013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3086
3087 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3088 New entry about "fullname" presence.
3089
4f4352f7
PA
30902013-04-03 Pedro Alves <palves@redhat.com>
3091
3092 * NEWS: Mention x86_64/Cygwin as new native configuration.
3093
3d1d5ea3
DE
30942013-04-02 Doug Evans <dje@google.com>
3095
3096 * dwarf2read.c (read_structure_type): Fix typo in comment.
3097
be9a8770
PA
30982013-04-02 Pedro Alves <palves@redhat.com>
3099
3100 * NEWS: Mention "set/show debug aarch64", "set/show debug
3101 coff-pe-read" and "set/show debug mach-o".
3102
a46c1e42
PA
31032013-04-02 Pedro Alves <palves@redhat.com>
3104
3105 * NEWS: Mention "set/show remote trace-buffer-size-packet".
3106
3ad18b19
EZ
31072013-04-02 Eli Zaretskii <eliz@gnu.org>
3108
3109 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3110 gdb_string.h is now in common/.
3111
e9f1758d
PA
31122013-04-02 Pedro Alves <palves@redhat.com>
3113
3114 * NEWS: Move "set debug notification" and "set trace-buffer-size"
3115 under "New options".
3116
049dc89b
JK
31172013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3118
3119 Revert this patch:
3120 PR gdb/15275
3121 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3122
c33e31fd
PA
31232013-04-02 Pedro Alves <palves@redhat.com>
3124
3125 PR gdb/15275
3126
3127 * remote.c (send_interrupt_sequence): Use remote_serial_write.
3128 (remote_serial_write): New function.
3129 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3130
ea5f3910
JW
31312013-04-01 Jiong Wang <jiwang@tilera.com>
3132
3133 * NEWS: Mention TILE-Gx in "New native configurations" and
3134 "New targets" sections.
3135
5c6fa7ab
DE
31362013-04-01 Doug Evans <dje@google.com>
3137
c0f78cd4
DE
3138 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3139 (process_enumeration_scope): Simplify.
3140
0186c6a7
DE
3141 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3142 type_unit_group ...
3143 (struct signatured_type): ... to here.
3144 (sig_type_ptr): New typedef.
3145 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
3146 out of union 't'. All uses updated.
3147 (dw2_get_file_names_reader): Assert not called for a type unit.
3148 (dw2_get_file_names): Assert not called for a type unit or type
3149 unit group.
3150 (build_type_psymtabs_reader): Assert called for a type unit.
3151 (build_type_psymtab_dependencies): Assert called for a type unit group.
3152
5c6fa7ab
DE
3153 * dwarf2read.c (free_dwo_file): Add comment.
3154 (dwarf2_per_objfile_free): Unref dwp bfd.
3155
b3c0ad67 31562013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
3157
3158 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3159 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3160 (read_pe_exported_syms): Remove unused 'exportix'.
3161 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3162 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3163 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3164
e2df1547
AR
31652013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3166
3167 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3168 (print_it_watchpoint): Remove unused 'bl'.
3169 (say_where): Remove unused 'uiout'.
3170 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3171 (bkpt_breakpoint_hit): Remove unused 'b'.
3172 (internal_bkpt_print_it): Remove unused 'uiout'.
3173 * buildsym.c (augment_type_symtab): Remove unused 'i'.
3174
d81e75c0
TD
31752013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3176
3177 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3178 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3179
5a8b3f62
DE
31802013-03-29 Doug Evans <dje@google.com>
3181
ab5088bf
DE
3182 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3183 Delete arg is_dwp. All callers updated.
3184 (open_dwp_file): New function.
3185 (open_and_init_dwp_file): Call it.
3186 (get_dwp_file): New function.
3187 (lookup_dwo_cutu): Call it.
3188
a8ad1e57
DE
3189 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3190 unnecessary, cleanup.
3191
6296d8c1
DE
3192 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3193
b0c7bfa9
DE
3194 * dwarf2read.c (read_cutu_die_from_dwo): New function.
3195 (lookup_dwo_unit): New function.
3196 (init_cutu_and_read_dies): Move DWO handling to new functions.
3197
c88ee1f0
DE
3198 * dwarf2read.c (struct signatured_type): Tweak comment.
3199 (struct dwo_unit): Tweak comment.
3200 (create_debug_types_hash_table): Tweak comment. Reformat long line.
3201 (create_dwo_debug_info_hash_table): Tweak comment.
3202 (dwarf2_per_cu_offset_and_type): Tweak comment.
3203
5a8b3f62
DE
3204 * dwarf2read.c (lookup_signatured_type): Remove complaint about
3205 missing .debug_types section.
3206
9852c492
YQ
32072013-03-29 Yao Qi <yao@codesourcery.com>
3208
3209 * corelow.c: Include "completer.h".
3210 (_initialize_corelow): Call add_target_with_completer with
3211 argument 'filename_completer'.
3212 * tracepoint.c: Likewise.
3213 * exec.c (_initialize_exec): Likewise.
3214 * target.c (add_target): Rename to ...
3215 (add_target_with_completer): ... this. Call set_cmd_completer
3216 if parameter completer is not NULL.
3217 (add_target): New.
3218 * target.h: Include "command.h".
3219 (add_target_with_completer): Declare it.
3220
af312be7
JB
32212013-03-28 Joel Brobecker <brobecker@adacore.com>
3222
3223 * coffread.c (is_import_fixup_symbol): New function.
3224 (record_minimal_symbol): Use is_import_fixup_symbol to
3225 detect import fixup symbols, and discard them.
3226
8a0459fd
DE
32272013-03-28 Doug Evans <dje@google.com>
3228
0349ea22
DE
3229 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3230 types hash table until we know we need it.
3231
f652bce2
DE
3232 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3233 index numbers.
3234
e4a48d9d
DE
3235 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3236 All callers updated.
3237 (dw2_print_stats): Print #read CUs too.
3238 (dump_die_shallow): Print signatured types better.
3239
8a0459fd
DE
3240 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3241 info_or_types_section to section. All uses updated.
3242 (struct dwo_unit): Ditto.
3243
bd3eecc3
PA
32442013-03-28 Pedro Alves <palves@redhat.com>
3245
3246 * NEWS (New options): New section.
3247 (New options): Mention set/show remote trace-status-packet.
3248 * remote.c (PACKET_qTStatus): New enumeration value.
3249 (remote_get_trace_status): Skip sending qTStatus if the packet is
3250 disabled. Use packet_ok.
3251 (_initialize_remote): Register a configuration command for
3252 qTStatus packet.
3253
41245087
DE
32542013-03-28 Doug Evans <dje@google.com>
3255
7edbb660
DE
3256 * symfile.c (find_separate_debug_file): Add comment.
3257 (terminate_after_last_dir_separator): Tweak comment.
3258
0018ea6f
DE
3259 * dwarf2read.c (create_partial_symtab): Add forward decl.
3260 (create_partial_symtab): Move to be closer to other psymtab functions.
3261 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3262
ca69b9e6
DE
3263 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3264 (compute_symtab_includes): Remove unnecessary forward declaration.
3265 (die_needs_namespace): Add comment marking group of functions for
3266 dwarf2 name computation.
3267
a9375afe
DE
3268 * typeprint.c (_initialize_typeprint): Improve type help text.
3269
41245087
DE
3270 * python/python.c (finish_python_initialization): Provide suggestion
3271 for how to tell gdb to find its python files.
3272
7f7cc265
PA
32732013-03-28 Pedro Alves <palves@redhat.com>
3274
3275 PR gdb/15294
3276
3277 * source.c (_initialize_source): Change back "set listsize" to an
3278 integer command.
3279
ec21308c
JK
32802013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
3281
3282 PR gdb/15275
3283 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3284
840a9a1f
PA
32852013-03-27 Pedro Alves <palves@redhat.com>
3286
3287 * top.c (history_size): Rename to ...
3288 (history_size_setshow_var): ... this. Add comment.
3289 (show_commands): Use readline's 'history_length' instead of
3290 computing the history length by calling history_get in a loop.
3291 (set_history_size_command): Error out for sizes over INT_MAX.
3292 Restore previous history size on invalid size.
3293 (init_history): If HISTSIZE is negative, leave the history size as
3294 zero. Add comments.
3295 (init_main): Adjust.
3296
826ecc4d
PA
32972013-03-27 Pedro Alves <palves@redhat.com>
3298
3299 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3300 coff_pe_read" command to "set debug coff-pe-read".
3301
0ccfeeae
MM
33022013-03-27 Markus Metzger <markus.t.metzger@intel.com>
3303
3304 * record.c (command_size_to_target_size): Fix size comparison.
3305 Change parameter type from pointer to integer to integer.
3306 Update all users.
3307
40653b35
PM
33082013-03-27 Pierre Muller <muller@sourceware.org>
3309
3310 * windows-nat.c (handle_output_debug_string): Avoid typecast
3311 from integer of different size warning.
3312
c62fa0e2
JB
33132013-03-26 Joel Brobecker <brobecker@adacore.com>
3314
3315 * windows-nat.c (handle_output_debug_string): Add empty line
3316 after local block variable definition.
3317
2c619be2
PA
33182013-03-26 Pedro Alves <palves@redhat.com>
3319
3320 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3321 (net_open): Make 'polls' local unsigned.
3322
1b493192
PA
33232013-03-26 Pedro Alves <palves@redhat.com>
3324
3325 * remote.c (_initialize_remote): Make "set remoteaddresssize"
3326 a zuinteger command instead of uinteger.
3327
7ee70bf5
PA
33282013-03-26 Pedro Alves <palves@redhat.com>
3329
3330 * record-full.c (record_full_insn_num): Make it unsigned.
3331 (record_full_check_insn_num, record_full_message)
3332 (record_full_registers_change, record_full_xfer_partial): Remove
3333 record_full_insn_max_num check (it's always != 0).
3334 (record_full_info, record_full_restore): Use %u as format string.
3335 (): Use %u as format string.
3336 (set_record_full_insn_max_num): Remove record_full_insn_max_num
3337 check (it's always != 0).
3338
dfd1f9bb
PA
33392013-03-26 Pedro Alves <palves@redhat.com>
3340
3341 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3342 and "set dcache size" commands zuinteger instead of uinteger.
3343
addb4faf
PA
33442013-03-26 Pedro Alves <palves@redhat.com>
3345
3346 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3347 command zuinteger instead of uinteger.
3348
b75bf488
PA
33492013-03-26 Pedro Alves <palves@redhat.com>
3350
3351 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3352 zuinteger instead of uinteger.
3353
42c634cb
PA
33542013-03-26 Pedro Alves <palves@redhat.com>
3355
3356 * record.c (record_insn_history_size_setshow_var)
3357 (record_call_history_size_setshow_var): New globals.
3358 (command_size_to_target_size): New function.
3359 (cmd_record_insn_history, cmd_record_call_history): Use
3360 command_size_to_target_size instead of cast.
3361 (validate_history_size, set_record_insn_history_size)
3362 (set_record_call_history_size): New functions.
3363 (_initialize_record): Install set_record_insn_history_size and
3364 set_record_call_history_size as "set" hooks of "set record
3365 instruction-history-size" and "set record
3366 function-call-history-size".
3367
1fb2e2b5
PA
33682013-03-26 Pedro Alves <palves@redhat.com>
3369
3370 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3371 use with history_max_entries use. Remove FIXME note.
3372
99c819ee
MM
33732013-03-26 Markus Metzger <markus.t.metzger@intel.com>
3374
3375 * record-btrace.c (record_btrace_close): Call
3376 record_btrace_auto_disable.
3377
9f9e404c
JB
33782013-03-25 Joel Brobecker <brobecker@adacore.com>
3379
3380 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3381
ebcdfe33
DE
33822013-03-25 Doug Evans <dje@google.com>
3383
3384 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3385
24955f63
TT
33862013-03-25 Tom Tromey <tromey@redhat.com>
3387
3388 PR symtab/11462:
3389 * c-exp.y (exp): Add new productions for destructors after '.' and
3390 '->'.
3391 (write_destructor_name): New function.
3392
fce632b6
TT
33932013-03-25 Tom Tromey <tromey@redhat.com>
3394
3395 PR c++/9197:
3396 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3397 value_struct_elt, not lookup_struct_elt_type.
3398 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3399 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3400 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3401
a4341769
YQ
34022013-03-25 Yao Qi <yao@codesourcery.com>
3403
3404 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3405 instead of '_mkdir'.
3406
b5981e5a
EZ
34072013-03-23 Eli Zaretskii <eliz@gnu.org>
3408
3409 * windows-nat.c (windows_get_absolute_argv0): New function.
3410 * windows-nat.h: Add its prototype.
3411
3412 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3413 Use IS_DIR_SEPARATOR instead of looking for a character inside
3414 SLASH_STRING. Include filenames.h.
3415 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3416 relocate_gdb_directory works when passed gdb_program_name.
3417 Include windows-nat.h.
3418
598d3636
JK
34192013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3422 * remote.c (trace_error): Remove the special handling of '2'.
3423 (readchar) <SERIAL_EOF>
3424 (readchar) <SERIAL_ERROR>
3425 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3426 (remote_get_trace_status): Call throw_exception if EX is
3427 TARGET_CLOSE_ERROR.
3428 * utils.c (perror_with_name): Rename to ...
3429 (throw_perror_with_name): ... here. New parameter errcode, describe it
3430 in the function comment.
3431 (perror_with_name): New function wrapper.
3432 * utils.h (enum errors): New stub declaration.
3433 (throw_perror_with_name): New declaration.
3434
82b821e9
PA
34352013-03-22 Pedro Alves <palves@redhat.com>
3436 Yao Qi <yao@codesourcery.com>
3437 Mark Kettenis <kettenis@gnu.org>
3438
3439 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3440 Don't let the user set the value to UINT_MAX directly.
3441 <var_integer>: Don't let the user set the value to INT_MAX
3442 directly.
3443
78a095c3
JK
34442013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3445
3446 * remote.c (remote_unpush_target): New function.
3447 (remote_open_1): Remove two pop_target calls, update one comment, add
3448 comment to target_preopen call. Replace pop_target call by
3449 remote_unpush_target call.
3450 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3451 pop_target calls by remote_unpush_target calls.
3452
3e74e146
PA
34532013-03-22 Pedro Alves <palves@redhat.com>
3454
3455 * linux-nat.c (linux_child_follow_fork): Don't call
3456 linux_enable_event_reporting.
3457 (linux_handle_extended_wait): Don't call
3458 linux_enable_event_reporting.
3459
a2213dca
PA
34602013-03-22 Pedro Alves <palves@redhat.com>
3461
3462 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3463 use it to rewrite the trampoline buffers with type gdb_byte[], and
3464 undefine the macro. Remove char* cast.
3465
bd712aed
DE
34662013-03-21 Doug Evans <dje@google.com>
3467
3468 New commands "mt set per-command {space,time,symtab} {on,off}".
3469 * NEWS: Add entry.
3470 * event-top.c: #include "maint.h".
3471 * main.c: #include "maint.h".
3472 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3473 timeval-utils.h, maint.h, cli/cli-setshow.h.
3474 (per_command_time, per_command_space): New static globals.
3475 (per_command_symtab): New static global.
3476 (per_command_setlist, per_command_showlist): New static globals.
3477 (struct cmd_stats): Move here from utils.c.
3478 (set_per_command_time): Renamed from set_display_time in utils.c
3479 and moved here. All callers updated.
3480 (set_per_command_space): Renamed from set_display_space in utils.c
3481 and moved here. All callers updated.
3482 (count_symtabs_and_blocks): New function.
3483 (report_command_stats): Moved here from utils.c. Add support for
3484 printing symtab stats. Only print data if enabled before command
3485 executed.
3486 (make_command_stats_cleanup): Ditto.
3487 (sert_per_command_cmd, show_per_command_cmd): New functions.
3488 (_initialize_maint_cmds): Add new commands
3489 mt set per-command {space,time,symtab} {on,off}.
3490 * maint.h: New file.
3491 * top.c: #include "maint.h".
3492 * utils.c (reset_prompt_for_continue_wait_time): New function.
3493 (get_prompt_for_continue_wait_time): New function.
3494 * utils.h (reset_prompt_for_continue_wait_time): Declare
3495 (get_prompt_for_continue_wait_time): Declare.
3496 (make_command_stats_cleanup): Moved to maint.h.
3497 (set_display_time, set_display_space): Moved to maint.h and renamed
3498 to set_per_command_time, set_per_command_space.
3499 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3500 parse_binary_operation and made non-static. Don't call error,
3501 just return an error marker. All callers updated.
3502 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3503
d76488d8
TT
35042013-03-21 Tom Tromey <tromey@redhat.com>
3505
3506 * symfile.c (alloc_section_addr_info): Update header. Don't set
3507 'num_sections' field.
3508 (build_section_addr_info_from_section_table): Set 'num_sections'.
3509 (build_section_addr_info_from_bfd): Likewise.
3510 (build_section_addr_info_from_objfile): Remove dead loop
3511 condition.
3512 (free_section_addr_info): Unconditionally call xfree.
3513 (relative_addr_info_to_section_offsets, addrs_section_sort)
3514 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3515 condition.
3516 (syms_from_objfile_1): Remove dead 'if' condition. Check
3517 'num_sections'.
3518 (add_symbol_file_command): Set 'num_sections'.
3519 * symfile-mem.c (symbol_file_add_from_memory): Set
3520 'num_sections'.
3521 * somread.c (som_symfile_offsets): Remove dead loop condition.
3522 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3523 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3524
a72e5169 35252013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
3526
3527 * tracepoint.h (decode_agent_options): Add 'trace_string'
3528 argument.
3529 * tracepoint.c (decode_agent_options): Add 'trace_string'
3530 argument.
3531 (validate_actionline): Update.
3532 (collect_symbol): Add 'trace_string' argument.
3533 (struct add_local_symbols_data) <trace_string>: New field.
3534 (do_collect_symbol): Update.
3535 (add_local_symbols): Add 'trace_string' argument.
3536 (encode_actions_1): Update.
3537 (trace_dump_actions): Update.
3538 * dwarf2loc.c (access_memory): Update.
3539 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3540 * ax-general.c (new_agent_expr): Update.
3541 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3542 (gen_trace_for_return_address): Add argument.
3543 (trace_kludge, trace_string_kludge): Remove.
3544 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3545 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3546 (gen_trace_for_var): Add 'trace_string' argument.
3547 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3548 (gen_printf, agent_eval_command_one): Update.
3549
b2f83c08
TT
35502013-03-21 Tom Tromey <tromey@redhat.com>
3551
3552 PR exp/15109:
3553 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3554 Handle FILENAME token.
3555
9507860e
TT
35562013-03-21 Tom Tromey <tromey@redhat.com>
3557
3558 * c-exp.y (YYPRINT): Define.
3559 (c_print_token): New function.
3560
e403aa4b
TT
35612013-03-21 Tom Tromey <tromey@redhat.com>
3562
3563 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3564
af307d6a
YQ
35652013-03-21 Yao Qi <yao@codesourcery.com>
3566
3567 * ctf.c: Include "gdb_stat.h".
3568 [USE_WIN32API]: New macro 'mkdir'.
3569 (ctf_start): Use permission bits macros if they are defined.
3570
fb81d016
KS
35712013-03-20 Keith Seitz <keiths@redhat.com>
3572
3573 * breakpoint.h (struct breakpoint): Add comment to
3574 extra_string indicating that this member is mallod'd.
3575 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3576
ef0026f0
PA
35772013-03-20 Pedro Alves <palves@redhat.com>
3578
3579 PR gdb/15289
3580
3581 * cli/cli-setshow.c (do_set_command)
3582 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3583 the result of parsing the command argument. Throw error if the
3584 value is greater than UINT_MAX. Print the invalid value with
3585 plongest.
3586 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3587 result of parsing the command argument. Throw error if the value
3588 is greater than INT_MAX, not greater or equal. Also throw error
3589 if the value is less than INT_MIN. Print the invalid value with
3590 plongest.
3591 <var_zuinteger_unlimited>: Throw error if the value is greater
3592 than INT_MAX, not greater or equal.
3593 (do_show_command) <var_integer, var_zinteger,
3594 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3595
24d6c2a0
TT
35962013-03-20 Tom Tromey <tromey@redhat.com>
3597
3598 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3599 if possible.
3600 * dwarf2read.c (read_func_scope): Remove old FIXME.
3601 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3602 not LOC_COMPUTED.
3603 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3604 Unconditionally call via computed ops, if possible.
3605 * printcmd.c (address_info): Unconditionally call via computed ops,
3606 if possible.
3607 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3608 if possible.
3609 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3610 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3611 if possible.
3612
f1e6e072
TT
36132013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3614 Tom Tromey <tromey@redhat.com>
3615
3616 PR symtab/8421:
3617 * coffread.c (coff_register_index): New global.
3618 (process_coff_symbol, coff_read_enum_type): Set
3619 SYMBOL_ACLASS_INDEX.
3620 (_initialize_coffread): Initialize new global.
3621 * dwarf2loc.c (locexpr_find_frame_base_location)
3622 (dwarf2_block_frame_base_locexpr_funcs)
3623 (loclist_find_frame_base_location)
3624 (dwarf2_block_frame_base_loclist_funcs): New.
3625 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3626 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3627 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3628 (dwarf2_block_frame_base_loclist_funcs): New.
3629 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3630 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3631 globals.
3632 (read_func_scope): Update.
3633 (fixup_go_packaging, mark_common_block_symbol_computed)
3634 (var_decode_location, new_symbol_full, dwarf2_const_value):
3635 Set SYMBOL_ACLASS_INDEX.
3636 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3637 (_initialize_dwarf2_read): Initialize new globals.
3638 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3639 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3640 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3641 globals.
3642 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3643 (_initialize_mdebugread): Initialize new globals.
3644 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3645 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3646 (stab_register_index, stab_regparm_index): New globals.
3647 (define_symbol, read_enum_type, common_block_end): Set
3648 SYMBOL_ACLASS_INDEX.
3649 (_initialize_stabsread): Initialize new globals.
3650 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3651 globals.
3652 (MAX_SYMBOL_IMPLS): New define.
3653 (register_symbol_computed_impl, register_symbol_block_impl)
3654 (register_symbol_register_impl)
3655 (initialize_ordinary_address_classes): New functions.
3656 (_initialize_symtab): Call initialize_ordinary_address_classes.
3657 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3658 (struct symbol_impl): New.
3659 (SYMBOL_ACLASS_BITS): New define.
3660 (struct symbol) <aclass, ops>: Remove fields.
3661 <aclass_index>: New field.
3662 (symbol_impls): Declare.
3663 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3664 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3665 (register_symbol_computed_impl, register_symbol_block_impl)
3666 (register_symbol_register_impl): Declare.
3667 (struct symbol_computed_ops): Add location_has_loclist.
3668 (struct symbol_block_ops): New.
3669 (SYMBOL_BLOCK_OPS): New.
3670 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3671
dbccfd4c
TT
36722013-03-20 Tom Tromey <tromey@redhat.com>
3673
3674 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3675 (print_partial_symbols, recursively_search_psymtabs): Use
3676 PSYMBOL_CLASS.
3677
e3f1ad4f
PM
36782013-03-20 Pierre Muller <muller@sourceware.org>
3679
3680 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3681 addtion, subtraction, multiplication and division binary operator.
3682
460014f5
JK
36832013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 Code cleanup.
3686 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3687 * bsd-kvm.c (bsd_kvm_close): Likewise.
3688 * bsd-uthread.c (bsd_uthread_close): Likewise.
3689 * corelow.c (core_close): Likewise.
3690 (core_close_cleanup): Remove parameter quitting from a caller.
3691 * event-top.c (async_disconnect): Likewise.
3692 * exec.c (exec_close_1): Remove parameter quitting.
3693 * go32-nat.c (go32_close): Likewise.
3694 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
3695 parameter quitting from a caller.
3696 * mips-linux-nat.c (super_close): Remove parameter quitting from the
3697 variable.
3698 (mips_linux_close): Remove parameter quitting. Remove parameter
3699 quitting from a caller.
3700 * monitor.c (monitor_close): Remove parameter quitting.
3701 * monitor.h (monitor_close): Likewise.
3702 * record-btrace.c (record_btrace_close): Likewise.
3703 * record-full.c (record_full_close): Likewise.
3704 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3705 it also from fprintf_unfiltered.
3706 * remote-mips.c (mips_close): Remove parameter quitting.
3707 (mips_detach): Remove parameter quitting from a caller.
3708 * remote-sim.c (gdbsim_close): Remove parameter quitting.
3709 (gdbsim_close): Remove duplicate function comment. Remove parameter
3710 quitting and remove it also from printf_filtered.
3711 * remote.c (remote_close): Remove parameter quitting.
3712 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3713 * target.c (update_current_target): Remove parameter int from to_close
3714 de_fault.
3715 (push_target, unpush_target, pop_target): Remove parameter quitting from
3716 a caller.
3717 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3718 Remove parameter quitting from a caller.
3719 (target_preopen): Remove parameter quitting from a caller.
3720 (target_close): Remove parameter quitting. Remove parameter quitting
3721 from a caller two times. Remove parameter quitting also from
3722 fprintf_unfiltered.
3723 * target.h (struct target_ops): Remove parameter quitting and as int
3724 from fields to_xclose and to_close.
3725 (extern struct target_ops current_target):
3726 (target_close, pop_all_targets): Remove parameter quitting. Update the
3727 comment.
3728 (pop_all_targets_above): Remove parameter quitting.
3729 * top.c (quit_target): Remove parameter quitting from a caller.
3730 * tracepoint.c (tfile_close): Remove parameter quitting.
3731 * windows-nat.c (windows_close): Remove parameter quitting.
3732
35a7120b
CV
37332013-03-20 Corinna Vinschen <vinschen@redhat.com>
3734
3735 * windows-nat.c (handle_output_debug_string): Replace call
3736 to string_to_core_addr with call to strtoull.
3737
8249a5a9
YQ
37382013-03-20 Yao Qi <yao@codesourcery.com>
3739
3740 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3741 and write it to CTF metadata.
3742
2c15ef43
CV
37432013-03-19 Corinna Vinschen <vinschen@redhat.com>
3744
3745 * windows-nat.c (handle_output_debug_string): Change type of n to
3746 SIZE_T to avoid crash on 64 bit systems.
3747
1cdd3232
EZ
37482013-03-17 Eli Zaretskii <eliz@gnu.org>
3749
3750 * python/python-internal.h (HAVE_SNPRINTF)
3751 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3752 about redefinition of snprintf by pyerrors.h.
3753
3cb2ab1a
SE
37542013-03-15 Steve Ellcey <sellcey@mips.com>
3755
3756 * remote-sim.c (sim_command_completer): Make char arguments const.
3757
9ce98649
TT
37582013-03-15 Tom Tromey <tromey@redhat.com>
3759
3760 PR c++/15116:
3761 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3762
dccee2de
TT
37632013-03-14 Tom Tromey <tromey@redhat.com>
3764
3765 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3766 New fields.
3767 (get_file_crc): Move from symfile.c.
3768 (gdb_bfd_crc): New function.
3769 * gdb_bfd.h (gdb_bfd_crc): Declare.
3770 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3771 * symfile.c (get_file_crc): Move to gdb_bfd.c.
3772 (separate_debug_file_exists): Use gdb_bfd_crc.
3773
cc0ea93c
TT
37742013-03-14 Tom Tromey <tromey@redhat.com>
3775
3776 * symfile.c (get_debug_link_info): Remove.
3777 (find_separate_debug_file_by_debuglink): Use
3778 bfd_get_debug_link_info.
3779
08c23b0d
TT
37802013-03-14 Tom Tromey <tromey@redhat.com>
3781
3782 * symtab.c (error_in_psymtab_expansion): New function.
3783 (lookup_symbol_aux_quick)
3784 (basic_lookup_transparent_type_quick): Remove "last resort"
3785 code. Use error_in_psymtab_expansion.
3786
288e77a7
JK
37872013-03-14 Doug Evans <dje@google.com>
3788 Jan Kratochvil <jan.kratochvil@redhat.com>
3789
3790 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3791 any successful compare_filenames_for_search or FILENAME_CMP.
3792 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3793 * symtab.c (iterate_over_some_symtabs): Likewise.
3794
8f1b8b82
JK
37952013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3796
3797 * source.c (print_source_lines_base): Make a local copy of
3798 symtab_to_fullname.
3799
23eb71e4
JK
38002013-03-14 Hui Zhu <hui_zhu@mentor.com>
3801 Jan Kratochvil <jan.kratochvil@redhat.com>
3802
3803 * source.c (print_source_lines_base): Suppress "file" for TUI.
3804
bb869963
SDJ
38052013-03-14 Keith Seitz <keiths@redhat.com>
3806 Alan Matsuoka <alanm@redhat.com>
3807
3808 PR c++/15203
3809 PR c++/15210
3810 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3811 TYPE_CODE_METHOD.
3812 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3813 symbols.
3814
d6682f9e
YQ
38152013-03-14 Yao Qi <yao@codesourcery.com>
3816
3817 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3818 status to tfile if trace is stopped by command 'tstop'.
3819
a22fa6e4
YQ
38202013-03-14 Yao Qi <yao@codesourcery.com>
3821
3822 * tracepoint.c (tfile_write_status): Write trace notes and user
3823 name into tfile if they are not NULL.
3824
d0353e76
YQ
38252013-03-14 Hui Zhu <hui@codesourcery.com>
3826 Yao Qi <yao@codesourcery.com>
3827
3828 * Makefile.in (REMOTE_OBS): Add ctf.o.
3829 (SFILES): Add ctf.c.
3830 (HFILES_NO_SRCDIR): Add ctf.h.
3831 * ctf.c, ctf.h: New files.
3832 * tracepoint.c: Include 'ctf.h'.
3833 (collect_pseudocommand): Remove static.
3834 (trace_save_command): Parse option "-ctf".
3835 Produce different trace file writers per option.
3836 Adjust output message.
3837 (trace_save_tfile, trace_save_ctf): New.
3838 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3839 * mi/mi-main.c: Include 'ctf.h'.
3840 (mi_cmd_trace_save): Handle option '-ctf'. Call either
3841 trace_save_tfile or trace_save_ctf.
3842 * NEWS: Mention these changes.
3843
3f43bc09
YQ
38442013-03-14 Yao Qi <yao@codesourcery.com>
3845
3846 * tracepoint.c (trace_file_writer_xfree): New.
3847 (struct tfile_writer_data): New.
3848 (tfile_dtor, tfile_can_target_save, tfile_start): New.
3849 (tfile_write_header, tfile_write_regblock_type): New.
3850 (tfile_write_status, tfile_write_uploaded_tsv): New.
3851 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3852 (tfile_write_raw_data, (tfile_end): New.
3853 (tfile_write_ops): New global variable.
3854 (TRACE_WRITE_R_BLOCK): New macro.
3855 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3856 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3857 (TRACE_WRITE_V_BLOCK): New macro.
3858 (trace_save): Add extra one parameter WRITER. Make it static.
3859 Use WRITER to writer trace.
3860 (tfile_trace_file_writer_new): New.
3861 (trace_save_command): Caller update.
3862 (trace_save_tfile): Write trace data in TFILE format.
3863 * tracepoint.h (struct trace_frame_write_ops): New.
3864 (struct trace_file_write_ops): New.
3865 (struct trace_file_writer): New.
3866 (trace_save): Remove its declaration.
3867 (trace_save_tfile): Declare it.
3868 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3869 instead of trace_save.
3870
58665b40
PA
38712013-03-13 Pedro Alves <palves@redhat.com>
3872
3873 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3874
10217050
PA
38752013-03-13 Pedro Alves <palves@redhat.com>
3876
3877 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3878 commented out code.
3879 * demangle.c (current_demangling_style_string): Make it const.
3880 (set_demangling_command): Assert the demangling style is known.
3881 Remove all handling of unknown styles. Set
3882 'current_demangling_style_string' to an element of the
3883 demangling_style_names array.
3884 (set_demangling_style): Delete.
3885 (_initialize_demangler): Set current_demangling_style_string to the
3886 element of the demangling_style_names array that corresponds to
3887 the default demangling style. Remove FIXME note. Don't call
3888 set_demangling_style.
3889 * gdb-demangle.h (set_demangling_style): Remove declaration.
3890
6f937416
PA
38912013-03-13 Pedro Alves <palves@redhat.com>
3892
3893 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3894 fields const.
3895 (ada_make_symbol_completion_list): Make "text0" parameter const.
3896 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3897 * breakpoint.c (condition_completer): Make "text" and "word"
3898 parameters const. Adjust.
3899 (check_tracepoint_command): Adjust to validate_actionline
3900 prototype change.
3901 (catch_syscall_completer): Make "text" and "word" parameters
3902 const.
3903 * cli/cli-cmds.c (show_user): Make "comname" local const.
3904 (valid_command_p): Make "command" parameter const.
3905 (alias_command): Make "alias_prefix" and "command_prefix" locals
3906 const.
3907 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3908 (add_alias_cmd): Make "name" and "oldname" parameters const.
3909 Adjust. No longer make copy of OLDNAME.
3910 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3911 (add_setshow_cmd_full, add_setshow_enum_cmd)
3912 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3913 (add_setshow_filename_cmd, add_setshow_string_cmd)
3914 (add_setshow_string_noescape_cmd)
3915 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3916 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3917 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3918 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3919 Make "name" parameter const.
3920 (help_cmd): Rename "command" parameter to "arg". New const local
3921 "command".
3922 (find_cmd): Make "command" parameter const.
3923 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
3924 deprecated_cmd_warning prototype change.
3925 (undef_cmd_error): Make "cmdtype" parameter const.
3926 (lookup_cmd): Make "line" parameter const.
3927 (deprecated_cmd_warning): Change type of "text" parameter to
3928 pointer to const char, from pointer to pointer to char. Adjust.
3929 (lookup_cmd_composition): Make "text" parameter const.
3930 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3931 parameters const.
3932 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3933 const.
3934 * cli/cli-script.c (validate_comname): Make "tem" local const.
3935 (define_command): New const local "tem_c". Use it in calls to
3936 lookup_cmd.
3937 (document_command): Make "tem" and "comfull" locals const.
3938 (show_user_1): Make "prefix" and "name" parameters const.
3939 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3940 const.
3941 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3942 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3943 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3944 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3945 (complete_on_enum, add_setshow_enum_cmd)
3946 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3947 (add_setshow_filename_cmd, add_setshow_string_cmd)
3948 (add_setshow_string_noescape_cmd)
3949 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3950 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3951 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3952 Change prototypes, constifying strings.
3953 * completer.c (noop_completer, filename_completer): Make "text"
3954 and "prefix" parameters const.
3955 (location_completer, expression_completer)
3956 (complete_line_internal): Make "text" and "prefix" parameters
3957 const and adjust.
3958 (command_completer, signal_completer): Make "text" and "prefix"
3959 parameters const.
3960 * completer.h (noop_completer, filename_completer)
3961 (expression_completer, location_completer, command_completer)
3962 (signal_completer): Change prototypes.
3963 * corefile.c (complete_set_gnutarget): Make "text" and "word"
3964 parameters const.
3965 * cp-abi.c (cp_abi_completer): Likewise.
3966 * expression.h (parse_expression_for_completion): Change
3967 prototype.
3968 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3969 parameters const.
3970 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3971 * infrun.c (handle_completer): Make "text" and "word" parameters
3972 const.
3973 * interps.c (interpreter_completer): Make "text" and "word"
3974 parameters const.
3975 * language.h (struct language_defn)
3976 <la_make_symbol_completion_list>: Make "text" and "word"
3977 parameters const.
3978 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3979 (parse_exp_in_context): Rename to ...
3980 (parse_exp_in_context_1): ... this.
3981 (parse_exp_in_context): Reimplement, with const hack from
3982 parse_exp_1.
3983 (parse_expression_for_completion): Make "string" parameter const.
3984 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3985 to pointer to const char. Adjust.
3986 (print_command_1): Make "exp" parameter const.
3987 (output_command): Rename to ...
3988 (output_command_const): ... this. Make "exp" parameter const.
3989 (output_command): Reimplement.
3990 (x_command): Adjust.
3991 (display_command): Rename "exp" parameter to "arg". New "exp"
3992 local, const version of "arg".
3993 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3994 "cmd_name" local const.
3995 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3996 call.
3997 (cmdpy_completer): Make "text" and "word" parameters const.
3998 (gdbpy_parse_command_name): Make "prefix_text2" local const.
3999 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4000 const.
4001 * remote.c (_initialize_remote): Make "cmd_name" local const.
4002 * symtab.c (language_search_unquoted_string): Make "text" and "p"
4003 parameters const. Adjust.
4004 (completion_list_add_fields): Make "sym_text", "text" and "word"
4005 parameters const.
4006 (struct add_name_data) <sym_text, text, word>: Make fields const.
4007 (default_make_symbol_completion_list_break_on): Make "text" and
4008 "word" parameters const. Adjust locals.
4009 (default_make_symbol_completion_list)
4010 (make_symbol_completion_list, make_symbol_completion_type)
4011 (make_symbol_completion_list_fn): Make "text" and "word"
4012 parameters const.
4013 (make_file_symbol_completion_list): Make "text", "word" and
4014 "srcfile" parameters const. Adjust locals.
4015 (add_filename_to_list): Make "text" and "word" parameters const.
4016 (struct add_partial_filename_data) <text, word>: Make fields
4017 const.
4018 (make_source_files_completion_list): Make "text" and "word"
4019 parameters const.
4020 * symtab.h (default_make_symbol_completion_list_break_on)
4021 (default_make_symbol_completion_list, make_symbol_completion_list)
4022 (make_symbol_completion_type enum type_code)
4023 (make_symbol_completion_list_fn make_file_symbol_completion_list)
4024 (make_source_files_completion_list): Change prototype.
4025 * top.c (execute_command): Adjust to pass pointer to pointer to
4026 const char to lookup_cmd, and to deprecated_cmd_warning prototype
4027 change.
4028 (set_verbose): Make "cmdname" local const.
4029 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4030 and adjust.
4031 (validate_actionline): Make "line" parameter a pointer to const
4032 char, and adjust.
4033 (encode_actions_1): Make "action_exp" local const, and adjust.
4034 (encode_actions): Adjust.
4035 (replace_comma): Delete.
4036 (trace_dump_actions): Make "action_exp" and "next_comma" locals
4037 const, and adjust. Don't frob the action string while splitting
4038 it at commas. Instead, make a copy of each split substring in
4039 turn.
4040 (trace_dump_command): Adjust to validate_actionline prototype
4041 change.
4042 * tracepoint.h (decode_agent_options, decode_agent_options)
4043 (encode_actions, validate_actionline): Change prototypes.
4044 * valprint.h (output_command): Delete declaration.
4045 (output_command_const): Declare.
4046 * value.c (function_destroyer): Cast const away in xfree call.
4047
a0bcdaa7
PA
40482013-03-13 Pedro Alves <palves@redhat.com>
4049
4050 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4051 rather than casting 'const char * const *' to 'const char **'.
4052 * ada-lex.l (processInt): Make "trailer" local const. Remove
4053 'const char **' cast.
4054 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4055 locals, and use those as strtol output pointer, instead than doing
4056 invalid casts to from 'const char **' to 'char **'.
4057 (_initialize_demangle): Remove cast.
4058 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4059 locals, and use those as strtol output pointer, instead than doing
4060 invalid casts to from 'const char **' to 'char **'.
4061 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4062 casts.
4063 * stap-probe.c (stap_parse_register_operand)
4064 (stap_parse_single_operand): Likewise.
4065
8ddb1965
YQ
40662013-03-13 Yao Qi <yao@codesourcery.com>
4067
4068 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4069 the last matched 'V' blcok in trace frame.
4070
2d450646
JB
40712013-03-12 Joel Brobecker <brobecker@adacore.com>
4072
4073 * NEWS: Create a new section for the next release branch.
4074 Rename the section of the current branch, now that it has
4075 been cut.
4076
b4b79973 40772013-03-12 Joel Brobecker <brobecker@adacore.com>
4078
4079 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4080 * version.in: Bump version to 7.6.50.20130312-cvs.
4081
ee047554
KS
40822013-03-12 Keith Seitz <keiths@redhat.com>
4083
4084 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4085 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4086 Remove temporary copy of input string.
4087 (mi_execute_command_wrapper): Make "cmd" const.
4088 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4089 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4090 Use const strings.
4091 (mi_parse): Make "cmd" const.
4092 Use const strings.
4093 * mi/mi-parse.h (mi_parse): Make "cmd" const.
4094
bbc13ae3
KS
40952013-03-12 Keith Seitz <keiths@redhat.com>
4096
4097 * ada-lang.c (ada_read_renaming_var_value): Pass const
4098 pointer to expression string to parse_exp_1.
4099 (create_excep_cond_exprs): Likewise.
4100 * ax-gdb.c (agent_eval_command_one): Likewise.
4101 (maint_agent_printf_command): Likewise.
4102 Constify much of the string handling/parsing.
4103 * breakpoint.c (set_breakpoint_condition): Pass const
4104 pointer to expression string to parse_exp_1.
4105 (update_watchpoint): Likewise.
4106 (parse_cmd_to_aexpr): Constify string handling.
4107 Pass const pointer to parse_exp_1.
4108 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4109 (find_condition_and_thread): Likewise.
4110 Make TOK const.
4111 (watch_command_1): Make "arg" const.
4112 Constify string handling.
4113 Copy the expression string instead of changing the input
4114 string.
4115 (update_breakpoint_location): Pass const pointer to
4116 parse_exp_1.
4117 * eval.c (parse_and_eval_address): Make "exp" const.
4118 (parse_to_comma_and_eval): Make "expp" const.
4119 (parse_and_eval): Make "exp" const.
4120 * expression.h (parse_expression): Make argument const.
4121 (parse_exp_1): Make first argument const.
4122 * findcmd.c (parse_find_args): Treat "args" as const.
4123 * linespec.c (parse_linespec): Pass const pointer to
4124 linespec_expression_to_pc.
4125 (linespec_expression_to_pc): Make "exp_ptr" const.
4126 * parse.c (parse_exp_1): Make "stringptr" const.
4127 Make a copy of the expression to pass to parse_exp_in_context until
4128 this whole interface can be constified.
4129 (parse_expression): Make "string" const.
4130 * printcmd.c (ui_printf): Treat "arg" as const.
4131 Handle const strings.
4132 * tracepoint.c (validate_actionline): Pass const pointer to
4133 all calls to parse_exp_1.
4134 (encode_actions_1): Likewise.
4135 * value.h (parse_to_comma_and_eval): Make argument const.
4136 (parse_and_eval_address): Likewise.
4137 (parse_and_eval): Likewise.
4138 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4139 (varobj_set_value): Likewise.
4140 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4141 constify string handling.
4142 Pass const pointers to parse_and_eval_address and
4143 parse_to_comman_and_eval.
4144 * cli/cli-utils.c (skip_to_space): Rename to ...
4145 (skip_to_space_const): ... this. Handle const strings.
4146 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4147 skip_to_space_const.
4148 (skip_to_space_const): Declare.
4149 * common/format.c (parse_format_string): Make "arg" const.
4150 Handle const strings.
4151 * common/format.h (parse_format_string): Make "arg" const.
4152 * gdbserver/ax.c (ax_printf): Make "format" const.
4153 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4154 of the expression string.
4155
f3cec7e6
HZ
41562013-03-12 Hui Zhu <hui@codesourcery.com>
4157
4158 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4159
9df7235c
HZ
41602013-03-12 Yao Qi <yao@codesourcery.com>
4161 Hui Zhu <hui@codesourcery.com>
4162
4163 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4164 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4165 DW_OP_deref_size.
4166
82d049ab
PH
41672013-03-12 Paul Hilfinger <hilfingr@adacore.com>
4168
5f8e0b8f
MF
4169 * ada-lex.l (rules): Only recognize 'thread' as a
4170 delimiter when followed by numerals, as for c-exp.y.
4171 Use new rewind_to_char function to rewind the input for
4172 expression-delimiting tokens.
4173 (rewind_to_char): New function.
82d049ab 4174
8c1fb155
JK
41752013-03-11 Pedro Alves <palves@redhat.com>
4176 Jan Kratochvil <jan.kratochvil@redhat.com>
4177
4178 * configure: Regenerate.
4179 * configure.ac (check dynamic export flag): Link python test with
4180 $PYTHON_LIBS.
4181
cc81e1c6
DE
41822013-03-11 Doug Evans <dje@google.com>
4183 Keith Seitz <keiths@redhat.com>
4184
4185 * linespec.c (find_linespec_symbols): Call find_function_symbols
4186 first, and then call lookup_prefix_sym/find_method.
4187
39086a0e
PA
41882013-03-11 Pedro Alves <palves@redhat.com>
4189
4190 * charset.c (convert_between_encodings): Don't cast between
4191 different pointer to pointer types. Instead, make the 'inp' local
4192 be of the type iconv expects.
4193 (wchar_iterate): Don't cast between different pointer to pointer
4194 types. Instead, use new pointer local of the type iconv expects.
4195 * target.c (target_read_stralloc, target_fileio_read_stralloc):
4196 Add new local of type char pointer, and use it to get a
4197 char/string view of the byte buffer, instead of casting between
4198 pointer to pointer types.
4199
90585175
HAQ
42002013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4201
4202 * remote.c (remote_set_trace_buffer_size): Move != operator
4203 to the start of next line to fix an ARI warning.
4204
59ea5688
MM
42052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4206
4207 * NEWS: Add record changes.
4208
946287b7
MM
42092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4210
4211 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4212 the instruction history disassembly.
4213 * disasm.c (dump_insns): Omit the pc prefix, if requested.
4214 * disasm.h (DISASSEMBLY_OMIT_PC): New.
4215
afedecd3
MM
42162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4217
4218 * Makefile.in (SFILES): Add record-btrace.c
4219 (COMMON_OBS): Add record-btrace.o
4220 * record-btrace.c: New.
4221 * objfiles.c: Include btrace.h.
4222 (free_objfile): call btrace_free_objfile.
4223
15984c13
MM
42242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4225
4226 * target.c (target_call_history, target_call_history_from,
4227 target_call_history_range): New.
4228 * target.h (target_ops) <to_call_history, to_call_history_from,
4229 to_call_history_range>: New fields.
4230 (target_call_history, target_call_history_from,
4231 target_call_history_range): New declaration.
4232 * record.c (get_call_history_modifiers, cmd_record_call_history,
4233 record_call_history_size): New.
4234 (_initialize_record): Add the "record function-call-history" command.
4235 Add "set/show record function-call-history-size" commands.
4236 * record.h (record_print_flag): New.
4237
67c86d06
MM
42382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4239
4240 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4241 to_insn_history_range>: New fields.
4242 (target_insn_history): New.
4243 (target_insn_history_from): New.
4244 (target_insn_history_range): New.
4245 * target.c (target_insn_history): New.
4246 (target_insn_history_from): New.
4247 (target_insn_history_range): New.
4248 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4249 (record_insn_history_size): New.
4250 (get_insn_number): New.
4251 (get_context_size): New.
4252 (no_chunk): New.
4253 (get_insn_history_modifiers): New.
4254 (cmd_record_insn_history): New.
4255 (_initialize_record): Add "set/show record instruction-history-size"
4256 command. Add "record instruction-history" command.
4257
7c1687a9
MM
42582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4259
4260 * record.h (record_disconnect): New.
4261 (record_detach): New.
4262 (record_mourn_inferior): New.
4263 (record_kill): New.
4264 * record-full.c (record_disconnect, record_detach,
4265 record_mourn_inferior, record_kill): Move to...
4266 * record.c: ...here.
4267 (DEBUG): New.
4268 (record_stop): New.
4269 (record_unpush): New.
4270 (cmd_record_stop): Call record_stop. Replace unpush_target
4271 call with record_unpush call.
4272 (record_disconnect, record_detach): Assert that the target
4273 is of record stratum. Call record_unpush, record_stop, and
4274 DEBUG.
4275 (record_mourn_inferior, record_kill): Assert that the target
4276 is of record stratum. Call record_unpush and DEBUG.
4277
25ea693b
MM
42782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4279
4280 * record-full.h, record-full.c (record_memory_query): Rename
4281 to ...
4282 (record_full_memory_query): ...this. Update all users.
4283 (record_arch_list_add_reg): Rename to ...
4284 (record_full_arch_list_add_reg): ...this. Update all users.
4285 (record_arch_list_add_mem): Rename to ...
4286 (record_full_arch_list_add_mem): ...this. Update all users.
4287 (record_arch_list_add_end): Rename to ...
4288 (record_full_arch_list_add_end): ...this. Update all users.
4289 (record_gdb_operation_disable_set): Rename to ...
4290 (record_full_gdb_operation_disable_set): ...this.
4291 Update all users.
4292
88d1aa9d
MM
42932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4294
4295 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4296 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4297 (RECORD_IS_REPLAY): Renamed to ...
4298 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4299 (RECORD_FILE_MAGIC): Renamed to ...
4300 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4301 (record_mem_entry): Renamed to ...
4302 (record_full_mem_entry): ... this. Updated all users.
4303 (record_reg_entry): Renamed to ...
4304 (record_full_reg_entry): ... this. Updated all users.
4305 (record_end_entry): Renamed to ...
4306 (record_full_end_entry): ... this. Updated all users.
4307 (record_type) <record_end, record_reg, record_mem>: Renamed
4308 to ...
4309 (record_full_type) <record_full_end, record_full_reg,
4310 record_full_mem>: ... this. Updated all users.
4311 (record_entry): Renamed to ...
4312 (record_full_entry): ... this. Updated all users.
4313 (record_core_buf_entry): Renamed to ...
4314 (record_full_core_buf_entry): ... this. Updated all users.
4315 (record_core_regbuf): Renamed to ...
4316 (record_full_core_regbuf): ... this. Updated all users.
4317 (record_core_start): Renamed to ...
4318 (record_full_core_start): ... this. Updated all users.
4319 (record_core_end): Renamed to ...
4320 (record_full_core_end): ... this. Updated all users.
4321 (record_core_buf_list): Renamed to ...
4322 (record_full_core_buf_list): ... this. Updated all users.
4323 (record_first): Renamed to ...
4324 (record_full_first): ... this. Updated all users.
4325 (record_list): Renamed to ...
4326 (record_full_list): ... this. Updated all users.
4327 (record_arch_list_head): Renamed to ...
4328 (record_full_arch_list_head): ... this. Updated all users.
4329 (record_arch_list_tail): Renamed to ...
4330 (record_full_arch_list_tail): ... this. Updated all users.
4331 (record_stop_at_limit): Renamed to ...
4332 (record_full_stop_at_limit): ... this. Updated all users.
4333 (record_insn_max_num): Renamed to ...
4334 (record_full_insn_max_num): ... this. Updated all users.
4335 (record_insn_num): Renamed to ...
4336 (record_full_insn_num): ... this. Updated all users.
4337 (record_insn_count): Renamed to ...
4338 (record_full_insn_count): ... this. Updated all users.
4339 (record_ops): Renamed to ...
4340 (record_full_ops): ... this. Updated all users.
4341 (record_core_ops): Renamed to ...
4342 (record_full_core_ops): ... this. Updated all users.
4343 (set_record_cmdlist): Renamed to ...
4344 (set_record_full_cmdlist): ... this. Updated all users.
4345 (show_record_cmdlist): Renamed to ...
4346 (show_record_full_cmdlist): ... this. Updated all users.
4347 (record_cmdlist): Renamed to ...
4348 (record_full_cmdlist): ... this. Updated all users.
4349 (record_beneath_to_resume_ops): Renamed to ...
4350 (record_full_beneath_to_resume_ops): ... this. Updated all users.
4351 (record_beneath_to_resume): Renamed to ...
4352 (record_full_beneath_to_resume): ... this. Updated all users.
4353 (record_beneath_to_wait_ops): Renamed to ...
4354 (record_full_beneath_to_wait_ops): ... this. Updated all users.
4355 (record_beneath_to_wait): Renamed to ...
4356 (record_full_beneath_to_wait): ... this. Updated all users.
4357 (record_beneath_to_store_registers_ops): Renamed to ...
4358 (record_full_beneath_to_store_registers_ops): ... this.
4359 Updated all users.
4360 (record_beneath_to_store_registers): Renamed to ...
4361 (record_full_beneath_to_store_registers): ... this.
4362 Updated all users.
4363 (record_beneath_to_xfer_partial_ops): Renamed to ...
4364 (record_full_beneath_to_xfer_partial_ops): ... this.
4365 Updated all users.
4366 (record_beneath_to_xfer_partial): Renamed to ...
4367 (record_full_beneath_to_xfer_partial): ... this.
4368 Updated all users.
4369 (record_beneath_to_insert_breakpoint): Renamed to ...
4370 (record_full_beneath_to_insert_breakpoint): ... this.
4371 Updated all users.
4372 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4373 (record_full_beneath_to_stopped_by_watchpoint): ... this.
4374 Updated all users.
4375 (record_beneath_to_stopped_data_address): Renamed to ...
4376 (record_full_beneath_to_stopped_data_address): ... this.
4377 Updated all users.
4378 (record_beneath_to_async): Renamed to ...
4379 (record_full_beneath_to_async): ... this. Updated all users.
4380 (record_goto_insn): Renamed to ...
4381 (record_full_goto_insn): ... this. Updated all users.
4382 (record_save): Renamed to ...
4383 (record_full_save): ... this. Updated all users.
4384 (record_reg_alloc): Renamed to ...
4385 (record_full_reg_alloc): ... this. Updated all users.
4386 (record_reg_release): Renamed to ...
4387 (record_full_reg_release): ... this. Updated all users.
4388 (record_mem_alloc): Renamed to ...
4389 (record_full_mem_alloc): ... this. Updated all users.
4390 (record_mem_release): Renamed to ...
4391 (record_full_mem_release): ... this. Updated all users.
4392 (record_end_alloc): Renamed to ...
4393 (record_full_end_alloc): ... this. Updated all users.
4394 (record_end_release): Renamed to ...
4395 (record_full_end_release): ... this. Updated all users.
4396 (record_entry_release): Renamed to ...
4397 (record_full_entry_release): ... this. Updated all users.
4398 (record_list_release): Renamed to ...
4399 (record_full_list_release): ... this. Updated all users.
4400 (record_list_release_following): Renamed to ...
4401 (record_full_list_release_following): ... this.
4402 Updated all users.
4403 (record_list_release_first): Renamed to ...
4404 (record_full_list_release_first): ... this. Updated all users.
4405 (record_arch_list_add): Renamed to ...
4406 (record_full_arch_list_add): ... this. Updated all users.
4407 (record_get_loc): Renamed to ...
4408 (record_full_get_loc): ... this. Updated all users.
4409 (record_check_insn_num): Renamed to ...
4410 (record_full_check_insn_num): ... this. Updated all users.
4411 (record_arch_list_cleanups): Renamed to ...
4412 (record_full_arch_list_cleanups): ... this. Updated all users.
4413 (record_message): Renamed to ...
4414 (record_full_message): ... this. Updated all users.
4415 (record_message_wrapper): Renamed to ...
4416 (record_full_message_wrapper): ... this. Updated all users.
4417 (record_message_wrapper_safe): Renamed to ...
4418 (record_full_message_wrapper_safe): ... this. Updated all users.
4419 (record_gdb_operation_disable): Renamed to ...
4420 (record_full_gdb_operation_disable): ... this. Updated all users.
4421 (record_hw_watchpoint): Renamed to ...
4422 (record_full_hw_watchpoint): ... this. Updated all users.
4423 (record_exec_insn): Renamed to ...
4424 (record_full_exec_insn): ... this. Updated all users.
4425 (record_restore): Renamed to ...
4426 (record_full_restore): ... this. Updated all users.
4427 (record_async_inferior_event_token): Renamed to ...
4428 (record_full_async_inferior_event_token): ... this.
4429 Updated all users.
4430 (record_async_inferior_event_handler): Renamed to ...
4431 (record_full_async_inferior_event_handler): ... this.
4432 Updated all users.
4433 (record_core_open_1): Renamed to ...
4434 (record_full_core_open_1): ... this. Updated all users.
4435 (record_open_1): Renamed to ...
4436 (record_full_open_1): ... this. Updated all users.
4437 (record_open): Renamed to ...
4438 (record_full_open): ... this. Updated all users.
4439 (record_close): Renamed to ...
4440 (record_full_close): ... this. Updated all users.
4441 (record_resume_step): Renamed to ...
4442 (record_full_resume_step): ... this. Updated all users.
4443 (record_resumed): Renamed to ...
4444 (record_full_resumed): ... this. Updated all users.
4445 (record_execution_dir): Renamed to ...
4446 (record_full_execution_dir): ... this. Updated all users.
4447 (record_resume): Renamed to ...
4448 (record_full_resume): ... this. Updated all users.
4449 (record_get_sig): Renamed to ...
4450 (record_full_get_sig): ... this. Updated all users.
4451 (record_sig_handler): Renamed to ...
4452 (record_full_sig_handler): ... this. Updated all users.
4453 (record_wait_cleanups): Renamed to ...
4454 (record_full_wait_cleanups): ... this. Updated all users.
4455 (record_wait_1): Renamed to ...
4456 (record_full_wait_1): ... this. Updated all users.
4457 (record_wait): Renamed to ...
4458 (record_full_wait): ... this. Updated all users.
4459 (record_stopped_by_watchpoint): Renamed to ...
4460 (record_full_stopped_by_watchpoint): ... this. Updated all users.
4461 (record_disconnect): Renamed to ...
4462 (record_full_disconnect): ... this. Updated all users.
4463 (record_detach): Renamed to ...
4464 (record_full_detach): ... this. Updated all users.
4465 (record_mourn_inferior): Renamed to ...
4466 (record_full_mourn_inferior): ... this. Updated all users.
4467 (record_kill): Renamed to ...
4468 (record_full_kill): ... this. Updated all users.
4469 (record_stopped_data_address): Renamed to ...
4470 (record_full_stopped_data_address): ... this. Updated all users.
4471 (record_registers_change): Renamed to ...
4472 (record_full_registers_change): ... this. Updated all users.
4473 (record_store_registers): Renamed to ...
4474 (record_full_store_registers): ... this. Updated all users.
4475 (record_xfer_partial): Renamed to ...
4476 (record_full_xfer_partial): ... this. Updated all users.
4477 (record_breakpoint): Renamed to ...
4478 (record_full_breakpoint): ... this. Updated all users.
4479 (record_breakpoint_p): Renamed to ...
4480 (record_full_breakpoint_p): ... this. Updated all users.
4481 (record_breakpoints): Renamed to ...
4482 (record_full_breakpoints): ... this. Updated all users.
4483 (record_sync_record_breakpoints): Renamed to ...
4484 (record_full_sync_record_breakpoints): ... this.
4485 Updated all users.
4486 (record_init_record_breakpoints): Renamed to ...
4487 (record_full_init_record_breakpoints): ... this.
4488 Updated all users.
4489 (record_insert_breakpoint): Renamed to ...
4490 (record_full_insert_breakpoint): ... this. Updated all users.
4491 (record_remove_breakpoint): Renamed to ...
4492 (record_full_remove_breakpoint): ... this. Updated all users.
4493 (record_can_execute_reverse): Renamed to ...
4494 (record_full_can_execute_reverse): ... this. Updated all users.
4495 (record_get_bookmark): Renamed to ...
4496 (record_full_get_bookmark): ... this. Updated all users.
4497 (record_goto_bookmark): Renamed to ...
4498 (record_full_goto_bookmark): ... this. Updated all users.
4499 (record_async): Renamed to ...
4500 (record_full_async): ... this. Updated all users.
4501 (record_can_async_p): Renamed to ...
4502 (record_full_can_async_p): ... this. Updated all users.
4503 (record_is_async_p): Renamed to ...
4504 (record_full_is_async_p): ... this. Updated all users.
4505 (record_execution_direction): Renamed to ...
4506 (record_full_execution_direction): ... this. Updated all users.
4507 (record_info): Renamed to ...
4508 (record_full_info): ... this. Updated all users.
4509 (record_delete): Renamed to ...
4510 (record_full_delete): ... this. Updated all users.
4511 (record_is_replaying): Renamed to ...
4512 (record_full_is_replaying): ... this. Updated all users.
4513 (record_goto_entry): Renamed to ...
4514 (record_full_goto_entry): ... this. Updated all users.
4515 (record_goto_begin): Renamed to ...
4516 (record_full_goto_begin): ... this. Updated all users.
4517 (record_goto_end): Renamed to ...
4518 (record_full_goto_end): ... this. Updated all users.
4519 (record_goto): Renamed to ...
4520 (record_full_goto): ... this. Updated all users.
4521 (init_record_ops): Renamed to ...
4522 (init_record_full_ops): ... this. Updated all users.
4523 (record_core_resume): Renamed to ...
4524 (record_full_core_resume): ... this. Updated all users.
4525 (record_core_kill): Renamed to ...
4526 (record_full_core_kill): ... this. Updated all users.
4527 (record_core_fetch_registers): Renamed to ...
4528 (record_full_core_fetch_registers): ... this. Updated all users.
4529 (record_core_prepare_to_store): Renamed to ...
4530 (record_full_core_prepare_to_store): ... this. Updated all users.
4531 (record_core_store_registers): Renamed to ...
4532 (record_full_core_store_registers): ... this. Updated all users.
4533 (record_core_xfer_partial): Renamed to ...
4534 (record_full_core_xfer_partial): ... this. Updated all users.
4535 (record_core_insert_breakpoint): Renamed to ...
4536 (record_full_core_insert_breakpoint): ... this. Updated all users.
4537 (record_core_remove_breakpoint): Renamed to ...
4538 (record_full_core_remove_breakpoint): ... this. Updated all users.
4539 (record_core_has_execution): Renamed to ...
4540 (record_full_core_has_execution): ... this. Updated all users.
4541 (init_record_core_ops): Renamed to ...
4542 (init_record_full_core_ops): ... this. Updated all users.
4543 (cmd_record_restore): Renamed to ...
4544 (cmd_record_full_restore): ... this. Updated all users.
4545 (record_save_cleanups): Renamed to ...
4546 (record_full_save_cleanups): ... this. Updated all users.
4547 (cmd_record_start): Renamed to ...
4548 (cmd_record_full_start): ... this. Updated all users.
4549 (set_record_insn_max_num): Renamed to ...
4550 (set_record_full_insn_max_num): ... this. Updated all users.
4551 (set_record_command): Renamed to ...
4552 (set_record_full_command): ... this. Updated all users.
4553 (show_record_command): Renamed to ...
4554 (show_record_full_command): ... this. Updated all users.
4555 (_initialize_record): Renamed to ...
4556 (_initialize_record_full): ... this. Updated all users.
4557
d02ed0bb
MM
45582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4559
4560 * record.h: Split into this and ...
4561 * record-full.h: ... this.
4562 * record.c: Split into this and ...
4563 * record-full.c: ... this.
4564 * target.h (target_ops): Add new fields to_info_record,
4565 to_save_record, to_delete_record, to_record_is_replaying,
4566 to_goto_record_begin, to_goto_record_end, to_goto_record.
4567 (target_info_record): New.
4568 (target_save_record): New.
4569 (target_supports_delete_record): New.
4570 (target_delete_record): New.
4571 (target_record_is_replaying): New.
4572 (target_goto_record_begin): New.
4573 (target_goto_record_end): New.
4574 (target_goto_record): New.
4575 * target.c (target_info_record): New.
4576 (target_save_record): New.
4577 (target_supports_delete_record): New.
4578 (target_delete_record): New.
4579 (target_record_is_replaying): New.
4580 (target_goto_record_begin): New.
4581 (target_goto_record_end): New.
4582 (target_goto_record): New.
4583 * record.h: Declare struct cmd_list_element.
4584 (record_cmdlist): New declaration.
4585 (set_record_cmdlist): New declaration.
4586 (show_record_cmdlist): New declaration.
4587 (info_record_cmdlist): New declaration.
4588 (cmd_record_goto): New declaration.
4589 * record.c: Remove unnecessary includes.
4590 Include inferior.h.
4591 (cmd_record_goto): Remove declaration.
4592 (record_cmdlist): Now extern. Initialize.
4593 (set_record_cmdlist): Now extern. Initialize.
4594 (show_record_cmdlist): Now extern. Initialize.
4595 (info_record_cmdlist): Now extern. Initialize.
4596 (find_record_target): New.
4597 (require_record_target): New.
4598 (cmd_record_start): Update.
4599 (cmd_record_delete): Remove target-specific code.
4600 Call target_delete_record.
4601 (cmd_record_stop): Unpush any record target.
4602 (set_record_insn_max_num): Move to record-full.c
4603 (set_record_command): Add comment.
4604 (show_record_command): Add comment.
4605 (info_record_command): Update comment.
4606 Remove target-specific code.
4607 Call the record target's to_info_record.
4608 (cmd_record_start): New.
4609 (cmd_record_goto): Now extern.
4610 Remove target-specific code.
4611 Call target_goto_begin, target_goto_end, or target_goto.
4612 (_initialize_record): Move record target ops initialization to
4613 record-full.c.
4614 Change "record" command help text.
4615 Move "record restore", "record set", and "record show" commands to
4616 record-full.c.
4617 * Makefile.in (SFILES): Add record-full.c.
4618 (HFILES_NO_SRCDIR): Add record-full.h.
4619 (COMMON_OBS): Add record-full.o.
4620 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4621 * arm-tdep.c: Include record-full.h.
4622 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4623 * i386-tdep.c: Include record-full.h.
4624 * infrun.c: Include record-full.h.
4625 * linux-record.c: Include record-full.h.
4626 * moxie-tdep.c: Include record-full.h.
4627 * record-full.c: Include record-full.h.
4628 Change module comment.
4629 (set_record_full_cmdlist): New.
4630 (show_record_full_cmdlist): New.
4631 (record_full_cmdlist): New.
4632 (record_goto_insn): New declaration.
4633 (record_save): New declaration.
4634 (record_check_insn_num): Change query string.
4635 (record_info): New.
4636 (record_delete): New.
4637 (record_is_replaying): New.
4638 (record_goto_entry): New.
4639 (record_goto_begin): New.
4640 (record_goto_end): New.
4641 (record_goto): New.
4642 (init_record_ops): Update.
4643 (init_record_core_ops): Update.
4644 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4645 (cmd_record_start): New.
4646 (set_record_insn_max_num): Moved from record.c
4647 (set_record_full_command): New.
4648 (show_record_full_command): New.
4649 (_initialize_record_full): New.
4650
b48d48eb
MM
46512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4652
4653 * target.h (add_deprecated_target_alias): New.
4654 * target.c (add_deprecated_target_alias): New.
4655
a950d57c
MM
46562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4657
4658 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4659 and signal.h.
4660 (linux_supports_btrace): Add kernel and
4661 cpuid check.
4662 (kernel_supports_btrace): New function.
4663 (cpu_supports_btrace): New function.
4664 (intel_supports_btrace): New function.
4665
9accd112
MM
46662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4667
4668 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4669 * remote.c: Include btrace.h.
4670 (struct btrace_target_info): New struct.
4671 (remote_supports_btrace): New function.
4672 (send_Qbtrace): New function.
4673 (remote_enable_btrace): New function.
4674 (remote_disable_btrace): New function.
4675 (remote_teardown_btrace): New function.
4676 (remote_read_btrace): New function.
4677 (init_remote_ops): Add btrace ops.
4678 (enum <unnamed>): Add btrace packets.
4679 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4680 (_initialize_remote): Add packet configuration for branch tracing.
4681
c12a2917
MM
46822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4683
4684 * features/btrace.dtd: New file.
4685 * Makefile.in (XMLFILES): Add btrace.dtd.
4686 * btrace.h (parse_xml_btrace): New declaration.
4687 * btrace.c: Include xml-support.h.
4688 (parse_xml_btrace): New function.
4689 (parse_xml_btrace_block): New function.
4690 (block_attributes): New struct.
4691 (btrace_attributes): New struct.
4692 (btrace_children): New struct.
4693 (btrace_elements): New struct.
4694
3e3aea48
MM
46952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4696
4697 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4698 (amd64_linux_enable_btrace): New.
4699 (amd64_linux_disable_btrace): New.
4700 (amd64_linux_teardown_btrace): New.
4701 (_initialize_amd64_linux_nat): Initialize btrace ops.
4702 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4703 (i386_linux_enable_btrace): New.
4704 (i386_linux_disable_btrace): New.
4705 (i386_linux_teardown_btrace): New.
4706 (_initialize_i386_linux_nat): Initialize btrace ops.
4707 * config/i386/linux.mh: Add linux-btrace.o.
4708 * config/i386/linux64.mh: Add linux-btrace.o.
4709
7c97f91e
MM
47102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4711
4712 * common/linux_btrace.h: New file.
4713 * common/linux_btrace.c: New file.
4714 * Makefile.in (SFILES): Add btrace.c.
4715 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4716 (COMMON_OBS): Add btrace.o.
4717 (linux-btrace.o): New rule.
4718
1999790b 47192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
4720
4721 * target.h: Include btrace.h.
4722 (struct target_ops) <to_supports_btrace, to_enable_btrace,
4723 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4724 * target.c (target_supports_btrace): New function.
4725 (target_enable_btrace): New function.
4726 (target_disable_btrace): New function.
4727 (target_teardown_btrace): New function.
4728 (target_read_btrace): New function.
4729 * btrace.h: New file.
4730 * btrace.c: New file.
4731 * Makefile.in: Add btrace.c.
4732 * gdbthread.h: Include btrace.h.
4733 (struct thread_info): Add btrace field.
4734 * thread.c: Include btrace.h.
4735 (clear_thread_inferior_resources): Call target_teardown_btrace.
4736 * common/btrace-common.h: New file.
4737
61a31a67
JK
47382013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4739
4740 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4741 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4742 kill_status to outer block.
4743
05c56a9d
JK
47442013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Fix entry-values if the callee called a noreturn function.
4747 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4748 get_frame_address_in_block. Add new comment.
4749
9112db09
JK
47502013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4751
4752 Fix entry-values in C++ across CUs.
4753 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4754 lookup_minimal_symbol. Add a comment.
4755 * dwarf2read.c
4756 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4757 DW_AT_linkage_name.
4758
9b67fcec
YQ
47592013-03-08 Yao Qi <yao@codesourcery.com>
4760
4761 * tracepoint.c (_initialize_tracepoint): Indent the code.
4762
6221be90
PA
47632013-03-08 Pedro Alves <palves@redhat.com>
4764
4765 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4766 (parse_find_args, find_command): Change type of pattern buffer
4767 locals to 'gdb_byte *'.
4768
be9a119c 47692013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
4770 Hafiz Abid Qadeer <abidh@codesourcery.com>
4771
4772 * NEWS: Mention set and show trace-buffer-size commands.
4773 Mention new packet.
4774 * target.h (struct target_ops): New method
4775 to_set_trace_buffer_size.
4776 (target_set_trace_buffer_size): New macro.
4777 * target.c (update_current_target): Set up new method.
4778 * tracepoint.c (trace_buffer_size): New global.
4779 (start_tracing): Send it to the target.
4780 (set_trace_buffer_size): New function.
4781 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4782 * remote.c (remote_set_trace_buffer_size): New function.
4783 (_initialize_remote): Use it.
4784 (QTBuffer:size) New remote command.
4785 (PACKET_QTBuffer_size): New enum.
4786 (remote_protocol_features): Add an entry for
4787 PACKET_QTBuffer_size.
4788
7da3ab79
TT
47892013-03-08 Tom Tromey <tromey@redhat.com>
4790
4791 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4792 variable.
4793
0c1f71e7
PA
47942013-03-07 Pedro Alves <palves@redhat.com>
4795
4796 * target.c (target_read_stralloc, target_fileio_read_alloc):
4797 *Cast pointer to 'gdb_byte *' in target call.
4798
c8af03a2
PA
47992013-03-07 Pedro Alves <palves@redhat.com>
4800
4801 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4802 call.
4803
529480d0
KS
48042013-03-07 Keith Seitz <keiths@redhat.com>
4805
4806 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4807 (trace_pass_command): Likewise.
4808 * cli/cli-cmds.c: Include cli/cli-utils.h.
4809 (source_command): Use skip-spaces.
4810 (disassemble_command): Likewise.
4811 * findcmd.c: Include cli/cli-utils.h.
4812 (parse_find_args): Use skip_spaces.
4813 * go32-nat.c: Include cli/cli-utils.h.
4814 (go32_sldt): Use skip_spaces.
4815 (go32_sgdt): Likewise.
4816 (go32_sidt): Likewise.
4817 (go32_pde): Likewise.
4818 (go32_pte): Likewise.
4819 (go32_pte_for_address): Likewise.
4820 * infcmd.c: Include cli/cli-utils.h.
4821 (registers_info): Use skip_spaces.
4822 * linux-tdep.c (read_mapping): Use skip_spaces_const.
4823 (linux_info_proc): Likewise.
4824 * linux-thread-db.c: Include cli/cli-utils.h.
4825 (info_auto_load_libthread_db): Use skip_spaces_const.
4826 * m32r-rom.c: Include cli/cli-utils.h.
4827 (m32r_upload_command): Use skip_spaces.
4828 * maint.c: Include cli/cli-utils.h.
4829 (maintenance_translate_address): Use skip_spaces.
4830 * mi/mi-parse.c: Include cli/cli-utils.h.
4831 (mi_parse_argv): Use skip_spaces.
4832 (mi_parse): Likewise.
4833 * minsyms.c: Include cli/cli-utils.h.
4834 (msymbol_hash_iw): Use skip_spaces_const.
4835 * objc-lang.c: Include cli/cli-utils.h.
4836 (parse_selector): Use skip_spaces.
4837 (parse_method): Likewise.
4838 * python/python.c: Include cli/cli-utils.h.
4839 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4840 (python_command)[HAVE_PYTHON]: Likewise.
4841 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4842 * remote-m32r-sdi.c: Include cli/cli-utils.h.
4843 (m32r_load): Use skip_spaces.
4844 * serial.c: Include cli/cli-utils.h.
4845 (serial_open): Use skip_spaces_const.
4846 * stack.c: Include cli/cli-utils.h.
4847 (parse_frame_specification_1): Use skip_spaces_const.
4848 * symfile.c: Include cli/cli-utils.h.
4849 (set_ext_lang_command): Use skip_spaces.
4850 * symtab.c: Include cli/cli-utils.h.
4851 (rbreak_command): Use skip_spaces.
4852 * thread.c (thread_name_command): Use skip_spaces.
4853 * tracepoint.c (validate_actionline): Use skip_spaces.
4854 (encode_actions_1): Likewise.
4855 (trace_find_range_command): Likewise.
4856 (trace_find_outside_command): Likewise.
4857 (trace_dump_actions): Likewise.
4858
ac91cd70
PA
48592013-03-07 Pedro Alves <palves@redhat.com>
4860
4861 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4862 * expprint.c (print_subexp_standard): Likewise.
4863 * utils.c (host_char_to_target): Likewise.
4864 * valprint.c (generic_emit_char, generic_printstr): Likewise.
4865 * varobj.c (value_get_print_value): Change type of local to char*.
4866 Cast it gdb_byte * in call to language printer.
4867
2898e560
PA
48682013-03-07 Pedro Alves <palves@redhat.com>
4869
4870 * charset.c (struct wchar_iterator) <input>: Change type to 'const
4871 gdb_byte *'.
4872 (make_wchar_iterator): Remove cast to char*.
4873 (wchar_iterate): Change type of local.
4874
a09b4448
PA
48752013-03-07 Pedro Alves <palves@redhat.com>
4876
4877 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4878 for 'regcache->register_status'.
4879
20ced3e4
PA
48802013-03-07 Pedro Alves <palves@redhat.com>
4881
c2d6a675 4882 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
4883 int.
4884
fe106009
PA
48852013-03-07 Pedro Alves <palves@redhat.com>
4886
4887 * stap-probe.c (handle_stap_probe): Add cast to char*.
4888
8ac2c12b
PA
48892013-03-07 Pedro Alves <palves@redhat.com>
4890
4891 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4892 RECORD_MSGRCV>: Pass a signed variable to
4893 regcache_raw_read_signed, instead of an unsigned one.
4894
99f0a309
PA
48952013-03-07 Pedro Alves <palves@redhat.com>
4896
4897 * remote-notif.c (notif_debug): Change type to int.
4898 * remote-notif.h (notif_debug): Likewise.
4899
964b8317
PA
49002013-03-07 Pedro Alves <palves@redhat.com>
4901
4902 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4903
f0cc8ad4
PA
49042013-03-07 Pedro Alves <palves@redhat.com>
4905
4906 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4907 * remote.h (hex2bin, bin2hex): ... here.
4908 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4909
77dec115
EZ
49102013-03-07 Eli Zaretskii <eliz@gnu.org>
4911
4912 * utils.c (initialize_utils): Improve doc strings of "set/show
4913 width", "set/show height", and "set/show pagination".
4914
741d92cf
KS
49152013-03-06 Keith Seitz <keiths@redhat.com>
4916
4917 * ax-gdb.c (gen_printf): Make FORMAT const.
4918 * ax-gdb.h (gen_printf): Likewise.
4919 * ax-general.c (ax_string): Make STR const.
4920 * ax.h (ax_string): Likewise.
4921
7b6c814e
DE
49222013-03-06 Doug Evans <dje@google.com>
4923
4924 * elfread.c (elf_symfile_read): Move debugging printf to more
4925 logical location.
4926
634334ab
PA
49272013-03-06 Pedro Alves <palves@redhat.com>
4928
4929 * python/py-utils.c (target_string_to_unicode): Delete function.
4930 * python/python-internal.h (target_string_to_unicode): Delete
4931 declaration.
4932
e482a1a7
PM
49332013-03-06 Pierre Muller <muller@sourceware.org>
4934
4935 * linespec.c (get_current_search_block): ARI fix, use (void)
4936 for empty parameter list.
4937
4eeaa230
DE
49382013-03-05 Doug Evans <dje@google.com>
4939
4940 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4941 of old ada_lookup_symbol_list. In !full_search case, don't
4942 search superblocks.
4943 (ada_lookup_symbol_list): Delete arg full_search, all callers
4944 updated. Call ada_lookup_symbol_list_worker.
4945 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4946 * ada-lang.h (ada_lookup_symbol_list): Update.
4947 * language.h (language_defn): Update comment for
4948 la_iterate_over_symbols.
4949 * linespec.c (iterate_over_file_blocks): New function.
4950 (iterate_over_all_matching_symtabs): Call it.
4951 (lookup_prefix_sym): Ditto.
4952 (get_current_search_block): New function.
4953 (get_search_block): Delete.
4954 (find_label_symbols): Call get_current_search_block.
4955 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4956 * symtab.c (iterate_over_symbols): Don't search superblocks.
4957
b69b1fb1
YQ
49582013-03-05 Yao Qi <yao@codesourcery.com>
4959
4960 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4961 parameter VAR's type from "unsigned int" to "int".
4962 * command.h (var_zuinteger_unlimited): Update its comments.
4963 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4964
3c095f49
CV
49652013-03-05 Corinna Vinschen <vinschen@redhat.de>
4966
4967 * NEWS: Mention new target x86_64-*-cygwin*.
4968
b5b0b0af
CV
49692013-03-05 Corinna Vinschen <vinschen@redhat.de>
4970
4971 * configure.host: Add x86_64-*-cygwin* as host.
4972 * configure.tgt: Add x86_64-*-cygwin* as target.
4973 * config/i386/cygwin64.mh: New file.
4974
f6f99966
JK
49752013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4976
4977 * linespec.c (decode_line_2): Fix duplicate request off by two message.
4978
33f448b1
JK
49792013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4980
4981 * linespec.c (struct linespec_canonical_name): New.
4982 (struct linespec_state): Change canonical_names type to it.
4983 (add_sal_to_sals): Change variable canonical_name to canonical. Change
4984 xrealloc element size. Initialize the different CANONICAL fields.
4985 (canonical_to_fullform): New.
4986 (filter_results): Use it. Add variables canonical, fullform and
4987 cleanup.
4988 (struct decode_line_2_item, decode_line_2_compare_items): New.
4989 (decode_line_2): Remove variables iter and item_names, add variables
4990 items and items_count. Modify the code for these new variables.
4991
feb14725
CV
49922013-03-04 Corinna Vinschen <vinschen@redhat.com>
4993
4994 * coff-pe-read.c (read_pe_exported_syms): Don't return without
4995 calling do_cleanup.
4996
e83b17ba
HZ
49972013-03-04 Luis Machado <lgustavo@codesourcery.com>
4998
4999 * tracepoint.c (build_traceframe_info): Add code for byte order.
5000
a2d13a0d
KB
50012013-03-02 Kevin Buettner <kevinb@redhat.com>
5002
8dddcae8
KB
5003 * v850-tdep.c: (v850e2_register_name): Revise system register
5004 names to match current V850E2M architecture specifications.
5005 Update register number enum comments too.
a2d13a0d 5006
d79e58d8
JW
50072013-03-01 Jiong Wang <jiwang@tilera.com>
5008 Pedro Alves <palves@redhat.com>
5009
5010 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5011 to END_ADDR.
5012 (tilegx_skip_prologue): Limit prologue analysis to section end.
5013
c4be5165
JK
50142013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5015
5016 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5017 use it.
5018
e362b510
PA
50192013-03-01 Pedro Alves <palves@redhat.com>
5020
5021 Use gdb_byte for bytes from the program being debugged.
5022
5023 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5024 Change type of local 'buf' to gdb_byte.
5025 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5026 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5027 * cris-tdep.c (cris_sigcontext_addr)
5028 (cris_sigtramp_frame_unwind_cache): Likewise.
5029 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5030 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5031 Likewise.
5032 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5033 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5034 (hppa32_hpux_search_dummy_call_sequence)
5035 (hppa_hpux_supply_save_state): Likewise.
5036 * hppa-linux-tdep.c (insns_match_pattern)
5037 (hppa_linux_find_global_pointer): Likewise.
5038 * hppa-tdep.c (hppa_in_function_epilogue_p)
5039 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5040 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5041 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5042 (i386fbsd_collect_uthread): Likewise.
5043 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5044 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5045 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5046 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5047 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5048 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5049 (ia64_libunwind_frame_prev_register)
5050 (ia64_libunwind_sigtramp_frame_this_id)
5051 (ia64_find_global_pointer_from_dynamic_section)
5052 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5053 (ia64_unwind_pc): Likewise.
5054 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5055 * m68hc11-tdep.c (m68hc11_push_dummy_call)
5056 (m68hc11_extract_return_value): Likewise.
5057 * m68klinux-nat.c (fetch_register, store_register): Likewise.
5058 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5059 (mep_get_insn, mep_push_dummy_call): Likewise.
5060 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5061 (mips_linux_in_dynsym_stub): Likewise.
5062 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5063 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5064 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5065 to gdb_byte.
5066 * remote-mips.c (mips_set_register): Likewise.
5067 * remote-sim.c (gdbsim_fetch_register): Likewise.
5068 * score-tdep.c (score7_fetch_inst): Change type of parameter
5069 'memblock' and local 'buf' to gdb_byte.
5070 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5071 Change type of local 'buf' to gdb_byte. Adjust.
5072 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5073 to gdb_byte**.
5074 (score7_analyze_prologue): Change type of 'memblock' and
5075 'memblock_ptr' locals to gdb_byte*.
5076 * sh64-tdep.c (sh64_extract_return_value)
5077 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5078 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5079 * solib-pa64.c (pa64_solib_create_inferior_hook)
5080 (pa64_open_symbol_file_object): Remove local 'buf'.
5081 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5082 (som_open_symbol_file_object): Likewise.
5083 * solib-spu.c (spu_current_sos): Likewise.
5084 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5085 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5086 (spu_store_registers): Likewise.
5087 * target.c (debug_print_register): Likewise.
5088 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5089 * xstormy16-tdep.c (xstormy16_store_return_value)
5090 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5091 (xstormy16_find_jmp_table_entry): Likewise.
5092
75cc61ca 50932013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
5094
5095 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5096 (tilegx_gdbarch_init): Install it.
5097
ddb08e9c
TT
50982013-02-28 Tom Tromey <tromey@redhat.com>
5099
5100 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5101 PyLong_Check.
5102
62d7fb51
DE
51032013-02-28 Doug Evans <dje@google.com>
5104
5105 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5106 * python/python.c (gdbpy_find_pc_line): Ditto.
5107
c4a9e8b4
TT
51082013-02-28 Tom Tromey <tromey@redhat.com>
5109
5110 * contrib/excheck.py: New file.
5111 * contrib/exsummary.py: New file.
5112 * contrib/gcc-with-excheck: New file.
5113
7f6a5dde
TT
51142013-02-28 Tom Tromey <tromey@redhat.com>
5115
5116 * python/python.c (gdbpy_print_stack): Call begin_line and
5117 fprintf_filtered inside TRY_CATCH.
5118
9e974e55
TT
51192013-02-28 Tom Tromey <tromey@redhat.com>
5120
5121 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5122 inside TRY_CATCH.
5123
dd5fa3e7
TT
51242013-02-28 Tom Tromey <tromey@redhat.com>
5125
5126 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5127 frame_object_to_frame_info inside TRY_CATCH.
5128
86a3263f
TT
51292013-02-28 Tom Tromey <tromey@redhat.com>
5130
5131 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5132 TRY_CATCH.
5133
81b52a3a
TT
51342013-02-28 Tom Tromey <tromey@redhat.com>
5135
5136 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5137
d50a0ce2
CV
51382013-02-27 Corinna Vinschen <vinschen@redhat.com>
5139
5140 * windows-nat.c: Throughout, fix format strings and casts of
5141 printf-like functions to avoid type related warnings on all
5142 platforms.
5143 (handle_output_debug_string): Fetch context information address
5144 from debug string using string_to_core_addr.
5145
e1f58301
JW
51462013-02-27 Jiong Wang <jiwang@tilera.com>
5147
5148 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5149 * regformats/reg-tilegx32.dat: New.
5150
4fcd89fc
JW
51512013-02-27 Jiong Wang <jiwang@tilera.com>
5152
5153 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5154
748d24e6
JW
51552013-02-27 Jiong Wang <jiwang@tilera.com>
5156
5157 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5158
6c8e944d
YQ
51592013-02-27 Yao Qi <yao@codesourcery.com>
5160 Pedro Alves <palves@redhat.com>
5161
5162 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
5163 pc/tp/range/outside, look for the next trace frame instead of
5164 always starting from frame 0.
6c8e944d 5165
acd7db30
AG
51662013-02-26 Anthony Green <green@moxielogic.com>
5167
5168 * configure.tgt: Add support for moxie-*-rtems* target.
5169
025e6dce
PA
51702013-02-25 Pedro Alves <palves@redhat.com>
5171
5172 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5173 warning text.
5174
ca9c94ef
MR
51752013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5176
5177 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5178 if $fp is used as the virtual frame pointer.
5179
24c274a1
AM
51802013-02-23 Alan Modra <amodra@gmail.com>
5181
5182 * elfread.c (elf_symtab_read): Do not use udata.p here to find
5183 symbol size.
5184 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5185 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5186 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5187 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5188
bfada189
JK
51892013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5190
5191 Code cleanup.
5192 * elfread.c (build_id_bfd_get): Make the return type const.
5193 (build_id_verify): Make the check parameter const.
5194 (build_id_to_debug_filename): Make the build_id parameter and variable
5195 data const.
5196 (find_separate_debug_file_by_buildid): Make the variable build_id const.
5197
c0355132
AM
51982013-02-21 Alan Modra <amodra@gmail.com>
5199
5200 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5201
9f44fbc0
SCR
52022013-02-20 Siva Chandra Reddy <sivachandra@google.com>
5203
5204 Add a new method 'disassemble' to gdb.Architecture class.
5205 * python/py-arch.c (archpy_disassmble): Implementation of the
5206 new method gdb.Architecture.disassemble.
5207 (arch_object_methods): Add entry for the new method.
5208
b74ea3eb
JW
52092013-02-20 Jiong Wang <jiwang@tilera.com>
5210
5211 * MAINTAINERS (Write After Approval): Add myself to the list.
5212
61a672f1
PA
52132013-02-19 Pedro Alves <palves@redhat.com>
5214
5215 Garbage collect 'struct monitor_ops'::load_routine.
5216
5217 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5218 * monitor.c (monitor_load): No longer call
5219 current_monitor->load_routine.
5220 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5221 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5222 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5223
40e397df
PA
52242013-02-19 Pedro Alves <palves@redhat.com>
5225
5226 PR gdb/15161
5227
5228 Harmonize with generic_load.
5229
5230 * monitor.c: Include "readline/readline.h".
5231 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5232 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5233 long/strtol for the 'load_offset' local. Error out if no argument
5234 is given or if too many arguments are given. Tilde expand the
5235 passed in file name.
5236
f698ca8e
KT
52372013-02-19 Kai Tietz <ktietz@redhat.com>
5238
5239 PR gdb/15161
5240 * symfile.c (load_section_data): Change type of load_offset
5241 to CORE_ADDR.
5242 (generic_load): User strtoulst instead of strtoul for conversion
5243 of load_offset.
5244
3361b059
WL
52452013-02-19 Jiong Wang <jiwang@tilera.com>
5246
5247 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5248 for return address, "lr" register, saved on stack.
5249 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5250 after we invoke tilegx_analyze_prologue.
5251
3e9d5130
WL
52522013-02-19 Jiong Wang <jiwang@tilera.com>
5253
bb1bcd86
WL
5254 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5255
3361b059 52562013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 5257
b74ea3eb 5258 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 5259
4aaf2503
WL
52602013-02-19 Jiong Wang <jiwang@tilera.com>
5261
b74ea3eb 5262 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
5263 (tilegx_write_pc): New function.
5264 (tilegx_cannot_reference_register): Return zero if REGNO
5265 is TILEGX_FAULTNUM_REGNUM.
5266 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5267 (tilegx_register_name): Add handling of "faultnum" register.
5268 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5269 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5270 handling of TILEGX_FAULTNUM_REGNUM.
5271 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5272
bc23a956
WL
52732013-02-19 Jiong Wang <jiwang@tilera.com>
5274
5275 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 5276 should be aligned to 64bit.
bc23a956 5277
42f45f1a
KT
52782013-02-19 Kai Tietz <ktietz@redhat.com>
5279
5280 * windows-nat.c (windows_xfer_memory): Fix debug-output
5281 for LLP64.
5282
6ce4c112
LL
52832013-02-19 Lei Liu <lei.liu2@windriver.com>
5284
5285 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5286 Don't check DSP register number if HAVE_DSP is not set.
5287
30e8ee25
AM
52882013-02-19 Alan Modra <amodra@gmail.com>
5289
5290 * elfread.c (struct build_id): Delete. Use struct elf_build_id
5291 throughout file instead.
5292 (build_id_bfd_get): Update to use new elf_tdata build_id field.
5293 Don't xmalloc return value.
5294 (build_id_verify): Similarly. Don't xfree.
5295 (build_id_to_debug_filename): Update.
5296 (find_separate_debug_file_by_buildid): Update, don't xfree.
5297
4c9ad8c2
TT
52982013-02-18 Tom Tromey <tromey@redhat.com>
5299
5300 PR gdb/15102:
5301 * dwarf2read.c (read_subrange_type): Use result of
5302 'check_typedef'.
5303
983dc440
YQ
53042013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
5305
5306 * frame.c: Remove one extra white space after #include
5307 directive.
5308
7fb2b84a
JK
53092013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5310
5311 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5312
edceb2a9
JK
53132013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5314
5315 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5316 and dir commands into an if block.
5317
e81b7af8
TT
53182013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
5319
5320 * python/py-breakpoint (struct pybp_code): Use int instead of
5321 enum type_code.
5322
f5911ea1
HAQ
53232013-02-15 Pedro Alves <pedro@codesourcery.com>
5324 Hafiz Abid Qadeer <abidh@codesourcery.com>
5325
5326 * NEWS: Mention new field "trace-file".
5327 * tracepoint.c (trace_status_mi): Output "trace-file" field.
5328 (tfile_open): Record the trace file's filename in the trace
5329 status.
5330 (tfile_files_info): Mention the name of the trace file.
5331 Check the "filename" field explicitely.
5332 (trace_status_command): Explicitely check "filename" field.
5333 (trace_find_command): Ditto.
5334 (trace_find_pc_command): Ditto.
5335 (trace_find_tracepoint_command): Ditto.
5336 (trace_find_line_command): Ditto.
5337 (trace_find_range_command): Ditto.
5338 (trace_find_outside_command): Ditto.
5339 * tracepoint.h (struct trace_status) <from_file>: Rename it
5340 to "filename" and make it hold the trace file's filename
5341 instead of a boolean.
5342 * remote.c (remote_get_trace_status): Initialize "filename"
5343 field with NULL instead of 0.
5344
796cb314
YQ
53452013-02-15 Yao Qi <yao@codesourcery.com>
5346
5347 * remote.c: Fix a typo.
5348
42e79b1d
PM
53492013-02-14 Pierre Muller <muller@sourceware.org>
5350
5351 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5352
baea0dae
PA
53532013-02-14 Pedro Alves <palves@redhat.com>
5354
5355 * utils.c (savestring): Don't #undef it. Move function to
5356 common/common-utils.c.
5357 * common/common-utils.c: Include gdb_string.h.
5358 (savestring): Move here from utils.c.
5359 * common/common-utils.h (savestring): Declare.
5360
57c3b6ed
PA
53612013-02-14 Pedro Alves <palves@redhat.com>
5362
5363 * utils.c (savestring): Rename parameter 'size' to 'len'.
5364
d6c44983
YZ
53652013-02-14 Pedro Alves <palves@redhat.com>
5366 Yufeng Zhang <yufeng.zhang@arm.com>
5367
5368 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5369 (aarch64_inferior_data, struct aarch64_inferior_data):
5370 Delete.
5371 (struct aarch64_process_info): New.
5372 (aarch64_process_list): New global.
5373 (aarch64_find_process_pid, aarch64_add_process)
5374 (aarch64_process_info_get): New functions.
5375 (aarch64_inferior_data_get): Delete.
5376 (aarch64_process_info_get): New function.
5377 (aarch64_forget_process): New function.
5378 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
5379 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5380 aarch64_get_debug_reg_state.
5381 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5382 instead of linux_nat_iterate_watchpoint_lwps.
5383 (aarch64_linux_new_fork): New function.
5384 (aarch64_linux_child_post_startup_inferior): Use
5385 aarch64_forget_process instead of aarch64_init_debug_reg_state.
5386 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5387 (aarch64_linux_remove_hw_breakpoint)
5388 (aarch64_handle_aligned_watchpoint)
5389 (aarch64_handle_unaligned_watchpoint)
5390 (aarch64_linux_insert_watchpoint)
5391 (aarch64_linux_remove_watchpoint)
5392 (aarch64_linux_stopped_data_address): Adjust to pass the current
5393 process id to aarch64_debug_reg_state.
5394 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5395 linux_nat_new_fork hook, and aarch64_forget_process as
5396 linux_nat_forget_process hook; remove the call to
5397 register_inferior_data_with_cleanup.
5398
4819b3f8
PA
53992013-02-14 Pedro Alves <palves@redhat.com>
5400
5401 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5402 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5403 lval_memory.
5404
1773c82c
HAQ
54052013-02-14 Pedro Alves <pedro@codesourcery.com>
5406 Hafiz Abid Qadeer <abidh@codesourcery.com>
5407
5408 * tracepoint.h (validate_trace_state_variable_name): Declare.
5409 * tracepoint.c (validate_trace_state_variable_name): New.
5410 (trace_variable_command): Parse the trace state variable's name
5411 without using parse_expression. Do several validations.
5412 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5413 trace state variable's name with parse_expression. Validate it.
5414
53778a97
YQ
54152013-02-14 Yao Qi <yao@codesourcery.com>
5416
5417 * infcmd.c (breakpoint_proceeded): Remove it.
5418
7b3ae3a6
YQ
54192013-02-14 Yao Qi <yao@codesourcery.com>
5420
5421 * tracepoint.c (end_actions_pseudocommand): Make it static.
5422 (while_stepping_pseudocommand): Likewise.
5423 * tracepoint.h (end_actions_pseudocommand): Remove the
5424 declaration.
5425 (while_stepping_pseudocommand): Likewise.
5426
64580925
YQ
54272013-02-14 Yao Qi <yao@codesourcery.com>
5428
5429 * cli/cli-decode.c (help_cmd): Remove the declaration of
5430 "cmdlist".
5431 (help_all): Likewise.
5432
26cb8b7c
PA
54332013-02-13 Pedro Alves <palves@redhat.com>
5434
5435 * amd64-linux-nat.c (update_debug_registers_callback):
5436 Update comment.
5437 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5438 iterate_over_lwps.
5439 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5440 i386_debug_reg_state.
5441 (amd64_linux_new_fork): New function.
5442 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5443 linux_nat_new_fork hook, and i386_forget_process as
5444 linux_nat_forget_process hook.
5445 * i386-linux-nat.c (update_debug_registers_callback):
5446 Update comment.
a8256ea1 5447 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
5448 iterate_over_lwps.
5449 (i386_linux_prepare_to_resume): Pass the lwp's pid to
5450 i386_debug_reg_state.
5451 (i386_linux_new_fork): New function.
5452 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5453 linux_nat_new_fork hook, and i386_forget_process as
5454 linux_nat_forget_process hook.
5455 * i386-nat.c (i386_init_dregs): Delete.
5456 (i386_inferior_data, struct i386_inferior_data):
5457 Delete.
5458 (struct i386_process_info): New.
5459 (i386_process_list): New global.
5460 (i386_find_process_pid, i386_add_process, i386_process_info_get):
5461 New functions.
5462 (i386_inferior_data_get): Delete.
5463 (i386_process_info_get): New function.
5464 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
5465 (i386_forget_process): New function.
5466 (i386_cleanup_dregs): Rewrite.
5467 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5468 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5469 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5470 (i386_remove_hw_breakpoint): Adjust to pass the current process id
5471 to i386_debug_reg_state.
5472 (i386_use_watchpoints): Don't register inferior data.
5473 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5474 adjust comment.
5475 (i386_forget_process): Declare.
5476 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5477 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5478 New static globals.
5479 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5480 (add_initial_lwp): New, factored out from ...
5481 (add_lwp): ... this. Don't check the number of lwps before
5482 calling linux_nat_new_thread.
5483 (linux_nat_iterate_watchpoint_lwps): Delete.
5484 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5485 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5486 forks and vforks.
5487 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5488 initial lwp.
5489 (linux_nat_kill, linux_nat_mourn_inferior): Call
5490 linux_nat_forget_process.
5491 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5492 (linux_nat_forget_process): New functions.
5493 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5494 type.
5495 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5496 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5497 types.
5498 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5499 (linux_nat_forget_process): New declarations.
5500
5501 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5502 (amd64fbsd_mourn_inferior): New function.
5503 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5504 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5505
5befea72
MS
55062013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5507
55015247
YQ
5508 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5509 Adding _().
5befea72 5510
1d3ffd6b
MS
55112013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5512
5513 * aarch64-linux-nat.c (debug_reg_change_callback)
5514 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5515 %s and phex().
5516
6eb04473
MS
55172013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5518
5519 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5520 with LONGEST.
5521
a016fc87
HAQ
55222013-02-13 Pedro Alves <palves@redhat.com>
5523 Hafiz Abid Qadeer <abidh@codesourcery.com>
5524
5525 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5526
e234dfaf
TT
55272013-02-12 Tom Tromey <tromey@redhat.com>
5528
5529 PR symtab/11464:
5530 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5531 NAME return.
5532 (classify_inner_name): Remove 'first_name' argument, add
5533 'context'. Remove unused variable.
5534 (yylex): Explicitly maintain the context type. Exit loop earlier
5535 if NAME result is seen.
5536
0b1afbb3
PA
55372013-02-12 Pedro Alves <palves@redhat.com>
5538
5539 * amd64-darwin-tdep.c: Add (C) after Copyright.
5540 * cli/cli-cmds.h: Ditto.
5541 * cli/cli-decode.c: Ditto.
5542 * cli/cli-decode.h: Ditto.
5543 * cli/cli-dump.c: Ditto.
5544 * cli/cli-dump.h: Ditto.
5545 * cli/cli-interp.c: Ditto.
5546 * cli/cli-logging.c: Ditto.
5547 * cli/cli-script.c: Ditto.
5548 * cli/cli-script.h: Ditto.
5549 * cli/cli-setshow.c: Ditto.
5550 * cli/cli-setshow.h: Ditto.
5551 * cli/cli-utils.c: Ditto.
5552 * cli/cli-utils.h: Ditto.
5553 * config/alpha/nm-osf3.h: Ditto.
5554 * config/djgpp/djconfig.sh: Ditto.
5555 * config/i386/nm-fbsd.h: Ditto.
5556 * config/i386/nm-i386gnu.h: Ditto.
5557 * config/nm-linux.h: Ditto.
5558 * config/nm-nto.h: Ditto.
5559 * config/rs6000/nm-rs6000.h: Ditto.
5560 * config/sparc/nm-sol2.h: Ditto.
5561 * darwin-nat-info.c: Ditto.
5562 * dfp.c: Ditto.
5563 * dfp.h: Ditto.
5564 * gdb-demangle.h: Ditto.
5565 * i386-darwin-nat.c: Ditto.
5566 * i386-darwin-tdep.c: Ditto.
5567 * linux-fork.h: Ditto.
5568 * m32c-tdep.c: Ditto.
5569 * microblaze-linux-tdep.c: Ditto.
5570 * microblaze-rom.c: Ditto.
5571 * microblaze-tdep.c: Ditto.
5572 * microblaze-tdep.h: Ditto.
5573 * mips-linux-tdep.h: Ditto.
5574 * ppc-ravenscar-thread.c: Ditto.
5575 * ppc-ravenscar-thread.h: Ditto.
5576 * prologue-value.c: Ditto.
5577 * prologue-value.h: Ditto.
5578 * ravenscar-thread.c: Ditto.
5579 * ravenscar-thread.h: Ditto.
5580 * sparc-ravenscar-thread.c: Ditto.
5581 * sparc-ravenscar-thread.h: Ditto.
5582 * tilegx-linux-tdep.c: Ditto.
5583 * unwind_stop_reasons.def: Ditto.
5584 * windows-nat.h: Ditto.
5585 * xtensa-linux-tdep.c: Ditto.
5586 * xtensa-xtregs.c: Ditto.
5587 * regformats/regdat.sh: Ditto.
5588 * regformats/regdef.h: Ditto.
5589
6c01dd94
PA
55902013-02-12 Pedro Alves <palves@redhat.com>
5591
5592 * break-catch-sig.c: Update copyright years.
5593
b65a2bd9
SCR
55942013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5595
5596 Add support for a destructor for ui_out data and use it to
5597 provide a ui_out destructor.
5598 * ui-out.h: Declare the new ui_out destructor.
5599 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5600 * ui-out.c (default_data_destroy): Add a default data destructor
5601 which does nothing.
5602 (default_ui_out_impl): Set the new data_destroy field to
5603 default_data_destroy
5604 (uo_data_destroy): Local function which invokes the data
5605 destructor if present.
5606 (clear_table): Local function which clears the table data of a
5607 ui_out object.
5608 (ui_out_destroy): Public function which frees a ui_out object.
5609 (ui_out_table_end): Use the new clear_table function.
5610 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5611 NULL.
5612 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5613 to NULL.
5614
c2792f5a
DE
56152013-02-11 Doug Evans <dje@google.com>
5616
5617 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5618 (printf_decfloat): New function. Broken out from ui_printf.
5619 Remove unnecessary code to shift the entire format string down.
5620 (printf_pointer): New function.
5621 (ui_printf): Code to print C strings, wide C strings, decfloats,
5622 and pointers moved to separate functions.
5623
d9e98382
SDJ
56242013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5625
5626 * valops.c (value_assign): Handling bitfield offset in
5627 `lval_internalvar_component' case.
5628
4ff3ce77
DE
56292013-02-08 Doug Evans <dje@google.com>
5630
5631 * common/format.c (parse_format_string): Fix whitespace.
5632
901900c4
MGD
56332013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5634
5635 * stack.c (return_command): Work around uninitialized variable
5636 warning.
5637
b5dbc8d4
YZ
56382013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5639
5640 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5641 number of the registers from 36 to 34.
5642
51d66578
MS
56432013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5644
5645 * NEWS: Mention new AArch64 native and target support.
5646
176b1c95
MS
56472013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5648
5649 * MAINTAINERS (Write After Approval): Add myself.
5650
9d19df75
MS
56512013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5652 Marcus Shawcroft <marcus.shawcroft@arm.com>
5653 Nigel Stephens <nigel.stephens@arm.com>
5654 Yufeng Zhang <yufeng.zhang@arm.com>
5655
5656 * aarch64-linux-nat.c: New file.
5657 * config/aarch64/linux.mh: New file.
5658 * configure.host: Add AArch64.
5659 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5660
7e1e0340
DE
56612013-02-07 Doug Evans <dje@google.com>
5662
5663 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5664 disassemble command.
5665
45e25a36
MS
56662013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5667
5668 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5669 set_gdbarch_fetch_tls_load_module_address.
5670
bbfdfe1c
DM
56712013-02-06 David S. Miller <davem@davemloft.net>
5672
5673 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5674 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5675 * value.c (struct_return_convention): New function.
5676 (using_struct_return): Implement in terms of struct_return_convention.
5677 * value.h (struct_return_convention): Declare.
5678 * stack.c (return_command): Allow successful overriding of the return
5679 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5680
bc9abe4a
TT
56812013-02-06 Tom Tromey <tromey@redhat.com>
5682
5683 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5684 outside of TRY_CATCH.
5685
134a2066
YQ
56862013-02-06 Yao Qi <yao@codesourcery.com>
5687
5688 * mi/mi-interp.c: Include "tracepoint.h".
5689 (mi_tsv_modified): Declare.
5690 (mi_tsv_created, mi_tsv_deleted): Update declaration.
5691 (mi_interpreter_init): Call observer_attach_tsv_modified.
5692 (mi_tsv_modified): New.
5693 (mi_tsv_created, mi_tsv_deleted): Update.
5694 * tracepoint.c (trace_variable_command): Call
5695 observer_notify_tsv_modified if the initial value of tsv is
5696 changed.
5697 (delete_trace_state_variable): Call
5698 observer_notify_tsv_deleted earlier.
5699 (trace_variable_command): Caller update.
5700 (create_tsv_from_upload): Likewise.
5701 * observer.sh: Declare "struct trace_state_variable".
5702
5703 * NEWS: Mention the new MI notification "=tsv-modified".
5704
59be2b6a
DE
57052013-02-05 Doug Evans <dje@google.com>
5706
5707 * completer.c (location_completer): Fix typo in comment.
5708
d30113d4
JK
57092013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5710
5711 * breakpoint.c (add_location_to_breakpoint): Insert the location with
5712 ADDRESS sorted.
5713
14ac654f
MS
57142013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5715
5716 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5717 Refactor if statement to avoid trailing || operator.
5718
543bf33d
AT
57192013-02-05 Andreas Tobler <andreast@fgznet.ch>
5720
5721 * NEWS: Add PowerPC FreeBSD as a new native configuration.
5722
dc18f110
AT
57232013-02-04 Andreas Tobler <andreast@fgznet.ch>
5724
5725 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5726 * configure.host: Add powerpc*-*-freebsd* target.
5727 * configure.tgt: Add target info for powerpc*-*-freebsd*.
5728 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5729 * config/powerpc/fbsd.mh: New file.
5730
b3ac9c77
SDJ
57312013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
5732 Denys Vlasenko <dvlasenk@redhat.com>
5733 Pedro Alves <palves@redhat.com>
5734
5735 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5736 (struct elf_internal_linux_prpsinfo): Forward declare.
5737 * gdbarch.h, gdbarch.c: Regenerate.
5738 * linux-tdep.c: Include `cli/cli-utils.h'.
5739 (linux_fill_prpsinfo): New function.
5740 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
5741 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5742 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5743 depending on gdbarch pointer bitness.
5744 * ppc-linux-tdep.c: Include elf-bfd.h.
5745 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5746 on 32-bit.
5747
176eb98c
MS
57482013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5749 Marcus Shawcroft <marcus.shawcroft@arm.com>
5750 Nigel Stephens <nigel.stephens@arm.com>
5751 Yufeng Zhang <yufeng.zhang@arm.com>
5752
5753 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5754
cf0dbd6f
MS
57552013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5756 Marcus Shawcroft <marcus.shawcroft@arm.com>
5757 Nigel Stephens <nigel.stephens@arm.com>
5758 Yufeng Zhang <yufeng.zhang@arm.com>
5759
5760 * aarch64-newlib-tdep.c: New file.
5761 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5762 aarch64*-*-elf.
5763 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5764 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5765 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5766 * osabi.c (gdb_osabi_names): Add "Newlib".
5767
1ae3db19
MS
57682013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5769 Marcus Shawcroft <marcus.shawcroft@arm.com>
5770 Nigel Stephens <nigel.stephens@arm.com>
5771 Yufeng Zhang <yufeng.zhang@arm.com>
5772
5773 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5774 (ALLDEPFILES): Add aarch64-linux-tdep.c.
5775 * aarch64-linux-tdep.c: New file.
5776 * aarch64-linux-tdep.h: New file.
5777 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5778 * configure.tgt: Add aarch64-none-linux-gnu.
5779
07b287a0
MS
57802013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5781 Marcus Shawcroft <marcus.shawcroft@arm.com>
5782 Nigel Stephens <nigel.stephens@arm.com>
5783 Yufeng Zhang <yufeng.zhang@arm.com>
5784
5785 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5786 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5787 (ALLDEPFILES): Add aarch64-tdep.c.
5788 * aarch64-tdep.c: New file.
5789 * aarch64-tdep.h: New file.
5790 * configure.tgt: Add AArch64.
5791 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5792 (aarch64-expedite): New definition.
5793 * features/aarch64-core.xml: New file.
5794 * features/aarch64-fpu.xml: New file.
5795 * features/aarch64-without-fpu.c: New file (generated).
5796 * features/aarch64-without-fpu.xml: New file.
5797 * features/aarch64.c: New file (generated).
5798 * features/aarch64.xml: New file.
5799 * regformats/aarch64-without-fpu.dat: New file (generated).
5800 * regformats/aarch64.dat: New file (generated).
5801
0f1b18ab
JK
58022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5803
5804 * contrib/expect-read1.c: New file.
5805 * contrib/expect-read1.sh: New file.
5806
233d95b5
JK
58072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5808
5809 * dwarf2read.c (file_file_name): New function with code from
5810 file_full_name.
5811 (file_full_name): Move most of the code to file_file_name.
5812 (macro_start_file): Rename variable full_name to file_name and use
5813 file_file_name for it. Add comp_dir parameter to new_macro_table.
5814 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
5815 macro_source_file->filename access by macro_source_fullname call.
5816 * macroscope.c (_initialize_macroscope): Update the new_macro_table
5817 caller.
5818 * macrotab.c (struct macro_table): New field comp_dir.
5819 (macro_include): New variables link_fullname and source_fullname.
5820 Replace any macro_source_file->filename access by macro_source_fullname
5821 call.
5822 (macro_lookup_inclusion): Remove the partial filenames checking code.
5823 (check_for_redefinition): New variables source_fullname and
5824 found_key_fullname. Replace any macro_source_file->filename access by
5825 macro_source_fullname call.
5826 (macro_undef): New variables source_fullname and key_fullname. Replace
5827 any macro_source_file->filename access by macro_source_fullname call.
5828 (macro_lookup_definition): New variables retval and source_fullname.
5829 Replace any macro_source_file->filename access by macro_source_fullname
5830 call.
5831 (foreach_macro): New variable key_fullname. Replace any
5832 macro_source_file->filename access by macro_source_fullname call.
5833 (foreach_macro_in_scope): New variable datum_fullname. Replace any
5834 macro_source_file->filename access by macro_source_fullname call.
5835 (new_macro_table): Add parameter comp_dir. Initialize T with it.
5836 (macro_source_fullname): New function.
5837 * macrotab.h (struct macro_source_file): Extent the filename field
5838 comment.
5839 (new_macro_table): New parameter comp_dir, add a comment for it.
5840 (macro_source_fullname): new declaration.
5841
da235a7c
JK
58422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5845 this_real_name to outer block. Use it also for
5846 compare_filenames_for_search.
5847 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
5848 with dw2_get_real_path for file_matcher, considering also
5849 BASENAMES_MAY_DIFFER.
5850 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5851
fbd9ab74
JK
58522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5853
5854 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5855 to the file_matcher parameter. Pass 0 to it.
5856 (dwarf2_create_include_psymtab): Copy also DIRNAME.
5857 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5858 NULL psymtab_to_fullname result.
5859 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
5860 an expected filename instead.
5861 (expand_symtabs_matching_via_partial): Add basenames parameter to the
5862 file_matcher parameter. Call also psymtab_to_fullname, after newly
5863 considering BASENAMES_MAY_DIFFER.
5864 * source.c (rewrite_source_path): Remove static.
5865 * source.h (rewrite_source_path): New declaration.
5866 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5867 the expand_symtabs_matching field. Comment it.
5868 * symtab.c (file_matches): New function comment. Add parameter
5869 basenames, implement it.
5870 (search_symbols_file_matches): Add basenames parameter. Update the
5871 file_matches caller.
5872 (search_symbols): Match FILES also against symtab_to_fullname.
5873 Optimize it for BASENAMES_MAY_DIFFER.
5874
56d397a3
JK
58752013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5876
5877 * source.c (print_source_lines_base): Print for TUI also "fullname".
5878 * tui/tui-data.c (init_content_element): Change tui_locator_element
5879 field to full_name.
5880 * tui/tui-data.h (struct tui_locator_element): Likewise.
5881 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5882 tui_update_locator_filename calls to tui_update_locator_fullname.
5883 Replace symtab->filename refererence by symtab_to_fullname call.
5884 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5885 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5886 field to full_name. Replace symtab->filename refererence by
5887 symtab_to_fullname call.
5888 (tui_show_symtab_source): Rename parameter to fullname. Change
5889 tui_locator_element field to full_name.
5890 * tui/tui-stack.c: Include source.h.
5891 (tui_set_locator_filename): Rename the declaration to ...
5892 (tui_set_locator_fullname): ... here. Rename its parameter to
5893 fullname, updates its comment.
5894 (tui_set_locator_info): Rename its parameter to fullname.
5895 (tui_set_locator_filename): Rename the definition to ...
5896 (tui_set_locator_fullname): ... here. Rename its parameter to
5897 fullname, updates its comment. Change tui_locator_element field to
5898 full_name.
5899 (tui_set_locator_info): Rename its parameter to fullname.
5900 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5901 (tui_update_locator_filename): Rename to ...
5902 (tui_update_locator_fullname): ... here. Rename callee to
5903 tui_set_locator_fullname.
5904 (tui_show_frame_info): Replace symtab->filename refererence by
5905 symtab_to_fullname call.
5906 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5907 (tui_update_locator_fullname): ... here.
5908 * tui/tui-winsource.c (tui_display_main): Rename the callee to
5909 tui_update_locator_fullname. Replace symtab->filename refererence by
5910 symtab_to_fullname call.
5911 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5912 Rename the callee to tui_update_locator_fullname.
5913 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5914
05cba821
JK
59152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5916
5917 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5918 by symtab_to_filename_for_display calls.
5919 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5920 (clear_command): New variable sal_fullname, initialize it. Replace
5921 compare_filenames_for_search by filename_cmp with sal_fullname.
5922 (say_where, update_static_tracepoint): Replace symtab->filename
5923 refererences by symtab_to_filename_for_display calls.
5924 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5925 Likewise.
5926 * dwarf2read.c: Include source.h.
5927 (fixup_go_packaging): Replace symtab->filename refererences by
5928 symtab_to_filename_for_display calls.
5929 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5930 Replace symtab->filename refererences by symtab_to_filename_for_display
5931 calls.
5932 (create_sals_line_offset, convert_linespec_to_sals): New variable
5933 fullname, initialize it, replace symtab->filename reference by the
5934 variable.
5935 * linux-fork.c: Include source.h.
5936 (info_checkpoints_command): Replace symtab->filename refererences by
5937 symtab_to_filename_for_display calls.
5938 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5939 by symtab_to_filename_for_display calls.
5940 * mdebugread.c: Include source.h.
5941 (psymtab_to_symtab_1): Replace symtab->filename refererences by
5942 symtab_to_filename_for_display calls.
5943 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5944 (mi_cmd_file_list_exec_source_files): Likewise.
5945 * printcmd.c: Include source.h.
5946 (build_address_symbolic): Replace symtab->filename refererences by
5947 symtab_to_filename_for_display calls.
5948 * psymtab.c (partial_map_symtabs_matching_filename)
5949 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5950 with psymtab_to_fullname.
5951 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5952 by symtab_to_filename_for_display calls.
5953 (stpy_get_filename): New variable filename, initialize it, use instead
5954 of symtab->filename refererences.
5955 (salpy_str): Make variable filename const char *. Replace
5956 symtab->filename refererences by symtab_to_filename_for_display calls.
5957 * skip.c: Include source.h and filenames.h.
5958 (skip_file_command): Remove const from the symtab variable. Replace
5959 symtab->filename refererences by symtab_to_fullname call.
5960 (function_name_is_marked_for_skip): New variables searched_for_fullname
5961 and fullname. Use them to search also with symtab's fullname.
5962 * source.c (find_source_lines): Replace symtab->filename refererences
5963 by symtab_to_filename_for_display calls.
5964 (print_source_lines_base): New variable filename, use it instead of
5965 symtab->filename. Replace symtab->filename refererences by
5966 symtab_to_filename_for_display calls.
5967 (line_info, forward_search_command): Replace symtab->filename
5968 refererences by symtab_to_filename_for_display calls.
5969 (reverse_search_command): Replace symtab->filename refererences by
5970 symtab_to_filename_for_display calls. New variable filename for it.
5971 * stack.c (frame_info): Likewise.
5972 * symmisc.c: Include source.h.
5973 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5974 (maintenance_info_symtabs): Replace symtab->filename refererences by
5975 symtab_to_filename_for_display calls.
5976 * symtab.c (iterate_over_some_symtabs): Call
5977 compare_filenames_for_search also with symtab_to_fullname.
5978 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5979 symtab->filename refererences by symtab_to_filename_for_display calls.
5980 (find_line_symtab): Replace symtab->filename refererences by
5981 symtab_to_filename_for_display calls.
5982 (file_matches): Replace filename_cmp by compare_filenames_for_search.
5983 (print_symbol_info): Make the last parameter const char *. New
5984 variable s_filename. Use it in the function.
5985 (symtab_symbol_info): Make the last_filename variable const char *.
5986 Replace symtab->filename refererences by symtab_to_filename_for_display
5987 calls.
5988 (rbreak_command): New variable fullname. Use it. Replace
5989 symtab->filename refererence by symtab_to_filename_for_display call.
5990 * tracepoint.c (set_traceframe_context, trace_find_line_command)
5991 (print_one_static_tracepoint_marker): Replace symtab->filename
5992 refererences by symtab_to_filename_for_display calls.
5993 * tui/tui-source.c (tui_set_source_content): New variables filename and
5994 s_filename. Replace symtab->filename refererences by this variable.
5995 Replace other symtab->filename refererences by
5996 symtab_to_filename_for_display calls.
5997
1b56eb55
JK
59982013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5999 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 Add a new variable that controls a way in which filenames are
6002 displayed.
6003 * NEWS (set filename-display): New entry.
6004 * source.c (filename_display_basename, filename_display_relative)
6005 (filename_display_absolute, filename_display_kind_names)
6006 (filename_display_string, show_filename_display_string)
6007 (symtab_to_filename_for_display): New.
6008 (_initialize_source): Added initialization of 'filename-display'
6009 variable.
6010 * source.h (symtab_to_filename_for_display): Added declaration.
6011 * stack.c (print_frame): Added new variable and calling of a new
6012 function and condition with this variable. Changed third argument of
6013 calling of a function.
6014
aa079c93
JK
60152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6016
6017 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6018 Rename field reference filename to fullname.
6019 * tui/tui-data.h (struct tui_source_info): Rename field filename to
6020 fullname. New comment for it.
6021 * tui/tui-source.c (tui_set_source_content): Rename field reference
6022 filename to fullname. Initialize field by symtab_to_fullname now.
6023 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6024 reference filename to fullname. Use symtab_to_fullname during
6025 comparison.
6026
652a8996
JK
60272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6028
6029 Code cleanup.
6030 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6031 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
6032 filename to fullname. Rename variable this_name to this_fullname.
6033 Lowercase FILENAME_CMP call.
6034 (dw2_find_symbol_file): New comment for the returned string.
6035 (dwarf2_gdb_index_functions): Rename the function to
6036 dw2_expand_symtabs_with_fullname.
6037 * psymtab.c (read_psymtabs_with_filename): Rename to ...
6038 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
6039 fullname.
6040 (psym_functions): Rename the function to read_psymtabs_with_fullname.
6041 * symfile.h (struct quick_symbol_functions): Rename field
6042 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6043 parameter filename to fullname. Document returned string meaning for
6044 find_symbol_file.
6045 * symtab.c (find_line_symtab): Rename the called function to
6046 expand_symtabs_with_fullname.
6047
af529f8f
JK
60482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6049
6050 Code cleanup.
6051 * breakpoint.c (clear_command): Remove variable is_abs, unify the
6052 call of filename_cmp with compare_filenames_for_search.
6053 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6054 is_abs, unify the call of FILENAME_CMP with
6055 compare_filenames_for_search. New gdb_asserts for real_path and name.
6056 Unify the call of compare_filenames_for_search with FILENAME_CMP.
6057 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6058 * symfile.h (struct quick_symbol_functions): Extend the comment for
6059 map_symtabs_matching_filename.
6060 * symtab.c (compare_filenames_for_search): Remove the function comment
6061 relative path requirement. Handle absolute filenames, with a comment.
6062 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6063 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
6064 real_path and name. Unify the call of compare_filenames_for_search
6065 with FILENAME_CMP.
6066 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6067
2f202fde
JK
60682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6069
6070 Code cleanup.
6071 * breakpoint.c (print_breakpoint_location): Replace bp_location field
6072 source_file references by symtab field references. Remove variables
6073 sal and fullname.
6074 (momentary_breakpoint_from_master, add_location_to_breakpoint):
6075 (clear_command, say_where): Replace bp_location field source_file
6076 references by symtab field references.
6077 (bp_location_dtor): Remove the source_file reference.
6078 (update_static_tracepoint): Replace bp_location field source_file
6079 references by symtab field references.
6080 (breakpoint_free_objfile): New function.
6081 * breakpoint.h (struct bp_location): Extend the comment for line_number.
6082 Replace the field source_file by field symtab, extend its comment.
6083 (breakpoint_free_objfile): New declaration.
6084 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6085 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6086 field source_file references by symtab field references.
6087
f5b95b50
JK
60882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6089
6090 Replace xfullpath calls by gdb_realpath calls.
6091 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6092 function comment.
6093 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6094 Remove it from the iterate_over_some_symtabs call.
6095 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6096 Remove it from the dw2_map_expand_apply calls, remove a block handling
6097 it.
6098 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6099 Remove it from the iterate_over_some_symtabs call.
6100 (partial_map_symtabs_matching_filename): Remove parameter full_path.
6101 Remove it from the partial_map_expand_apply calls, remove a block
6102 handling it. Drop gdb_realpath call and cleanups from the real_path
6103 handling.
6104 * source.c (openp): Drop the comment part about xfullpath. Replace
6105 xfullpath calls by gdb_realpath calls.
6106 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6107 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6108 from method map_symtabs_matching_filename and its comment.
6109 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6110 gdb_realpath call.
6111 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6112 remove it also from the function comment, remove a block handling it.
6113 Drop gdb_realpath call and cleanups from the real_path handling.
6114 (iterate_over_symtabs): Drop variable full_path and its use.
6115 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6116 * utils.c (xfullpath): Remove.
6117 * utils.h (xfullpath): Remove.
6118
d78489bf
AT
61192013-02-01 Andreas Tobler <andreast@fgznet.ch>
6120
6121 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6122 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6123 (ALLDEPFILES): Add ppc64-tdep.c.
6124 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6125 ppc64-tdep.o to gdb_target_obs.
6126 * ppc64-tdep.h: New file.
6127 * ppc64-tdep.c: New file.
6128 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6129 ppc-linux-tdep.c to here.
6130 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6131 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6132 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6133 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6134 from ppc-linux-tdep.c to here.
6135 (ppc64_convert_from_func_ptr_addr): Rename from
6136 ppc64_linux_convert_from_func_ptr_addr to
6137 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6138 here.
6139 * rs6000-tdep.c:
6140 (read_insn): Move from ppc-linux-tdep.c to here.
6141 (insns_match_pattern, insn_d_field, insn_ds_field): Move
6142 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6143 * ppc-linux-tdep.c: Include ppc64-tdep.h.
6144 Removed above functions.
6145 (ppc_linux_init_abi): Adjust.
6146
8db60374
AR
61472013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6148
6149 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6150
f2e5f4ce
AR
61512013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6152
6153 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6154
c1f7d745
PA
61552013-02-01 Pedro Alves <palves@redhat.com>
6156
6157 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6158 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6159
8a92335b
JK
61602013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6161
6162 * elfread.c (elf_symfile_read): Limit separate debug info additions to
6163 files with no separate debug info.
6164 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6165 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6166 only for files with no separate debug info.
6167
8eacb197
TT
61682013-01-31 Tom Tromey <tromey@redhat.com>
6169
6170 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6171 change type.
6172 (struct jit_program_space_data): Rename from jit_inferior_data.
6173 Update comments.
6174 (get_jit_program_space_data): Rename from get_jit_inferior_data.
6175 Change return type. Attach data to program space.
6176 (jit_program_space_data_cleanup): Rename from
6177 jit_inferior_data_cleanup; change argument type.
6178 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6179 change type.
6180 (jit_register_code): Update.
6181 (jit_update_inferior_cache): Remove.
6182 (jit_breakpoint_deleted): Get jit data from the location's program
6183 space.
6184 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6185 'ps_data', change type.
6186 (jit_inferior_init, jit_breakpoint_re_set_internal)
6187 (jit_event_handler): Update.
6188 (free_objfile_data): Get data from objfile's program space.
6189 (_initialize_jit): Update.
6190
f25c0135
TT
61912013-01-31 Tom Tromey <tromey@redhat.com>
6192
6193 PR gdb/13987:
6194 * jit.c (struct jit_inferior_data) <cached_code_address,
6195 jit_breakpoint>: New fields.
6196 (jit_breakpoint_re_set_internal): Fix logging. Only create
6197 breakpoint if cached address has changed.
6198 (jit_update_inferior_cache, jit_breakpoint_deleted): New
6199 functions.
6200 (_initialize_jit): Register breakpoint deleted observer.
6201
974a734b
AR
62022013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6203
6204 * infrun.c (handle_syscall_event): Remove unused gdbarch.
6205 (save_infcall_suspend_state): Ifdef out unused inf.
6206 (restore_infcall_suspend_state): Ifdef out unused inf.
6207 * jit.c (jit_register_code): Remove unused i, b, inf_data.
6208 (jit_frame_sniffer): Remove unused inf_data.
6209
df54f8eb
AR
62102013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6211
6212 * c-exp.y (classify_inner_name): Remove unused type.
6213 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6214 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6215 need_escape.
6216 (c_get_string): Remove unused kind.
6217 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6218
5799c0b9
AR
62192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6220
6221 * charset.c (intermediate_encoding): Remove unused i.
6222 * completer.c (signal_completer): Remove unused i.
6223 * continuations.c (discard_my_continuations_1): Remove unused
6224 continuation_ptr.
6225 * corelow.c (core_close): Remove unuseD name.
6226 (get_core_siginfo): Remove unused pid.
6227 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6228 i, cps.
6229 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6230 (loclist_describe_location): Remove unused first.
6231 * event-top.c (command_line_handler): Remove unused got_eof.
6232 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6233 (resize_section_table): Remove unused old_value.
6234 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6235 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6236 * i386-tdep.c (i386_process_record): Remove unused rex.
6237 * infcmd.c (get_return_value): Remove unused uiout.
6238 * jv-lang.c (type_from_class): Remove unused is_array.
6239 * jv-valprint.c (java_val_print): Remove unused i.
6240 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6241 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6242 * m2-typeprint.c (m2_print_type): Remove unused code.
6243 * macroexp.c (get_character_constant): Remove unused body_start.
6244 (macro_stringify): Remove unused result.
6245 * objc-lang.c (find_methods): Remove unused gdbarch.
6246 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6247 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6248 * stack.c (print_frame_args): Remove unused summary.
6249 * thread.c (thread_apply_command): Remove unused p.
6250 * valarith.c (value_x_unop): Remove unused mangle_ptr.
6251 * valops.c (search_struct_method): Remove unused skip.
6252 * valprint.c (generic_val_print): Remove unused byte_order.
6253 * varobj.c (varobj_update): Remove unused changed.
6254 * cli/cli-cmds.c (complete_command): Remove unused next_item.
6255 (alias_command): Remove unused c.
6256 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6257 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6258 format.
6259 (mi_cmd_data_write_memory): Remove unused word_format.
6260 (mi_cmd_data_write_memory_bytes): Remove unused r.
6261 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6262 p_start, p_end.
6263 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6264 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6265 line_width.
6266
c656bca5
AR
62672013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6268
6269 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6270 * symtab.c (iterate_over_symtabs): Remove unused s.
6271 (find_pc_sect_symtab): Remove unused pspAce.
6272 (find_pc_sect_line): Remove unused alt_symtab.
6273 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6274 (completion_list_add_name): Remove unused newsize.
6275
7078baeb
TT
62762013-01-31 Tom Tromey <tromey@redhat.com>
6277
6278 PR c++/14998:
6279 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6280 TYPE_CODE_FUNC.
6281
c2e8b827
AR
62822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6283
6284 * target.c (target_read_string): Remove unused origlen.
6285
0e43993a
AR
62862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6287
6288 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6289 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6290 * ax-general.c (ax_print): Remove unused is_float.
6291 * blockframe.c (block_innermost_frame): Remove unused start, end.
6292 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6293
765a97ab
AR
62942013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6295
6296 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6297 (svr4_read_so_list): Remove unused lmo.
6298 * solib-target.c (solib_target_relocate_section_addresses): Remove
6299 unused flags.
6300
a99dad3d
TT
63012013-01-30 Tom Tromey <tromey@redhat.com>
6302
6303 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6304
3bff1ecd
TT
63052013-01-30 Tom Tromey <tromey@redhat.com>
6306
6307 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6308 * utils.c (gnu_debuglink_crc32): Remove.
6309 * utils.h (gnu_debuglink_crc32): Don't declare.
6310
7d455152
TT
63112013-01-30 Tom Tromey <tromey@redhat.com>
6312
6313 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6314 (read_structure_type, read_enumeration_type): Remove cast.
6315
abee88f2
TT
63162013-01-30 Tom Tromey <tromey@redhat.com>
6317
6318 * dwarf2read.c (read_namespace_type): Remove cast.
6319 (read_typedef): Likewise.
6320
8d9878a4
TT
63212013-01-29 Tom Tromey <tromey@redhat.com>
6322
6323 * dwarf2read.c (free_dwo_file): Remove assert.
6324
a543d2a9
TT
63252013-01-29 Tom Tromey <tromey@redhat.com>
6326
6327 * value.c (deprecated_set_value_modifiable): Remove.
6328 * value.h (deprecated_set_value_modifiable): Remove.
6329
bed911e5
DE
63302013-01-28 Doug Evans <dje@google.com>
6331
6332 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6333 to addresses from dwo files.
6334
28c64fc2
SCR
63352013-01-25 Siva Chandra Reddy <sivachandra@google.com>
6336
6337 * valops.c (find_overload_match): Remove unused argument 'lax'.
6338 * value.h: Remove unused argument 'lax' from the declaration of
6339 find_overload_match.
6340 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6341 to find_overload_match.
6342 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6343 argument to find_overload_match.
6344
4d4ec4e5
TT
63452013-01-25 Tom Tromey <tromey@redhat.com>
6346
6347 * dwarf2read.c (processing_has_namespace_info): Remove.
6348 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6349 (process_die, read_func_scope, dwarf2_start_symtab)
6350 (new_symbol_full): Update.
6351
195a3f6c
TT
63522013-01-25 Tom Tromey <tromey@redhat.com>
6353
6354 * cp-namespace.c (cp_set_block_scope): Remove.
6355 * cp-support.h (cp_set_block_scope): Remove.
6356 * dbxread.c: Include block.h.
6357 (cp_set_block_scope): New function.
6358 (process_one_symbol): Update.
6359 * dwarf2read.c (read_func_scope): Use block_set_scope.
6360
8ba0730a
PA
63612013-01-25 Pedro Alves <palves@redhat.com>
6362
6363 * remote.c (add_current_inferior_and_thread): Tweak comment.
6364
12aaed36
TT
63652013-01-25 Tom Tromey <tromey@redhat.com>
6366
6367 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6368 (cp_add_using_directive): Add 'copy_names' argument.
6369 * cp-support.h (cp_add_using_directive): Update.
6370 (struct using_direct) <import_src, import_dest, alias,
6371 declaration>: Now const.
6372 * dwarf2read.c (read_import_statement): Use obconcat.
6373 Don't copy names passed to cp_add_using_directive.
6374
7fc75ca7
TT
63752013-01-25 Tom Tromey <tromey@redhat.com>
6376
6377 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6378
3405876a
PA
63792013-01-25 Pedro Alves <palves@redhat.com>
6380
6381 * remote.c (stop_reply_extract_thread): New.
6382 (add_current_inferior_and_thread): New parameter 'wait_status'.
6383 Handle it.
6384 (remote_start_remote): Pass wait status to
6385 add_current_inferior_and_thread.
6386 (extended_remote_run): Update comment.
6387 (extended_remote_create_inferior_1): Pass wait status to
6388 add_current_inferior_and_thread.
6389
8954db33
AB
63902013-01-25 Andrew Burgess <aburgess@broadcom.com>
6391 Ulrich Weigand <uweigand@de.ibm.com>
6392
6393 * valarith.c (value_vector_widen): New function for replicating a
6394 scalar into a vector.
6395 (value_binop): Use value_vector_widen to widen scalar to vector
6396 rather than casting, this better matches gcc C behaviour.
6397 * valops.c (value_casst): Update logic for casting between vector
6398 types, and for casting from scalar to vector, try to match gcc C
6399 behaviour.
6400 * value.h (value_vector_widen): Declare.
6401 * opencl-lang.c (opencl_value_cast): New opencl specific casting
6402 function, handle special case for casting scalar to vector.
6403 (opencl_relop): Use opencl_value_cast.
6404 (evaluate_subexp_opencl): Use opencl_value_cast instead of
6405 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6406 in order to use opencl_value_cast.
6407
843b20dc
YQ
64082013-01-25 Yao Qi <yao@codesourcery.com>
6409
6410 * event-loop.c: Include "queue.h".
6411 (gdb_event_p): New typedef.
6412 (DECLARE_QUEUE_P): Use.
6413 (DEFINE_QUEUE_P): Use.
6414 (async_queue_event): Remove.
6415 (gdb_event_xfree): New.
6416 (initialize_event_loop): New.
6417 (process_event): Use QUEUE macros.
6418 (event_queue): Remove.
6419 (gdb_wait_for_event): Caller update.
6420 (check_async_event_handlers): Likewise.
6421 (poll_timers): Likewise.
6422 * event-loop.h (initialize_event_loop): Declare.
6423 * event-loop.c (gdb_event_xfree): New.
6424 * top.c (gdb_init): Call initialize_event_loop.
6425
20ad8856
YQ
64262013-01-25 Yao Qi <yao@codesourcery.com>
6427
6428 * event-loop.c (async_queue_event): Remove one parameter
6429 'position'. Remove code handling 'position' == TAIL.
6430 (gdb_wait_for_event): Caller update.
6431 (check_async_event_handlers): Caller update.
6432 (poll_timers): Caller update.
6433 * event-loop.h (enum queue_position): Remove.
6434
3bbbe775
MK
64352013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
6436
6437 * MAINTAINERS: Update my email.
6438
a87d9ac4
YQ
64392013-01-25 Yao Qi <yao@codesourcery.com>
6440
6441 * main.c (print_gdb_help): Remove "--epoch" from the help
6442 message.
6443
2077afdd
TD
64442013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
6445
6446 * symtab.c (skip_prologue_using_sal): Consider a file
6447 change the same as an increased line number
6448
63da4037
TD
64492013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6450
30e8ee25 6451 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 6452
45e6c716
TT
64532013-01-24 Tom Tromey <tromey@redhat.com>
6454
6455 * ada-lang.h (ada_decode_symbol): Make return type const.
6456 * ada-lang.c (ada_decode_symbol): Likewise.
6457
b1ae631a
DE
64582013-01-23 Doug Evans <dje@google.com>
6459
6460 * linespec.c (find_linespec_symbols): Make static.
6461
55a78401
SDJ
64622013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6463
6464 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6465 type on float conversion for complex type.
6466
bea883fd
SCR
64672013-01-23 Siva Chandra Reddy <sivachandra@google.com>
6468
6469 Add a new class gdb.Architecture which exposes GDB's
6470 internal representation of architecture via GDB Python API.
6471 * Makefile.in: Add entries corresponding to the new file
6472 python/py-arch.c.
6473 * NEWS (Python Scripting): Add entries for the new class
6474 gdb.Architecture and the new method gdb.Frame.architecture.
6475 * python/py-arch.c: Implement gdb.Architecture class.
6476 * python/py-frame.c (frapy_arch): Implement the method
6477 gdb.Frame.architecture().
6478 (frame_object_methods): Add 'architecture' to the method table.
6479 * python/python-internal.h: Add declarations of new utility
6480 functions.
6481 * python/python.c (_initialize_python): Initialize
6482 gdb.Architecture class.
6483
796a7ff8
DE
64842013-01-23 Doug Evans <dje@google.com>
6485
6486 Work around binutils/15021.
6487 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6488 type_unit_group out of union s. All uses updated.
6489 (read_index_from_section): Watch for index version 8.
6490 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6491 an imported symtab.
6492 (write_psymtabs_to_index): Increment version number to 8.
6493
0928e93d
PA
64942013-01-22 Pedro Alves <palves@redhat.com>
6495
6496 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6497 user-visible.
6498
9c97429f
PA
64992013-01-22 Pedro Alves <palves@redhat.com>
6500
6501 * annotate.c (annotate_breakpoints_changed): Rename to ...
6502 (annotate_breakpoints_invalid): ... this. Make static.
6503 (breakpoint_changed): Adjust.
6504 (_initialize_annotate): Always install the observers. Install a
6505 "breakpoint_created" observer.
6506 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6507 * breakpoint.c (set_breakpoint_condition)
6508 (breakpoint_set_commands, do_map_commands_command)
6509 (init_raw_breakpoint, clear_command, set_ignore_count)
6510 (enable_breakpoint_disp): No longer call
6511 annotate_breakpoints_changed.
6512
bd00c694
PA
65132013-01-22 Pedro Alves <palves@redhat.com>
6514
6515 * annotate.c: Include "inferior.h".
6516 (frames_invalid_emitted)
6517 (breakpoints_invalid_emitted): New globals.
6518 (async_background_execution_p): New function.
6519 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6520 emitting the annotation if it has already been emitted.
6521 (annotate_display_prompt): New function.
6522 * annotate.h (annotate_display_prompt): New declaration.
6523 * event-top.c: Include annotate.h.
6524 (display_gdb_prompt): Call annotate_display_prompt.
6525
187d10dd
PA
65262013-01-22 Pedro Alves <palves@redhat.com>
6527
6528 * annotate.c (ignore_count_changed): Delete.
6529 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6530 (annotate_ignore_count_change): Delete.
6531 (annotate_stopped): Don't emit a delayed breakpoints-changed
6532 annotation.
6533 * annotate.h (annotate_ignore_count_change): Delete.
6534 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6535 annotate_ignore_count_change.
6536
d84cf7eb
TT
65372013-01-22 Tom Tromey <tromey@redhat.com>
6538
6539 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6540 require_rvalue for a register location.
6541
8f1d5693
MK
65422013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6543
6544 * breakpoint.c (print_one_breakpoint_location): Add MI
6545 field 'thread-groups' when printing a breakpoint.
6546 (output_thread_groups): New function.
6547
aa6199c6
SCR
65482013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6549
6550 * python/lib/gdb/commands/explore.py
6551 (CompoundExplorer.explore_expr): Correct the name of a method
6552 being invoked.
6553 (ExploreTypeCommand.invoke): Add a missing 'return'.
6554
d2afef13
TT
65552013-01-21 Tom Tromey <tromey@redhat.com>
6556
6557 * gdb_obstack.h (obconcat): Move declaration here, from...
6558 * symfile.h (obconcat): ... here.
6559 * gdb_obstack.c: New file.
6560 (obconcat): Move from...
6561 * symfile.c (obconcat): ... here.
6562 * Makefile.in (SFILES): Add gdb_obstack.c.
6563 (COMMON_OBS): Add gdb_obstack.o.
6564
10f0c4bb
TT
65652013-01-21 Tom Tromey <tromey@redhat.com>
6566
6567 * symfile.h (obsavestring): Don't declare.
6568 * symfile.c (obsavestring): Remove.
6569 * ada-exp.y: Use obstack_copy0, not obsavestring.
6570 * ada-lang.c: Use obstack_copy0, not obsavestring.
6571 * coffread.c: Use obstack_copy0, not obsavestring.
6572 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6573 * dbxread.c: Use obstack_copy0, not obsavestring.
6574 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6575 * jit.c: Use obstack_copy0, not obsavestring.
6576 * mdebugread.c: Use obstack_copy0, not obsavestring.
6577 * psymtab.c: Use obstack_copy0, not obsavestring.
6578 * stabsread.c: Use obstack_copy0, not obsavestring.
6579 * xcoffread.c: Use obstack_copy0, not obsavestring.
6580
86f62fd7
TT
65812013-01-21 Tom Tromey <tromey@redhat.com>
6582
6583 * dwarf2read.c (fixup_go_packaging): Save package name
6584 on objfile obstack.
6585 * gdbtypes.c (init_type): Don't copy name.
6586
15d034d0
TT
65872013-01-21 Tom Tromey <tromey@redhat.com>
6588
6589 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6590 const.
6591 (struct attribute) <u.str>: Now const.
6592 (struct fnfieldlist) <name>: Now const.
6593 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6594 (partial_die_parent_scope): Make return type const.
6595 (partial_die_full_name, add_partial_symbol): Update.
6596 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6597 'name' const.
6598 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6599 (read_file_scope, read_func_scope, dwarf2_add_field)
6600 (dwarf2_add_member_fn, read_structure_type)
6601 (process_enumeration_scope, read_array_type, read_module_type)
6602 (read_base_type, read_subrange_type): Update.
6603 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6604 (new_symbol_full, guess_full_die_structure_name): Update.
6605 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6606 (dwarf2_name): Return const type.
6607 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6608 const.
6609
748e18ae
TT
66102013-01-21 Tom Tromey <tromey@redhat.com>
6611
6612 * gdbtypes.c (init_type): Make 'name' const.
6613 * gdbtypes.h (init_type): Update.
6614
46212e0b
TT
66152013-01-21 Tom Tromey <tromey@redhat.com>
6616
6617 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6618 (start_symtab): Make 'name' and 'dirname' const. Use
6619 set_last_source_file.
6620 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6621 (last_source_file): Define. Now static.
6622 (set_last_source_file, get_last_source_file): New functions.
6623 * buildsym.h (last_source_file): Don't declare.
6624 (start_symtab): Update.
6625 (set_last_source_file, get_last_source_file): Declare.
6626 * coffread.c (complete_symtab): Use set_last_source_file.
6627 (coff_end_symtab): Likewise.
6628 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6629 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6630 set_last_source_file.
6631 (process_one_symbol): Use get_last_source_file.
6632 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6633 (psymtab_to_symtab_1): Use get_last_source_file.
6634 * xcoffread.c (process_linenos): Use get_last_source_file.
6635 (complete_symtab): Use set_last_source_file.
6636 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6637 (scan_xcoff_symtab): Use set_last_source_file.
6638
9d2ceabe
TT
66392013-01-21 Tom Tromey <tromey@redhat.com>
6640
6641 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6642 (symbol_set_names): Remove casts. Handle field const-ness.
6643
cfc594ee
TT
66442013-01-21 Tom Tromey <tromey@redhat.com>
6645
6646 * dwarf2read.c (new_symbol_full): Remove cast.
6647 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6648 * symtab.h (symbol_set_demangled_name): Update.
6649
5484b13a
TT
66502013-01-21 Tom Tromey <tromey@redhat.com>
6651
6652 * main.c (captured_main): Call bfd_init.
6653
1605ef26
TT
66542013-01-21 Tom Tromey <tromey@redhat.com>
6655
6656 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6657 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6658 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6659 * NEWS: Update.
6660
3b74cdc3
JK
66612013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6662
6663 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6664
5a352474
JK
66652013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 Fix gdb.fortran/common-block.exp crash in PIE mode.
6668 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6669 LOC_COMMON_BLOCK.
6670 * f-valprint.c (info_common_command_for_block): Expect
6671 LOC_COMMON_BLOCK in gdb_assert.
6672 * symtab.h (struct general_symbol_info): Update comment for the
6673 common_block member.
6674 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6675 (enum address_class): New member LOC_COMMON_BLOCK.
6676
c60797fd
DB
66772013-01-18 David Blaikie <dblaikie@gmail.com>
6678
6679 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 6680
46f35228
TT
66812013-01-18 Tom Tromey <tromey@redhat.com>
6682
6683 PR c++/14999:
6684 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6685 Call require_rvalue.
6686
257e7a09
YQ
66872013-01-18 Yao Qi <yao@codesourcery.com>
6688
6689 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6690 (dbx_read_symtab): New declaration.
6691 (dbx_psymtab_to_symtab): Delete.
6692 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6693 Rename parameter PST to SELF. Exchanged two parameters.
6694 (start_psymtab): Caller update.
6695 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6696 (dwarf2_read_symtab): New declaration.
6697 (dwarf2_psymtab_to_symtab): Delete.
6698 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6699 Rename parameter PST to SELF. Exchanged two parameters.
6700 (create_partial_symtab): Caller update.
6701 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6702 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6703 Rename parameter PST to SELF. Exchanged two parameters.
6704 (parse_partial_symbols, new_psymtab): Caller update.
6705 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6706 two parameters.
6707 * psymtab.c (psymtab_to_symtab): Caller update.
6708 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6709 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6710 Rename parameter PST to SELF. Exchanged two parameters.
6711 (xcoff_start_psymtab): Caller update.
6712
0de5618e
YQ
67132013-01-18 Yao Qi <yao@codesourcery.com>
6714
6715 * infrun.c (proceed): Rename local variable 'oneproc' to
6716 'force_step'.
6717
5c04624b
DE
67182013-01-17 Doug Evans <dje@google.com>
6719
848e3e78
DE
6720 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6721 (dw2_build_type_unit_groups): Delete. All uses updated.
6722
5c04624b
DE
6723 * symtab.h (struct symbol_search): Add comment.
6724
d84fca2c
JK
67252013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 * symtab.c (compare_filenames_for_search): New comment for
6728 HAS_DRIVE_SPEC.
6729
6108433d
TT
67302013-01-17 Tom Tromey <tromey@redhat.com>
6731
6732 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6733
c89ffd86
JK
67342013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6735
6736 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6737 initialize it by existing make_cleanup. Call new do_cleanups.
6738
db2b2972
TT
67392013-01-17 Tom Tromey <tromey@redhat.com>
6740
6741 * cp-abi.c (cp_abi_completer): New function.
6742 (_initialize_cp_abi): Set completer for "set cp-abi".
6743
be7d37a2
TT
67442013-01-17 Tom Tromey <tromey@redhat.com>
6745
6746 * mem-break.c: Remove obsolete comment.
6747 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6748
c9fb1240
SD
67492012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6750
6751 * jit.c (jit_reader_load_command): Interpret the jit reader name
6752 as an absolute path if it begins with a forward slash.
6753
db334a01
SD
67542012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6755
6756 PR gdb/14550
6757
6758 * jit.c (finalize_symtab): Ensure that only the global block has a
6759 NULL superblock.
6760
7d928dac
PA
67612013-01-17 Pedro Alves <palves@redhat.com>
6762
6763 * acinclude.m4: Include ../config/plugins.m4,
6764 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
6765 * Makefile.in (aclocal_m4_deps): Update.
6766 * aclocal.m4: Renegerate.
6767
fb8cf7c5
DE
67682013-01-16 Doug Evans <dje@google.com>
6769
6770 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6771
ab04a2af
TT
67722013-01-16 Pedro Alves <palves@redhat.com>
6773 Tom Tromey <tromey@redhat.com>
6774
6775 PR cli/7221:
6776 * NEWS: Add "catch signal".
6777 * breakpoint.c (base_breakpoint_ops): No longer static.
6778 (bpstat_explains_signal): New function.
6779 (init_catchpoint): No longer static.
6780 (base_breakpoint_explains_signal): New function.
6781 (base_breakpoint_ops): Initialize new field.
6782 * breakpoint.h (enum bpstat_signal_value): New.
6783 (struct breakpoint_ops) <explains_signal>: New field.
6784 (bpstat_explains_signal): Remove macro, declare as function.
6785 (base_breakpoint_ops, init_catchpoint): Declare.
6786 * break-catch-sig.c: New file.
6787 * inferior.h (signal_catch_update): Declare.
6788 * infrun.c (signal_catch): New global.
6789 (handle_syscall_event): Update for change to
6790 bpstat_explains_signal.
6791 (handle_inferior_event): Likewise. Always handle random signals
6792 via bpstats.
6793 (signal_cache_update): Check signal_catch.
6794 (signal_catch_update): New function.
6795 (_initialize_infrun): Initialize signal_catch.
6796 * Makefile.in (SFILES): Add break-catch-sig.c.
6797 (COMMON_OBS): Add break-catch-sig.o.
6798
8ac3646f
TT
67992013-01-16 Tom Tromey <tromey@redhat.com>
6800
6801 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6802 (print_one_catch_solib, print_one_catch_syscall)
6803 (print_one_catch_exec, print_one_exception_catchpoint): Emit
6804 "catch-type".
6805
5a18e302
YQ
68062013-01-16 Yao Qi <yao@codesourcery.com>
6807
6808 * printcmd.c (current_display_number): Make it static.
6809
3f01d0d0
YQ
68102013-01-16 Yao Qi <yao@codesourcery.com>
6811
6812 * infcmd.c (step_once): Don't check '!single_inst' as it was
6813 checked before.
6814
1ed59174
JK
68152013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6816
6817 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6818
44478ab3
TT
68192013-01-14 Tom Tromey <tromey@redhat.com>
6820
6821 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6822 set command.
6823 * command.h (add_setshow_string_noescape_cmd): Update.
6824 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6825 (complete_set_gnutarget): New function.
6826 (_initialize_core): Set the "set gnutarget" completer.
6827
06d66ee9
TT
68282013-01-14 Tom Tromey <tromey@redhat.com>
6829
6830 PR symtab/14442:
6831 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6832 (c_type_print_modifier): Likewise.
6833 * dwarf2read.c (read_tag_restrict_type): New function.
6834 (read_type_die_1): Handle DW_TAG_restrict_type.
6835 * gdbtypes.c (make_restrict_type): New function.
6836 (recursive_dump_type): Handle TYPE_RESTRICT.
6837 * gdbtypes.h (enum type_flag_values): Renumber.
6838 (enum type_instance_flag_value): Add
6839 TYPE_INSTANCE_FLAG_RESTRICT.
6840 (TYPE_RESTRICT): New macro.
6841 (make_restrict_type): Declare.
6842
c9bf0622
TT
68432013-01-14 Tom Tromey <tromey@redhat.com>
6844
6845 PR symtab/14931:
6846 * psymtab.c (struct psymtab_state): New.
6847 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6848 functions.
6849 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6850 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6851
44d594fd
PA
68522013-01-14 Richard Sharman <richard_sharman@mitel.com>
6853 Pedro Alves <palves@redhat.com>
6854
6855 PR remote/14786
6856
6857 * remote.c (remote_threads_info): Make a copy of the reply from
6858 qfThreadInfo and use that instead of rs->buf.
6859
442e4d9c
YQ
68602013-01-14 Yao Qi <yao@codesourcery.com>
6861
6862 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6863 (dbx_psymtab_to_symtab): Likewise.
6864 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6865 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6866 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6867
5b12a61c
JK
68682013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6869
6870 * parse.c (parse_exp_in_context): New variable inner_chain. Call
6871 make_cleanup_restore_current_language. Call set_language. Move
6872 OLD_CHAIN and INNER_CHAIN cleanups.
6873 * utils.c (do_restore_current_language)
6874 (make_cleanup_restore_current_language): New functions.
6875 * utils.h (make_cleanup_restore_current_language): New declaration.
6876
f0a4b570
JK
68772013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6878
6879 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6880 non-existing files.
6881
57b3c00c
JK
6882 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6883 non-existing files if FILENAME is already absolute.
6884
daefa854
JK
68852013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6888 fputs_filtered. Append trailing newline.
6889
ca9c6ee2
YQ
68902013-01-11 Yao Qi <yao@codesourcery.com>
6891 Stan Shebs <stan@codesourcery.com>
6892
6893 * psymtab.c (init_psymbol_list): Clarify the comment.
6894
f28045c2
YQ
68952013-01-11 Yao Qi <yao@codesourcery.com>
6896
6897 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6898 (update_dprintf_command_list): Assert that 'printf_line' is
6899 non-null. Remove condition check.
6900
da5132d3
JK
69012013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6902
6903 Code cleanup.
6904 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6905 type const char *.
6906 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6907 const char *.
6908 * tui/tui-source.h (tui_source_is_displayed): Likewise.
6909
843e694d
AG
69102013-01-09 Anthony Green <green@moxielogic.com>
6911
6912 * cp-abi.c (cplus_print_vtable): Don't return value from void
6913 function.
6914 * ada-lang.c (re_set_catch_assert): Ditto.
6915
da51c347
DE
69162013-01-09 Doug Evans <dje@google.com>
6917
6918 * symfile.h (quick_symbol_functions): Delete member
6919 pre_expand_symtabs_matching. All uses removed.
6920 * dwarf2read.c (dw2_lookup_symbol): Implement.
6921 (dw2_do_expand_symtabs_matching): Delete.
6922 (dw2_pre_expand_symtabs_matching): Delete.
6923 (struct dw2_symtab_iterator): New type.
6924 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6925 (dw2_expand_symtabs_for_function): Rewrite.
6926 (dwarf2_gdb_index_functions): Update.
6927 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6928 (psym_functions): Update.
6929
b2259038
TT
69302013-01-09 Tom Tromey <tromey@redhat.com>
6931
6932 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6933 * configure: Rebuild.
6934 * configure.ac: Add somread.o to the build if BFD has SOM
6935 support.
6936 * somread.c: Include som/aout.h, not syms.h.
6937 (som_symtab_read): Use som_external_symbol_dictionary_record.
6938 Unpack records manually.
6939 (_initialize_somread): Declare.
6940
bdad4180
MF
69412012-01-08 Mike Frysinger <vapier@gentoo.org>
6942
6943 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6944 Cast return_address to 64bits.
6945
03cdf680
HZ
69462013-01-08 Hui Zhu <hui_zhu@mentor.com>
6947
6948 * printcmd.c: Remove define of function output_command.
6949 * tracepoint.c: Remove extern of function output_command.
6950 * valprint.h: (output_command): New extern.
6951
8a808554
TT
69522013-01-07 Tom Tromey <tromey@redhat.com>
6953
6954 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6955 Remove.
6956 (objc_language_defn): Use c_printchar, c_printstr,
6957 c_emit_char.
6958
e93a8774
TT
69592013-01-07 Tom Tromey <tromey@redhat.com>
6960
6961 PR cli/7719:
6962 * NEWS: Update.
6963 * ada-valprint.c (printstr, print_field_values): Remove
6964 "inspect_it" code.
6965 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6966 code.
6967 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6968 code.
6969 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6970 * main.c (captured_main): Remove "epoch" argument.
6971 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6972 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6973 * p-valprint.c (pascal_object_print_value_fields): Remove
6974 "inspect_it" code.
6975 * printcmd.c (print_command_1): Remove 'inspect' argument.
6976 (print_command, call_command): Update.
6977 (inspect_command): Remove.
6978 (_initialize_printcmd): Make "inspect" an alias for "print".
6979 * top.c (epoch_interface): Remove.
6980 * top.h (epoch_interface): Remove.
6981 * valprint.c (user_print_options): Update.
6982 (print_converted_chars_to_obstack): Remove "inspect_it" code.
6983 * valprint.h (struct value_print_options) <inspect_it>: Remove
6984 field.
6985
69862013-01-04 Tom Tromey <tromey@redhat.com>
6987
6988 * valprint.h (read_string): Add 'extern'.
6989
b967eb24
JB
69902013-01-07 Joel Brobecker <brobecker@adacore.com>
6991
6992 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6993 used to decide whether to define darwin_read_dyld_info or not.
6994
78a8b30e
PM
69952013-01-03 Pierre Muller <muller@sourceware.org>
6996
6997 * main.c (relocate_gdb_directory): Avoid calling stat function
6998 if DIR is empty.
6999
50da2f25
YQ
70002013-01-03 Yao Qi <yao@codesourcery.com>
7001
7002 * psymtab.c (fixup_psymbol_section): Update declaration.
7003 (fixup_psymbol_section): Remove code returning value.
7004
e7e8980f
YQ
70052013-01-03 Yao Qi <yao@codesourcery.com>
7006
7007 * symtab.h: Remove some out of date comments.
7008 (enum exception_event_kind): Move it ...
7009 * breakpoint.c: ... here.
7010
569283d4
MF
70112013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7012
9f9d9a96 7013 PR gdb/14405
569283d4
MF
7014 * darwin-nat.c (darwin_read_dyld_info): Only build if
7015 TASK_DYLD_INFO_COUNT is defined.
7016 (darwin_xfer_partial): Call darwin_read_dyld_info only if
7017 TASK_DYLD_INFO_COUNT is defined.
7018
2e36fbea
TT
70192013-01-02 Tom Tromey <tromey@redhat.com>
7020
7021 * symfile.h (struct ecoff_debug_hack): Remove.
7022 * objfiles.c: Don't include mdebugread.h.
7023
4f05add4
TT
70242013-01-02 Tom Tromey <tromey@redhat.com>
7025
7026 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7027 * configure.ac: Check for Mach-O support in BFD. Update
7028 CONFIG_OBS.
7029 * configure: Rebuild.
7030
def63ff0
TT
70312013-01-02 Tom Tromey <tromey@redhat.com>
7032
7033 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7034 * configure.ac: Use GDB_AC_CHECK_BFD.
7035 * configure: Rebuild.
7036
60c5dd93
MK
70372013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
7038
7039 * MAINTAINERS: Update my email.
7040
6e58437e
JB
70412013-01-01 Joel Brobecker <brobecker@adacore.com>
7042
7043 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7044
627fe805
JB
70452013-01-01 Joel Brobecker <brobecker@adacore.com>
7046
7047 * rs6000-nat.c (bss_data_overlap): New function.
7048 (vmap_symtab): Use it to adjust the .bss section's offset.
7049
28e7fd62
JB
70502013-01-01 Joel Brobecker <brobecker@adacore.com>
7051
7052 Update year range in copyright notice of all files.
7053
e93a8774 70542013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
7055
7056 * top.c (print_gdb_version): Update copyright year.
7057
72b20e9c 7058For older changes see ChangeLog-2012.
c906108c
SS
7059\f
7060Local Variables:
7061mode: change-log
7062left-margin: 8
7063fill-column: 74
7064version-control: never
57da7796 7065coding: utf-8
c906108c 7066End:
This page took 1.802098 seconds and 4 git commands to generate.