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