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