[Committing the `catch syscall' patch for ARM, from Samuel Bronson.]
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9f948660
SDJ
12013-08-22 Samuel Bronson <naesten@gmail.com>
2
3 ARM Linux support for `catch syscall'.
4 * syscalls/arm-linux.py: New file.
5 * syscalls/arm-linux.xml: Likewise.
6 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
7 (arm_linux_init_abi): Register the new function and syscall xml file.
8 * data-directory/Makefile.in: Install the new syscall xml file.
9 * NEWS: Brag about this.
10
6be7b56e
PA
112013-08-22 Pedro Alves <palves@redhat.com>
12
13 PR gdb/15871
14 * corefile.c (target_xfer_memory_error): New function.
15 (memory_error): Defer EIO to target_memory_error.
16 (read_memory): Use target_xfer_partial, and handle finer-grained
17 target xfer errors.
18 * target.c (target_xfer_error_to_string): New function.
19 (memory_xfer_partial_1): If memory is known to be
20 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
21 (target_xfer_partial): Make extern.
22 * target.h (enum target_xfer_error): New enum.
23 (target_xfer_error_to_string): Declare function.
24 (target_xfer_partial): Declare function.
25 (struct target_ops) <xfer_partial>: Adjust describing comment.
26
bcbec14e
AM
272013-08-22 Alan Modra <amodra@gmail.com>
28
29 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
30 * configure.tgt: Likewise as targets.
31
fc474241
DE
322013-08-20 Doug Evans <dje@google.com>
33
34 * buildsym.c (subfile_stack): Move here from buildsym.h.
35 (pending_macros): Ditto.
36 (get_macro_table): New function.
37 (buildsym_init): Initialize subfile_stack.
38 * coffread.c (type_vector,type_vector_length): Moved here from
39 buildsym.h.
40 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
41 (coff_symtab_read): Use it.
42 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
43 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
44 with call to get_macro_table.
45 * stabsread.c (type_vector,type_vector_length): Moved here from
46 buildsym.h.
47 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
48 * buildsym.h (get_macro_table): Declare.
49
bec71544
TT
502013-08-20 Tom Tromey <tromey@redhat.com>
51
52 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
53 Update.
54 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
55
0002ad5f
DE
562013-08-20 Doug Evans <dje@google.com>
57
58 * blockframe.c: Remove #include "psymtab.h".
59 * cp-support.c: Ditto.
60 * source.c: Ditto.
61 * stack.c: Ditto.
62
df302446
TT
632013-08-20 Tom Tromey <tromey@redhat.com>
64
65 PR python/15816:
66 * exceptions.h (return_mask): Now an enum.
67 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
68 enum constants.
69
df6d5441
TT
702013-08-20 Tom Tromey <tromey@redhat.com>
71
72 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
73 get_objfile_arch.
74 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
75 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
76 * jit.c (jit_object_close_impl): Update.
77 * jv-lang.c (get_dynamics_objfile): Update.
78 * linespec.c (add_minsym): Use get_dynamics_objfile.
79 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
80 (allocate_objfile): Don't initialize 'gdbarch' field.
81 (get_objfile_arch): Update.
82 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
83 moved from...
84 (struct objfile) <gdbarch>: ... here. Remove.
85 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
86 get_objfile_arch.
87 * symfile.c (init_entry_point_info): Use get_objfile_arch.
88
f5aee5ee
AM
892013-08-20 Alan Modra <amodra@gmail.com>
90
91 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
92 for IBM long double nan and inf.
93 (floatformat_is_negative, floatformat_classify,
94 floatformat_mantissa): Similarly.
95 (floatformat_ieee_single, floatformat_ieee_double,
96 floatformat_ieee_quad, floatformat_arm_ext,
97 floatformat_ia64_spill): Delete unused vars.
98 (_initialize_doublest): Delete unused function.
99 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
100 little-endian variants of floatformat_ibm_long_double.
101
33b60d58 1022013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 103
33b60d58
LM
104 * Makefile.in (SFILES): Remove common/target-common.c and
105 add target/waitstatus.c.
106 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
107 target/resume.h, target/wait.h and target/waitstatus.h.
108 (COMMON_OBS): Remove target-common.o and add
109 waitstatus.o.
110 (target-common.o): Remove.
111 (waitstatus.o): New target object file.
112 * common/target-common.c: Move contents to
113 target/waitstatus.c and remove.
114 * common/target-common.h: Move contents to other files and
115 remove.
116 (enum resume_kind: Move to target/resume.h.
117 (TARGET_WNOHANG): Move to target/wait.h.
118 (enum target_waitkind): Move to target/waitstatus.h.
119 (struct target_waitstatus): Likewise.
120 * target.h: Do not include target-common.h and
121 include target/resume.h, target/wait.h and
122 target/waitstatus.h.
123 * target/resume.h: New file.
124 * target/wait.h: New file.
125 * target/waitstatus.h: New file.
126 * target/waitstatus.c: New file.
127
12696c10
PA
1282013-08-19 Pedro Alves <palves@redhat.com>
129
130 * linux-nat.c (linux_test_for_tracefork)
131 (linux_test_for_tracesysgood, linux_child_follow_fork)
132 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
133 (linux_nat_wait_1): Extend comment.
134 (linux_async_pipe): Add comment.
135
ba89f962
KB
1362013-08-15 Kevin Buettner <kevinb@redhat.com>
137
138 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
139 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
140 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
141 Update to account for fact that PC is now a pseudo-register.
142 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
143 cases for RL78_PC_REGNUM.
144
35ab155d
MB
1452013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
146
147 PR cli/15841
148 * top.c (quit_force): Skip writing history file
149 if input is not from terminal.
150
0d031856
TT
1512013-08-14 Tom Tromey <tromey@redhat.com>
152
153 * remote.c (struct remote_state) <echo_nextthread, nextthread,
154 resultthreadlist>: New fields.
155 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
156 (remote_get_threadlist, remote_threadlist_iterator): Use
157 new fields. Remove static variables.
158
ee154bee
TT
1592013-08-14 Tom Tromey <tromey@redhat.com>
160
161 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
162 remote_watch_data_address>: New fields.
163 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
164 (process_stop_reply, remote_wait_as)
165 (remote_check_watch_resources, remote_stopped_data_address): Update.
166
88b496c3
TT
1672013-08-14 Tom Tromey <tromey@redhat.com>
168
169 * remote.c (struct remote_state) <async_client_callback,
170 async_client_context>: New fields.
171 (async_client_callback, async_client_context): Remove.
172 (remote_async_serial_handler, remote_async): Update.
173
2f65bcb7
TT
1742013-08-14 Tom Tromey <tromey@redhat.com>
175
176 * remote.c (sizeof_pkt): Remove.
177 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
178
b80fafe3
TT
1792013-08-14 Tom Tromey <tromey@redhat.com>
180
181 * remote.c (struct remote_state) <use_threadinfo_query,
182 use_threadextra_query>: New fields.
183 (remote_threads_info, remote_threads_extra_info)
184 (remote_open_1): Update.
185
8e88304f
TT
1862013-08-14 Tom Tromey <tromey@redhat.com>
187
188 * remote.c (struct remote_state) <finished_object,
189 finished_annex, finished_offset>: New fields.
190 (remote_read_qxfer): Use remote_state fields; remove static
191 variables.
192
280ceea3
TT
1932013-08-14 Tom Tromey <tromey@redhat.com>
194
195 * remote.c (struct remote_state) <last_sent_step>:
196 New field.
197 (last_sent_step): Remove.
198 (remote_resume, remote_wait_as): Update.
199
b73be471
TT
2002013-08-14 Tom Tromey <tromey@redhat.com>
201
202 * remote.c (struct remote_state) <last_sent_signal>:
203 New field.
204 (last_sent_signal): Remove.
205 (new_remote_state, remote_resume, remote_wait_as): Update.
206
5e4a05c4
TT
2072013-08-14 Tom Tromey <tromey@redhat.com>
208
209 * remote.c (struct remote_state) <last_program_signals_packet>:
210 New field.
211 (last_program_signals_packet): Remove.
212 (remote_program_signals, remote_open_1): Update.
213
747dc59d
TT
2142013-08-14 Tom Tromey <tromey@redhat.com>
215
216 * remote.c (struct remote_state) <last_pass_packet>:
217 New field.
218 (last_pass_packet): Remove.
219 (remote_pass_signals, remote_open_1): Update.
220
262e1174
TT
2212013-08-14 Tom Tromey <tromey@redhat.com>
222
223 * remote.c (struct remote_state) <remote_traceframe_number>:
224 New field.
225 (remote_traceframe_number): Remove.
226 (new_remote_state, remote_open_1, set_remote_traceframe)
227 (remote_trace_find): Update.
228
47f8a51d
TT
2292013-08-14 Tom Tromey <tromey@redhat.com>
230
231 * remote.c (struct remote_state) <general_thread, continue_thread>:
232 New fields.
233 (general_thread, continue_thread): Remove.
234 (record_currthread, set_thread, set_general_process)
235 (remote_open_1, extended_remote_attach_1, remote_wait_as)
236 (extended_remote_mourn_1): Update.
237
5d93a237
TT
2382013-08-14 Tom Tromey <tromey@redhat.com>
239
240 * remote.c (struct remote_state) <remote_desc>: New field.
241 (remote_desc): Remove.
242 (remote_threads_info, remote_threads_extra_info, remote_close)
243 (send_interrupt_sequence, remote_start_remote, remote_open_1)
244 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
245 (remote_hostio_send_command, remote_file_put, remote_file_get)
246 (remote_file_delete, remote_can_async_p, remote_is_async_p)
247 (remote_async, remote_new_objfile, set_range_stepping): Update.
248
cf792862
TT
2492013-08-14 Tom Tromey <tromey@redhat.com>
250
251 * remote.c (remote_state): Now a pointer.
252 (get_remote_state_raw): Update.
253 (new_remote_state): New function.
254 (_initialize_remote): Use new_remote_state.
255
dc473cfb
TT
2562013-08-14 Tom Tromey <tromey@redhat.com>
257
258 * remote.c (remote_protocol_features): Now const.
259
85ec6ce7
TT
2602013-08-14 Tom Tromey <tromey@redhat.com>
261
262 * remote.c (crc32_table, crc32): Remove.
263 (remote_verify_memory): Use xcrc32.
264
73033f12
SDJ
2652013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
266
267 * value.h (create_internalvar_type_lazy): Adjust prototype
268 declaration.
269
5c30d39a
AB
2702013-08-13 Andrew Burgess <aburgess@broadcom.com>
271
272 * common/format.c (parse_format_string): Don't allow '#' flag for
273 pointer arguments in format string.
274
1a66331e
PM
2752013-08-13 Pierre Muller <muller@sourceware.org>
276
fde605f3 277 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
278 if rl_get_screen_size did not return useful values.
279
b4013987
AA
2802013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
281
282 PR breakpoints/15117
283 * linespec.c (linespec_parse_basic): Check for convenience
284 variable or history value while parsing.
285
959b6a66
SDJ
2862013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
287
288 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
289 AVR.
290 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
291 different signals between the generic Linux kernel implementation
292 and AVR's.
293 (avr_linux_gdb_signal_from_target): Delete.
294 (avr_linux_gdb_signal_to_target): Delete.
295 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
296
24a55014
DE
2972013-08-09 Doug Evans <dje@google.com>
298
299 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
300 entries.
301
eb14d406
SDJ
3022013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
303
304 * linux-tdep.c: Define enum with generic signal numbers.
305 (linux_gdb_signal_from_target): New function.
306 (linux_gdb_signal_to_target): Likewise.
307 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
308 methods to the functions above.
309 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
310 (linux_gdb_signal_to_target): Likewise.
311 * alpha-linux-tdep.c: Define new enum with signals different
312 from generic Linux kernel.
313 (alpha_linux_gdb_signal_from_target): New function.
314 (alpha_linux_gdb_signal_to_target): Likewise.
315 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
316 with the functions mentioned above.
317 * avr-tdep.c: Define enum with differences between Linux kernel
318 and AVR signals.
319 (avr_linux_gdb_signal_from_target): New function.
320 (avr_linux_gdb_signal_to_target): Likewise.
321 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
322 the functions mentioned above.
323 * sparc-linux-tdep.c: Define enum with differences between SPARC
324 and generic Linux kernel signal numbers.
325 (sparc32_linux_gdb_signal_from_target): New function.
326 (sparc32_linux_gdb_signal_to_target): Likewise.
327 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
328 to the functions defined above.
329 * xtensa-linux-tdep.c: Define enum with differences between
330 Xtensa and Linux kernel generic signals.
331 (xtensa_linux_gdb_signal_from_target): New function.
332 (xtensa_linux_gdb_signal_to_target): Likewise.
333 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
334 to the functions defined above.
335 * mips-linux-tdep.c: Define enum with differences between
336 signals in MIPS and Linux kernel generic ones.
337 (mips_gdb_signal_to_target): New function.
338 (mips_gdb_signal_from_target): Redefine to use new enum, handle
339 only different signals from the Linux kernel generic.
340 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
341 the functions defined above.
342 * mips-linux-tdep.h (enum mips_signals): Remove.
343
156d08c8
PA
3442013-08-09 Pedro Alves <palves@redhat.com>
345
346 * avr-tdep.c (XMALLOC): Delete macro.
347 * cli/cli-dump.c (XMALLOC): Delete macro.
348
db229724
PA
3492013-08-09 Pedro Alves <palves@redhat.com>
350
351 * cli/cli-dump.c: Don't include cli/cli-dump.h.
352 (scan_expression_with_cleanup, scan_filename_with_cleanup)
353 (fopen_with_cleanup, add_dump_command): Make static.
354 * cli/cli-dump.h: Delete file.
355 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
356 cli/cli-dump.h.
357
3f12a589
PA
3582013-08-09 Pedro Alves <palves@redhat.com>
359
360 * tracepoint.c (tfile_start): Show tilde-expanded filename in
361 error message.
362
c718be47
PA
3632013-08-09 Pedro Alves <palves@redhat.com>
364
156d08c8 365 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
366 error message.
367
1e351ed1
PA
3682013-08-09 Pedro Alves <palves@redhat.com>
369
370 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
371 (gcore_command): Use tilde_expand here, and when showing the
372 filename to the user, show the expanded version.
373
1ed8d800
YQ
3742013-08-09 Yao Qi <yao@codesourcery.com>
375
376 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
377 'entryval' is set.
378
47ecca85
PA
3792013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
380
381 * gcore.c (create_gcore_bfd): Use tilde_expand.
382
82a0a75f
YQ
3832013-08-08 Yao Qi <yao@codesourcery.com>
384
385 * frame.h (read_frame_local): Declare.
386 * mi/mi-cmd-stack.c (list_args_or_locals): Call
387 read_frame_local.
388 * stack.c (read_frame_local): New.
389
5c4aa40b
YQ
3902013-08-08 Yao Qi <yao@codesourcery.com>
391
392 * mi/mi-cmd-stack.c: Update comments to function
393 list_args_or_locals.
394
b93601f3
TT
3952013-08-07 Tom Tromey <tromey@redhat.com>
396
397 PR symtab/15028:
398 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
399 (process_psymtab_comp_unit_reader): Use it.
400 (process_psymtab_comp_unit): Update. Add "pretend_language"
401 argument.
402 (dwarf2_build_psymtabs_hard): Update.
403 (scan_partial_symbols): Pass CU's language to
404 process_psymtab_comp_unit.
405
fa760f46
TT
4062013-08-07 Tom Tromey <tromey@redhat.com>
407
408 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
409 (dwarf2_gdb_index_functions): Update.
410 * psymtab.c (find_symbol_file_from_partial): Remove.
411 (psym_functions): Update.
412 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
413 Remove.
414
bf6d8a91
TT
4152013-08-07 Tom Tromey <tromey@redhat.com>
416
417 * symfile.c (set_initial_language): Look up "main" symbol
418 and use its language.
419 * symtab.c (find_main_filename): Remove.
420 * symtab.h (find_main_filename): Remove.
421
f9125b6c
TT
4222013-08-07 Tom Tromey <tromey@redhat.com>
423
424 * dwarf2read.c (recursively_compute_inclusions): Add
425 "immediate_parent" argument. Set symtab's "user" field
426 if not set.
427 (compute_symtab_includes): Update.
428
fdbb204b
TT
4292013-08-07 Tom Tromey <tromey@redhat.com>
430
431 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
432 when adding label symbols.
433
49de1690
UW
4342013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
435 Ulrich Weigand <uweigand@de.ibm.com>
436
437 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
438 * configure.host (powerpc64-*-aix*): Likewise.
439
b08ee99f
UW
4402013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
441 Ulrich Weigand <uweigand@de.ibm.com>
442
443 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
444 is defined.
445 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
446 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
447 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
448 * configure.ac: Check for ptrace64.
449 * configure, config.in: Regenerate.
450
fecf803e
UW
4512013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
452 Ulrich Weigand <uweigand@de.ibm.com>
453
454 * aixthread.c: Call ptrace64 instead of ptracex if defined.
455 Call ptrace64 instead of ptrace if defined.
456 Add macro addr_ptr to take care of ptrace address argument.
457 (pdc_read_regs): Likewise.
458 (pdc_write_regs): Likewise.
459 (aix_thread_resume): Likewise.
460 (fetch_regs_kernel_thread): Likewise.
461 (store_regs_kernel_thread): Likewise.
462
3bb5e4a8
AB
4632013-08-07 Anton Blanchard <anton@samba.org>
464
465 * MAINTAINERS: Add myself to Write After Approval.
466
12070676
TT
4672013-08-05 Tom Tromey <tromey@redhat.com>
468
469 * aix-thread.c (_initialize_aix_thread): Use
470 complete_target_initialization.
471 * bsd-uthread.c (_initialize_bsd_uthread): Use
472 complete_target_initialization.
473 * dec-thread.c (_initialize_dec_thread): Use
474 complete_target_initialization.
475 * ravenscar-thread.c (_initialize_ravenscar): Use
476 complete_target_initialization.
477 * sol-thread.c (_initialize_sol_thread): Use
478 complete_target_initialization.
479 * spu-multiarch.c (_initialize_spu_multiarch): Use
480 complete_target_initialization.
481
7c7b6655
TT
4822013-08-05 Tom Tromey <tromey@redhat.com>
483
484 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
485 * ada-lang.c (ada_lookup_simple_minsym): Return
486 bound_minimal_symbol.
487 * ada-lang.h (ada_lookup_simple_minsym): Update.
488 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
489 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
490 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
491 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
492 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
493 * minsyms.c (msymbol_objfile): Remove.
494 (lookup_minimal_symbol_internal): New function, from
495 lookup_minimal_symbol.
496 (lookup_minimal_symbol): Rewrite using
497 lookup_minimal_symbol_internal.
498 (lookup_bound_minimal_symbol): New function.
499 * minsyms.h (msymbol_objfile): Remove.
500 (lookup_bound_minimal_symbol): Declare.
501 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
502 * parse.c (write_exp_msymbol): Change parameter to a
503 bound_minimal_symbol.
504 (write_dollar_variable): Use lookup_bound_minimal_symbol.
505 * parser-defs.h (write_exp_msymbol): Update.
506 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
507 * symfile.c (simple_read_overlay_table): Use
508 lookup_bound_minimal_symbol.
509 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
510 (search_symbols): Likewise.
511 (print_msymbol_info): Take a bound_minimal_symbol argument.
512 (symtab_symbol_info, rbreak_command): Update.
513 * symtab.h (struct symbol_search) <msymbol>: Change type
514 to bound_minimal_symbol.
515 * valops.c (find_function_in_inferior): Use
516 lookup_bound_minimal_symbol.
517 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
518
934b9bac
JK
5192013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
520
521 Code cleanup.
522 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
523 to ...
524 (async_cleanup_sigint_signal_handler): ... this.
525 (initialize_sigint_signal_handler): Remove declaration.
526 (handle_remote_sigint): Rename the declaration to ...
527 (async_handle_remote_sigint): ... this.
528 (handle_remote_sigint_twice): Rename the declaration to ...
529 (async_handle_remote_sigint_twice): ... this.
530 (async_remote_interrupt, async_remote_interrupt_twice)
531 (remote_interrupt): Remove the declarations.
532 (remote_interrupt_twice): Rename the declaration ...
533 (sync_remote_interrupt_twice): ... this.
534 (sigint_remote_twice_token): Rename the variable to ...
535 (async_sigint_remote_twice_token): ... this.
536 (sigint_remote_token): Rename the variable to ...
537 (async_sigint_remote_token): ... this.
538 (initialize_sigint_signal_handler): Rename the function to ...
539 (async_initialize_sigint_signal_handler): ... this. Update the name
540 inside.
541 (handle_remote_sigint): Rename the function to ...
542 (async_handle_remote_sigint): ... this. Update the names inside.
543 (handle_remote_sigint_twice): Rename the function to ...
544 (async_handle_remote_sigint_twice): ... this. Update the names inside.
545 (cleanup_sigint_signal_handler): Rename the function to ...
546 (async_cleanup_sigint_signal_handler): ... this.
547 (remote_interrupt): Rename the function to ...
548 (sync_remote_interrupt): this. Update the names inside.
549 (remote_interrupt_twice): Rename the function to ...
550 (sync_remote_interrupt_twice): this. Update the names inside.
551 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
552 (_initialize_remote): Update the names inside.
553
3a1115a0
TT
5542013-08-02 Tom Tromey <tromey@redhat.com>
555
556 PR symtab/15719:
557 * breakpoint.c (update_watchpoint, watchpoint_check)
558 (watch_command_1): Update.
559 * eval.c (fetch_subexp_value): Add "preserve_errors"
560 parameter.
561 * ppc-linux-nat.c (check_condition): Update.
562 * value.h (fetch_subexp_value): Update.
563
58b19776
AB
5642013-08-02 Andrew Burgess <aburgess@broadcom.com>
565
566 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
567 add_file_handler.
568
ec94af83
DE
5692013-08-01 Doug Evans <dje@google.com>
570
7ee85ab1
DE
571 PR symtab/15691
572 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
573 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
574 Add assert of sig_entry->dwo_unit == NULL.
575 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
576 had already been read.
577 (read_signatured_type): Set per_cu.tu_read.
578
b846d303
DE
579 PR symtab/15695
580 * valops.c (value_struct_elt): Add missing call to check_typedef.
581 (value_find_oload_method_list): Ditto.
582
b52109bc
DE
583 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
584 effectively, struct symbol_search **.
585 (make_cleanup_free_search_symbols): Change arg to struct
586 symbol_search **. All callers updated.
587 (compare_search_syms): Compare symtab file name and block as well.
588 (search_symbols_equal): New function.
589 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
590 New args new_head, new_tail. Result is now void. Remove dups after
591 sorting the symbols.
592 (search_symbols): Sort all found symbols once, after all have been
593 found, and remove duplicates. Simplify cleanup tracking of result.
594 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
595
ec94af83
DE
596 Further workarounds for binutils/15021.
597 * dwarf2read.c (recursively_compute_inclusions): Change type of result
598 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
599 Watch for duplicate symtabs coming from type units.
600 (compute_symtab_includes): Update call to
601 recursively_compute_inclusions. Build vector of included symtabs
602 instead of per_cus.
603 * symtab.h (symtab_ptr): New typedef.
604 (DEF_VEC_P (symtab_ptr)): New VEC type.
605 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
606 instead.
607
b2ae85cf
AB
6082013-08-01 Andrew Burgess <aburgess@broadcom.com>
609
610 * cli/cli-script.c (script_from_file): Remove use of
611 error_pre_print.
612 * main.c (captured_main): Remove use of error_pre_print and
613 quit_pre_print.
614 * utils.c (error_pre_print, quit_pre_print): Remove.
615 * utils.h (error_pre_print, quit_pre_print): Likewise.
616
645eab03
YQ
6172013-08-01 Yao Qi <yao@codesourcery.com>
618
619 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
620 with mi_getopt.
621 (mi_cmd_stack_list_variables): Likewise.
622
16f92dd4
AB
6232013-07-31 Andrew Burgess <aburgess@broadcom.com>
624
625 * exceptions.c (deprecated_throw_reason): Remove.
626 * exceptions.h (deprecated_throw_reason): Remove.
627
13f78033
AB
6282013-07-31 Andrew Burgess <aburgess@broadcom.com>
629
630 * remote-mips.c (mips_error): Replace use of
631 deprecated_throw_reason with throw_verror. Use the error message
632 passed to mips_error as the error message for throw_verror.
633
039e3c22
AB
6342013-07-31 Andrew Burgess <aburgess@broadcom.com>
635
636 * monitor.c (monitor_interrupt_query): Replace use of
637 deprecated_throw_reason with quit.
638 * nto-procfs.c (interrupt_query): Likewise.
639 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
640 * remote-mips.c (mips_kill): Likewise.
641 * remote.c (interrupt_query): Likewise.
642
8150913b
AB
6432013-07-31 Andrew Burgess <aburgess@broadcom.com>
644
645 * utils.c (internal_verror): Replace use of deprecated_throw_reason
646 with call to fatal.
647
de74e63a
YQ
6482013-07-31 Pedro Alves <pedro@codesourcery.com>
649 Yao Qi <yao@codesourcery.com>
650
651 * tracepoint.c (trace_dump_command): Select the current frame.
652
247f5c4f
DE
6532013-07-30 Doug Evans <dje@google.com>
654
655 * dwarf2read.c (process_queue): Add type signature to debug output.
656
11b4b7cc
AB
6572013-07-30 Andrew Burgess <aburgess@broadcom.com>
658
659 * value.c (value_fetch_lazy): Mark optimized out values as such
660 rather than raising an error.
661
b0c54aa5
AB
6622013-07-30 Andrew Burgess <aburgess@broadcom.com>
663
664 * value.c (value_fetch_lazy): Ensure parent value is not lazy
665 before checking which bits of the parent, not the child, value are
666 valid.
667
97c85fc6
MB
6682013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
669
670 PR gdb/15715
671 * top.c: Include "filenames.h".
672 (set_history_filename): New function.
673 (init_main): Install it as set hook of the "set history filename"
674 command.
675
ff39bb5e
SA
6762013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
677
678 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
679 attribute parameter.
680 (dwarf2_const_value_data): Constify struct attribute parameter.
681 (dwarf2_const_value): Constify struct attribute parameter.
682 (dwarf2_const_value_attr): Constify struct attribute parameter.
683 (lookup_die_type): Constify struct attribute parameter.
684 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
685 (follow_die_ref_or_sig): Constify struct attribute parameter.
686 (follow_die_ref): Constify struct attribute parameter.
687 (follow_die_sig): Constify struct attribute parameter.
688 (get_DW_AT_signature_type): Constify struct attribute parameter.
689 (get_type_unit_group): Constify struct attribute parameter.
690 (fill_in_loclist_baton): Constify struct attribute parameter.
691 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
692 (type_unit_group): Constify struct attribute parameter.
693
6e5a29e1
SA
6942013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
695
696 * dwarf2read.c (attr_form_is_block): Make argument const.
697 (attr_form_is_section_offset): Make argument const.
698 (attr_form_is_constant): Make argument const.
699 (attr_form_is_ref): Make argument const.
700
7771576e
SA
7012013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
702
703 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
704 All uses updated.
705 (attr_form_is_ref): Moved below attr_form_is_constant.
706
a94e8645
DE
7072013-07-29 Doug Evans <dje@google.com>
708
bb5291d0
DE
709 * main.c (captured_command_loop): Tweak comment.
710
b5419e49
DE
711 * target.c (target_async_permitted_1): Fix comment.
712
b2d23133
DE
713 * symtab.c (iterate_over_some_symtabs): Add comment.
714
a94e8645
DE
715 * symtab.c (iterate_over_some_symtabs): Fix indentation.
716
7a60ad40
YQ
7172013-07-27 Yao Qi <yao@codesourcery.com>
718
719 * NEWS: Mention that GDBserver now supports hardware
720 watchpoints on the MIPS GNU/Linux target.
721
aaee2056
YQ
7222013-07-27 Yao Qi <yao@codesourcery.com>
723
724 * Makefile.in (HFILES_NO_SRCDIR): Add
725 common/mips-linux-watch.h.
726 (mips-linux-watch.o): New rule.
727 * common/mips-linux-watch.c: New.
728 * common/mips-linux-watch.h: New.
729 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
730 * mips-linux-nat.c: Include mips-linux-watch.h.
731 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
732 to common/mips-linux-watch.h.
733 (MAX_DEBUG_REGISTER): Likewise.
734 (enum pt_watch_style): Likewise.
735 (struct mips32_watch_regs): Likewise.
736 (struct mips64_watch_regs): Likewise.
737 (struct pt_watch_regs): Likewise.
738 (struct mips_watchpoint): Likewise.
739 (mips_linux_watch_get_irw_mask): Move to
740 common/mips-linux-watch.c.
741 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
742 (mips_linux_watch_get_watchlo): Likewise.
743 (mips_linux_watch_set_watchlo): Likewise.
744 (mips_linux_watch_get_watchhi): Likewise.
745 (mips_linux_watch_set_watchhi): Likewise.
746 (mips_linux_read_watch_registers): Likewise.
747 (mips_linux_watch_type_to_irw): Likewise.
748 (mips_linux_stopped_data_address, fill_mask): Likewise.
749 (mips_linux_watch_try_one_watch): Likewise.
750 (mips_linux_watch_populate_regs): Likewise.
751
b3436450
YQ
7522013-07-27 Yao Qi <yao@codesourcery.com>
753
754 * mips-linux-nat.c (get_irw_mask): Rename to ...
755 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
756 'set' to 'n'. Update function comment. All callers changed.
757 (get_reg_mask): Rename parameter 'set' to 'n'. Update
758 function comment. All callers changed.
759 (get_num_valid): Rename to ...
760 (mips_linux_watch_get_num_valid): ... this. Rename parameter
761 'set' to 'n'. Update function comment. All callers changed.
762 (get_watchlo): Rename to ...
763 (mips_linux_watch_get_watchlo): ... this. Rename parameter
764 'set' to 'n'. Update function comment. All callers changed.
765 (set_watchlo): Rename to ...
766 (mips_linux_watch_set_watchlo): ... this. Rename parameter
767 'set' to 'n'. Update function comment. All callers changed.
768 (get_watchhi): Rename to ...
769 (mips_linux_watch_get_watchhi): ... this. Update function
770 comment. All callers changed.
771 (set_watchhi): Rename to ...
772 (mips_linux_watch_set_watchhi): ... this. Update function
773 comment. All callers changed.
774 (mips_linux_read_watch_registers): Update function comment.
775 Add new parameters 'lwpid', 'watch_readback', and
776 'watch_readback_valid'. Update.
777 (type_to_irw): Rename to ...
778 (mips_linux_watch_type_to_irw): ... this. Update function
779 comment. All callers changed.
780 (fill_mask): Update function comment.
781 (try_one_watch): Rename to ...
782 (mips_linux_watch_try_one_watch): ... this. Change the type
783 of parameter 'irw' from 'unsigned' to 'uint32_t'.
784 (populate_regs_from_watches): Rename to ...
785 (mips_linux_watch_populate_regs): ... this. Add parameter
786 'current_watches'. All callers changed.
787
9be14b81
YQ
7882013-07-27 Yao Qi <yao@codesourcery.com>
789
790 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
791 the code.
792 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
793 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
794 (struct pt_watch_regs): Likewise.
795 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
796 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
797 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
798 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
799 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
800
de6f69ad
YQ
8012013-07-27 Yao Qi <yao@codesourcery.com>
802
803 * breakpoint.h: Include break-common.h.
804 (enum target_hw_bp_type): Move to ...
805 * common/break-common.h: ... here. New.
806
6f64ef53
PA
8072013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
808
809 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
810 process group regardless of having tty on stdin.
811
6107e809
DE
8122013-07-25 Doug Evans <dje@google.com>
813
814 * linux-fork.h (detach_fork): Delete.
815
7fdc1521
TT
8162013-07-25 Tom Tromey <tromey@redhat.com>
817
818 PR remote/15256, PR remote/15266:
819 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
820 * monitor.c (monitor_detach): Use unpush_target.
821 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
822 * remote-mips.c (mips_detach): Use unpush_target. Don't
823 call mips_close.
824 * remote-sim.c (gdbsim_detach): Use unpush_target.
825 * target.c (pop_target): Remove.
826 (pop_all_targets_above): Don't call target_close.
827 (target_close): Assert that the target is unpushed.
828 * target.h (pop_target): Don't declare.
829 * tracepoint.c (tfile_open): Use unpush_target.
830
c22a2b88
TT
8312013-07-25 Tom Tromey <tromey@redhat.com>
832
833 * linux-thread-db.c (init_thread_db_ops): Call
834 complete_target_initialization.
835 (_initialize_thread_db): Don't call add_target.
836 * target.c (complete_target_initialization): New function.
837 (add_target_with_completer): Call it.
838 * target.h (complete_target_initialization): Declare.
839
cbb6aada
MK
8402013-07-25 Mark Kettenis <kettenis@gnu.org>
841
842 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
843 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
844 (HPPANBSD_SIZEOF_GREGS): New define.
845 (hppaobsd_supply_gregset): Handle additional registers.
846 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
847 we provide more registers now.
848 (hppabsd_supply_gregset): Supply additional registers.
849 (hppabsd_collect_gregset): Collect additional registers.
850
17767988
MK
8512013-07-25 Mark Kettenis <kettenis@gnu.org>
852
853 * hppabsd-tdep.c: Include "dwarf2-frame.h".
854 (hppabsd_dwarf2_frame_init_reg): New function.
855 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
856
fdc8aae8
AB
8572013-07-25 Andrew Burgess <aburgess@broadcom.com>
858
859 * mi/mi-main.c (output_register): Make MI 'r' format use standard
860 'z' format code. Remove error for optimized out values, standard
861 code will handle these fine.
862
6fbe845e
AB
8632013-07-25 Andrew Burgess <aburgess@broadcom.com>
864
865 * NEWS: Mention new 'z' formatter.
866 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
867 (_initialize_printcmd): Mention 'z' formatter in help text of the
868 'x' command.
869
3373342d
MR
8702013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
871
872 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
873 formatting.
874
25f9533e
SDJ
8752013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
876
877 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
878 interface can evaluate arguments. Fallback to the old mode if it
879 cannot.
880 (create_exception_master_breakpoint): Likewise.
881 * elfread.c (elf_can_evaluate_probe_arguments): New function.
882 (struct sym_probe_fns elf_probe_fns): Export function above to the
883 probe interface.
884 * probe.c (can_evaluate_probe_arguments): New function.
885 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
886 function pointer.
887 (can_evaluate_probe_arguments): New function prototype.
888 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
889 probe interface can evaluate arguments. Fallback to the old mode
890 if it cannot.
891 * stap-probe.c (stap_get_probe_argument_count): Check if probe
892 interface can evaluate arguments. Warning the user if it cannot.
893 (stap_can_evaluate_probe_arguments): New function.
894 (struct probe_ops stap_probe_ops): Export function above to the
895 probe interface.
896 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
897 New function pointer.
898
3360c0bf
LM
8992013-07-24 Luis Machado <lgustavo@codesourcery.com>
900
901 * Makefile.in (SFILES): Add common/target-common.c.
902 Add common/target-common.h to headers.
903 (COMMON_OBS): Add target-common.o.
904 (target-common.o): New target.
905 * linux-nat.h (resume_kind): Move to common/target-common.h.
906 * target.c (target_waitstatus_to_string): Move to
907 common/target-common.c.
908 * target.h: Include target-common.h.
909 (target_waitkind): Move to common/target-common.h.
910 (target_waitstatus): Likewise.
911 (TARGET_WNOHANG): Likewise.
912 * common/target-common.c: New file.
913 * common/target-common.h: New file.
914
6656a72d
DE
9152013-07-24 Doug Evans <dje@google.com>
916
917 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
918 a warning.
919
6df81a63
YQ
9202013-07-23 Yao Qi <yao@codesourcery.com>
921
922 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
923 parameter 'gdbarch'.
924 (i386_stack_tramp_frame_sniffer): Caller update.
925 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
926 parameter 'gdbarch' and 'target'.
927 (i386_linux_core_read_description): Caller update.
928 * amd64-linux-tdep.c (amd64_linux_core_read_description):
929 Likewise.
930 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
931 declaration.
932
365156ad
TT
9332013-07-23 Tom Tromey <tromey@redhat.com>
934
935 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
936 2013-07-22.
937
046ac79f
JK
9382013-07-22 Doug Evans <dje@google.com>
939
940 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
941 * exec.c (exec_close): Update call to remove_target_sections.
942 (remove_target_sections): Delete arg abfd.
046ac79f
JK
943 * solib.c (update_solib_list): Ditto.
944 (reload_shared_libraries_1): Ditto.
945 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
946 * target.h (struct target_section): Rename key to owner.
947 All uses updated.
046ac79f 948
29b2cc46
TT
9492013-07-22 Tom Tromey <tromey@redhat.com>
950
951 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
952
d1160018
TT
9532013-07-22 Tom Tromey <tromey@redhat.com>
954
955 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
956 Simplify cleanup handling.
957
2f324bf6
TT
9582013-07-22 Tom Tromey <tromey@redhat.com>
959
960 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
961 on all return paths.
962
e23b9d6e
UW
9632013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
964
965 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
966 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
967 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
968
1cf55f60
PM
9692013-07-22 Phil Muldoon <pmuldoon@redhat.com>
970
971 * top.c (print_gdb_version): Add help, apropos description and
972 url to online documentation.
973
fa876972
HZ
9742013-07-19 Hui Zhu <hui@codesourcery.com>
975
976 PR gdb/15692
977 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
978
1527aea8
YQ
9792013-07-19 Yao Qi <yao@codesourcery.com>
980
981 * target.c (update_current_target): Change the default action
982 of 'to_traceframe_info' from tcomplain to return_zero.
983 * target.h (struct target_ops) <to_traceframe_info>: Add more
984 comments.
985 * valops.c (read_value_memory): Call
986 traceframe_available_memory unconditionally.
987
886f230e
YQ
9882013-07-18 Yao Qi <yao@codesourcery.com>
989
990 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
991 if the name is prefixed by "__imp_" or "_imp_", look for minimal
992 symbol without prefix. If found, set its type to
993 'mst_solib_trampoline'.
994
16419bae
DE
9952013-07-17 Doug Evans <dje@google.com>
996
e7045703
DE
997 * NEWS: Mention "set print raw frame-arguments".
998 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
999 * stack.c (print_raw_frame_arguments): New static global.
1000 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1001 (_initialize_stack): New command "set/show print raw frame-arguments".
1002 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1003 (set_print_raw, show_print_raw): New functions.
1004 (_initialize_valprint): New prefix command "set/show print raw".
1005 * valprint.h (value_print_options): Improve comments.
1006
453e48a5
DE
1007 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1008 of all *list variables.
1009
16419bae
DE
1010 * gdbcmd.h (togglelist): Delete.
1011 * cli/cli-cmds.c (togglelist): Delete.
1012 (init_cmd_lists): Update.
1013 * cli/cli-cmds.h (togglelist): Delete.
1014
626f2d1c
TT
10152013-07-17 Tom Tromey <tromey@redhat.com>
1016
1017 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1018 dwarf2_per_objfile.
1019
57e6060e
DE
10202013-07-16 Doug Evans <dje@google.com>
1021
1022 * nto-tdep.c (nto_relocate_section_addresses): Update,
1023 target_section.bfd deleted.
1024 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1025 * s390-tdep.c (s390_load): Ditto.
1026 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1027
5ea5559b
AB
10282013-07-16 Andrew Burgess <aburgess@broadcom.com>
1029
1030 * common/format.c (parse_format_string): Add checks for NULL
1031 character before calling strchr.
1032
2b2848e2
DE
10332013-07-16 Doug Evans <dje@google.com>
1034
2c571006
DE
1035 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1036 temp_pathname argument.
1037 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1038 when opening the file fails.
1039
2b2848e2
DE
1040 * target.h (struct target_section): Delete member bfd.
1041 All users updated to use the_bfd_section->owner instead.
1042 * exec.c (add_to_section_table): Assert bfd is expected value.
1043 Remove initialization of target_section.bfd.
1044 (remove_target_sections): Update.
1045 (section_table_available_memory): Update.
1046 (section_table_xfer_memory_partial): Update.
1047 (print_section_info): Update.
1048 (exec_set_section_address): Update.
1049 * record-full.c (record_full_core_xfer_partial): Update.
1050 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1051 * solib-target.c (solib_target_relocate_section_addresses): Update.
1052 * symfile.c (build_section_addr_info_from_section_table): Update.
1053 * target.c (memory_xfer_live_readonly_partial): Update.
1054 (memory_xfer_partial_1): Update.
1055
926bf92d
UW
10562013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1057
1058 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1059 now available for embedded (BookE) and server (BookS) processors,
1060 correct mentions of 'booke' and adjust comments accordingly in order to
1061 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1062 (have_ptrace_booke_interface): Rename function and variable
1063 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1064 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1065 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1066 'hwdebug_point_cmp'. Update all uses.
1067 (booke_find_thread_points_by_tid): Rename function
1068 'booke_find_thread_points_by_tid' to
1069 'hwdebug_find_thread_points_by_tid'. Update all uses.
1070 (booke_insert_point): Rename function 'booke_insert_point' to
1071 'hwdebug_insert_point'. Update all uses.
1072 (booke_remove_point): Rename function 'booke_remove_point' to
1073 'hwdebug_remove_point'. Update all uses.
1074
d929bc19
MR
10752013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
1076
1077 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1078 numbers with enum values.
1079
054e8d9e
AA
10802013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
1081
1082 PR threads/13217
1083 * thread.c (thread_apply_all_command): Check for valid threads
1084 and thread count.
1085 (thread_array_cleanup): New struct.
1086 (set_thread_refcount): New function.
1087
cf006359
AB
10882013-07-11 Andrew Burgess <aburgess@broadcom.com>
1089
1090 * infcmd.c (default_print_one_register_info): Reuse function
1091 print_hex_chars.
1092
94e36acc
TT
10932013-07-10 Tom Tromey <tromey@redhat.com>
1094
1095 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1096 (ada-exp.o): New target.
1097
915dd369
SDJ
10982013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
1099
1100 * mt-tdep.c (mt_registers_info): Call
1101 get_no_prettyformat_print_options instead of
1102 get_raw_print_options (regression by last patch from Doug
1103 Evans).
1104
eca07816
JB
11052013-07-09 Pedro Alves <palves@redhat.com>
1106
1107 Checked in by Joel Brobecker <brobecker@adacore.com>.
1108 * ada-lang.c (coerce_unspec_val_to_type): Use
1109 value_optimized_out_const.
1110 * value.c (value_optimized_out_const): New function.
1111 * value.h (value_optimized_out_const): New declaration.
1112
2a998fc0
DE
11132013-07-09 Doug Evans <dje@google.com>
1114
1115 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1116 Enum values rename as well. All uses updated.
1117 * valprint.h (value_print_options): Rename member pretty to
1118 pretty format. Rename member prettyprint_arrays to
1119 prettyformat_arrays. Rename member prettyprint_structs to
1120 prettyformat_structs. All uses updated.
1121 (get_no_prettyformat_print_options): Renamed from
1122 get_raw_print_options.
1123 * valprint.c (get_no_prettyformat_print_options): Renamed from
1124 get_raw_print_options. All callers updated.
1125 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1126 All callers updated.
1127 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1128 All callers updated.
1129 (_initialize_valprint): Improve help text for "set print pretty" and
1130 "set print arrays".
1131
466c1fca
AB
11322013-07-09 Andrew Burgess <aburgess@broadcom.com>
1133
1134 * value.c (value_bits_valid): Revert previous change, and change
1135 by Pedro on 2013-07-04, due to regressions in
1136 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1137
ad0f0303
AB
11382013-07-08 Andrew Burgess <aburgess@broadcom.com>
1139 Pedro Alves <palves@redhat.com>
1140
1141 * value.c (value_bits_valid): If the value is not lval_computed
1142 or has no check validity handler then the answer is the
1143 optimized_out flag, otherwise defer to the handler.
1144
b187bec1
EZ
11452013-07-06 Eli Zaretskii <eliz@gnu.org>
1146
48d1d6f5
EZ
1147 * top.c (print_gdb_configuration): Explain in output of
1148 --configuration what does "relocatable" mean.
1149
b187bec1
EZ
1150 * main.c (print_gdb_help): Regroup options in the --help text.
1151 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1152 the relevant discussions.
1153
52d361e1
YQ
11542013-07-06 Yao Qi <yao@codesourcery.com>
1155
1156 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1157 Remove parameter 'lsal'.
1158 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1159 to inner block. Caller update.
1160 (base_breakpoint_create_breakpoints_sal): Update.
1161 (bkpt_create_breakpoints_sal): Likewise.
1162 (tracepoint_create_breakpoints_sal): Likewise.
1163 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1164 element 0 of vector 'canonical->sals'.
1165
e1ec1b42
LM
11662013-07-05 Luis Machado <lgustavo@codesourcery.com>
1167
1168 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1169 register number instead of the pseudo register one.
1170 (rs6000_dwarf2_reg_to_regnum): Likewise.
1171
7195e6f0
PA
11722013-07-04 Pedro Alves <palves@redhat.com>
1173
1174 * findvar.c (value_of_register): Use allocate_optimized_out_value
1175 if the register has been optimized out, instead of
1176 set_value_optimized_out.
1177 * frame-unwind.c (frame_unwind_got_optimized): Use
1178 allocate_optimized_out_value.
1179
58722cac
PA
11802013-07-04 Pedro Alves <palves@redhat.com>
1181
1182 * value.c (value_bits_valid): If the value is not lval_computed,
1183 or doesn't have a check_validity hook, assume the value is entirely
1184 valid.
1185
691a26f5
AB
11862013-07-04 Andrew Burgess <aburgess@broadcom.com>
1187
1188 * stack.c (read_frame_arg): No longer fetch lazy values.
1189 * value.c (value_optimized_out): If the value is not already
1190 marked optimized out, and is lazy then fetch it.
1191 (value_primitive_field): Move optimized out check to later in the
1192 function, after we have loaded any lazy values.
1193 (value_fetch_lazy): Use optimized out flag directly rather than
1194 calling optimized_out method.
1195
a58e2656
AB
11962013-07-04 Andrew Burgess <aburgess@broadcom.com>
1197
1198 * valops.c: Don't include "user-regs.h".
1199 (value_fetch_lazy): Moved to value.c.
1200 * value.c: Include "user-regs.h".
1201 (value_fetch_lazy): Moved from valops.c.
1202
bd885420
YQ
12032013-07-04 Yao Qi <yao@codesourcery.com>
1204
1205 Revert:
1206 2013-06-27 Yao Qi <yao@codesourcery.com>
1207
1208 * common/create-version.sh: Update comments. Handle the case
1209 that TARGET_ALIAS is empty.
1210
17ef446e
PA
12112013-07-03 Pedro Alves <palves@redhat.com>
1212
1213 * Makefile.in (config.status): Depend on development.sh.
1214 (aclocal_m4_deps): Add libmcheck.m4.
1215 * acinclude.m4: Include libmcheck.m4.
1216 * configure.ac: Source development.sh instead of setting
1217 'development' here. --enable-libmcheck/--disable-libmcheck code
1218 factored out to GDB_AC_LIBMCHECK. Run it.
1219 * development.sh: New file.
1220 * libmcheck.m4: New file.
1221 * configure: Regenerate.
1222
ac6dd50f
TT
12232013-07-02 Tom Tromey <tromey@redhat.com>
1224
1225 * contrib/ari/update-web-ari.sh: Update for version.in change.
1226
bd1df410
TT
12272013-07-02 Tom Tromey <tromey@redhat.com>
1228
1229 * common/ptid.h: Comment fixes.
1230
4db1a1dc
TT
12312013-07-01 Tom Tromey <tromey@redhat.com>
1232
1233 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
1234 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
1235 (dwarf2_read_index, create_all_comp_units): Update.
1236
dd9aa048
TT
12372013-07-01 Tom Tromey <tromey@redhat.com>
1238
1239 * configure.ac (build_warnings): Add -Wold-style-definition.
1240 * configure: Rebuild.
1241 * machoread.c (_initialize_machoread): Use "(void)".
1242 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
1243 use "(void)".
1244
44d100c3
TT
12452013-07-01 Tom Tromey <tromey@redhat.com>
1246
1247 * configure.ac (build_warnings): Add -Wold-style-declaration.
1248 * configure: Rebuild.
1249 * dsrec.c (make_srec): Use "static const", not "const static".
1250 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
1251 not "const static".
1252 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
1253 Use "static const", not "const static".
1254 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
1255 not "const static".
1256 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
1257 not "const static".
1258 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
1259 not "const static".
1260 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
1261 not "const static".
1262 (v850_dbtrap_breakpoint_from_pc): Likewise.
1263 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
1264 not "const static".
1265
2945b807
TT
12662013-07-01 Tom Tromey <tromey@redhat.com>
1267
1268 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
1269 * configure: Rebuild.
1270
d8d2a3ee
PA
12712013-07-01 Pedro Alves <palves@redhat.com>
1272
1273 * defs.h: Include "pathmax.h".
1274 * utils.c: Don't include sys/param.h.
1275 (gdb_realpath): Remove code that checks for MAXPATHLEN.
1276 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
1277 instead of MAXPATHLEN.
1278 * solib-sunos.c: Don't include sys/param.h.
1279 * xcoffread.c: Don't include sys/param.h.
1280 * bsd-kvm.c: Don't include sys/param.h.
1281 * darwin-nat.c: Don't include sys/param.h.
1282 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1283 * darwin-nat-info.c: Don't include sys/param.h.
1284 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
1285 MAXPATHLEN.
1286 * i386obsd-nat.c: Don't include sys/param.h.
1287 * inf-child.c: Don't include sys/param.h.
1288 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
1289 * linux-fork.c: Don't include sys/param.h.
1290 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
1291 * linux-nat.c: Don't include sys/param.h.
1292 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
1293 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
1294 * m68klinux-nat.c: Don't include sys/param.h.
1295 * nbsd-nat.c: Don't include sys/param.h.
1296 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1297 * ppc-linux-nat.c: Don't include sys/param.h.
1298 * rs6000-nat.c: Don't include sys/param.h.
1299 * spu-linux-nat.c. Don't include sys/param.h.
1300 * windows-nat.c: Don't include sys/param.h.
1301 * xtensa-linux-nat.c: Don't include sys/param.h.
1302 * config/i386/nm-fbsd.h: Don't include sys/param.h.
1303
38ec2207
PA
13042013-07-01 Pedro Alves <palves@redhat.com>
1305
1306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
1307 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
1308 * gnulib/aclocal.m4: Regenerate.
1309 * gnulib/config.in: Regenerate.
1310 * gnulib/configure: Regenerate.
1311 * gnulib/import/pathmax.h: New file.
1312 * gnulib/import/Makefile.am: Regenerate.
1313 * gnulib/import/Makefile.in: Regenerate.
1314 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1315 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1316 * gnulib/import/m4/pathmax.m4: New file.
1317
e655c1a2
PA
13182013-07-01 Pedro Alves <palves@redhat.com>
1319
1320 * configure.ac (GDBINIT): Define, depending on host.
1321 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
1322 * top.c (PATH_MAX): Delete fallback definition.
1323 (GDBINIT_FILENAME): Delete.
1324 (gdbinit): Reimplement as const char array set to the GDBINIT
1325 string constant.
1326 * top.h (gdbinit): Make const.
1327 * configure, config.in: Regenerate.
1328
50dd9793
PA
13292013-07-01 Pedro Alves <palves@redhat.com>
1330
1331 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
1332 * cli/cli-cmds.h (source_script): Likewise.
1333 * exceptions.c (catch_command_errors_const): New function.
1334 * exceptions.h (catch_command_errors_const): Declare.
1335 * main.c (get_init_files): Make parameters const, and adjust.
1336 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
1337 'local_gdbinit' locals const. Adjust to use
1338 catch_command_errors_const.
1339 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
1340 'local_gdbinit' locals const.
1341
bc7dea8d
PA
13422013-07-01 Pedro Alves <palves@redhat.com>
1343
1344 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
1345 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
1346 * tracepoint.c: Don't check HAVE_UNISTD_H before including
1347 <unistd.h>.
1348
8839a007
PA
13492013-07-01 Pedro Alves <palves@redhat.com>
1350
1351 Import the "unistd" gnulib module.
1352 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1353 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1354 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1355 import/m4/unistd_h.m4.
1356 * gnulib/aclocal.m4: Renenerate.
1357 * gnulib/config.in: Renenerate.
1358 * gnulib/configure: Renenerate.
1359 * gnulib/import/Makefile.am: Renenerate.
1360 * gnulib/import/Makefile.in: Renenerate.
1361 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1362 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1363 * gnulib/import/m4/off_t.m4: New file.
1364 * gnulib/import/m4/ssize_t.m4: New file.
1365 * gnulib/import/m4/sys_types_h.m4: New file.
1366 * gnulib/import/m4/unistd_h.m4: New file.
1367 * gnulib/import/sys_types.in.h: New file.
1368 * gnulib/import/unistd.c: New file.
1369 * gnulib/import/unistd.in.h: New file.
1370
8c0da261
PA
13712013-07-01 Pedro Alves <palves@redhat.com>
1372
1373 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1374 defined instead of checking HAVE_UNISTD_H.
1375
3574124b
PA
13762013-07-01 Pedro Alves <palves@redhat.com>
1377
1378 Reimport gnulib from scratch.
1379 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1380 import/m4/onceonly.m4.
1381 * gnulib/aclocal.m4: Renegerate.
1382 * gnulib/config.in: Renegerate.
1383 * gnulib/configure: Renegerate.
1384 * gnulib/import/Makefile.in: Renegerate.
1385 * gnulib/import/extra/update-copyright: Renegerate.
1386 * gnulib/import/m4/onceonly.m4: Delete.
1387
702dc4fd
PA
13882013-07-01 Pedro Alves <palves@redhat.com>
1389
1390 * tui/tui-regs.c (pagination_enabled): Delete declaration.
1391
47e1ce27
JK
13922013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1393
1394 Code cleanup.
1395 * remote.c (async_remote_interrupt_twice): Make it static.
1396 * remote.h (async_remote_interrupt_twice): Remove the declaration.
1397
e82839d4
SDJ
13982013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
1399
1400 * ia64-linux-tdep.c: Include <ctype.h>.
1401 (ia64_linux_stap_is_single_operand): New function.
1402 (ia64_linux_init_abi): Initialize SystemTap related attributes.
1403
d6c2da54
TT
14042013-06-28 Tom Tromey <tromey@redhat.com>
1405
1406 * Makefile.in (version.c): Use version.in, not
1407 common/version.in.
1408 * common/create-version.sh: Likewise.
1409 * common/version.in: Move...
1410 * version.in: ...here.
1411
74da6f00
PA
14122013-06-28 Pedro Alves <palves@redhat.com>
1413
1414 * infrun.c (set_observer_mode): Don't declare pagination_enabled
1415 here.
1416 * utils.h (pagination_enabled): Declare.
1417
d32dc48e
PA
14182013-06-28 Pedro Alves <palves@redhat.com>
1419
1420 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1421 Move higher up in file.
1422
0edd9e3b
TT
14232013-06-28 Tom Tromey <tromey@redhat.com>
1424
1425 * tracepoint.c (deprecated_readline_begin_hook)
1426 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1427 declare.
1428
4eb59108
PA
14292013-06-28 Pedro Alves <palves@redhat.com>
1430
1431 PR tui/14880
1432 * tui/tui-regs.c (tui_get_register): Fetch value contents before
1433 checking if they're available.
1434 * value.c (value_available_contents_eq): Change comment.
1435 * value.h (value_available_contents_eq): Expand comment.
1436
97b17156
TT
14372013-06-27 Tom Tromey <tromey@redhat.com>
1438
1439 * target.c (find_run_target): Remove.
1440 * target.h (find_run_target): Remove.
1441
6a3bfc5c
TT
14422013-06-27 Tom Tromey <tromey@redhat.com>
1443
1444 * corelow.c (core_gdbarch): Now static.
1445
c9ef825d
TT
14462013-06-27 Tom Tromey <tromey@redhat.com>
1447
1448 * target.c (target_struct_index): Remove.
1449
e5823f1c
PA
14502013-06-27 Pedro Alves <palves@redhat.com>
1451
1452 * infrun.c: Remove comment describing the 'stepping over runtime
1453 loader dynamic symbol resolution code' mechanism; moved to
1454 gdbint.texinfo.
1455
97f8dd09
PA
14562013-06-27 Pedro Alves <palves@redhat.com>
1457
1458 * exceptions.c (catch_command_errors): Remove spurious space.
1459 * exceptions.h (catch_command_errors): Second parameter is "arg",
1460 not "command".
1461
02b1871e
YQ
14622013-06-27 Yao Qi <yao@codesourcery.com>
1463
1464 * common/create-version.sh: Update comments. Handle the case
1465 that TARGET_ALIAS is empty.
1466
bb1b1cf1
PA
14672013-06-26 Pedro Alves <palves@redhat.com>
1468
1469 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1470 comment.
1471
7b624e71
PA
14722013-06-26 Pedro Alves <palves@redhat.com>
1473
1474 * infrun.c: Update comments on stepping over runtime loader
1475 dynamic symbol resolution code.
1476
74e5a346
SDJ
14772013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
1478
1479 * ax-gdb.h (union exp_element): Forward declare.
1480 * parser-defs.h: Include expression.h.
1481
a2fb2cee
MR
14822013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1483
1484 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1485
cdba14e0
DK
14862013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1487
1488 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1489
f30aa5af
DK
14902013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1491
1492 Fix trace-status to output proper start-time and stop-time.
1493 * tracepoint.c (trace_status_command): Fix type of printf arg to
1494 prevent improper type conversion.
1495 (trace_status_mi): Likewise.
1496
1aee363c
MR
14972013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1498
1499 * mips-tdep.c (mips_next_pc): Fix a typo.
1500
3356937a
MR
15012013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1502
1503 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1504
dc673c81
YQ
15052013-06-26 Pedro Alves <pedro@codesourcery.com>
1506 Yao Qi <yao@codesourcery.com>
1507
1508 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1509 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1510 * mi/mi-main.c (print_variable_or_computed): New function.
1511 (mi_cmd_trace_frame_collected): New function.
1512 * tracepoint.c (find_trace_state_variable_by_number): New.
1513 (struct traceframe_info): Move to tracepoint.h
1514 (struct collection_list): Likewise.
1515 (do_collect_symbol): Include locals and arguments in the
1516 collected variables list.
1517 (clear_collection_list): Clear wholly collected variables list
1518 and computed variables list.
1519 (append_exp): New function.
1520 (encode_actions_1): Include variables in the wholly
1521 collected variables list. Include memory ranges and
1522 full-fledged expressions in the computed expressions list.
1523 (encode_actions): Move some code to ...
1524 Return the cleanup chain.
1525 (encode_actions_rsp): ... here. New function.
1526 (get_traceframe_location, get_traceframe_info): Remove static.
1527 * tracepoint.h (struct memrange): Moved from tracepoint.c.
1528 (struct collection_list): Moved from tracepoint.c. Add two
1529 new fields 'wholly_collected' and 'computed'.
1530 (find_trace_state_variable_by_number): Declare.
1531 (encode_actions): Adjust declaration.
1532 (encode_actions_rsp): Declare.
1533 (get_traceframe_info, get_traceframe_location): Declare.
1534
1535 * NEWS: Mention new MI command -trace-frame-collected.
1536
28a93511
YQ
15372013-06-26 Pedro Alves <pedro@codesourcery.com>
1538 Yao Qi <yao@codesourcery.com>
1539
1540 * ctf.c (ctf_traceframe_info): Push trace state variables
1541 present in the trace data into the traceframe info object.
1542 * breakpoint.c (DEF_VEC_I): Remove.
1543 * common/filestuff.c (DEF_VEC_I): Likewise.
1544 * dwarf2loc.c (DEF_VEC_I): Likewise.
1545 * mi/mi-main.c (DEF_VEC_I): Likewise.
1546 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
1547 * features/traceframe-info.dtd: Add tvar element and its
1548 attributes.
1549 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
1550 (build_traceframe_info): Push trace state variables present in
1551 the trace data into the traceframe info object.
1552 (traceframe_info_start_tvar): New function.
1553 (tvar_attributes): New.
1554 (traceframe_info_children): Add "tvar" element.
1555 * tracepoint.h (struct traceframe_info) <tvars>: New field.
1556
1557 * NEWS: Mention the change in GDB and GDBserver.
1558
ddacd3c8
YQ
15592013-06-26 Pedro Alves <pedro@codesourcery.com>
1560 Yao Qi <yao@codesourcery.com>
1561
1562 * tracepoint.c (trace_dump_command): Move code to ...
1563 (get_traceframe_location): ... here. New.
1564
05796b35
YQ
15652013-06-26 Pedro Alves <pedro@codesourcery.com>
1566 Yao Qi <yao@codesourcery.com>
1567
1568 * tracepoint.c (trace_dump_command): GDB emits an error
1569 instead of a warning when a traceframe is not selected.
1570
cbfa3b61
YQ
15712013-06-26 Pedro Alves <pedro@codesourcery.com>
1572 Yao Qi <yao@codesourcery.com>
1573
1574 * tracepoint.c (tracepoint_list, stepping_list): Remove.
1575 (clear_collection_list): Free fields 'aexpre_list' and 'list'
1576 in collection_list.
1577 (do_clear_collection_list, init_collection_list): New.
1578 (encode_actions): Add local variables 'tracepoint_list' and
1579 'stepping_list'. Call init_collection_list and make cleanup
1580 which calls do_clear_collection_list. Don't call
1581 clear_collection_list.
1582 (_initialize_tracepoint): Delete references to
1583 'tracepoint_list' and 'stepping_list'.
1584
6e2048d3
TT
15852013-06-25 Tom Tromey <tromey@redhat.com>
1586
1587 * common/create-version.sh (date): Use "$", not "$$" in sed
1588 expression.
1589
42059f0e
KB
15902013-06-25 Kevin Buettner <kevinb@redhat.com>
1591
1592 * NEWS (New targets): Add entry for TI MSP430.
1593
a0743c90
YQ
15942013-06-25 Yao Qi <yao@codesourcery.com>
1595
1596 * remote.c (remote_start_remote): Move code to upload tsv
1597 earlier.
1598
9d6e6e84
HZ
15992013-06-25 Yao Qi <yao@codesourcery.com>
1600 Hui Zhu <hui@codesourcery.com>
1601 Pedro Alves <palves@redhat.com>
1602
1603 PR breakpoints/15075
1604 PR breakpoints/15434
1605 * breakpoint.c (bpstat_stop_status): Call
1606 b->ops->after_condition_true.
1607 (update_dprintf_command_list): Don't append "continue" command
1608 to the command list of dprintf breakpoint.
1609 (base_breakpoint_after_condition_true): New function.
1610 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
1611 (dprintf_after_condition_true): New function.
1612 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
1613 * breakpoint.h (breakpoint_ops): Add after_condition_true.
1614
586cf749
KB
16152013-06-24 Kevin Buettner <kevinb@redhat.com>
1616
1617 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
1618 (ALLDEPFILES): Add msp430-tdep.c.
1619 * configure.tgt (msp430*-*-elf): New target.
1620 * msp430-tdep.c: New file.
1621
1bbce132
MR
16222013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1623
1624 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
1625 microMIPS synthetic symbols.
1626
3e5d3a5a
MR
16272013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1628
1629 * objfiles.h (pc_in_section): New prototype.
1630 (in_plt_section): Remove name argument, replace prototype with
1631 static inline function.
1632 * mips-tdep.h: Include "objfiles.h".
1633 (in_mips_stubs_section): New function.
1634 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
1635 in_solib_call_trampoline member.
1636 (hppa_in_solib_call_trampoline): Remove name argument.
1637 * objfiles.c (pc_in_section): New function.
1638 (in_plt_section): Remove function.
1639 * mips-linux-tdep.c: Include "objfiles.h".
1640 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
1641 name argument. Return 1 rather than the low 16-bit halfword of
1642 any instruction examined.
1643 (mips_linux_in_dynsym_resolve_code): Update
1644 mips_linux_in_dynsym_stub call accordingly.
1645 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
1646 rather than an equivalent hand-coded sequence.
1647 * hppa-hpux-tdep.c (in_opd_section): Remove function.
1648 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
1649 (hppa64_hpux_in_solib_call_trampoline): Likewise.
1650 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
1651 in_opd_section.
1652 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
1653 on call to tdep->in_solib_call_trampoline.
1654 (hppa_in_solib_call_trampoline): Remove name argument, update
1655 according to in_plt_section change.
1656 (hppa_skip_trampoline_code): Update according to in_plt_section
1657 change.
1658 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
1659 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
1660 Likewise.
1661 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
1662 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1663 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1664 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
1665 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
1666 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
1667 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
1668 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
1669 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
1670 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
1671 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
1672 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
1673 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
1674
b9b26a16
JB
16752013-06-24 Joel Brobecker <brobecker@adacore.com>
1676
1677 * common/create-version.sh: Fix expansion of $host_alias
1678 and $target_alias in generation of HOST_NAME and TARGET_NAME
1679 (resp.).
1680
01208463
TT
16812013-06-24 Tom Tromey <tromey@redhat.com>
1682
1683 * common/create-version.sh: New file.
1684 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
1685 create-version.sh.
1686 (HFILES_NO_SRCDIR): Use common/version.h.
1687 * version.in: Move to ...
1688 * common/version.in: ... here. Replace date with "DATE".
1689 * version.h: Move to ...
1690 * common/version.h: ... here.
1691
bb6b9a5e
JB
16922013-06-21 Joel Brobecker <brobecker@adacore.com>
1693
1694 * gdb/gnulib/Makefile.in: Update date in copyright header.
1695 * gdb/gnulib/configure.ac: Ditto.
1696 * gdb/gnulib/update-gnulib.sh: Ditto.
1697
c3b18ee7
JB
16982013-06-21 Joel Brobecker <brobecker@adacore.com>
1699
1700 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
1701 "gdb/gnulib/import".
1702
85d3b769
WN
17032013-06-21 Will Newton <will.newton@linaro.org>
1704
1705 * doublest.c (ldfrexp): Remove function.
1706 (convert_doublest_to_floatformat): Call frexpl instead of
1707 ldfrexp.
1708
88b48903
WN
17092013-06-21 Will Newton <will.newton@linaro.org>
1710
1711 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
1712 * gnulib/aclocal.m4: Regenerate.
1713 * gnulib/config.in: Regenerate.
1714 * gnulib/configure: Regenerate.
1715 * gnulib/import/Makefile.am: Update.
1716 * gnulib/import/Makefile.in: Update.
1717 * gnulib/import/m4/gnulib-cache.m4: Update.
1718 * gnulib/import/m4/gnulib-comp.m4: Update.
1719 * gnulib/import/float+.h: Import.
1720 * gnulib/import/float.c: Import.
1721 * gnulib/import/float.in.h: Import.
1722 * gnulib/import/fpucw.h: Import.
1723 * gnulib/import/frexp.c: Import.
1724 * gnulib/import/frexpl.c: Import.
1725 * gnulib/import/isnan.c: Import.
1726 * gnulib/import/isnand-nolibm.h: Import.
1727 * gnulib/import/isnand.c: Import.
1728 * gnulib/import/isnanl-nolibm.h: Import.
1729 * gnulib/import/isnanl.c: Import.
1730 * gnulib/import/itold.c: Import.
1731 * gnulib/import/m4/exponentd.m4: Import.
1732 * gnulib/import/m4/exponentl.m4: Import.
1733 * gnulib/import/m4/float_h.m4: Import.
1734 * gnulib/import/m4/fpieee.m4: Import.
1735 * gnulib/import/m4/frexp.m4: Import.
1736 * gnulib/import/m4/frexpl.m4: Import.
1737 * gnulib/import/m4/isnand.m4: Import.
1738 * gnulib/import/m4/isnanl.m4: Import.
1739 * gnulib/import/m4/math_h.m4: Import.
1740 * gnulib/import/math.c: Import.
1741 * gnulib/import/math.in.h: Import.
1742
4353c9e6
JK
17432013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1744
1745 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
1746 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
1747 signature_INTEL_edx comparisons.
1748
e3e06db3
DE
17492013-06-20 Doug Evans <dje@google.com>
1750
6ac97d4c
DE
1751 symtab/15652
1752 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
1753 All callers updated.
1754 (open_dwp_file): If we can't find the dwp file, search the basename
1755 in debug-file-directory.
1756
93417882
DE
1757 * dwarf2read.c (struct dwp_file): Fix comment.
1758 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
1759
e3e06db3
DE
1760 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
1761 better.
1762
0878d0fa
YQ
17632013-06-20 Yao Qi <yao@codesourcery.com>
1764
1765 * breakpoint.c (create_breakpoint): Fix code indentation.
1766
023fa29b
YQ
17672013-06-20 Yao Qi <yao@codesourcery.com>
1768
1769 * breakpoint.c (create_breakpoints_sal_default): Remove
1770 parameter 'lsal'. Update declaration.
1771 (bkpt_create_breakpoints_sal): Caller update.
1772 (tracepoint_create_breakpoints_sal): Likewise.
1773
c898adb7
YQ
17742013-06-20 Pedro Alves <pedro@codesourcery.com>
1775 Yao Qi <yao@codesourcery.com>
1776
1777 * NEWS: Mention the new option '--skip-unavailable' of command
1778 -data-list-register-values.
1779 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
1780 --skip-unavailable option. Adjust to use output_register.
1781 (output_register): Add new 'skip_unavailable' parameter.
1782 Handle it.
1783
4d157a3d
MF
17842013-06-19 Mike Frysinger <vapier@gentoo.org>
1785
1786 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
1787 common/i386-gcc-cpuid.h.
1788 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
1789 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
1790 Copy the latest version from upstream gcc.
1791 * common/linux-btrace.c: Include i386-cpuid.h.
1792 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
1793 call to i386_cpuid.
1794 (cpu_supports_btrace): Likewise.
1795 * go32-nat.c: Include i386-cpuid.h.
1796 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
1797
1ce4db08
DE
17982013-06-19 Doug Evans <dje@google.com>
1799
1800 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
1801 (get_section_index): Ditto.
1802
0e4777df
TT
18032013-06-19 Tom Tromey <tromey@redhat.com>
1804
1805 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
1806 "dprintf" help.
1807
3190f0c6
DE
18082013-06-18 Doug Evans <dje@google.com>
1809
1810 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
1811 before using it.
1812 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
1813 Move test of cu_index closer to use. Print complaint if cu_index
1814 is bad.
1815
8b89a20a
JB
18162013-06-18 Joel Brobecker <brobecker@adacore.com>
1817
1818 * machoread.c (oso_vector): Delete this global.
1819 (macho_register_oso): Add new parameter "oso_vector_ptr".
1820 Use it instead of the "oso_vector" global.
1821 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
1822 (macho_symfile_read): Use a local oso_vector, to be free'ed
1823 at the end of this function, in place of the old "oso_vector"
1824 global. Update various function calls accordingly. Use one
1825 single cleanup chain for the entire function.
1826
59b0c7c1
JB
18272013-06-18 Joel Brobecker <brobecker@adacore.com>
1828
937c708c 1829 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
1830 DWARF2_PER_OBJFILE by uses of DATA instead.
1831
427cd150
TT
18322013-06-18 Tom Tromey <tromey@redhat.com>
1833
1834 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
1835 argument.
1836 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
1837 Special case signals other than GDB_SIGNAL_TRAP.
1838 (explains_signal_watchpoint): New function.
1839 (base_breakpoint_explains_signal): Add 'sig' argument.
1840 (initialize_breakpoint_ops): Set 'explains_signal' method for
1841 watchpoints.
1842 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
1843 signal argument.
1844 (bpstat_explains_signal): Likewise.
1845 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
1846
2d57700b
TT
18472013-06-18 Tom Tromey <tromey@redhat.com>
1848
1849 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
1850
ac475191
TT
18512013-06-18 Tom Tromey <tromey@redhat.com>
1852
1853 * python/python.c (finish_python_initialization): Decref
1854 'pythondir' on failure path as well.
1855
5bd1ef56
TT
18562013-06-18 Tom Tromey <tromey@redhat.com>
1857
1858 PR symtab/15391:
1859 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
1860 after taking bits_to_skip into account. Sign extend byte_offset.
1861 * utils.h (gdb_sign_extend): Declare.
1862 * utils.c (gdb_sign_extend): New function.
1863
92fac807
JK
18642013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
1867
2d503272
PM
18682013-06-17 Pierre Muller <muller@sourceware.org>
1869
1870 * corelow.c (core_open): Print GDB signal name instead of target
1871 signal number.
1872
6916fd98
MF
18732013-06-17 Mike Frysinger <vapier@gentoo.org>
1874
1875 * .gitignore: Add /gcore.
1876
9c02c129
DE
18772013-06-13 Doug Evans <dje@google.com>
1878
1879 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
1880 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
1881
d0548fa2
PM
18822013-06-12 Phil Muldoon <pmuldoon@redhat.com>
1883
1884 * stack.c (backtrace_command_1): Fix indentation.
1885
22128028
JB
18862013-06-11 Joel Brobecker <brobecker@adacore.com>
1887
1888 * window-nat.c (thread_rec): Add missing empty line after
1889 local variable declaration.
1890
2ed3e009
JB
18912013-06-11 Joel Brobecker <brobecker@adacore.com>
1892
1893 * windows-nat.c (thread_rec): Revert format used to print
1894 error code returned by SuspendThread from %d back to %u.
1895
0c3d84be
JB
18962013-06-11 Joel Brobecker <brobecker@adacore.com>
1897
1898 * windows-nat.c (windows_continue): Add "0x" prefix for thread
1899 ID in debug trace.
1900 (get_windows_debug_event): Likewise, for all debug traces.
1901
80e88e1a
JB
19022013-06-11 Joel Brobecker <brobecker@adacore.com>
1903
1904 * window-nat.c (thread_rec): Add thread ID in SuspendThread
1905 warning message.
1906
1edebdbf
YQ
19072013-06-08 Pedro Alves <pedro@codesourcery.com>
1908 Yao Qi <yao@codesourcery.com>
1909
1910 * mi/mi-main.c (get_register): Remove declaration.
1911 (output_register): Declare.
1912 (mi_cmd_data_list_register_values): Remove local variable
1913 'tuple_cleanup'. Move some code into output_register.
1914 (get_register): Renamed to ...
1915 (output_register): ... this. Output the register's
1916 "number" ui_out tuple here.
1917
47d48711
PA
19182013-06-07 Pedro Alves <palves@redhat.com>
1919
1920 * darwin-nat.c: Fix formating in copyright header.
1921 * darwin-nat.h: Likewise.
1922 * gnu-nat.c: Likewise.
1923 * machoread.c: Likewise.
1924
3aee8918
PA
19252013-06-07 Pedro Alves <palves@redhat.com>
1926
5f2b57b5 1927 PR server/14823
3aee8918
PA
1928 * regformats/regdat.sh: Output #include tdesc.h. Make globals
1929 static. Output a global target description pointer.
1930 (init_registers_${name}): Adjust to initialize a
1931 target description structure.
1932
fe8400b4
WN
19332013-06-07 Will Newton <will.newton@linaro.org>
1934
1935 * printcmd.c (build_address_symbolic): Call
1936 gdbarch_addr_bits_remove for text minimal symbols.
1937
20df6206
WN
19382013-06-07 Will Newton <will.newton@linaro.org>
1939
1940 * MAINTAINERS: Add myself to Write After Approval.
1941
aef525cb
YQ
19422013-06-07 Yao Qi <yao@codesourcery.com>
1943
1944 * tracepoint.c (start_tracing): Move code to ...
1945 (trace_reset_local_state): ... here. New.
1946 (disconnect_tracing): Don't call set_current_traceframe,
1947 set_tracepoint_num, and set_traceframe_context. Call
1948 trace_reset_local_state instead.
1949 (tfile_close): Call trace_reset_local_state.
1950 * ctf.c (ctf_close): Likewise.
1951 * remote.c (remote_close): Likewise.
1952 * tracepoint.h (trace_reset_local_state): Declare.
1953
d2415c6c
DE
19542013-06-06 Doug Evans <dje@google.com>
1955
1956 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
1957 and fix header docs.
1958
69fc87c2
DE
19592013-06-05 Doug Evans <dje@google.com>
1960 Keith Seitz <keiths@redhat.com>
1961
1962 PR 15519
1963 * cp-namespace.c (find_symbol_in_baseclass): Call
1964 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
1965 Check result of call to lookup_symbol_static.
1966 Call lookup_static_symbol_aux unconditionally.
1967 Call check_typedef on base types before accessing them.
1968 (cp_lookup_nested_symbol): Fix comment.
1969
a513d1e8
LM
19702013-06-05 Luis Machado <lgustavo@codesourcery.com>
1971
1972 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
1973 minimal symbols pointing to function descriptors.
1974
351a6f02
TT
19752013-06-05 Tom Tromey <tromey@redhat.com>
1976
1977 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
1978
5e1b953b 19792013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 1980 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
1981
1982 * remote.c (remote_wait_as): Restore signal handler before returning
1983 when GDB gets a notification.
1984
f9e14852
GB
19852013-06-04 Gary Benson <gbenson@redhat.com>
1986
8445cbf1 1987 PR 2328
f9e14852
GB
1988 * breakpoint.h (handle_solib_event): Moved function declaration
1989 to solib.h.
1990 * breakpoint.c (handle_solib_event): Moved function to solib.c.
1991 (bpstat_stop_status): Pass new argument to handle_solib_event.
1992 * solib.h (update_solib_breakpoints): New function declaration.
1993 (handle_solib_event): Moved function declaration from
1994 breakpoint.h.
1995 * solib.c (update_solib_breakpoints): New function.
1996 (handle_solib_event): Moved function from breakpoint.c.
1997 Updated to call solib_ops->handle_event if not NULL.
1998 * solist.h (target_so_ops): New fields "update_breakpoints" and
1999 "handle_event".
2000 * infrun.c (set_stop_on_solib_events): New function.
2001 (_initialize_infrun): Use the above for "set
2002 stop-on-solib-events".
2003 (handle_inferior_event): Pass new argument to handle_solib_event.
2004 * solib-svr4.c (probe.h): New include.
2005 (svr4_free_library_list): New forward declaration.
2006 (probe_action): New enum.
2007 (probe_info): New struct.
2008 (probe_info): New static variable.
2009 (NUM_PROBES): New definition.
2010 (svr4_info): New fields "using_xfer", "probes_table" and
2011 "solib_list".
2012 (free_probes_table): New function.
2013 (free_solib_list): New function.
2014 (svr4_pspace_data_cleanup): Free probes table and solib list.
2015 (svr4_copy_library_list): New function.
2016 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2017 (svr4_read_so_list): New parameter "prev_lm".
2018 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2019 (svr4_current_sos): New function.
2020 (probe_and_action): New struct.
2021 (hash_probe_and_action): New function.
2022 (equal_probe_and_action): Likewise.
2023 (register_solib_event_probe): Likewise.
2024 (solib_event_probe_at): Likewise.
2025 (solib_event_probe_action): Likewise.
2026 (solist_update_full): Likewise.
2027 (solist_update_incremental): Likewise.
2028 (disable_probes_interface_cleanup): Likewise.
2029 (svr4_handle_solib_event): Likewise.
2030 (svr4_update_solib_event_breakpoint): Likewise.
2031 (svr4_update_solib_event_breakpoints): Likewise.
2032 (svr4_create_solib_event_breakpoints): Likewise.
2033 (enable_break): Free probes table before creating breakpoints.
2034 Use svr4_create_solib_event_breakpoints to create breakpoints.
2035 (svr4_solib_create_inferior_hook): Free the solib list.
2036 (_initialize_svr4_solib): Initialise
2037 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2038
ced63ec0
GB
20392013-06-04 Gary Benson <gbenson@redhat.com>
2040
2041 * target.h (target_ops): New field
2042 "to_augmented_libraries_svr4_read".
2043 (target_augmented_libraries_svr4_read): New macro.
2044 * target.c (update_current_target): Handle
2045 to_augmented_libraries_svr4_read.
2046 * remote.c (remote_state): New field
2047 "augmented_libraries_svr4_read".
2048 (remote_augmented_libraries_svr4_read_feature): New function.
2049 (remote_protocol_features): Add entry for
2050 "augmented-libraries-svr4-read".
2051 (remote_augmented_libraries_svr4_read): New function.
2052 (init_remote_ops): Initialize
2053 remote_ops.to_augmented_libraries_svr4_read.
2054
7f91dbec
GB
20552013-06-04 Gary Benson <gbenson@redhat.com>
2056
2057 * NEWS: Update.
2058
607ece04
GB
20592013-06-04 Gary Benson <gbenson@redhat.com>
2060
2061 * objfiles.h (inhibit_section_map_updates): New function
2062 declaration.
2063 (resume_section_map_updates): Likewise.
2064 (resume_section_map_updates_cleanup): Likewise.
2065 * objfiles.c (objfile_pspace_info): Removed field
2066 "objfiles_changed_p". New fields "new_objfiles_available",
2067 "section_map_dirty" and "inhibit_updates".
2068 (allocate_objfile): Set new_objfiles_available.
2069 (free_objfile): Set section_map_dirty.
2070 (objfile_relocate1): Likewise.
2071 (in_plt_section): Likewise.
2072 (find_pc_section): Update the conditions under which the
2073 section map will be updated.
2074 (inhibit_section_map_updates): New function.
2075 (resume_section_map_updates): Likewise.
2076 (resume_section_map_updates_cleanup): Likewise.
2077
9ee6a5ac
GB
20782013-06-04 Gary Benson <gbenson@redhat.com>
2079
2080 * probe.h (get_probe_argument_count): New declaration.
2081 (evaluate_probe_argument): Likewise.
2082 * probe.c (get_probe_argument_count): New function.
2083 (evaluate_probe_argument): Likewise.
2084 (probe_safe_evaluate_at_pc): Use the above new functions.
2085
845d4708
AM
20862013-06-04 Alan Modra <amodra@gmail.com>
2087
2088 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2089 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2090 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2091 target mem reads on optional insns.
2092 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2093 ppc_insns_match_pattern calls.
2094 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2095 Add match for power7 thread safety insns, and new order of
2096 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2097 invocation in comment, and update rest of comment.
2098 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2099 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2100 (ppc64_standard_linkage2_target): Update insn offsets.
2101 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2102 stubs first. Update calls.
2103
404e278f
YQ
21042013-06-04 Yao Qi <yao@codesourcery.com>
2105
2106 * solib.c (solib_find): Don't need dir separator if path has
2107 drive spec.
2108
f6aea118
JB
21092013-06-03 Joel Brobecker <brobecker@adacore.com>
2110
2111 Revert (indirectly causes a SIGSEGV):
2112 * machoread.c (macho_symfile_read): Assign first cleanup to
2113 'back_to'.
2114
87967e27
YQ
21152013-06-03 Yao Qi <yao@codesourcery.com>
2116
2117 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2118 mi-parse.c. Make them static.
2119 (mi_all_values): Likewise.
2120 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2121 mi_parse_print_values. Make it external.
2122 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2123 Remove the declarations.
2124 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2125 * mi/mi-parse.h (mi_parse_print_values): Declare.
2126 * mi/mi-cmd-stack.c: Include mi-parse.h.
2127 (parse_print_values): Remove
2128 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2129 of parse_print_values.
2130 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2131
3ca73e0c
YQ
21322013-05-31 Pedro Alves <pedro@codesourcery.com>
2133 Yao Qi <yao@codesourcery.com>
2134
2135 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2136 (encode_actions): Move code to ...
2137 (all_tracepoint_actions_and_cleanup): ... here. New.
2138 (trace_dump_command): Likewise.
2139
4e993a19
TT
21402013-05-30 Tom Tromey <tromey@redhat.com>
2141
2142 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2143
e3b76b4f
TT
21442013-05-30 Tom Tromey <tromey@redhat.com>
2145
2146 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2147 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
2148 'old_chain' argument. Add 'parser_result' argument.
2149 (gdb_xml_create_parser_and_cleanup): Remove old version.
2150 (gdb_xml_parse_quick): Update.
2151 (xml_process_xincludes): Update.
2152 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2153 declare.
2154
db26349c
TT
21552013-05-30 Tom Tromey <tromey@redhat.com>
2156
2157 * probe.c (collect_probes): Check arguments for NULL before
2158 calling compile_rx_or_error.
2159 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2160 Remove NULL return.
2161
77f9e713
TT
21622013-05-30 Tom Tromey <tromey@redhat.com>
2163
2164 * infrun.c (adjust_pc_after_break): Introduce an outer null
2165 cleanup.
2166
45475de7
TT
21672013-05-30 Tom Tromey <tromey@redhat.com>
2168
2169 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2170
ac5007fd
TT
21712013-05-30 Tom Tromey <tromey@redhat.com>
2172
2173 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2174 for 'old_chain'. Do not check 'head' before processing
2175 cleanups.
2176
cd82eddc
TT
21772013-05-30 Tom Tromey <tromey@redhat.com>
2178
2179 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2180 "cleanup_tuple".
2181
57cee33a
TT
21822013-05-30 Tom Tromey <tromey@redhat.com>
2183
2184 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2185 inner scope. Unconditionally call do_cleanups.
2186
795d915c
TT
21872013-05-30 Tom Tromey <tromey@redhat.com>
2188
2189 * source.c (find_and_open_source): Call do_cleanups.
2190
1fc3cf4a
TT
21912013-05-30 Tom Tromey <tromey@redhat.com>
2192
2193 * linux-thread-db.c (thread_db_load_search): Unconditionally
2194 call do_cleanups.
2195
e35ac9bf
TT
21962013-05-30 Tom Tromey <tromey@redhat.com>
2197
2198 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2199 for 'cleanup'; instead use a later one.
2200
f3300387
TT
22012013-05-30 Tom Tromey <tromey@redhat.com>
2202
2203 * python/py-breakpoint.c (bppy_get_commands): Use
2204 explicit, unconditional return.
2205 * python/py-frame.c (frapy_read_var): Likewise.
2206 * python/python.c (gdbpy_decode_line): Likewise.
2207
c27e16e3
TT
22082013-05-30 Tom Tromey <tromey@redhat.com>
2209
2210 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2211 do_cleanups on all return paths.
2212
5ae85e44
TT
22132013-05-30 Tom Tromey <tromey@redhat.com>
2214
2215 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2216
73b8d9da
TT
22172013-05-30 Tom Tromey <tromey@redhat.com>
2218
2219 * stabsread.c (read_struct_type): Call do_cleanups along
2220 all return paths.
2221
7d266584
MR
22222013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
2223
2224 * mips-linux-tdep.c: Adjust formatting throughout.
2225
0f900f54
TT
22262013-05-30 Tom Tromey <tromey@redhat.com>
2227
2228 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
2229 along all return paths.
2230
a991ac28
TT
22312013-05-30 Tom Tromey <tromey@redhat.com>
2232
2233 * symfile.c (find_separate_debug_file): Call do_cleanups
2234 along all return paths.
2235
1abaf042
TT
22362013-05-30 Tom Tromey <tromey@redhat.com>
2237
2238 * symtab.c (search_symbols): Introduce a null cleanup for
2239 'retval_chain'.
2240
edefe1da
TT
22412013-05-30 Tom Tromey <tromey@redhat.com>
2242
2243 * python/py-value.c (valpy_binop): Call do_cleanups before
2244 exiting loop.
2245
54f72dcc
TT
22462013-05-30 Tom Tromey <tromey@redhat.com>
2247
2248 * python/py-prettyprint.c (print_children): Remove extra
2249 do_cleanups call.
2250
af1c6971
TT
22512013-05-30 Tom Tromey <tromey@redhat.com>
2252
2253 * python/py-frame.c (frapy_read_var): Call do_cleanups along
2254 all return paths.
2255
b862ce75
TT
22562013-05-30 Tom Tromey <tromey@redhat.com>
2257
2258 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
2259 along all return paths.
2260
e12fefc8
TT
22612013-05-30 Tom Tromey <tromey@redhat.com>
2262
2263 * cli/cli-logging.c (set_logging_redirect): Unconditionally
2264 call do_cleanups.
2265
4867f990
TT
22662013-05-30 Tom Tromey <tromey@redhat.com>
2267
2268 * varobj.c (c_value_of_root): Call do_cleanups along all
2269 return paths.
2270
4fd2d6af
TT
22712013-05-30 Tom Tromey <tromey@redhat.com>
2272
2273 * tracepoint.c (trace_dump_command): Unconditionally call
2274 do_cleanups.
2275
752eb8b4
TT
22762013-05-30 Tom Tromey <tromey@redhat.com>
2277
2278 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
2279 do_cleanups earlier.
2280
e42d0aa5
TT
22812013-05-30 Tom Tromey <tromey@redhat.com>
2282
2283 * machoread.c (macho_symfile_read): Assign first cleanup to
2284 'back_to'.
2285
4bbc010a
TT
22862013-05-30 Tom Tromey <tromey@redhat.com>
2287
2288 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2289
b9635925
TT
22902013-05-30 Tom Tromey <tromey@redhat.com>
2291
2292 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
2293
25f43500
TT
22942013-05-30 Tom Tromey <tromey@redhat.com>
2295
2296 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
2297 call discard_cleanups.
2298 (inf_ptrace_attach): Likewise.
2299
d6a2e54a
TT
23002013-05-30 Tom Tromey <tromey@redhat.com>
2301
2302 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
2303 return paths.
2304 (mips_initialize): Likewise.
2305 (common_open): Call do_cleanups.
2306
48be7c1b
TT
23072013-05-30 Tom Tromey <tromey@redhat.com>
2308
2309 * utils.c (internal_vproblem): Call do_cleanups.
2310
e61727ab
TT
23112013-05-30 Tom Tromey <tromey@redhat.com>
2312
2313 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
2314
b81b921f
TT
23152013-05-30 Tom Tromey <tromey@redhat.com>
2316
2317 * cli/cli-script.c (setup_user_args): Don't return after error.
2318
fe48dfb1
TT
23192013-05-30 Tom Tromey <tromey@redhat.com>
2320
2321 * somread.c (som_symtab_read): Call do_cleanups.
2322
27833de7
TT
23232013-05-30 Tom Tromey <tromey@redhat.com>
2324
2325 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
2326
5b3fca71
TT
23272013-05-30 Tom Tromey <tromey@redhat.com>
2328
2329 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
2330 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
2331 * interps.c (interpreter_exec_cmd): Call do_cleanups.
2332 * source.c (show_substitute_path_command): Call do_cleanups.
2333 (unset_substitute_path_command, set_substitute_path_command):
2334 Likewise.
2335 * symfile.c (load_command): Call do_cleanups.
2336
af83e3f8
TT
23372013-05-30 Tom Tromey <tromey@redhat.com>
2338
2339 * contrib/cleanup_check.py: New file.
2340 * contrib/gcc-with-excheck: Add option parsing.
2341
564eac42
JB
23422013-05-30 Joel Brobecker <brobecker@adacore.com>
2343
2344 * windows-nat.c (windows_delete_thread): Add missing space
2345 in cast expression.
2346
47902076
HAQ
23472013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2348
2349 * inferior.c (top level): Include tilde.h.
2350 (add_inferior_command): Call tilde_expand on the value of 'exec'
2351 argument.
2352
23da373a
YQ
23532013-05-30 Pedro Alves <pedro@codesourcery.com>
2354 Yao Qi <yao@codesourcery.com>
2355
2356 * tracepoint.c (encode_actions_1): Remove parameter 't'.
2357 Caller update.
2358 (encode_actions): Likewise.
2359 * remote.c (remote_download_tracepoint): Caller update.
2360 * tracepoint.h (encode_actions): Update declaration.
2361
a6e6f791
PA
23622013-05-30 Pedro Alves <palves@redhat.com>
2363
2364 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2365 pointer.
2366
36d25514
YQ
23672013-05-30 Yao Qi <yao@codesourcery.com>
2368
2369 * remote.c (remote_check_symbols): Remove unused parameter
2370 'objfile'.
2371 Declaration update.
2372 (remote_start_remote, remote_new_objfile): Caller update.
2373
62a813cc
YQ
23742013-05-30 Yao Qi <yao@codesourcery.com>
2375
2376 * mi/mi-cmds.c (mi_cmds): Define MI command
2377 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2378 DEF_MI_CMD_CLI.
2379
28439a30
PA
23802013-05-29 Pedro Alves <palves@redhat.com>
2381
2382 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2383 (remote_insert_watchpoint, remote_remove_watchpoint)
2384 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2385 (remote_verify_memory, compare_sections_command)
2386 (remote_search_memory): Set the general process/thread on the
2387 remote side.
2388
6ac1c082
PA
23892013-05-29 Pedro Alves <palves@redhat.com>
2390
2391 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2392 (_initialize_aarch64_tdep): Don't call
2393 initialize_tdesc_aarch64_without_fpu.
2394 * features/Makefile (WHICH): Remove reference to
2395 aarch64-without-fpu.
2396 * features/aarch64-without-fpu.c: Delete file.
2397 * regformats/aarch64-without-fpu.dat: Delete file.
2398
a73e3634
YQ
23992013-05-28 Yao Qi <yao@codesourcery.com>
2400
2401 * tracepoint.c (stringify_collection_list): Remove parameter
2402 'string'.
2403 (encode_actions): Caller update. Remove local variables.
2404
c0ea94eb
YQ
24052013-05-24 Yao Qi <yao@codesourcery.com>
2406
2407 * tracepoint.c (TFILE_PID): Remove.
2408 (tfile_open): Don't add thread and inferior.
2409 (tfile_close): Don't set 'inferior_ptid'. Don't call
2410 exit_inferior_silent.
2411 (tfile_thread_alive): Remove.
2412 (init_tfile_ops): Don't set field 'to_thread_alive' of
2413 tfile_ops.
2414
20d7f211
DE
24152013-05-23 Doug Evans <dje@google.com>
2416
2417 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2418
8658d16d
PA
24192013-05-23 Pedro Alves <palves@redhat.com>
2420
2421 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2422 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2423 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2424 Only define if HAVE_SOCKETS is defined.
2425 * configure.ac: Check for sys/socket.h.
2426 * config.in, configure: Regenerate.
2427
21aa081e
PA
24282013-05-23 Pedro Alves <palves@redhat.com>
2429
2430 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2431 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2432 printing uint32_t variables.
2433
c2d6af84
PA
24342013-05-23 Pedro Alves <palves@redhat.com>
2435
2436 * NEWS: Mention GDBserver range stepping support.
2437
c1e36e3e
PA
24382013-05-23 Yao Qi <yao@codesourcery.com>
2439 Pedro Alves <palves@redhat.com>
2440
2441 * gdbthread.h (struct thread_control_state) <may_range_step>: New
2442 field.
2443 * infcmd.c (step_once, until_next_command): Enable range stepping.
2444 * infrun.c (displaced_step_prepare): Disable range stepping.
2445 (resume): Disable range stepping if stepping over a breakpoint or
2446 we have software watchpoints. If range stepping is enabled,
2447 assert the thread is in the stepping range.
2448 (clear_proceed_status_thread): Clear may_range_step.
2449 (handle_inferior_event): Disable range stepping as soon as we know
2450 the thread that hit the event. Re-enable it whenever we're going
2451 to step with a step range.
2452 * remote.c (struct vCont_action_support) <r>: New field.
2453 (use_range_stepping): New global.
2454 (remote_vcont_probe): Handle 'r' action.
2455 (append_resumption): Append an 'r' action if the thread may range
2456 step.
2457 (show_range_stepping): New function.
2458 (set_range_stepping): New function.
2459 (_initialize_remote): Call add_setshow_boolean_cmd to register the
2460 'set range-stepping' and 'show range-stepping' commands.
2461 * NEWS: Mention range stepping, the new vCont;r action, and the
2462 new "set/show range-stepping" commands.
2463
d458bd84
PA
24642013-05-23 Yao Qi <yao@codesourcery.com>
2465 Pedro Alves <palves@redhat.com>
2466
2467 * remote.c (struct vCont_action_support): New struct.
2468 (struct remote_state) <support_vCont_t>: Remove field.
2469 <vCont_actions_support>: New field.
2470 (remote_vcont_probe, remote_stop_ns): Update.
2471
ce4c476a
PA
24722013-05-23 Yao Qi <yao@codesourcery.com>
2473 Pedro Alves <palves@redhat.com>
2474
2475 * gdbthread.h (pc_in_thread_step_range): New declaration.
2476 * thread.c (pc_in_thread_step_range): New function.
2477 * infrun.c (handle_inferior_event): Use it.
2478
ce70887a
JB
24792013-05-23 Joel Brobecker <brobecker@adacore.com>
2480
2481 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2482 of sprintf.
2483
55b87a52
KS
24842013-05-22 Keith Seitz <keiths@redhat.com>
2485
2486 * ada-lang.c (is_known_support_routine): Add explicit free of
2487 'func_name' from find_frame_funname.
2488 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2489 for func_name from find_frame_funname.
2490 * python/py-frame.c (frapy_name): Add explicit free of
2491 'name' from find_frame_funname.
2492 * stack.c (find_frame_funname): Add comment explaining that
2493 funcp must be freed by the caller.
2494 Return copy of symbol names instead of pointers.
2495 (print_frame): Add a cleanup for 'funname' from
2496 find_frame_funname.
2497 * stack.h (find_frame_funname): Remove "const" from
2498 'funname' parameter.
2499
5f2e6b00
TT
25002013-05-22 Tom Tromey <tromey@redhat.com>
2501
2502 PR c++/15401:
2503 * c-valprint.c (c_value_print): Use value_addr for
2504 references. Convert back to reference type with value_ref.
2505
d85c4847
EZ
25062013-05-22 Eli Zaretskii <eliz@gnu.org>
2507
2508 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2509 unloaded DLL, it will be done by handle_solib_event. See
2510 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2511 details.
2512
54eb231c
PM
25132013-05-22 Phil Muldoon <pmuldoon@redhat.com>
2514
2515 * ui-out.c: Create typedef ui_out_level_p and define vector
2516 operations for that type.
2517 (struct ui_out): Use a vector instead of an array.
2518 (current_level): Return level from a vector.
2519 (push_level): Create a level in a vector.
2520 (pop_level): Delete a level in a vector.
2521 (ui_out_new): Create initial level zero level, and store in a
2522 vector.
2523 (ui_out_destroy): Add vector cleanup.
2524
ac90359c
PA
25252013-05-22 Pedro Alves <palves@redhat.com>
2526
2527 * python/python-internal.h (gdb_Py_DECREF): Tag with
2528 "ARI: editCase function".
2529
6dcc1893
PP
25302013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2531
2532 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
2533
c8c735b9
PA
25342013-05-21 Pedro Alves <palves@redhat.com>
2535
2536 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2537 whether PRINTER is NULL before installing a Py_DECREF cleanup.
2538 * python/py-utils.c (py_decref): Don't check for NULL before
2539 calling Py_DECREF.
2540
1915daeb
PA
25412013-05-21 Pedro Alves <palves@redhat.com>
2542
2543 * python/py-utils.c (py_decref): Remove extra braces.
2544 (gdb_pymodule_addobject): Remove extra braces.
2545 * python-internal.h (gdb_Py_DECREF): New static inline function.
2546 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
2547
bd9673a4
PW
25482013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2549
2550 * breakpoints.c (detach_breakpoints): Do not
2551 detach breakpoints locations with loc_type bp_loc_other.
2552
ff6009d0
JK
25532013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 Workaround Python 2.6.
2556 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
2557 a block.
2558
3641da11
JK
25592013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2560
2561 Code cleanup: constification.
2562 * solib.c (solib_ops): Make return type and ops variable type const.
2563 (set_solib_ops): Make the new_ops parameter and ops variable const.
2564 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
2565 (solib_add, solib_keep_data_in_core, clear_solib)
2566 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2567 (reload_shared_libraries, solib_global_lookup): Make the ops variable
2568 const.
2569 * solib.h (set_solib_ops): Make the new_ops parameter const.
2570
776af39e
JB
25712013-05-21 Joel Brobecker <brobecker@adacore.com>
2572
2573 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
2574 variable.
2575 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
2576 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
2577 (SYSTEM_GDBINIT_FILES): New variables.
2578 (all): Add stamp-system-gdbinit.
2579 (stamp-system-gdbinit): New rule.
2580 (clean-system-gdbinit, install-system-gdbinit)
2581 (uninstall-system-gdbinit): New rules. Make them .PHONY.
2582 (install-only): Add dependency on install-system-gdbinit.
2583 (uninstall): Add dependency on uninstall-system-gdbinit.
2584 (clean): Add dependency on clean-system-gdbinit.
2585 * system-gdbinit/elinos.py: New file.
2586 * system-gdbinit/wrs-linux.py: New file.
2587
1509e573
JB
25882013-05-21 Joel Brobecker <brobecker@adacore.com>
2589
2590 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
2591
c5867ab6
HZ
25922013-05-21 Hui Zhu <hui@codesourcery.com>
2593
2594 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
2595 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
2596 * mi/mi-cmd-break.c (ctype.h): New include.
2597 (gdb_obstack.h): New include.
2598 (mi_argv_to_format, mi_cmd_break_insert_1): New.
2599 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
2600 (mi_cmd_dprintf_insert): New.
2601 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
2602 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
2603
7d38e38f
TT
26042013-05-20 Tom Tromey <tromey@redhat.com>
2605
2606 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
2607
97b77b39
TT
26082013-05-20 Tom Tromey <tromey@redhat.com>
2609
2610 * python/py-value.c (valpy_get_dynamic_type): Simplify
2611 dynamic_type assignment. Use Py_XINCREF.
2612
53e66479
TT
26132013-05-20 Tom Tromey <tromey@redhat.com>
2614
2615 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
2616
dcf87832
TT
26172013-05-20 Tom Tromey <tromey@redhat.com>
2618
2619 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
2620 (gdbpy_selected_frame): Move object-construction code
2621 out of TRY_CATCH.
2622
aa36459a
TT
26232013-05-20 Tom Tromey <tromey@redhat.com>
2624
2625 * python/py-arch.c (gdbpy_initialize_arch): Use
2626 gdb_pymodule_addobject.
2627 * python/py-block.c (gdbpy_initialize_blocks): Use
2628 gdb_pymodule_addobject.
2629 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
2630 gdb_pymodule_addobject.
2631 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
2632 gdb_pymodule_addobject.
2633 * python/py-event.c (gdbpy_initialize_event_generic): Use
2634 gdb_pymodule_addobject.
2635 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
2636 gdb_pymodule_addobject.
2637 * python/py-evts.c (add_new_registry): Use
2638 gdb_pymodule_addobject.
2639 (gdbpy_initialize_py_events): Likewise.
2640 * python/py-finishbreakpoint.c
2641 (gdbpy_initialize_finishbreakpoints): Use
2642 gdb_pymodule_addobject.
2643 * python/py-frame.c (gdbpy_initialize_frames): Use
2644 gdb_pymodule_addobject.
2645 * python/py-function.c (gdbpy_initialize_functions): Use
2646 gdb_pymodule_addobject.
2647 * python/py-inferior.c (gdbpy_initialize_inferior): Use
2648 gdb_pymodule_addobject.
2649 * python/py-infthread.c (gdbpy_initialize_thread): Use
2650 gdb_pymodule_addobject.
2651 * python/py-objfile.c (gdbpy_initialize_objfile): Use
2652 gdb_pymodule_addobject.
2653 * python/py-param.c (gdbpy_initialize_parameters): Use
2654 gdb_pymodule_addobject.
2655 * python/py-progspace.c (gdbpy_initialize_pspace): Use
2656 gdb_pymodule_addobject.
2657 * python/py-symbol.c (gdbpy_initialize_symbols): Use
2658 gdb_pymodule_addobject.
2659 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
2660 gdb_pymodule_addobject.
2661 * python/py-type.c (gdbpy_initialize_types): Use
2662 gdb_pymodule_addobject.
2663 * python/py-utils.c (gdb_pymodule_addobject): New function.
2664 * python/py-value.c (gdbpy_initialize_values): Use
2665 gdb_pymodule_addobject.
2666 * python/python-internal.h (gdb_pymodule_addobject): Declare.
2667 * python/python.c (_initialize_python): Use
2668 gdb_pymodule_addobject.
2669
3d4a3c3e
TT
26702013-05-20 Tom Tromey <tromey@redhat.com>
2671
2672 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
2673 * python/py-param.c (get_set_value, get_show_value): Use
2674 explicit decrefs.
2675 * python/python.c (start_type_printers, apply_type_printers):
2676 Use explicit decrefs.
2677
72ff8829
TT
26782013-05-20 Tom Tromey <tromey@redhat.com>
2679
2680 * python/py-evts.c (gdbpy_initialize_py_events): Don't
2681 incref the module.
2682
02146ba5
TT
26832013-05-20 Tom Tromey <tromey@redhat.com>
2684
2685 * python/python.c (gdbpy_run_events): Decref the result
2686 of PyObject_CallObject.
2687
33ee792f
TT
26882013-05-20 Tom Tromey <tromey@redhat.com>
2689
2690 * python/py-symtab.c (set_sal): Use
2691 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
2692 (symtab_and_line_to_sal_object): Update.
2693
fcb49fc8
TT
26942013-05-20 Tom Tromey <tromey@redhat.com>
2695
2696 * python/py-param.c (compute_enum_values): Decref 'item'.
2697
0646da15
TT
26982013-05-20 Tom Tromey <tromey@redhat.com>
2699
2700 * mi/mi-main.c: Include python-internal.h.
2701 (mi_cmd_list_features): Check gdb_python_initialized.
2702 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2703 (python_inferior_exit, python_new_objfile, add_thread_object)
2704 (delete_thread_object, py_free_inferior): Check
2705 gdb_python_initialized.
2706 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2707 gdb_python_initialized.
2708 * python/py-type.c (save_objfile_types): Check
2709 gdb_python_initialized.
2710 * python/python-internal.h (gdb_python_initialized): Declare.
2711 * python/python.c (ensure_python_env): Throw exception if
2712 Python not initialized.
2713 (before_prompt_hook, source_python_script_for_objfile)
2714 (start_type_printers, apply_type_printers,
2715 free_type_printers): Check gdb_python_initialized.
2716 * varobj.c (varobj_get_display_hint)
2717 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
2718 (install_new_value_visualizer, varobj_set_visualizer)
2719 (value_get_print_value): Check gdb_python_initialized.
2720
999633ed
TT
27212013-05-20 Tom Tromey <tromey@redhat.com>
2722
2723 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
2724 Check errors.
2725 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
2726 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
2727 Check errors.
2728 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
2729 Check errors.
2730 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
2731 Check errors.
2732 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
2733 Check errors.
2734 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
2735 init function to return 'int'.
2736 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
2737 Return 'int'. Check errors.
2738 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
2739 Check errors.
2740 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
2741 Return 'int'. Check errors.
2742 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
2743 Check errors.
2744 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
2745 Check errors.
2746 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
2747 Check errors.
2748 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
2749 Check errors.
2750 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
2751 Check errors.
2752 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
2753 Check errors.
2754 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
2755 Check errors.
2756 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
2757 Check errors.
2758 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
2759 Check errors.
2760 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
2761 Check errors.
2762 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
2763 Check errors.
2764 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
2765 Check errors.
2766 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
2767 Check errors.
2768 * python/python-internal.h (gdbpy_initialize_auto_load,
2769 gdbpy_initialize_values, gdbpy_initialize_frames,
2770 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
2771 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
2772 gdbpy_initialize_blocks, gdbpy_initialize_types,
2773 gdbpy_initialize_functions, gdbpy_initialize_pspace,
2774 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
2775 gdbpy_initialize_finishbreakpoints,
2776 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
2777 gdbpy_initialize_thread, gdbpy_initialize_inferior,
2778 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
2779 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
2780 gdbpy_initialize_signal_event,
2781 gdbpy_initialize_breakpoint_event,
2782 gdbpy_initialize_continue_event,
2783 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
2784 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
2785 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2786 * python/python.c (gdb_python_initialized): New global.
2787 (gdbpy_initialize_events): Return 'int'. Check errors.
2788 (_initialize_python): Check errors. Set
2789 gdb_python_initialized.
2790
18868860
TT
27912013-05-20 Tom Tromey <tromey@redhat.com>
2792
2793 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
2794 Decref the reslut of PyObject_CallMethod.
2795
9f4ff0c2
TT
27962013-05-20 Tom Tromey <tromey@redhat.com>
2797
2798 * python/py-event.c (gdbpy_initialize_event_generic): Return
2799 early if PyType_Ready fails.
2800
0d3a2e8a
TT
28012013-05-20 Tom Tromey <tromey@redhat.com>
2802
2803 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
2804 as 'default' in the switch.
2805
b86af38a
TT
28062013-05-20 Tom Tromey <tromey@redhat.com>
2807
2808 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
2809 get_addr_from_python calls out of TRY_CATCH.
2810 (infpy_write_memory, infpy_search_memory): Likewise.
2811 * python/py-utils.c (get_addr_from_python): Return negative
2812 value on error. Use TRY_CATCH.
2813 * python/python-internal.h (get_addr_from_python): Use
2814 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2815
c127ec58
TT
28162013-05-20 Tom Tromey <tromey@redhat.com>
2817
2818 * python/py-event.c (evpy_emit_event): Decref the
2819 result of PyObject_CallFunctionObjArgs.
2820
ba327838
TT
28212013-05-20 Tom Tromey <tromey@redhat.com>
2822
2823 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
2824 Correctly decref.
2825
d8191432
TT
28262013-05-20 Tom Tromey <tromey@redhat.com>
2827
2828 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
2829
5d153bd1
TT
28302013-05-20 Tom Tromey <tromey@redhat.com>
2831
2832 * python/py-event.h (gdbpy_initialize_event_generic): Use
2833 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2834 * python/py-evts.c (add_new_registry): Use
2835 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2836 * python/python-internal.h
2837 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
2838
56cc411c
TT
28392013-05-20 Tom Tromey <tromey@redhat.com>
2840
2841 * python/py-arch.c (archpy_disassemble): Update.
2842 * python/py-type.c (typy_get_composite, typy_lookup_typename)
2843 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
2844 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
2845 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
2846 macro.
2847 (GDB_PY_HANDLE_EXCEPTION): Update.
2848 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
2849
8919e174
TT
28502013-05-20 Tom Tromey <tromey@redhat.com>
2851
2852 * python/python-internal.h (events_object_type): Remove.
2853
9b08f225
TT
28542013-05-20 Tom Tromey <tromey@redhat.com>
2855
f5aee5ee
AM
2856 * python/py-event.h (evpy_emit_event): Use
2857 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2858 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2859 New macro.
9b08f225 2860
f04010ff
TT
28612013-05-20 Tom Tromey <tromey@redhat.com>
2862
2863 * py-evtregistry.c (create_event_object): Decref
2864 eventregistry_object if PyList_New fails.
2865
3919fd96
TT
28662013-05-20 Tom Tromey <tromey@redhat.com>
2867
2868 * py-cmd.c (gdbpy_string_to_argv): Check result of
2869 PyList_New.
2870
0430e8cb
TT
28712013-05-20 Tom Tromey <tromey@redhat.com>
2872
2873 * python/python.c (before_prompt_hook): Add cleanup to
2874 decref 'hook'.
2875
764123e4
TT
28762013-05-20 Tom Tromey <tromey@redhat.com>
2877
2878 * python/py-function.c (fnpy_init): Decref result of
2879 PyObject_GetAttrString.
2880
634c58be
TT
28812013-05-20 Tom Tromey <tromey@redhat.com>
2882
2883 * python/py-threadevent.c (get_event_thread): Use
2884 CPYCHECKER_RETURNS_BORROWED_REF.
2885 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2886 New define.
2887 (pspace_to_pspace_object, objfile_to_objfile_object)
2888 (find_thread_object): Use it.
2889
62eec1a5
TT
28902013-05-20 Tom Tromey <tromey@redhat.com>
2891
2892 * python/py-arch.c (arch_object_type): Use
2893 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2894 * python/py-block.c (block_syms_iterator_object_type):
2895 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2896 * python/py-bpevent.c (breakpoint_event_object_type):
2897 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2898 * python/py-cmd.c (cmdpy_object_type): Use
2899 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2900 * python/py-continueevent.c (continue_event_object_type):
2901 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2902 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
2903 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2904 * python/py-events.h (thread_event_object_type):
2905 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2906 * python/py-evtregistry.c (eventregistry_object_type): Use
2907 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2908 * python/py-exitedevent.c (exited_event_object_type):
2909 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2910 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
2911 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2912 * python/py-function.c (fnpy_object_type): Use
2913 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2914 * python/py-inferior.c (inferior_object_type, membuf_object_type):
2915 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2916 * python/py-infthread.c (thread_object_type): Use
2917 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2918 * python/py-lazy-string.c (lazy_string_object_type):
2919 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2920 * python/py-newobjfileevent.c (new_objfile_event_object_type):
2921 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2922 * python/py-objfile.c (objfile_object_type): Use
2923 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2924 * python/py-param.c (parmpy_object_type):
2925 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2926 * python/py-progspace.c (pspace_object_type):
2927 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2928 * python/py-signalevent.c (signal_event_object_type):
2929 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2930 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
2931 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2932 * python/py-type.c (type_object_type, field_object_type)
2933 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2934 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
2935 define.
2936 (value_object_type, block_object_type, symbol_object_type)
2937 (event_object_type, stop_event_object_type, breakpoint_object_type)
2938 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2939
81ea8796
AT
29402013-05-20 Andreas Tobler <andreas@fgznet.ch>
2941
2942 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
2943 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
2944
a2ce51a0
DE
29452013-05-20 Doug Evans <dje@google.com>
2946
2947 When reading CU, stay in DWO. Be more tolerent of bad debug info.
2948 For Fission.
2949 * dwarf2read.c (struct dwarf2_per_cu_data): New member
2950 reading_dwo_directly.
2951 (struct signatured_type): New member dwo_unit.
2952 (struct die_reader_specs): New member comp_dir.
2953 (create_signatured_type_table_from_index): Use malloc for
2954 all_type_units instead of objfile's obstack.
2955 (create_all_type_units): Ditto.
2956 (fill_in_sig_entry_from_dwo_entry): New function.
2957 (add_type_unit): New function.
2958 (lookup_dwo_signatured_type): New function.
2959 (lookup_dwp_signatured_type): New function.
2960 (lookup_signatured_type): New arg cu. All callers updated.
2961 (init_cu_die_reader): Initialize comp_dir.
2962 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
2963 Change assert of matching type signatures to call error on mismatch.
2964 (lookup_dwo_unit): Add assert.
2965 (init_tu_and_read_dwo_dies): New function.
2966 (init_cutu_and_read_dies): Call it.
2967 (build_type_unit_groups): Handle case of no type unit groups created.
2968 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
2969 (lookup_dwo_cutu): Tweak complaint.
2970 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
2971 (dwarf2_per_objfile_free): Free all_type_units.
2972
a25cd31f
JB
29732013-05-20 Joel Brobecker <brobecker@adacore.com>
2974
2975 * windows-nat.c (handle_unload_dll): Add missing empty line.
2976
4d804846
JB
29772013-05-20 Joel Brobecker <brobecker@adacore.com>
2978
2979 * dwarf2read.c (prototyped_function_p): New function.
2980 (read_subroutine_type): Use it.
2981
1c432e72
JB
29822013-05-20 Joel Brobecker <brobecker@adacore.com>
2983
2984 * rs6000-aix-tdep.c: De-indent some example code provided
2985 as a comment.
2986
4feebbdd
EBM
29872013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
2988
2989 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
2990 region is ok for a hardware watchpoint using the new ptrace interface
2991 on Power servers.
2992
7d0c9981
DE
29932013-05-17 Doug Evans <dje@google.com>
2994
2995 * NEWS: Mention new maintenance commands check-symtabs, and
2996 expand-symtabs, and renamed check-psymtabs.
2997 * psymtab.c (maintenance_check_psymtabs): Renamed from
2998 maintenance_check_symtabs. Only process already-expanded symbol
2999 tables.
3000 (_initialize_psymtab): Update.
3001 * symmisc.c (maintenance_check_symtabs): New function.
3002 (maintenance_expand_name_matcher): New function
3003 (maintenance_expand_file_matcher): New function
3004 (maintenance_expand_symtabs): New function.
3005 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3006 commands.
3007
6cbc7c3d
TT
30082013-05-17 Tom Tromey <tromey@redhat.com>
3009
3010 * python/py-inferior.c (infpy_read_memory): Don't call
3011 PyErr_SetString if PyObject_New fails.
3012 * python/py-frame.c (frame_info_to_frame_object): Don't call
3013 PyErr_SetString if PyObject_New fails.
3014
a48b32c0
L
30152013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
3016
3017 * acinclude.m4: Add check for dlopen in libdl.
3018 * configure.ac: Ditto.
3019 * configure: Regenerate.
3020
3de661e6
PM
30212013-05-17 Phil Muldoon <pmuldoon@redhat.com>
3022
3023 * frame.c (frame_stash): Convert to htab.
3024 (frame_addr_hash): New function.
3025 (frame_addr_hash_eq): New function.
3026 (frame_stash_create): Convert function to create
3027 a hash table.
3028 (frame_stash_add): Convert function to add an entry to a hash
3029 table.
3030 (frame_stash_find): Convert function to search the hash table.
3031 (frame_stash_invalidate): Convert function to empty the hash
3032 table.
3033 (get_frame_id): Only add to stash if a frame_id is created.
3034 (_initialize_frame): Call frame_stash_create.
3035
bb4168a9 30362013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
3037
3038 * configure.ac: Ensure MIG is available when building for GNU Hurd
3039 hosts.
3040 * configure: Regenerate.
3041
d1be3247
JB
30422013-05-16 Joel Brobecker <brobecker@adacore.com>
3043
3044 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3045
b8fea896
JB
30462013-05-16 Joel Brobecker <brobecker@adacore.com>
3047
3048 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3049 all cleanups are done before returning from this function.
3050
af880d85
JB
30512013-05-15 Joel Brobecker <brobecker@adacore.com>
3052
3053 * utils.h: #include "exceptions.h".
3054 (enum errors): Remove partial declaration.
3055
356a5233
JB
30562013-05-15 Joel Brobecker <brobecker@adacore.com>
3057
3058 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3059 * gdbarch.h, gdbarch.c: Regenerate.
3060 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3061 handling.
3062
3063 * rs6000-aix-tdep.h: New file.
3064 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3065 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3066 "xml-utils.h".
3067 (struct field_info, struct ld_info_desc): New types.
3068 (ld_info32_desc, ld_info64_desc): New static constants.
3069 (struct ld_info): New type.
3070 (rs6000_aix_extract_ld_info): New function.
3071 (rs6000_aix_shared_library_to_xml): Likewise.
3072 (rs6000_aix_ld_info_to_xml): Likewise.
3073 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3074 (rs6000_aix_init_osabi): Add call to
3075 set_gdbarch_core_xfer_shared_libraries_aix.
3076 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3077 Remove "xml-utils.h" include.
3078 (LdInfo): Delete typedef.
3079 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3080 Delete macros.
3081 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3082 Adjust code accordingly.
3083 (rs6000_core_ldinfo): Delete, folded into
3084 rs6000_aix_core_xfer_shared_libraries_aix.
3085 (rs6000_xfer_shared_library): Delete.
3086 (rs6000_xfer_shared_libraries): Reimplement.
3087
742ce053
MM
30882013-05-15 Markus Metzger <markus.t.metzger@intel.com>
3089
3090 * record.c (record_goto_cmdlist): New.
3091 (cmd_record_goto): Split into this ...
3092 (cmd_record_goto_begin): ... this
3093 (cmd_record_goto_end): ... and this.
3094 (_initialize_record): Change "record goto" to prefix command.
3095 Add commands for "record goto begin" and "record goto end".
3096 Add an alias for "record goto start" to "record goto begin".
3097
e93ba630
JK
30982013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3099
3100 * linespec.c (convert_linespec_to_sals): New comment for
3101 SOURCE_FILENAME assignment.
3102
5821aace
JK
31032013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3106 internal_warning.
3107
a1b8c4cc
TT
31082013-05-14 Tom Tromey <tromey@redhat.com>
3109
3110 * eval.c (parse_and_eval_long): Make 'exp' const.
3111 * value.h (parse_and_eval_long): Update.
3112
23b3a2c3
TT
31132013-05-14 Tom Tromey <tromey@redhat.com>
3114
3115 * ui-file.c (gdb_fopen): Make arguments const.
3116 * ui-file.h (gdb_fopen): Make arguments const.
3117
ca623f82
TT
31182013-05-14 Tom Tromey <tromey@redhat.com>
3119
3120 * remote.c (remote_set_trace_notes): Make arguments const.
3121 * target.c (update_current_target): Update cast.
3122 * target.h (to_set_trace_notes): Make arguments const.
3123
503ebb2c
TT
31242013-05-14 Tom Tromey <tromey@redhat.com>
3125
3126 * go32-nat.c (go32_terminal_info): Make 'args' const.
3127 * inferior.h (child_terminal_info): Update.
3128 * inflow.c (child_terminal_info): Make 'args' const.
3129 * target.c (default_terminal_info): Make 'args' const.
3130 (debug_to_terminal_save_ours): Likewise.
3131 * target.h (struct target_ops) <to_terminal_info>: Make argument
3132 const.
3133
85e1311a
TT
31342013-05-13 Tom Tromey <tromey@redhat.com>
3135
3136 * gcore.c (create_gcore_bfd): Make 'filename' const.
3137 * gcore.h (create_gcore_bfd): Make 'filename' const.
3138 * record-full.c (record_full_save): Make 'recfilename' const.
3139 * target.c (target_save_record): Make 'filename' const.
3140 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3141 const.
3142 (target_save_record): Likewise.
3143
d62bfeaf
TT
31442013-05-13 Tom Tromey <tromey@redhat.com>
3145
f5aee5ee 3146 PR gdb/15338:
d62bfeaf
TT
3147 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3148 ranges section has been read.
3149
ac1ca910
TT
31502013-05-13 Tom Tromey <tromey@redhat.com>
3151
3152 PR exp/15364:
3153 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3154 STRUCTOP_PTR>: Return a not_lval value for
3155 EVAL_AVOID_SIDE_EFFECTS.
3156 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3157 for EVAL_AVOID_SIDE_EFFECTS.
3158
36d1c68c
JB
31592013-05-13 Joel Brobecker <brobecker@adacore.com>
3160
3161 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3162 floating point registers to register type before storing
3163 value.
3164 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3165 Likewise.
3166
21ff4686
TT
31672013-05-10 Joel Brobecker <brobecker@adacore.com>
3168 Tom Tromey <tromey@redhat.com>
3169
3170 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3171 New functions.
3172 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3173 Declare.
3174 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3175 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3176 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3177 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3178
d3685d60
TT
31792013-05-10 Freddie Chopin <freddie_chopin@op.pl>
3180 Tom Tromey <tromey@redhat.com>
3181
3182 PR build/15414:
3183 * configure: Rebuild.
3184 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3185 with -Wno-format.
3186
eb9fe518
PA
31872013-05-10 Pedro Alves <palves@redhat.com>
3188
3189 * remote.c (_initialize_remote): Fix spelling of
3190 qXfer:traceframe-info:read packet in packet config command.
3191
9779ab84
PA
31922013-05-10 David Taylor <dtaylor@emc.com>
3193
3194 PR remote/15455
3195
3196 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3197 "QTro" at start of packet.
3198
060cfbef
JB
31992013-05-10 Joel Brobecker <brobecker@adacore.com>
3200
3201 * solib-aix.c (solib_aix_relocate_section_addresses):
3202 For the .bss section action, apply the same offset as
3203 the .data section.
3204
ab1c4e88
JB
32052013-05-10 Joel Brobecker <brobecker@adacore.com>
3206
3207 * solib-aix.c (solib_aix_relocate_section_addresses):
3208 Remove FIXME comment.
3209
c1357578
JB
32102013-05-10 Joel Brobecker <brobecker@adacore.com>
3211
3212 PR tdep/15420:
3213 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3214 New functions, directly copied from sparc-sol-thread.c.
3215 * sparc-sol-thread.c: Delete.
3216 * configure.ac: Remove code handling sparc-solaris-thread.c.
3217 * configure: Regenerate.
3218
1e611234
PM
32192013-05-10 Phil Muldoon <pmuldoon@redhat.com>
3220
3221 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3222 filter logic.
3223 (backtrace_command): Add "no-filters" option parsing.
3224 (_initialize_stack): Alter help to reflect "no-filters" option.
3225 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3226 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3227 (py-frame.o): Add target
3228 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
3229 filter files.
3230 * python/python.h: Add new frame filter constants, and flag enum.
3231 (apply_frame_filter): Add definition.
3232 * python/python.c (apply_frame_filter): New non-Python
3233 enabled function.
3234 * python/py-utils.c (py_xdecref): New function.
3235 (make_cleanup_py_xdecref): Ditto.
3236 * python/py-objfile.c: Declare frame_filters dictionary.
3237 (objfpy_dealloc): Add frame_filters dealloc.
3238 (objfpy_new): Initialize frame_filters attribute.
3239 (objfile_to_objfile_object): Ditto.
3240 (objfpy_get_frame_filters): New function.
3241 (objfpy_set_frame_filters): New function.
3242 * python/py-progspace.c: Declare frame_filters dictionary.
3243 (pspy_dealloc): Add frame_filters dealloc.
3244 (pspy_new): Initialize frame_filters attribute.
3245 (pspacee_to_pspace_object): Ditto.
3246 (pspy_get_frame_filters): New function.
3247 (pspy_set_frame_filters): New function.
3248 * python/py-framefilter.c: New file.
3249 * python/lib/gdb/command/frame_filters.py: New file.
3250 * python/lib/gdb/frames.py: New file.
3251 * python/lib/gdb/__init__.py: Initialize global frame_filters
3252 dictionary
3253 * python/lib/gdb/FrameDecorator.py: New file.
3254 * python/lib/gdb/FrameIterator.py: New file.
3255 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
3256 * mi/mi-cmds.h: Declare.
3257 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
3258 --no-frame-filter logic, and Python frame filter logic.
3259 (stack_enable_frame_filters): New function.
3260 (parse_no_frame_option): Ditto.
3261 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
3262 filter logic.
3263 (mi_cmd_stack_list_locals): Ditto.
3264 (mi_cmd_stack_list_args): Ditto.
3265 (mi_cmd_stack_list_variables): Ditto.
3266 * NEWS: Add frame filter note.
3267
2cb9c859
DE
32682013-05-09 Doug Evans <dje@google.com>
3269
6bf667bb
DE
3270 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
3271 All callers updated.
3272 (syms_from_objfile): Ditto. Make static.
3273 (symbol_file_add_with_addrs): Renamed from
3274 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
3275 num_offsets. All callers updated.
3276 * symfile.h (syms_from_objfile): Delete.
3277
2cb9c859
DE
3278 * symfile.c (decrement_reading_symtab): Add assert.
3279 (increment_reading_symtab): Ditto.
3280
40aea477
JB
32812013-05-09 Joel Brobecker <brobecker@adacore.com>
3282
3283 * source.c (forward_search_command): Replace call to getc
3284 by call to fgetc.
3285 (reverse_search_command): Likewise.
3286
680d1742
DE
32872013-05-08 Doug Evans <dje@google.com>
3288
3289 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
3290 matching test.
3291
17e760ae
JB
32922013-05-08 Joel Brobecker <brobecker@adacore.com>
3293
3294 * sol-thread.c (info_cb): Factorize the code a little.
3295
c0f5f490
JB
32962013-05-08 Joel Brobecker <brobecker@adacore.com>
3297
3298 * sol-thread.c (info_cb): Rework the output of the "maintenance
3299 info sol-threads" command a bit.
3300
5d74e061
JB
33012013-05-08 Joel Brobecker <brobecker@adacore.com>
3302
3303 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
3304 Replace ti.ti_startfunc by ti.ti_pc.
3305
814a3ff7
JB
33062013-05-08 Joel Brobecker <brobecker@adacore.com>
3307
3308 * solib-aix.c (solib_aix_free_library_list): New function
3309 for the case where HAVE_LIBEXPAT is not defined.
3310
58ce7251
SDJ
33112013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3312
3313 PR breakpoints/15413:
3314 * breakpoint.c (condition_completer): Simplify the code to
3315 disconsider multiple locations of breakpoints when completing the
3316 "condition" command.
3317
be8b1ea6
PM
33182013-05-07 Pierre Muller <muller@sourceware.org>
3319
3320 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
3321 instead of <sys/wait.h>.
3322
1e52bda6
PM
33232013-05-07 Pierre Muller <muller@sourceware.org>
3324
3325 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
3326 trailing new line from warning message.
3327
27fd0c6b
PM
33282013-05-07 Pierre Muller <muller@sourceware.org>
3329
3330 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
3331 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
3332
e228ac87
JB
33332013-05-07 Joel Brobecker <brobecker@adacore.com>
3334
3335 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
3336 error message (ARI fix).
3337
33382013-05-07 Joel Brobecker <brobecker@adacore.com>
3339
3340 * features/library-list-aix.dtd: Replace library-list by
3341 library-list-aix.
3342 * rs6000-nat.c: Replace library-list by library-list-aix
3343 throughout.
3344 * solib-aix.c: Likewise.
3345
33462013-05-07 Joel Brobecker <brobecker@adacore.com>
3347
3348 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3349 Renames TARGET_OBJECT_AIX_LIBRARIES.
3350 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3351 TARGET_OBJECT_LIBRARIES_AIX throughout.
3352 * solib-aix.c: Likwise.
3353
26a4dda9
YQ
33542013-05-07 Yao Qi <yao@codesourcery.com>
3355
3356 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3357 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3358
3582629f
YQ
33592013-05-07 Yao Qi <yao@codesourcery.com>
3360
3361 * solib-dsbt.c (enable_break): Declare.
3362 (dsbt_current_sos): Remove call to enable_break2.
3363 (enable_break2): Rename to enable_break. Set solib breakpoint
3364 on '_dl_debug_state'.
3365 (enable_break): Remove.
3366
aacbb8a5
LM
33672013-05-07 Luis Machado <lgustavo@codesourcery.com>
3368
3369 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3370 debug state prior to replicating existing hardware watchpoints or
3371 breakpoints.
3372
0c013353
JK
33732013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 * gcore.c (gcore_create_callback): Ignore sections with
3376 separate_debug_objfile_backlink != NULL.
3377
a1217d97
SL
33782013-05-06 Sandra Loosemore <sandra@codesourcery.com>
3379 Andrew Jenner <andrew@codesourcery.com>
3380 Chung-Lin Tang <cltang@codesourcery.com>
3381 Julian Brown <julian@codesourcery.com>
3382
3383 Based on the nios2-elf port from Altera Corporation.
3384
3385 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3386 nios2-linux-tdep.o.
3387 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3388 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3389 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3390 * nios2-tdep.h: New.
3391 * nios2-tdep.c: New.
3392 * nios2-linux-tdep.c: New.
3393 * features/Makefile (WHICH): Add nios2-linux.
3394 (nios2-linux-expedite): Set.
3395 * features/nios2-cpu.xml: New.
3396 * features/nios2.xml: New.
3397 * features/nios2-linux.xml: New.
3398 * features/nios2.c: New (autogenerated).
3399 * features/nios2-linux.c: New (autogenerated).
3400 * regformats/nios2-linux.dat: New (autogenerated).
3401 * NEWS (Changes since GDB 7.6): Add new Nios II targets
3402 and commands.
3403
0892cb63
DE
34042013-05-06 Doug Evans <dje@google.com>
3405
3b7bacac
DE
3406 * symfile.c: Whitespace cleanup.
3407
0892cb63
DE
3408 * solist.h (struct target_so_ops): New member clear_so.
3409 * solib-svr4.c (svr4_clear_so): New function.
3410 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3411 * solib.c (clear_so): Renamed from free_so_symbols.
3412 All callers updated. Call target clear_so if it exists.
3413
40501e00
TT
34142013-05-06 Tom Tromey <tromey@redhat.com>
3415
3416 * ada-lang.c (ada_value_primitive_packed_val): Don't
3417 call value_incref.
3418 * value.c (set_value_parent): Incref the new parent and decref
3419 the old parent.
3420 (value_copy, value_primitive_field): Use set_value_parent.
3421
b6807d98
TT
34222013-05-06 Tom Tromey <tromey@redhat.com>
3423
3424 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3425 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3426 if needed.
3427 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3428 * dwarf2read.c (write_constant_as_bytes)
3429 (dwarf2_fetch_constant_bytes): New functions.
3430
3aef2284
TT
34312013-05-06 Tom Tromey <tromey@redhat.com>
3432
3433 * dwarf2read.c (dwarf2_const_value_data): Remove unused
3434 parameters.
3435 (dwarf2_const_value_attr): Update.
3436
66f65e2b
TT
34372013-05-06 Tom Tromey <tromey@redhat.com>
3438
3439 * somread.c (som_symfile_offsets): Add 'const' to addrs.
3440 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3441 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3442 Remove declaration.
3443
7919a973
TT
34442013-05-06 Tom Tromey <tromey@redhat.com>
3445
3446 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3447 objfile's obstack.
3448
a7bfba49
DE
34492013-05-06 Doug Evans <dje@google.com>
3450
3189cb12
DE
3451 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3452 * stabsread.h (process_one_symbol): Update declaration.
3453 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3454 * elfread.c (elf_symfile_relocate_probe): Ditto.
3455 * psymtab.c (relocate_psymtabs): Ditto.
3456 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3457 (objfile_relocate): Ditto.
3458 * objfiles.h (objfile_relocate): Update declaration.
3459 * symfile.c (relative_addr_info_to_section_offsets): Constify
3460 addrs parameter.
3461 (default_symfile_offsets): Ditto.
3462 (syms_from_objfile_1): Constify offsets parameter.
3463 (syms_from_objfile): Ditto.
3464 (symbol_file_add_with_addrs_or_offsets): Ditto.
3465 (symfile_map_offsets_to_segments): Constify data parameter.
3466 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3467 delta parameters of member relocate.
3468 (struct sym_probe_fns): Constify new_offsets,
3469 delta parameters of member sym_relocate_probe.
3470 (struct sym_fns): Constify section_addr_info parameter of member
3471 sym_offsets.
3472 (relative_addr_info_to_section_offsets): Update declaration.
3473 (default_symfile_offsets): Ditto.
3474 (syms_from_objfile): Ditto.
3475 (symfile_map_offsets_to_segments): Ditto.
3476
a7bfba49
DE
3477 * symfile.c (syms_from_objfile_1): Use correct section count when
3478 objfile->sf == NULL.
3479
5f8e0b8f
MF
34802013-05-06 Mike Frysinger <vapier@gentoo.org>
3481
3482 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3483
ea52d893
DE
34842013-05-06 Doug Evans <dje@google.com>
3485
3486 * psympriv.h (struct partial_symtab): Augment comment for member
3487 section_offsets.
3488
4d1eb6b4
JB
34892013-05-06 Joel Brobecker <brobecker@adacore.com>
3490
3491 Reimplement shared library support on ppc-aix...
3492 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3493 * features/library-list-aix.dtd: New file.
3494 * solib-aix.h, solib-aix.c: New file.
3495 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3496 (rs6000_find_toc_address_hook): Delete.
3497 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3498 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3499 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
3500 "xml-utils.h".
3501 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3502 (vmap_symtab, fixup_breakpoints): Delete.
3503 (rs6000_xfer_shared_libraries): New function.
3504 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3505 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3506 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3507 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3508 (rs6000_xfer_shared_library): New function.
3509 (find_toc_address): Delete.
3510 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3511 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3512 * xcoffread.c (record_minimal_symbol): Reloate symbol address
3513 before creating minimal symbol. Adjust function description
3514 accordingly.
3515 (scan_xcoff_symtab): Replace call to
3516 prim_record_minimal_symbol_and_info by call to
3517 record_minimal_symbol.
3518 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
3519 around default_symfile_offsets.
3520 * configure.tgt: Add solib-aix.o to gdb_target_obs for
3521 powerpc-aix targets.
3522 * config/rs6000/nm-rs6000.h: Delete.
3523 * config/powerpc/aix.mh (NAT_FILE): Delete.
3524 (NATDEPFILES): Remove xcoffsolib.o.
3525 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
3526 (ALL_TARGET_OBS): Add solib-aix.o.
3527 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
3528 config/rs6000/nm-rs6000.h. Add solib-aix.h.
3529 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
3530 * xcoffsolib.h, xcoffsolib.c: Delete.
3531
3532 * solib.c (reload_shared_libraries): Remove reference to
3533 SOLIB_CREATE_INFERIOR_HOOK.
3534 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
3535 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
3536 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
3537 comment.
3538 * corelow.c (deprecated_core_resize_section_table): Delete.
3539 * exec.c: Remove include of xcoffsolib.h".
3540 (map_vmap, vmap): Delete.
3541 (exec_close_1): Remove references to vmap.
3542 (exec_file_attach): Remove vmap handling code, and reference
3543 to DEPRECATED_IBM6000_TARGET.
3544 (bfdsec_to_vmap): Delete.
3545 (exec_files_info): Remove block of code handling VMAP.
3546 * infcmd.c (post_create_inferior): Remove reference to
3547 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
3548 * infrun.c (follow_exec): Remove reference to
3549 SOLIB_CREATE_INFERIOR_HOOK.
3550 * stack.c (print_frame): Remove reference to PC_SOLIB.
3551 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
3552 (dsbt_relocate_main_executable): Likewise.
3553 * solib-frv.c (frv_current_sos): Likewise.
3554
0c4f667c
JB
35552013-05-06 Joel Brobecker <brobecker@adacore.com>
3556
3557 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
3558 to target_write_memory and target_read_memory.
3559
726ce67c
JB
35602013-05-06 Joel Brobecker <brobecker@adacore.com>
3561
3562 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
3563 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
3564
c8c9911f
JB
35652013-05-06 Joel Brobecker <brobecker@adacore.com>
3566
3567 * darwin-nat.c: Replace all "%x" instances in format strings
3568 into "0x%x" throughout.
3569
fda184b6
JB
35702013-05-06 Joel Brobecker <brobecker@adacore.com>
3571
3572 * darwin-nat.c (darwin_mourn_inferior): Replace call to
3573 gdb_assert by call to MACH_CHECK_ERROR.
3574 (darwin_attach_pid): Raise an error rather than a failed
3575 assertion when various system calls failed. Report a warning
3576 instead of raising a failed assertion when PREV_NOT is not NULL
3577 after call to mach_port_request_notification.
3578 (darwin_ptrace_me): Raise an error rather than a failed
3579 assertion when read returns nonzero.
3580
d1d69afb
JB
35812013-05-06 Joel Brobecker <brobecker@adacore.com>
3582
3583 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
3584
dc90b24d
JK
35852013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
3588
faab9922
JK
35892013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
3592 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
3593 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
3594 a stale cleanup. Fix double free of NAME.
3595
e0ea48a0
EZ
35962013-05-04 Eli Zaretskii <eliz@gnu.org>
3597
3598 * windows-nat.c (windows_delete_thread): Accept an additional
3599 argument, the thread's exit code, and announce thread death when
3600 print_thread_events is non-zero and we are deleting a thread that
3601 is not the main thread.
3602 (get_windows_debug_event): Pass thread exit code to
3603 windows_delete_thread.
3604
83b2706a
KB
36052013-05-03 Kevin Buettner <kevinb@redhat.com>
3606
3607 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
3608 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
3609 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
3610 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
3611 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
3612 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
3613 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
3614 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
3615 (gdbarch_tdep): New struct.
3616 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
3617 E_NUM_REGS.
3618 (v850e3v5_register_name): New function.
3619 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
3620 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
3621 code handling the struct return conventions for the RH850 ABI.
3622 Update all callers.
3623 (v850_eight_byte_align_p): New function.
3624 (v850_push_call_dummy): Push structs by value, not by reference
3625 for the RH850 ABI. Add support for eight byte alignment.
3626 (v850_dbtrap_breakpoint_from_pc): New function.
3627 (v850_gdbarch_init): Add ABI detection code. Register
3628 v850e3v5_register_name for the v850e3v5 architecture. Set the
3629 number of registers for v850e3v5. Register
3630 v850_dbtrap_breakpoint_from_pc as appropriate.
3631 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
3632
d445b2f6
DE
36332013-05-03 Doug Evans <dje@google.com>
3634
3635 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
3636 of bfd_count_sections.
3637 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
3638 * symfile.c (default_symfile_offsets): Ditto.
3639 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
3640 one entry, not bfd_count_sections entries.
3641
b3ce41ea
KB
36422013-05-03 Kevin Buettner <kevinb@redhat.com>
3643
3644 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
3645 `save' and `restore' register groups. Don't include SPL
3646 or SPH in these groups.
3647 (rl78_dwarf_reg_to_regnum): Adjust mapping for
3648 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
3649 RL78_ES_REGNUM, and RL78_CS_REGNUM.
3650 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
3651 dwarf2_append_unwinders().
3652
96f7d3f1
PW
36532013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3654
3655 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
3656 ignore SIGINT and SIGTRAP in case these internal signals are
3657 caught explicitely.
3658
b9dd1947
JB
36592013-05-01 Joel Brobecker <brobecker@adacore.com>
3660
3661 * darwin-nat.c (darwin_read_write_inferior): Change types
3662 of parameters rdaddr and wraddr to "gdb_byte *". Change type
3663 of copy_count to "mach_msg_type_number_t".
3664 (darwin_read_dyld_info): Change type of parameter
3665 rdaddr to "gdb_byte *".
3666
4ca18a63
JB
36672013-05-01 Joel Brobecker <brobecker@adacore.com>
3668
3669 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
3670 of &info->load_map from "char *" to "gdb_byte *".
3671
2b692d32
JB
36722013-05-01 Joel Brobecker <brobecker@adacore.com>
3673
3674 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
3675 from "char *" to "gdb_byte *".
3676 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
3677
a98c29a0
DE
36782013-04-30 Doug Evans <dje@google.com>
3679
6a506a2d
DE
3680 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
3681 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
3682 DWO stub. If DWO isn't found, just use stub.
3683 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
3684
a98c29a0
DE
3685 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
3686 calling init_cutu_and_read_dies.
3687
f92b06da
WT
36882013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3689
3690 * target-descriptions.c (maint_print_c_tdesc_cmd):
3691 Add case to parse structures as register types and
3692 bitfields.
3693
95eebdcc
WT
36942013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
3695
3696 * MAINTAINERS (Write After Approval): Add myself to the list.
3697
019c1128
JB
36982013-04-30 Joel Brobecker <brobecker@adacore.com>
3699
3700 * sol-thread.c (rw_common): Change type of parameter "buf"
3701 to "gdb_byte *".
3702 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
3703 rw_common to "gdb_byte *" instead of "char *".
3704
5812197c
JB
37052013-04-30 Joel Brobecker <brobecker@adacore.com>
3706
3707 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
3708 of local variable msym to const struct bound_minimal_symbol.
3709 Adjust use accordingly.
3710 [ti.ti_state == TD_THR_SLEEP]: Likewise.
3711
ecccb813
TS
37122013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
3713
3714 * i386gnu-nat.c (CREG_OFFSET): New macro.
3715 (creg_offset): New array.
3716 (CREG_ADDR): Use creg_offset instead of reg_offset.
3717
f1d02dd4 37182013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
3719
3720 * mep-tdep.c (mep_write_pc): Delete.
3721 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
3722 Add call to set_gdbarch_pc_regnum.
3723
f1d02dd4 37242013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
3725
3726 * common/filestuff.c: Replace #include <dirent.h> by
3727 #include "gdb_dirent.h".
3728
f1d02dd4 37292013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
3730
3731 * common/filestuff.c: Replace #include <sys/stat.h> by
3732 #include "gdb_stat.h".
3733
b385a60d
PM
37342013-04-29 Pierre Muller <muller@sourceware.org>
3735
3736 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
3737 editCase function rule.
3738 (get_DW_AT_signature_type): Likewise.
3739
d27b54ad
JB
37402013-04-29 Joel Brobecker <brobecker@adacore.com>
3741
3742 * m32r-tdep.c (m32r_write_pc): Delete.
3743 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
3744 Add call to set_gdbarch_pc_regnum.
3745
47d21dc5
PM
37462013-04-29 Pierre Muller <muller@sourceware.org>
3747
3748 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
3749
9056882e
JB
37502013-04-29 Joel Brobecker <brobecker@adacore.com>
3751
3752 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
3753
7ee4732a
YQ
37542013-04-28 Yao Qi <yao@codesourcery.com>
3755
3756 * solib-dsbt.c (fetch_loadmap): Re-indent.
3757 (displacement_from_map, enable_break2): Likewise.
3758 (dsbt_relocate_section_addresses): Likewise.
3759
2260af53 37602013-04-26 Joel Brobecker <brobecker@adacore.com>
3761
3762 GDB 7.6 released.
3763
ff546935
TT
37642013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
3765
3766 PR corefiles/14983:
3767 * dwarf2read.c (process_full_comp_unit): Always create a static
3768 block.
3769
40fb6c5e
HZ
37702013-04-25 Hui Zhu <hui@codesourcery.com>
3771
3772 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
3773 to loc->cmd_bytecode.
3774
74e04d1c
DE
37752013-04-24 Doug Evans <dje@google.com>
3776
3777 * dwarf2read.c (setup_type_unit_groups): Fix comment.
3778
3cf62c1d
KS
37792013-04-22 Keith Seitz <keiths@redhat.com>
3780
3781 * tracepoint.c (trace_save): Call the writer's start method.
3782
bf9e4d0c
MB
37832013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
3784
3785 PR gdb/10462
3786 * cli/cli-decode.c (lookup_command): Show an error if there is no space
3787 before argument.
3788
5d71132c
TT
37892013-04-23 Tom Tromey <tromey@redhat.com>
3790
3791 * common/filestuff.c: Check USE_WIN32API before including
3792 sys/socket.h.
3793 (HAVE_F_GETFD): New define.
3794 (mark_cloexec): Check HAVE_F_GETFD.
3795 (gdb_open_cloexec): Change 'mode' to unsigned long.
3796 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
3797 (gdb_pipe_cloexec): Check HAVE_PIPE.
3798 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
3799 long.
3800
a11cfd87
HZ
38012013-04-23 Hui Zhu <hui@codesourcery.com>
3802
3803 PR gdb/15293
a11cfd87
HZ
3804 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
3805
2d9442cc
HZ
38062013-04-23 Hui Zhu <hui@codesourcery.com>
3807
3808 PR gdb/15165
2d9442cc
HZ
3809 * breakpoint.c (dprintf_print_recreate): New.
3810 (save_breakpoints): Let it not save dprintf commands.
3811 (initialize_breakpoint_ops): Set dprintf_print_recreate.
3812
614c279d
TT
38132013-04-22 Tom Tromey <tromey@redhat.com>
3814
3815 PR gdb/7912:
3816 * Makefile.in (SFILES): Add filestuff.c
3817 (COMMON_OBS): Add filestuff.o.
3818 (filestuff.o): New target.
3819 * auto-load.c (auto_load_objfile_script_1): Use
3820 gdb_fopen_cloexec.
3821 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
3822 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
3823 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
3824 * common/agent.c (gdb_connect_sync_socket): Use
3825 gdb_socket_cloexec.
3826 * common/filestuff.c: New file.
3827 * common/filestuff.h: New file.
3828 * common/linux-osdata.c (linux_common_core_of_thread)
3829 (command_from_pid, commandline_from_pid, print_source_lines)
3830 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3831 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
3832 gdb_fopen_cloexec.
3833 * common/linux-procfs.c (linux_proc_get_int)
3834 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
3835 * config.in, configure: Rebuild.
3836 * configure.ac: Don't check for sys/socket.h. Check for
3837 fdwalk, pipe2.
3838 * corelow.c (core_open): Use gdb_open_cloexec.
3839 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
3840 * fork-child.c (fork_inferior): Call close_most_fds.
3841 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
3842 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
3843 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
3844 Use gdb_fopen_cloexec.
3845 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
3846 gdb_open_cloexec.
3847 (linux_async_pipe): Use gdb_pipe_cloexec.
3848 * remote-fileio.c (remote_fileio_func_open): Use
3849 gdb_open_cloexec.
3850 * remote.c (remote_file_put, remote_file_get): Use
3851 gdb_fopen_cloexec.
3852 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
3853 close_most_fds.
3854 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
3855 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
3856 * solib.c (solib_find): Use gdb_open_cloexec.
3857 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
3858 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
3859 (tfile_open): Use gdb_open_cloexec.
3860 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
3861 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
3862 * xml-support.c (xml_fetch_content_from_file): Use
3863 gdb_fopen_cloexec.
3864 * main.c (captured_main): Call notice_open_fds.
3865
5fda2332
EBM
38662013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
3867
3868 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
3869 'char *' to 'gdb_byte *'.
3870 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
3871 'gdb_byte'.
3872
eb6c553b
YQ
38732013-04-22 Yao Qi <yao@codesourcery.com>
3874
3875 * infrun.c: Fix typo in comment.
3876
9991b207
SDJ
38772013-04-22 Andrew Haley <aph@redhat.com>
3878
3879 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
3880 instead of "long".
3881
8b4833e3
YQ
38822013-04-20 Yao Qi <yao@codesourcery.com>
3883
3884 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
3885 'char *' to 'gdb_byte *'. Cast the return value of
3886 'bt_ctf_get_char_array' to 'gdb_byte *'.
3887
bd3f3b55
PA
38882013-04-19 Pedro Alves <palves@redhat.com>
3889
3890 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
3891 -Wpointer-sign.
3892 * configure: Regenerate.
3893
c49e7f76
PA
38942013-04-19 Pedro Alves <palves@redhat.com>
3895
3896 * ser-tcp.c (net_read_prim): Cast second argument to recv to
3897 'void *'.
3898
12ff8552
PA
38992013-04-19 Pedro Alves <palves@redhat.com>
3900
3901 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
3902 Change type of 'myaddr' parameter to gdb_byte pointer.
3903 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
3904 to 'long long' pointer instead of to 'unsigned long long'.
3905 (monitor_write_memory_block, monitor_read_memory_single)
3906 (monitor_read_memory): Change type of 'myaddr' parameter to
3907 gdb_byte pointer.
3908
9c37696b
PA
39092013-04-19 Pedro Alves <palves@redhat.com>
3910
3911 * record.c (validate_history_size): Make parameter 'setting'
3912 unsigned.
3913
a398505b
PA
39142013-04-19 Pedro Alves <palves@redhat.com>
3915
3916 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
3917 to 'gdb_byte *'.
3918
9f8afa72
PA
39192013-04-19 Pedro Alves <palves@redhat.com>
3920
3921 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
3922 local to int.
3923
c714b426
PA
39242013-04-19 Pedro Alves <palves@redhat.com>
3925
3926 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
3927 * ada-tasks.c (read_fat_string_value): Likewise.
3928
507a579c
PA
39292013-04-19 Pedro Alves <palves@redhat.com>
3930
3931 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
3932 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
3933 'offset', and adjust.
3934
f9d83a0b
PA
39352013-04-19 Pedro Alves <palves@redhat.com>
3936
3937 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
3938 (read_index_from_section): Add cast to 'char *'.
3939
745eb4fd
PA
39402013-04-19 Pedro Alves <palves@redhat.com>
3941
3942 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
3943
db5be46f
PA
39442013-04-19 Pedro Alves <palves@redhat.com>
3945
3946 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
3947
0f928d68
PA
39482013-04-19 Pedro Alves <palves@redhat.com>
3949
3950 * record-full.c (record_full_get_bookmark): Change local 'ret'
3951 type to char * and add cast to gdb_byte *.
3952 (record_full_goto_bookmark): Handle 'bookmark' argument as a
3953 string.
3954 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
3955
89f6d837
PA
39562013-04-19 Pedro Alves <palves@redhat.com>
3957
3958 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
3959 * python/py-prettyprint.c (print_string_repr): Change type of
3960 'output' local to char *. Add cast to gdb_byte * in
3961 LA_PRINT_STRING call.
3962 (print_children): Change type of 'output' local to char *.
3963 * python/py-value.c (valpy_string): Add cast to const char * in
3964 PyUnicode_Decode call.
3965
ce6ec7d8
PA
39662013-04-19 Pedro Alves <palves@redhat.com>
3967
3968 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
3969 and change its type to 'const char *'. Adjust.
3970 (mips_send_packet): Add cast to 'char *', and remove cast to
3971 'unsigned char *'.
3972 (mips_receive_packet): Remove cast to 'unsigned char *'.
3973 (mips_load_srec): Use bfd_byte.
3974 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
3975 (pmon_checkset): Make 'value' parameter unsigned.
3976
fda0389f
PA
39772013-04-19 Pedro Alves <palves@redhat.com>
3978
3979 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
3980
bc20a4af
PA
39812013-04-19 Pedro Alves <palves@redhat.com>
3982
3983 * remote.c (remote_write_bytes_aux, compare_sections_command)
3984 (remote_read_qxfer)
3985 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
3986 (remote_hostio_readlink, remote_bfd_iovec_pread)
3987 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
3988 binary buffer, and char when buffer is used as string.
3989 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
3990 (trace_save, tfile_open, traceframe_walk_blocks)
3991 (tfile_fetch_registers): Likewise.
3992
c628b528
PA
39932013-04-19 Pedro Alves <palves@redhat.com>
3994
3995 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
3996 buffer and size_t size. Adjust.
3997 * ser-base.h (ser_base_write): Adjust.
3998 * ser-go32.c (cnts): Change type to size_t.
3999 (dos_write): Change prototype -- take 'void *'
4000 buffer and size_t size. Adjust.
4001 (dos_info): Print elements of 'cnts' as unsigned long.
4002 * serial.c (serial_write): Likewise.
4003 * serial.h (serial_write): Adjust.
4004 (struct serial_ops) <write>: Change prototype -- take 'void *'
4005 buffer and size_t size. Adjust.
4006
51a5cd90
PA
40072013-04-19 Pedro Alves <palves@redhat.com>
4008
4009 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4010 gdb_byte *.
4011 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4012
a9933661
PA
40132013-04-19 Pedro Alves <palves@redhat.com>
4014
4015 * alpha-tdep.c (alpha_extract_return_value): Use
4016 regcache_cooked_read_unsigned to read 'v0'.
4017
19afdd07
PA
40182013-04-19 Pedro Alves <palves@redhat.com>
4019
4020 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4021 parameters 'at', 'as' and 'offset' to uint32_t.
4022
96b32e50
PA
40232013-04-19 Pedro Alves <palves@redhat.com>
4024
4025 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4026 'is64' to signed 'int'.
4027
eb1bd1fb
PA
40282013-04-19 Pedro Alves <palves@redhat.com>
4029
4030 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4031 parameter to int *.
4032
463920bf
PA
40332013-04-19 Pedro Alves <palves@redhat.com>
4034
4035 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4036 'insnbuf' buffer type to unsigned int[].
4037
70242eb1
PA
40382013-04-19 Pedro Alves <palves@redhat.com>
4039
4040 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4041
9d1dd0e2
PA
40422013-04-19 Pedro Alves <palves@redhat.com>
4043
4044 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4045 unsigned long *.
4046
44096aee
PA
40472013-04-19 Pedro Alves <palves@redhat.com>
4048
4049 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4050 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4051 UINT_MAX.
4052 * mips-tdep.c (heuristic_fence_post): Change type to int.
4053 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4054
e4286e57
PA
40552013-04-19 Pedro Alves <palves@redhat.com>
4056
4057 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4058 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4059 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4060
001f13d8
PA
40612013-04-19 Pedro Alves <palves@redhat.com>
4062
4063 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4064 it to get a string view of the byte buffer.
4065 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4066 type to gdb_byte *. Adjust.
4067 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4068 Change local to char *.
4069 * solib-darwin.c (find_program_interpreter): Change return type to
4070 char *. Adjust.
4071 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4072 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4073 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4074 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4075 * solib-svr4.c (find_program_interpreter): Change return type to
4076 char *. Adjust.
4077 (enable_break): Change local 'interp_name' to char *.
4078 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4079 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4080 (spu_pseudo_register_write_spu): Use char for string buffer.
4081 Adjust.
4082 (info_spu_event_command, info_spu_signal_command): Add casts to
4083 'char *'.
4084
948f8e3d
PA
40852013-04-19 Pedro Alves <palves@redhat.com>
4086
4087 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4088 gdb_byte[].
4089 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4090 * ada-lang.c (ada_value_assign): Use gdb_byte.
4091 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4092 (alphanbsd_sigtramp_offset): Use gdb_byte.
4093 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4094 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4095 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4096 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4097 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4098 * arm-tdep.c (arm_stub_unwind_sniffer)
4099 (arm_displaced_init_closure): Use gdb_byte.
4100 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4101 (arm_default_thumb_le_breakpoint)
4102 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4103 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4104 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4105 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4106 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4107 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4108 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4109 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4110 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4111 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4112 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4113 (cris_store_return_value, cris_extract_return_value): Use
4114 gdb_byte.
4115 (constraint): Change type of parameter to char * from signed
4116 char*. Use gdb_byte.
4117 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4118 of local buffer to gdb_byte *.
4119 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4120 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4121 (add_address_entry): Change type of local buffer to gdb_byte[].
4122 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4123 (frv_push_dummy_call): Use gdb_byte.
4124 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4125 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4126 (hppa_hpux_supply_save_state): Use gdb_byte.
4127 * hppa-tdep.c (hppa32_push_dummy_call)
4128 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4129 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4130 (slotN_contents, replace_slotN_contents): Change type of parameter
4131 to gdb_byte *.
4132 (fetch_instruction, ia64_pseudo_register_write)
4133 (ia64_register_to_value, ia64_value_to_register)
4134 (ia64_extract_return_value, ia64_store_return_value)
4135 (ia64_push_dummy_call): Use gdb_byte.
4136 * m32c-tdep.c (m32c_return_value): Remove cast.
4137 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4138 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4139 gdb_byte.
4140 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4141 * mn10300-tdep.c (mn10300_store_return_value)
4142 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4143 gdb_byte.
4144 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4145 (moxie_process_record): Remove casts.
4146 * ppc-ravenscar-thread.c (supply_register_at_address)
4147 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4148 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4149 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4150 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4151 * remote.c (compare_sections_command): Use gdb_byte.
4152 * score-tdep.c (score7_free_memblock): Change type of parameter to
4153 gdb_byte *.
4154 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4155 gdb_byte *. Use gdb_byte.
4156 (sh_push_dummy_call_fpu): Use gdb_byte.
4157 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4158 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4159 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4160 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4161 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4162 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4163 (sh64_store_return_value, sh64_register_convert_to_virtual):
4164 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4165 (sh64_pseudo_register_write): Use gdb_byte.
4166 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4167 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
4168 buffer.
4169 (irix_current_sos): Use gdb_byte.
4170 * solib-som.c (som_current_sos): Use gdb_byte.
4171 * sparc-ravenscar-thread.c (supply_register_at_address)
4172 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4173 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4174 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4175 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4176 'gdb_byte *'.
4177 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4178 'gdb_byte *'.
4179 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4180 * xstormy16-tdep.c (xstormy16_extract_return_value)
4181 (xstormy16_store_return_value): Change parameter type to
4182 'gdb_byte *'. Adjust.
4183 (xstormy16_push_dummy_call): Use gdb_byte.
4184 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4185 (call0_analyze_prologue, execute_code): Use gdb_byte.
4186
433730c9
PA
41872013-04-19 Vladimir Kargov <kargov@gmail.com>
4188 Pedro Alves <palves@redhat.com>
4189
4190 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4191 value contents.
4192
ac9ec31b
DE
41932013-04-17 Doug Evans <dje@google.com>
4194
4195 * dwarf2read.c (struct signatured_type): New member type.
4196 (struct attribute): Replace member signatured_type with signature.
4197 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4198 (read_call_site_scope): Call follow_die_ref instead of
4199 follow_die_ref_or_sig.
4200 (read_structure_type): Rewrite handling of signatured types.
4201 (read_enumeration_type): Ditto.
4202 (read_attribute_value): Update.
4203 (build_error_marker_type): New function.
4204 (lookup_die_type): Add assert. Rewrite handling of signatured types.
4205 Don't call error for bad types, just build an error marker type.
4206 (dump_die_shallow): Update.
4207 (follow_die_sig_1): Renamed from follow_die_sig.
4208 Don't call error for bad types, instead return NULL.
4209 (follow_die_sig): New function.
4210 (get_signatured_type, get_DW_AT_signature_type): New functions.
4211
e546e8bb
YZ
42122013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
4213
4214 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
4215 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4216 function.
e546e8bb 4217
ab116149
YQ
42182013-04-17 Yao Qi <yao@codesourcery.com>
4219
4220 * top.c (print_gdb_configuration): Print configure-time
4221 parameter on using libbabeltrace or not.
4222
488a42b8
PA
42232013-04-16 Pedro Alves <palves@redhat.com>
4224
4225 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4226
f5fb825b
PA
42272013-04-16 Pedro Alves <palves@redhat.com>
4228
85d494ea 4229 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
4230 (git 568035b7874a099087b77f7bba3e36a1173787b0).
4231
e1154999
PA
42322013-04-16 Pedro Alves <palves@redhat.com>
4233
4234 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
4235 * common/glibc_thread_db.h: ... this new file ...
4236 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
4237
e3b50a7f
PA
42382013-04-16 Will Newton <will.newton@gmail.com>
4239 Pedro Alves <palves@redhat.com>
4240
4241 PR build/11881
4242
4243 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
4244 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
4245 HAVE_THREAD_DB_H.
4246
1c2e4450
PA
42472013-04-16 Pedro Alves <palves@redhat.com>
4248 Eli Zaretskii <eliz@gnu.org>
4249
4250 * NEWS: Mention "set foo unlimited".
4251
4031ecc5
DE
42522013-04-15 Doug Evans <dje@google.com>
4253
19c3d4c9
DE
4254 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4255 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
4256 (create_dwo_cu_reader): Renamed from
4257 create_dwo_debug_info_hash_table_reader.
4258 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
4259 Remove support for multiple CUs in a DWO file.
4260 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
4261
4031ecc5
DE
4262 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
4263 instead of phex.
4264 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
4265 (create_dwo_in_dwp): Ditto.
4266
b340913d
TT
42672013-04-15 Tom Tromey <tromey@redhat.com>
4268
4269 * NEWS: Move recent entries into "since 7.6" section.
4270
cc16e6c9
TT
42712013-04-15 Tom Tromey <tromey@redhat.com>
4272
4273 PR c++/13588:
4274 * NEWS: Update.
4275 * break-catch-throw.c (struct exception_catchpoint)
4276 <exception_rx, pattern>: New fields.
4277 (fetch_probe_arguments, dtor_exception_catchpoint)
4278 (check_status_exception_catchpoint)
4279 (print_one_detail_exception_catchpoint): New functions.
4280 (handle_gnu_v3_exceptions): Add "except_rx" argument.
4281 Compile regular expression if needed.
4282 (extract_exception_regexp): New function.
4283 (catch_exception_command_1): Use extract_exception_regexp.
4284 (compute_exception): Use fetch_probe_arguments.
4285 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
4286 and check_status fields.
4287 * cp-abi.c (cplus_typename_from_type_info): New function.
4288 * cp-abi.h (cplus_typename_from_type_info): Declare.
4289 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
4290 * gdb_regex.h (compile_rx_or_error): Declare.
4291 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
4292 comment.
4293 (init_gnuv3_ops): Set get_type_from_type_info field.
4294 * probe.c (compile_rx_or_error): Move...
4295 * utils.c (compile_rx_or_error): ... here.
4296
72f1fe8a
TT
42972013-04-15 Tom Tromey <tromey@redhat.com>
4298
4299 PR c++/15176:
4300 * NEWS: Update.
4301 * break-catch-throw.c (compute_exception): New function.
4302 (exception_funcs): New global.
4303 (_initialize_break_catch_throw): Create $_exception.
4304 * cp-abi.c (cplus_type_from_type_info): New function.
4305 * cp-abi.h (cplus_type_from_type_info): Declare.
4306 (struct cp_abi_ops) <get_type_from_type_info>: New field.
4307 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
4308 (gnuv3_get_type_from_type_info): New functions.
4309 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
4310
fc4746a2
TT
43112013-04-15 Tom Tromey <tromey@redhat.com>
4312
4313 * break-catch-throw.c (struct exception_names): New.
4314 (exception_functions): Change type.
4315 (re_set_exception_catchpoint): Look for SDT probes.
4316
15a73f56
TT
43172013-04-15 Tom Tromey <tromey@redhat.com>
4318
4319 PR c++/10119:
4320 * break-catch-throw.c (exception_functions): New global.
4321 (gnu_v3_exception_catchpoint_ops): Move earlier.
4322 (struct exception_catchpoint): New.
4323 (classify_exception_breakpoint): Rewrite.
4324 (re_set_exception_catchpoint): New function.
4325 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
4326 Allocate a struct exception_catchpoint.
4327 (catch_exception_command_1): Update.
4328 (initialize_throw_catchpoint_ops): Set 're_set' method.
4329
916703c0
TT
43302013-04-15 Tom Tromey <tromey@redhat.com>
4331
4332 * Makefile.in (SFILES): Add break-catch-throw.c
4333 (COMMON_OBS): Add break-catch-throw.o.
4334 * break-catch-throw.c: New file.
4335 * breakpoint.c: Move exception-catching code to new file.
4336 (ep_parse_optional_if_clause): No longer static.
4337 * breakpoint.h (ep_parse_optional_if_clause): Declare.
4338
6e72ca20
TT
43392013-04-15 Tom Tromey <tromey@redhat.com>
4340
4341 PR c++/9065:
4342 * NEWS: Update.
4343 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
4344 * c-exp.y (TYPEID): New token.
4345 (exp): Add new TYPEID productions.
4346 (ident_tokens): Add "typeid".
4347 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4348 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4349 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4350 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4351 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4352 case.
4353 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4354 (build_std_type_info_type, gnuv3_get_typeid_type)
4355 (gnuv3_get_typeid): New functions.
4356 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
4357 new fields on ABI object.
4358 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4359 * std-operator.def (OP_TYPEID): New.
4360
715c6909
TT
43612013-04-15 Tom Tromey <tromey@redhat.com>
4362
4363 * elfread.c (elf_symtab_read): Install versioned symbol under
4364 unversioned name as well.
4365
8de20a37
TT
43662013-04-15 Tom Tromey <tromey@redhat.com>
4367
4368 PR c++/11990:
4369 * c-lang.c (cplus_language_defn): Use gdb_demangle.
4370 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4371 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4372 (gdb_demangle): New function.
4373 * cp-support.h (gdb_demangle): Declare.
4374 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4375 (dwarf2_name): Use gdb_demangle.
4376 * gdbtypes.c (check_stub_method): Use gdb_demangle.
4377 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4378 suffixes from name.
4379 (gnuv3_print_method_ptr): Use gdb_demangle.
4380 * jv-lang.c (java_demangle): Use gdb_demangle.
4381 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4382 * language.c (unk_lang_demangle): Use gdb_demangle.
4383 * symtab.c (symbol_find_demangled_name)
4384 (demangle_for_lookup): Use gdb_demangle.
4385
591f19e8
TT
43862013-04-15 Tom Tromey <tromey@redhat.com>
4387
4388 PR c++/12824:
4389 * NEWS: Update.
4390 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4391 New constant.
4392 (classify_exception_breakpoint): New function.
4393 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4394 (print_mention_exception_catchpoint)
4395 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4396 (catch_exception_command_1): Handle "rethrow" catchpoint.
4397 (catch_rethrow_command): New function.
4398 (_initialize_breakpoint): Add "catch rethrow" command.
4399
4d40cad2
PM
44002013-04-15 Pierre Muller <muller@sourceware.org>
4401
4402 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4403 set_gdbarch_write_pc as deprecated anymore.
4404
30bcb456
JB
44052013-04-15 Joel Brobecker <brobecker@adacore.com>
4406
4407 * spu-tdep.c (spu_write_pc): Add empty line after local variable
4408 declarations.
4409
da9160e4
YQ
44102013-04-13 Yao Qi <yao@codesourcery.com>
4411
4412 * ctf.c (_initialize_ctf): Include "completer.h".
4413 Call add_target_with_completer instead of add_target.
4414
39ed5604
JK
44152013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4416
4417 Fix GDB regression related to PR binutils/14813.
4418 * jit.c (mem_bfd_iovec_close): Return 0 for success.
4419 * minidebug.c (lzma_close): Add return value comment.
4420 * remote.c (remote_bfd_iovec_close): Return 0 for success.
4421 * solib-spu.c (spu_bfd_iovec_close): Likewise.
4422 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4423
44242013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
4425
4426 * config.in: Regenerate.
4427
d521ce57
TT
44282013-04-12 Tom Tromey <tromey@redhat.com>
4429
4430 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4431 const.
4432 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4433 (struct die_reader_specs) <buffer>: Likewise.
4434 (die_reader_func_ftype): Make 'info_ptr' const.
4435 (struct line_header) <include_dirs, statement_program_start,
4436 statement_program_end>: Now const.
4437 (struct file_entry) <name>: Likewise.
4438 (struct partial_die_info) <sibling>: Likewise.
4439 (struct dwarf_block) <data>: Likewise.
4440 (dwarf2_read_section): Remove cast.
4441 (dwarf2_get_section_info): Make 'bufp' const.
4442 (read_index_from_section): Constify.
4443 (dw2_get_file_names_reader): Make 'info_ptr' const.
4444 (dw2_get_primary_filename_reader): Likewise.
4445 (read_comp_unit_head): Make 'info_ptr' and return type const.
4446 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4447 Likewise.
4448 (read_abbrev_offset): Constify.
4449 (dwarf2_create_include_psymtab): Make 'name' const.
4450 (create_debug_types_hash_table): Update.
4451 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4452 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4453 Constify.
4454 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4455 (load_partial_comp_unit_reader): Make 'info_ptr' const.
4456 (read_comp_units_from_section): Constify.
4457 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4458 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4459 const.
4460 (dwarf2_compute_name, setup_type_unit_groups): Constify.
4461 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4462 (create_dwp_hash_table, dwarf2_ranges_read)
4463 (dwarf2_record_block_ranges): Constify.
4464 (read_die_and_children, read_die_and_siblings_1)
4465 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4466 const.
4467 (read_full_die_1, read_full_die): Make 'info_ptr' const.
4468 (abbrev_table_read_table): Constify.
4469 (load_partial_dies): Make 'info_ptr' const.
4470 (read_partial_die, read_attribute_value, read_attribute): Make
4471 'info_ptr' and return type const.
4472 (read_address, read_initial_length)
4473 (read_checked_initial_length_and_offset, read_offset)
4474 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4475 const.
4476 (read_direct_string): Make 'buf' and return type const.
4477 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4478 (read_indirect_string): Make return type const.
4479 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4480 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4481 'info_ptr' const.
4482 (read_str_index): Make return type const.
4483 (add_include_dir): Make 'include_dir' const.
4484 (add_file_name): Make 'name' const.
4485 (dwarf_decode_line_header): Constify.
4486 (psymtab_include_file_name): Make return type const.
4487 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4488 (dwarf2_start_subfile): Make 'filename' const.
4489 (dwarf2_const_value_attr): Make 'bytes' const.
4490 (read_signatured_type_reader): Make 'info_ptr' const.
4491 (decode_locdesc): Constify.
4492 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4493 const.
4494 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4495 'mac_end', and return type const.
4496 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4497 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4498 type const.
4499 (per_cu_header_read_in): Constify.
4500 * symfile.h (dwarf2_get_section_info): Update.
4501
d47a1bc1
TT
45022013-04-12 Tom Tromey <tromey@redhat.com>
4503
4504 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4505
6eaaf48b
EZ
45062013-04-12 Eli Zaretskii <eliz@gnu.org>
4507
fc4c25bf 4508 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
4509 * top.c (print_gdb_configuration): New function, displays the
4510 details about GDB configure-time parameters.
4511 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
4512 * cli/cli-cmds.c (show_configuration): New function.
4513 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
4514 * main.c (captured_main) <print_configuration>: New static var.
4515 <long_options>: Use it.
4516 If --configuration was given, call print_gdb_configuration.
4517
b292c783
JK
45182013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4519 Pedro Alves <palves@redhat.com>
4520
4521 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
4522 (generated_files): Add gcore.
4523 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
4524 HAVE_NATIVE_GCORE_HOST.
4525 (gcore): New.
4526 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
4527 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
4528 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
4529 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
4530 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
4531 Add HAVE_NATIVE_GCORE_HOST.
4532 * configure: Regenerate.
4533 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
4534 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
4535 AC_CONFIG_FILES for gcore.
4536 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
4537 gdb_have_gcore.
4538 * gdb_gcore.sh: Rename to ...
4539 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
4540 and GCORE_TRANSFORM_NAME substitutions.
4541
c96b3c4f
JK
4542 Fix parsing tabs in ${gdb_target_obs}.
4543 * configure.tgt (gdb_have_gcore): Replace case with for and if.
4544
d6cb50a2
JK
45452013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 * remote.c (unpush_and_perror): Add output message final dot.
4548
cf2cb5ec
YQ
45492013-04-11 Yao Qi <yao@codesourcery.com>
4550
4551 * tracepoint.c (tfile_interp_line): Fit parameters line and
4552 utpp in one line.
4553
07293be4
JB
45542013-04-10 Joel Brobecker <brobecker@adacore.com>
4555
4556 * solib.c (solib_map_sections): Remove code overwriting
4557 SO->SO_NAME with the bfd's filename.
4558
f81d1120
PA
45592013-04-10 Pedro Alves <palves@redhat.com>
4560
4561 * cli/cli-decode.c (integer_unlimited_completer): New function.
4562 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
4563 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
4564 completer.
4565 * cli/cli-setshow.c: Include "cli/cli-utils.h".
4566 (is_unlimited_literal): New function.
4567 (do_set_command): Handle literal "unlimited" arguments.
4568 * frame.c (_initialize_frame) <set backtrace limit>: Document
4569 "unlimited".
4570 * printcmd.c (_initialize_printcmd) <set print
4571 max-symbolic-offset>: Add help text.
4572 * record-full.c (_initialize_record_full) <set record full
4573 insn-number-max>: Likewise.
4574 * record.c (_initialize_record) <set record
4575 instruction-history-size, set record function-call-history-size>:
4576 Add help text.
4577 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
4578 help text.
4579 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
4580 Likewise.
4581 * source.c (_initialize_source) <set listsize>: Add help text.
4582 * utils.c (initialize_utils) <set height, set width>: Likewise.
4583 <set pagination>: Mention "set height unlimited".
4584 * valprint.c (_initialize_valprint) <set print elements, set print
4585 repeats>: Document "unlimited".
4586
2f9d54cf
PA
45872013-04-10 Pedro Alves <palves@redhat.com>
4588
4589 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
4590 instead of disconnect_tracing.
4591 * infcmd.c (detach_command, disconnect_command): Call
4592 query_if_trace_running. Adjust.
4593 * top.c: Include "tracepoint.h".
4594 (quit_target): Delete. Contents moved ...
4595 (quit_force): ... here. Wrap each stage of teardown in
4596 TRY_CATCH. Call disconnect_tracing before detaching.
4597
393fd4c3
YQ
45982013-04-10 Hui Zhu <hui@codesourcery.com>
4599 Yao Qi <yao@codesourcery.com>
4600
4601 * configure.ac: Check libbabeltrace is installed.
4602 * config.in: Regenerate.
4603 * configure: Regenerate.
4604 * Makefile.in (LIBBABELTRACE): New.
4605 (CLIBS): Add LIBBABELTRACE.
4606 * ctf.c: Include "exec.h".
4607 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
4608 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
4609 (ctf_save_metadata_header): Define new type aliases in
4610 metadata.
4611 (ctf_write_header): Define event type "tsv_def" and "tp_def"
4612 in metadata. Start a new faked packet for trace status.
4613 (ctf_write_status): Write trace status to CTF.
4614 (ctf_write_uploaded_tsv): Write TSV to CTF.
4615 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
4616 (ctf_write_definition_end): End the faked packet.
4617
4618 (ctx, ctf_iter, trace_dirname): New.
4619 (start_pos): New variable.
4620 (ctf_destroy, ctf_open_dir, ctf_open): New.
4621 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
4622 macros.
4623 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
4624 (ctf_fetch_registers, ctf_xfer_partial): New.
4625 (ctf_get_trace_state_variable_value): New.
4626 (ctf_get_tpnum_from_frame_event): New.
4627 (ctf_get_traceframe_address): New.
4628 (ctf_trace_find, ctf_has_stack): New.
4629 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
4630 (ctf_get_trace_status, ctf_read_status): New.
4631 (_initialize_ctf): New.
4632 * tracepoint.c (get_tracepoint_number): New
4633 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 4634 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
4635 * tracepoint.h: ... here.
4636 (get_tracepoint_number): Declare it.
4637 (get_uploaded_tsv): Declare it.
4638
4639 * NEWS: Mention new configure option.
4640
5c2b4418
HZ
46412013-04-10 Pedro Alves <palves@redhat.com>
4642 Hui Zhu <hui@codesourcery.com>
4643
4644 * breakpoint.c (dprintf_re_set): New.
4645 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
4646 to dprintf_re_set.
4647
a5c66735
JB
46482013-04-09 Joel Brobecker <brobecker@adacore.com>
4649
4650 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
4651 Remove solib-svr4.o from the list.
4652
9e77999c
JB
46532013-04-09 Joel Brobecker <brobecker@adacore.com>
4654
4655 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
4656 Use gdb_assert_not_reached instead of invalid boolean expression.
4657
1927e618
PA
46582013-04-09 Pedro Alves <palves@redhat.com>
4659
4660 * remote.c (unpush_and_perror): New function.
4661 (readchar, remote_serial_write): Use it.
4662
10782d74
MM
46632013-04-09 Markus Metzger <markus.t.metzger@intel.com>
4664
4665 * NEWS: Mention new btrace RSP packets.
4666
4c8429ef
TT
46672013-04-08 Tom Tromey <tromey@redhat.com>
4668
4669 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
4670 long.
4671
8625fc1b
TT
46722013-04-08 Tom Tromey <tromey@redhat.com>
4673
4674 * maint.c (print_bfd_section_info): Print the section index.
4675 * symmisc.c (dump_msymbols): Print the section index.
4676
e27d198c
TT
46772013-04-08 Tom Tromey <tromey@redhat.com>
4678
4679 PR symtab/8424:
4680 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
4681 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
4682 * breakpoint.c (resolve_sal_pc): Update.
4683 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4684 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
4685 (minsym_lookup_iterator_cb): Use it.
4686 (default_read_var_value): Update.
4687 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
4688 Update.
4689 * infcmd.c (jump_command): Update.
4690 * linespec.c (minsym_found): Update.
4691 * maint.c (maintenance_translate_address): Update.
4692 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
4693 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
4694 * parse.c (write_exp_msymbol): Update.
4695 * printcmd.c (address_info): Update.
4696 * psymtab.c (find_pc_sect_psymbol): Update.
4697 (fixup_psymbol_section): Check SYMBOL_SECTION, not
4698 SYMBOL_OBJ_SECTION.
4699 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
4700 Don't initialize SYMBOL_OBJ_SECTION.
4701 * spu-tdep.c (spu_catch_start): Update.
4702 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
4703 * symmisc.c (dump_msymbols, print_symbol): Update.
4704 * symtab.c (fixup_section): Don't set 'obj_section'. Change
4705 how fallback section is computed.
4706 (fixup_symbol_section): Update.
4707 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
4708 Update.
4709 (allocate_symbol, initialize_symbol, allocate_template_symbol):
4710 Initialize SYMBOL_SECTION.
4711 * symtab.h (struct general_symbol_info) <section>: Update comment.
4712 <obj_section>: Remove.
4713 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
4714 (SYMBOL_OBJFILE): New macro.
4715
e6dc44a8
TT
47162013-04-08 Tom Tromey <tromey@redhat.com>
4717
4718 * coffread.c (record_minimal_symbol): Update.
4719 * dbxread.c (record_minimal_symbol): Update.
4720 * elfread.c (record_minimal_symbol): Update.
4721 * machoread.c (macho_symtab_add_minsym): Update.
4722 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
4723 Update.
4724 * minsyms.c (prim_record_minimal_symbol): Update.
4725 (prim_record_minimal_symbol_full): Remove 'bfd_section'
4726 argument.
4727 (prim_record_minimal_symbol_and_info): Likewise.
4728 * minsyms.h (prim_record_minimal_symbol_full)
4729 (prim_record_minimal_symbol_and_info): Update.
4730 * symtab.c (allocate_symbol, initialize_symbol)
4731 (allocate_template_symbol): Initialize SYMBOL_SECTION.
4732 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
4733 Update.
4734
36192a8d
TT
47352013-04-08 Tom Tromey <tromey@redhat.com>
4736
4737 PR symtab/8423:
4738 * solib-som.c (som_solib_section_offsets): Use BFD section
4739 indices. Set offsets for all sections.
4740 * somread.c (som_symtab_read): Compute BFD section for
4741 symbol. Use prim_record_minimal_symbol_and_info.
4742 (som_symfile_read): Fix comment.
4743 (struct find_section_offset_arg): New.
4744 (find_section_offset, set_section_index): New functions.
4745 (som_symfile_offsets): Use set_section_index to compute
4746 section indices.
4747
65cf3563
TT
47482013-04-08 Tom Tromey <tromey@redhat.com>
4749
4750 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
4751 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
4752 gdb_bfd_section_index.
4753 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
4754 New functions.
4755 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
4756 Declare.
4757 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
4758 Update.
4759 * objfiles.c (add_to_objfile_sections_full): New function.
4760 (add_to_objfile_sections): Use it.
4761 (build_section_table): Rewrite.
4762 (objfile_relocate1): Use gdb_bfd_section_index. Update.
4763 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
4764 (struct objfile) <sections>: Update comment.
4765 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
4766 is NULL.
4767 (ALL_OBJSECTIONS): Use it.
4768 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4769 * solib-frv.c (frv_relocate_main_executable): Update.
4770 * solib-target.c (solib_target_relocate_section_addresses):
4771 Use gdb_bfd_section_index.
4772 * symfile.c (build_section_addr_info_from_section_table):
4773 Use gdb_bfd_section_index.
4774 (build_section_addr_info_from_bfd, place_section): Likewise.
4775 * symtab.c (fixup_section): Update.
4776 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
4777
7cbd4a93
TT
47782013-04-08 Tom Tromey <tromey@redhat.com>
4779
4780 * minsyms.h (struct bound_minimal_symbol): New.
4781 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4782 Remove objfile argument.
4783 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4784 Return bound_minimal_symbol.
4785 * minsyms.c (lookup_minimal_symbol_by_pc_1)
4786 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4787 Return bound_minimal_symbol.
4788 (in_gnu_ifunc_stub): Update.
4789 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4790 Remove 'objfile_p' argument.
4791 (lookup_solib_trampoline_symbol_by_pc): Update.
4792 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
4793 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
4794 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
4795 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
4796 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
4797 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
4798 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
4799 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
4800 stack.c, symtab.c, tui/tui-disasm.c: Update.
4801
f85f34ed
TT
48022013-04-08 Tom Tromey <tromey@redhat.com>
4803
4804 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
4805 Use symbol's obstack, not an objfile.
4806 * coffread.c (process_coff_symbol): Update.
4807 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
4808 * jv-lang.c (add_class_symbol): Update.
4809 * mdebugread.c (new_symbol): Update.
4810 * minsyms.c (prim_record_minimal_symbol_full)
4811 (terminate_minimal_symbol_table): Update.
4812 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
4813 * stabsread.c (define_symbol, read_enum_type): Update.
4814 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
4815 Handle Ada specially.
4816 (symbol_set_language): Add 'obstack' argument.
4817 (symbol_set_names): Update.
4818 (symbol_natural_name, symbol_demangled_name): Always use
4819 ada_decode_symbol.
4820 * symtab.h (struct general_symbol_info)
4821 <language_specific::obstack>: New field.
4822 <ada_mangled>: New field.
4823 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
4824 (symbol_set_language): Update.
4825
ccde22c0
TT
48262013-04-08 Tom Tromey <tromey@redhat.com>
4827
4828 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
4829 Take an obstack, not an objfile.
4830 (symbol_set_names): Update.
4831 * symtab.h (symbol_set_demangled_name): Update.
4832
e623cf5d
TT
48332013-04-08 Tom Tromey <tromey@redhat.com>
4834
4835 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
4836 allocate_symbol.
4837 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
4838 (read_func_scope): Call allocate_template_symbol.
4839 (new_symbol_full): Call allocate_symbol.
4840 * jit.c (finalize_symtab): Call allocate_symbol.
4841 * jv-lang.c (add_class_symbol): Call allocate_symbol.
4842 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
4843 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4844 (common_block_end): Call allocate_symbol.
4845 * symtab.c (allocate_symbol, initialize_symbol)
4846 (allocate_template_symbol): New functions.
4847 * symtab.c (allocate_symbol, initialize_symbol)
4848 (allocate_template_symbol): Declare.
4849 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
4850
f6de8ec2
PA
48512013-04-08 Pedro Alves <palves@redhat.com>
4852 Keith Seitz <keiths@redhat.com>
4853
4854 * breakpoint.c (create_breakpoint): Rename
4855 "parse_condition_and_thread" parameter to "parse_arg". Update
4856 describing comment. If !PARSE_ARG, then error out if ARG is not
4857 the empty string after extracting the location.
4858 * breakpoint.h (create_breakpoint): Rename
4859 "parse_condition_and_thread" parameter to "parse_arg".
4860
f65ce5fb
AR
48612013-04-08 Aleksandar Ristovski <aristovski@qnx.com
4862
4863 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
4864
cc5925ad
YQ
48652013-04-07 Yao Qi <yao@codesourcery.com>
4866
4867 * remote.c (remote_trace_find): Change type of parameters 'addr1'
4868 and 'addr2' to CORE_ADDR.
4869 * target.c (update_current_target): Update.
4870 * target.h (struct target_ops) <to_trace_find>: Change parameter
4871 type to CORE_ADDR.
4872 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
4873 'addr2' to CORE_ADDR.
4874 (tfile_trace_find): Likewise.
4875 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
4876 Change local variable 'addr' to type CORE_ADDR.
4877 * tracepoint.h (tfind_1): Update declaration.
4878
d9ac0664
EZ
48792013-04-06 Eli Zaretskii <eliz@gnu.org>
4880
4881 * windows-nat.c (windows_get_absolute_argv0): Move from here...
4882 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
4883 Include main.h.
4884
4885 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
4886 here...
4887 * main.h (windows_get_absolute_argv0): ...to here.
4888
02142a6c
DE
48892013-04-05 Doug Evans <dje@google.com>
4890
4891 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
4892 (read_cutu_die_from_dwo): Add comments.
4893 (read_structure_type): Update comment.
4894 (read_enumeration_type, read_namespace_type): Update comment.
4895 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
4896
43662968
JK
48972013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4898
4899 Convert man pages to texinfo, new gdbinit.5 texinfo page.
4900 * Makefile.in (gdb.z): Remove.
4901 (install-only): Remove $(man1dir) and gdb.1 installation.
4902 * gdb.1: Remove.
4903
9ead1b84
JK
49042013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4905
4906 Fix compatibility with Linux kernel 3.8.3.
4907 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
4908 to more inner block. Remove parsing of NUMBER from outer block.
4909 Parse NUMBER only if KEYWORD has been identified.
4910
d1794952
JK
49112013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 Fix variable name shadowing.
4914 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
4915 filename to mapsfilename and update its uses.
4916
9025569e
EZ
49172013-04-05 Eli Zaretskii <eliz@gnu.org>
4918
4919 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
4920 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
4921 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
4922 details of the problem.
4923
c9a6ce02
PA
49242013-04-04 Pedro Alves <palves@redhat.com>
4925 Hui Zhu <hui@codesourcery.com>
4926
4927 * breakpoint.c (validate_commands_for_breakpoint): If validating a
4928 tracepoint, reset its STEP_COUNT and call validate_actionline.
4929
5ff888ce
DE
49302013-04-03 Doug Evans <dje@google.com>
4931
bf6af496
DE
4932 * dwarf2read.c (read_die_and_siblings_1): Renamed from
4933 read_die_and_siblings.
4934 (read_die_and_siblings): New function.
4935 (read_cutu_die_from_dwo): Dump die if requested.
4936 (read_die_and_children): Call read_full_die_1 and
4937 read_die_and_siblings_1.
4938 (read_full_die): Dump die if requested.
4939
4940 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
4941
0ac5b59e
DE
4942 * dwarf2read.c (struct dwo_file): New member comp_dir.
4943 Rename member name to dwo_name. All uses updated.
4944 (hash_dwo_file): Include comp_dir in computation.
4945 (eq_dwo_file): Ditto.
4946 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
4947 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
4948
5ff888ce
DE
4949 * psymtab.c (read_psymtabs_with_fullname): Don't call
4950 psymtab_to_fullname if the basenames are different.
4951
ec83d211
JK
49522013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4953
4954 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
4955 New entry about "fullname" presence.
4956
4f4352f7
PA
49572013-04-03 Pedro Alves <palves@redhat.com>
4958
4959 * NEWS: Mention x86_64/Cygwin as new native configuration.
4960
3d1d5ea3
DE
49612013-04-02 Doug Evans <dje@google.com>
4962
4963 * dwarf2read.c (read_structure_type): Fix typo in comment.
4964
be9a8770
PA
49652013-04-02 Pedro Alves <palves@redhat.com>
4966
4967 * NEWS: Mention "set/show debug aarch64", "set/show debug
4968 coff-pe-read" and "set/show debug mach-o".
4969
a46c1e42
PA
49702013-04-02 Pedro Alves <palves@redhat.com>
4971
4972 * NEWS: Mention "set/show remote trace-buffer-size-packet".
4973
3ad18b19
EZ
49742013-04-02 Eli Zaretskii <eliz@gnu.org>
4975
4976 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
4977 gdb_string.h is now in common/.
4978
e9f1758d
PA
49792013-04-02 Pedro Alves <palves@redhat.com>
4980
4981 * NEWS: Move "set debug notification" and "set trace-buffer-size"
4982 under "New options".
4983
049dc89b
JK
49842013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4985
4986 Revert this patch:
4987 PR gdb/15275
4988 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4989
c33e31fd
PA
49902013-04-02 Pedro Alves <palves@redhat.com>
4991
4992 PR gdb/15275
4993
4994 * remote.c (send_interrupt_sequence): Use remote_serial_write.
4995 (remote_serial_write): New function.
4996 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
4997
ea5f3910
JW
49982013-04-01 Jiong Wang <jiwang@tilera.com>
4999
5000 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 5001 "New targets" sections.
ea5f3910 5002
5c6fa7ab
DE
50032013-04-01 Doug Evans <dje@google.com>
5004
c0f78cd4
DE
5005 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5006 (process_enumeration_scope): Simplify.
5007
0186c6a7
DE
5008 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5009 type_unit_group ...
5010 (struct signatured_type): ... to here.
5011 (sig_type_ptr): New typedef.
5012 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5013 out of union 't'. All uses updated.
5014 (dw2_get_file_names_reader): Assert not called for a type unit.
5015 (dw2_get_file_names): Assert not called for a type unit or type
5016 unit group.
5017 (build_type_psymtabs_reader): Assert called for a type unit.
5018 (build_type_psymtab_dependencies): Assert called for a type unit group.
5019
5c6fa7ab
DE
5020 * dwarf2read.c (free_dwo_file): Add comment.
5021 (dwarf2_per_objfile_free): Unref dwp bfd.
5022
b3c0ad67 50232013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
5024
5025 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5026 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5027 (read_pe_exported_syms): Remove unused 'exportix'.
5028 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5029 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5030 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5031
e2df1547
AR
50322013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5033
5034 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5035 (print_it_watchpoint): Remove unused 'bl'.
5036 (say_where): Remove unused 'uiout'.
5037 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5038 (bkpt_breakpoint_hit): Remove unused 'b'.
5039 (internal_bkpt_print_it): Remove unused 'uiout'.
5040 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5041
d81e75c0
TD
50422013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5043
5044 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5045 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5046
5a8b3f62
DE
50472013-03-29 Doug Evans <dje@google.com>
5048
ab5088bf
DE
5049 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5050 Delete arg is_dwp. All callers updated.
5051 (open_dwp_file): New function.
5052 (open_and_init_dwp_file): Call it.
5053 (get_dwp_file): New function.
5054 (lookup_dwo_cutu): Call it.
5055
a8ad1e57
DE
5056 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5057 unnecessary, cleanup.
5058
6296d8c1
DE
5059 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5060
b0c7bfa9
DE
5061 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5062 (lookup_dwo_unit): New function.
5063 (init_cutu_and_read_dies): Move DWO handling to new functions.
5064
c88ee1f0
DE
5065 * dwarf2read.c (struct signatured_type): Tweak comment.
5066 (struct dwo_unit): Tweak comment.
5067 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5068 (create_dwo_debug_info_hash_table): Tweak comment.
5069 (dwarf2_per_cu_offset_and_type): Tweak comment.
5070
5a8b3f62
DE
5071 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5072 missing .debug_types section.
5073
9852c492
YQ
50742013-03-29 Yao Qi <yao@codesourcery.com>
5075
5076 * corelow.c: Include "completer.h".
5077 (_initialize_corelow): Call add_target_with_completer with
5078 argument 'filename_completer'.
5079 * tracepoint.c: Likewise.
5080 * exec.c (_initialize_exec): Likewise.
5081 * target.c (add_target): Rename to ...
5082 (add_target_with_completer): ... this. Call set_cmd_completer
5083 if parameter completer is not NULL.
5084 (add_target): New.
5085 * target.h: Include "command.h".
5086 (add_target_with_completer): Declare it.
5087
af312be7
JB
50882013-03-28 Joel Brobecker <brobecker@adacore.com>
5089
5090 * coffread.c (is_import_fixup_symbol): New function.
5091 (record_minimal_symbol): Use is_import_fixup_symbol to
5092 detect import fixup symbols, and discard them.
5093
8a0459fd
DE
50942013-03-28 Doug Evans <dje@google.com>
5095
0349ea22
DE
5096 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5097 types hash table until we know we need it.
5098
f652bce2
DE
5099 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5100 index numbers.
5101
e4a48d9d
DE
5102 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5103 All callers updated.
5104 (dw2_print_stats): Print #read CUs too.
5105 (dump_die_shallow): Print signatured types better.
5106
8a0459fd
DE
5107 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5108 info_or_types_section to section. All uses updated.
5109 (struct dwo_unit): Ditto.
5110
bd3eecc3
PA
51112013-03-28 Pedro Alves <palves@redhat.com>
5112
5113 * NEWS (New options): New section.
5114 (New options): Mention set/show remote trace-status-packet.
5115 * remote.c (PACKET_qTStatus): New enumeration value.
5116 (remote_get_trace_status): Skip sending qTStatus if the packet is
5117 disabled. Use packet_ok.
5118 (_initialize_remote): Register a configuration command for
5119 qTStatus packet.
5120
41245087
DE
51212013-03-28 Doug Evans <dje@google.com>
5122
7edbb660
DE
5123 * symfile.c (find_separate_debug_file): Add comment.
5124 (terminate_after_last_dir_separator): Tweak comment.
5125
0018ea6f
DE
5126 * dwarf2read.c (create_partial_symtab): Add forward decl.
5127 (create_partial_symtab): Move to be closer to other psymtab functions.
5128 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5129
ca69b9e6
DE
5130 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5131 (compute_symtab_includes): Remove unnecessary forward declaration.
5132 (die_needs_namespace): Add comment marking group of functions for
5133 dwarf2 name computation.
5134
a9375afe
DE
5135 * typeprint.c (_initialize_typeprint): Improve type help text.
5136
41245087
DE
5137 * python/python.c (finish_python_initialization): Provide suggestion
5138 for how to tell gdb to find its python files.
5139
7f7cc265
PA
51402013-03-28 Pedro Alves <palves@redhat.com>
5141
5142 PR gdb/15294
5143
5144 * source.c (_initialize_source): Change back "set listsize" to an
5145 integer command.
5146
ec21308c
JK
51472013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
5148
5149 PR gdb/15275
5150 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5151
840a9a1f
PA
51522013-03-27 Pedro Alves <palves@redhat.com>
5153
5154 * top.c (history_size): Rename to ...
5155 (history_size_setshow_var): ... this. Add comment.
5156 (show_commands): Use readline's 'history_length' instead of
5157 computing the history length by calling history_get in a loop.
5158 (set_history_size_command): Error out for sizes over INT_MAX.
5159 Restore previous history size on invalid size.
5160 (init_history): If HISTSIZE is negative, leave the history size as
5161 zero. Add comments.
5162 (init_main): Adjust.
5163
826ecc4d
PA
51642013-03-27 Pedro Alves <palves@redhat.com>
5165
5166 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5167 coff_pe_read" command to "set debug coff-pe-read".
5168
0ccfeeae
MM
51692013-03-27 Markus Metzger <markus.t.metzger@intel.com>
5170
5171 * record.c (command_size_to_target_size): Fix size comparison.
5172 Change parameter type from pointer to integer to integer.
5173 Update all users.
5174
40653b35
PM
51752013-03-27 Pierre Muller <muller@sourceware.org>
5176
5177 * windows-nat.c (handle_output_debug_string): Avoid typecast
5178 from integer of different size warning.
5179
c62fa0e2
JB
51802013-03-26 Joel Brobecker <brobecker@adacore.com>
5181
5182 * windows-nat.c (handle_output_debug_string): Add empty line
5183 after local block variable definition.
5184
2c619be2
PA
51852013-03-26 Pedro Alves <palves@redhat.com>
5186
5187 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5188 (net_open): Make 'polls' local unsigned.
5189
1b493192
PA
51902013-03-26 Pedro Alves <palves@redhat.com>
5191
5192 * remote.c (_initialize_remote): Make "set remoteaddresssize"
5193 a zuinteger command instead of uinteger.
5194
7ee70bf5
PA
51952013-03-26 Pedro Alves <palves@redhat.com>
5196
5197 * record-full.c (record_full_insn_num): Make it unsigned.
5198 (record_full_check_insn_num, record_full_message)
5199 (record_full_registers_change, record_full_xfer_partial): Remove
5200 record_full_insn_max_num check (it's always != 0).
5201 (record_full_info, record_full_restore): Use %u as format string.
5202 (): Use %u as format string.
5203 (set_record_full_insn_max_num): Remove record_full_insn_max_num
5204 check (it's always != 0).
5205
dfd1f9bb
PA
52062013-03-26 Pedro Alves <palves@redhat.com>
5207
5208 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5209 and "set dcache size" commands zuinteger instead of uinteger.
5210
addb4faf
PA
52112013-03-26 Pedro Alves <palves@redhat.com>
5212
5213 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5214 command zuinteger instead of uinteger.
5215
b75bf488
PA
52162013-03-26 Pedro Alves <palves@redhat.com>
5217
5218 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5219 zuinteger instead of uinteger.
5220
42c634cb
PA
52212013-03-26 Pedro Alves <palves@redhat.com>
5222
5223 * record.c (record_insn_history_size_setshow_var)
5224 (record_call_history_size_setshow_var): New globals.
5225 (command_size_to_target_size): New function.
5226 (cmd_record_insn_history, cmd_record_call_history): Use
5227 command_size_to_target_size instead of cast.
5228 (validate_history_size, set_record_insn_history_size)
5229 (set_record_call_history_size): New functions.
5230 (_initialize_record): Install set_record_insn_history_size and
5231 set_record_call_history_size as "set" hooks of "set record
5232 instruction-history-size" and "set record
5233 function-call-history-size".
5234
1fb2e2b5
PA
52352013-03-26 Pedro Alves <palves@redhat.com>
5236
5237 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
5238 use with history_max_entries use. Remove FIXME note.
5239
99c819ee
MM
52402013-03-26 Markus Metzger <markus.t.metzger@intel.com>
5241
5242 * record-btrace.c (record_btrace_close): Call
5243 record_btrace_auto_disable.
5244
9f9e404c
JB
52452013-03-25 Joel Brobecker <brobecker@adacore.com>
5246
5247 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
5248
ebcdfe33
DE
52492013-03-25 Doug Evans <dje@google.com>
5250
5251 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
5252
24955f63
TT
52532013-03-25 Tom Tromey <tromey@redhat.com>
5254
5255 PR symtab/11462:
5256 * c-exp.y (exp): Add new productions for destructors after '.' and
5257 '->'.
5258 (write_destructor_name): New function.
5259
fce632b6
TT
52602013-03-25 Tom Tromey <tromey@redhat.com>
5261
5262 PR c++/9197:
5263 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
5264 value_struct_elt, not lookup_struct_elt_type.
5265 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5266 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
5267 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
5268
a4341769
YQ
52692013-03-25 Yao Qi <yao@codesourcery.com>
5270
5271 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
5272 instead of '_mkdir'.
5273
b5981e5a
EZ
52742013-03-23 Eli Zaretskii <eliz@gnu.org>
5275
5276 * windows-nat.c (windows_get_absolute_argv0): New function.
5277 * windows-nat.h: Add its prototype.
5278
5279 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
5280 Use IS_DIR_SEPARATOR instead of looking for a character inside
5281 SLASH_STRING. Include filenames.h.
5282 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
5283 relocate_gdb_directory works when passed gdb_program_name.
5284 Include windows-nat.h.
5285
598d3636
JK
52862013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5287
5288 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
5289 * remote.c (trace_error): Remove the special handling of '2'.
5290 (readchar) <SERIAL_EOF>
5291 (readchar) <SERIAL_ERROR>
5292 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
5293 (remote_get_trace_status): Call throw_exception if EX is
5294 TARGET_CLOSE_ERROR.
5295 * utils.c (perror_with_name): Rename to ...
5296 (throw_perror_with_name): ... here. New parameter errcode, describe it
5297 in the function comment.
5298 (perror_with_name): New function wrapper.
5299 * utils.h (enum errors): New stub declaration.
5300 (throw_perror_with_name): New declaration.
5301
82b821e9
PA
53022013-03-22 Pedro Alves <palves@redhat.com>
5303 Yao Qi <yao@codesourcery.com>
5304 Mark Kettenis <kettenis@gnu.org>
5305
5306 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
5307 Don't let the user set the value to UINT_MAX directly.
5308 <var_integer>: Don't let the user set the value to INT_MAX
5309 directly.
5310
78a095c3
JK
53112013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5312
5313 * remote.c (remote_unpush_target): New function.
5314 (remote_open_1): Remove two pop_target calls, update one comment, add
5315 comment to target_preopen call. Replace pop_target call by
5316 remote_unpush_target call.
5317 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
5318 pop_target calls by remote_unpush_target calls.
5319
3e74e146
PA
53202013-03-22 Pedro Alves <palves@redhat.com>
5321
5322 * linux-nat.c (linux_child_follow_fork): Don't call
5323 linux_enable_event_reporting.
5324 (linux_handle_extended_wait): Don't call
5325 linux_enable_event_reporting.
5326
a2213dca
PA
53272013-03-22 Pedro Alves <palves@redhat.com>
5328
5329 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
5330 use it to rewrite the trampoline buffers with type gdb_byte[], and
5331 undefine the macro. Remove char* cast.
5332
bd712aed
DE
53332013-03-21 Doug Evans <dje@google.com>
5334
5335 New commands "mt set per-command {space,time,symtab} {on,off}".
5336 * NEWS: Add entry.
5337 * event-top.c: #include "maint.h".
5338 * main.c: #include "maint.h".
5339 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
5340 timeval-utils.h, maint.h, cli/cli-setshow.h.
5341 (per_command_time, per_command_space): New static globals.
5342 (per_command_symtab): New static global.
5343 (per_command_setlist, per_command_showlist): New static globals.
5344 (struct cmd_stats): Move here from utils.c.
5345 (set_per_command_time): Renamed from set_display_time in utils.c
5346 and moved here. All callers updated.
5347 (set_per_command_space): Renamed from set_display_space in utils.c
5348 and moved here. All callers updated.
5349 (count_symtabs_and_blocks): New function.
5350 (report_command_stats): Moved here from utils.c. Add support for
5351 printing symtab stats. Only print data if enabled before command
5352 executed.
5353 (make_command_stats_cleanup): Ditto.
5354 (sert_per_command_cmd, show_per_command_cmd): New functions.
5355 (_initialize_maint_cmds): Add new commands
5356 mt set per-command {space,time,symtab} {on,off}.
5357 * maint.h: New file.
5358 * top.c: #include "maint.h".
5359 * utils.c (reset_prompt_for_continue_wait_time): New function.
5360 (get_prompt_for_continue_wait_time): New function.
5361 * utils.h (reset_prompt_for_continue_wait_time): Declare
5362 (get_prompt_for_continue_wait_time): Declare.
5363 (make_command_stats_cleanup): Moved to maint.h.
5364 (set_display_time, set_display_space): Moved to maint.h and renamed
5365 to set_per_command_time, set_per_command_space.
5366 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5367 parse_binary_operation and made non-static. Don't call error,
5368 just return an error marker. All callers updated.
5369 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5370
d76488d8
TT
53712013-03-21 Tom Tromey <tromey@redhat.com>
5372
5373 * symfile.c (alloc_section_addr_info): Update header. Don't set
5374 'num_sections' field.
5375 (build_section_addr_info_from_section_table): Set 'num_sections'.
5376 (build_section_addr_info_from_bfd): Likewise.
5377 (build_section_addr_info_from_objfile): Remove dead loop
5378 condition.
5379 (free_section_addr_info): Unconditionally call xfree.
5380 (relative_addr_info_to_section_offsets, addrs_section_sort)
5381 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5382 condition.
5383 (syms_from_objfile_1): Remove dead 'if' condition. Check
5384 'num_sections'.
5385 (add_symbol_file_command): Set 'num_sections'.
5386 * symfile-mem.c (symbol_file_add_from_memory): Set
5387 'num_sections'.
5388 * somread.c (som_symfile_offsets): Remove dead loop condition.
5389 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5390 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5391
a72e5169 53922013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
5393
5394 * tracepoint.h (decode_agent_options): Add 'trace_string'
5395 argument.
5396 * tracepoint.c (decode_agent_options): Add 'trace_string'
5397 argument.
5398 (validate_actionline): Update.
5399 (collect_symbol): Add 'trace_string' argument.
5400 (struct add_local_symbols_data) <trace_string>: New field.
5401 (do_collect_symbol): Update.
5402 (add_local_symbols): Add 'trace_string' argument.
5403 (encode_actions_1): Update.
5404 (trace_dump_actions): Update.
5405 * dwarf2loc.c (access_memory): Update.
5406 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5407 * ax-general.c (new_agent_expr): Update.
5408 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5409 (gen_trace_for_return_address): Add argument.
5410 (trace_kludge, trace_string_kludge): Remove.
5411 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5412 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5413 (gen_trace_for_var): Add 'trace_string' argument.
5414 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5415 (gen_printf, agent_eval_command_one): Update.
5416
b2f83c08
TT
54172013-03-21 Tom Tromey <tromey@redhat.com>
5418
5419 PR exp/15109:
5420 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5421 Handle FILENAME token.
5422
9507860e
TT
54232013-03-21 Tom Tromey <tromey@redhat.com>
5424
5425 * c-exp.y (YYPRINT): Define.
5426 (c_print_token): New function.
5427
e403aa4b
TT
54282013-03-21 Tom Tromey <tromey@redhat.com>
5429
5430 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5431
af307d6a
YQ
54322013-03-21 Yao Qi <yao@codesourcery.com>
5433
5434 * ctf.c: Include "gdb_stat.h".
5435 [USE_WIN32API]: New macro 'mkdir'.
5436 (ctf_start): Use permission bits macros if they are defined.
5437
fb81d016
KS
54382013-03-20 Keith Seitz <keiths@redhat.com>
5439
5440 * breakpoint.h (struct breakpoint): Add comment to
5441 extra_string indicating that this member is mallod'd.
5442 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5443
ef0026f0
PA
54442013-03-20 Pedro Alves <palves@redhat.com>
5445
5446 PR gdb/15289
5447
5448 * cli/cli-setshow.c (do_set_command)
5449 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5450 the result of parsing the command argument. Throw error if the
5451 value is greater than UINT_MAX. Print the invalid value with
5452 plongest.
5453 <var_integer, var_zinteger>: Use LONGEST for variable holding the
5454 result of parsing the command argument. Throw error if the value
5455 is greater than INT_MAX, not greater or equal. Also throw error
5456 if the value is less than INT_MIN. Print the invalid value with
5457 plongest.
5458 <var_zuinteger_unlimited>: Throw error if the value is greater
5459 than INT_MAX, not greater or equal.
5460 (do_show_command) <var_integer, var_zinteger,
5461 var_zuinteger_unlimited>: Use %d for printing int, not %u.
5462
24d6c2a0
TT
54632013-03-20 Tom Tromey <tromey@redhat.com>
5464
5465 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5466 if possible.
5467 * dwarf2read.c (read_func_scope): Remove old FIXME.
5468 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5469 not LOC_COMPUTED.
5470 * findvar.c (symbol_read_needs_frame, default_read_var_value):
5471 Unconditionally call via computed ops, if possible.
5472 * printcmd.c (address_info): Unconditionally call via computed ops,
5473 if possible.
5474 * stack.c (read_frame_arg): Unconditionally call via computed ops,
5475 if possible.
5476 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5477 * tracepoint.c (scope_info): Unconditionally call via computed ops,
5478 if possible.
5479
f1e6e072
TT
54802013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5481 Tom Tromey <tromey@redhat.com>
5482
5483 PR symtab/8421:
5484 * coffread.c (coff_register_index): New global.
5485 (process_coff_symbol, coff_read_enum_type): Set
5486 SYMBOL_ACLASS_INDEX.
5487 (_initialize_coffread): Initialize new global.
5488 * dwarf2loc.c (locexpr_find_frame_base_location)
5489 (dwarf2_block_frame_base_locexpr_funcs)
5490 (loclist_find_frame_base_location)
5491 (dwarf2_block_frame_base_loclist_funcs): New.
5492 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5493 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5494 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5495 (dwarf2_block_frame_base_loclist_funcs): New.
5496 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5497 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5498 globals.
5499 (read_func_scope): Update.
5500 (fixup_go_packaging, mark_common_block_symbol_computed)
5501 (var_decode_location, new_symbol_full, dwarf2_const_value):
5502 Set SYMBOL_ACLASS_INDEX.
5503 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
5504 (_initialize_dwarf2_read): Initialize new globals.
5505 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5506 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5507 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5508 globals.
5509 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5510 (_initialize_mdebugread): Initialize new globals.
5511 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5512 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5513 (stab_register_index, stab_regparm_index): New globals.
5514 (define_symbol, read_enum_type, common_block_end): Set
5515 SYMBOL_ACLASS_INDEX.
5516 (_initialize_stabsread): Initialize new globals.
5517 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
5518 globals.
5519 (MAX_SYMBOL_IMPLS): New define.
5520 (register_symbol_computed_impl, register_symbol_block_impl)
5521 (register_symbol_register_impl)
5522 (initialize_ordinary_address_classes): New functions.
5523 (_initialize_symtab): Call initialize_ordinary_address_classes.
5524 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
5525 (struct symbol_impl): New.
5526 (SYMBOL_ACLASS_BITS): New define.
5527 (struct symbol) <aclass, ops>: Remove fields.
5528 <aclass_index>: New field.
5529 (symbol_impls): Declare.
5530 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
5531 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
5532 (register_symbol_computed_impl, register_symbol_block_impl)
5533 (register_symbol_register_impl): Declare.
5534 (struct symbol_computed_ops): Add location_has_loclist.
5535 (struct symbol_block_ops): New.
5536 (SYMBOL_BLOCK_OPS): New.
5537 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
5538
dbccfd4c
TT
55392013-03-20 Tom Tromey <tromey@redhat.com>
5540
5541 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
5542 (print_partial_symbols, recursively_search_psymtabs): Use
5543 PSYMBOL_CLASS.
5544
e3f1ad4f
PM
55452013-03-20 Pierre Muller <muller@sourceware.org>
5546
5547 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
5548 addtion, subtraction, multiplication and division binary operator.
5549
460014f5
JK
55502013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5551
5552 Code cleanup.
5553 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
5554 * bsd-kvm.c (bsd_kvm_close): Likewise.
5555 * bsd-uthread.c (bsd_uthread_close): Likewise.
5556 * corelow.c (core_close): Likewise.
5557 (core_close_cleanup): Remove parameter quitting from a caller.
5558 * event-top.c (async_disconnect): Likewise.
5559 * exec.c (exec_close_1): Remove parameter quitting.
5560 * go32-nat.c (go32_close): Likewise.
5561 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
5562 parameter quitting from a caller.
5563 * mips-linux-nat.c (super_close): Remove parameter quitting from the
5564 variable.
5565 (mips_linux_close): Remove parameter quitting. Remove parameter
5566 quitting from a caller.
5567 * monitor.c (monitor_close): Remove parameter quitting.
5568 * monitor.h (monitor_close): Likewise.
5569 * record-btrace.c (record_btrace_close): Likewise.
5570 * record-full.c (record_full_close): Likewise.
5571 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
5572 it also from fprintf_unfiltered.
5573 * remote-mips.c (mips_close): Remove parameter quitting.
5574 (mips_detach): Remove parameter quitting from a caller.
5575 * remote-sim.c (gdbsim_close): Remove parameter quitting.
5576 (gdbsim_close): Remove duplicate function comment. Remove parameter
5577 quitting and remove it also from printf_filtered.
5578 * remote.c (remote_close): Remove parameter quitting.
5579 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
5580 * target.c (update_current_target): Remove parameter int from to_close
5581 de_fault.
5582 (push_target, unpush_target, pop_target): Remove parameter quitting from
5583 a caller.
5584 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
5585 Remove parameter quitting from a caller.
5586 (target_preopen): Remove parameter quitting from a caller.
5587 (target_close): Remove parameter quitting. Remove parameter quitting
5588 from a caller two times. Remove parameter quitting also from
5589 fprintf_unfiltered.
5590 * target.h (struct target_ops): Remove parameter quitting and as int
5591 from fields to_xclose and to_close.
5592 (extern struct target_ops current_target):
5593 (target_close, pop_all_targets): Remove parameter quitting. Update the
5594 comment.
5595 (pop_all_targets_above): Remove parameter quitting.
5596 * top.c (quit_target): Remove parameter quitting from a caller.
5597 * tracepoint.c (tfile_close): Remove parameter quitting.
5598 * windows-nat.c (windows_close): Remove parameter quitting.
5599
35a7120b
CV
56002013-03-20 Corinna Vinschen <vinschen@redhat.com>
5601
5602 * windows-nat.c (handle_output_debug_string): Replace call
5603 to string_to_core_addr with call to strtoull.
5604
8249a5a9
YQ
56052013-03-20 Yao Qi <yao@codesourcery.com>
5606
5607 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
5608 and write it to CTF metadata.
5609
2c15ef43
CV
56102013-03-19 Corinna Vinschen <vinschen@redhat.com>
5611
5612 * windows-nat.c (handle_output_debug_string): Change type of n to
5613 SIZE_T to avoid crash on 64 bit systems.
5614
1cdd3232
EZ
56152013-03-17 Eli Zaretskii <eliz@gnu.org>
5616
5617 * python/python-internal.h (HAVE_SNPRINTF)
5618 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
5619 about redefinition of snprintf by pyerrors.h.
5620
3cb2ab1a
SE
56212013-03-15 Steve Ellcey <sellcey@mips.com>
5622
5623 * remote-sim.c (sim_command_completer): Make char arguments const.
5624
9ce98649
TT
56252013-03-15 Tom Tromey <tromey@redhat.com>
5626
5627 PR c++/15116:
5628 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
5629
dccee2de
TT
56302013-03-14 Tom Tromey <tromey@redhat.com>
5631
5632 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
5633 New fields.
5634 (get_file_crc): Move from symfile.c.
5635 (gdb_bfd_crc): New function.
5636 * gdb_bfd.h (gdb_bfd_crc): Declare.
5637 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
5638 * symfile.c (get_file_crc): Move to gdb_bfd.c.
5639 (separate_debug_file_exists): Use gdb_bfd_crc.
5640
cc0ea93c
TT
56412013-03-14 Tom Tromey <tromey@redhat.com>
5642
5643 * symfile.c (get_debug_link_info): Remove.
5644 (find_separate_debug_file_by_debuglink): Use
5645 bfd_get_debug_link_info.
5646
08c23b0d
TT
56472013-03-14 Tom Tromey <tromey@redhat.com>
5648
5649 * symtab.c (error_in_psymtab_expansion): New function.
5650 (lookup_symbol_aux_quick)
5651 (basic_lookup_transparent_type_quick): Remove "last resort"
5652 code. Use error_in_psymtab_expansion.
5653
288e77a7
JK
56542013-03-14 Doug Evans <dje@google.com>
5655 Jan Kratochvil <jan.kratochvil@redhat.com>
5656
5657 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
5658 any successful compare_filenames_for_search or FILENAME_CMP.
5659 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5660 * symtab.c (iterate_over_some_symtabs): Likewise.
5661
8f1b8b82
JK
56622013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5663
5664 * source.c (print_source_lines_base): Make a local copy of
5665 symtab_to_fullname.
5666
23eb71e4
JK
56672013-03-14 Hui Zhu <hui_zhu@mentor.com>
5668 Jan Kratochvil <jan.kratochvil@redhat.com>
5669
5670 * source.c (print_source_lines_base): Suppress "file" for TUI.
5671
bb869963
SDJ
56722013-03-14 Keith Seitz <keiths@redhat.com>
5673 Alan Matsuoka <alanm@redhat.com>
5674
5675 PR c++/15203
5676 PR c++/15210
5677 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
5678 TYPE_CODE_METHOD.
5679 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
5680 symbols.
5681
d6682f9e
YQ
56822013-03-14 Yao Qi <yao@codesourcery.com>
5683
5684 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
5685 status to tfile if trace is stopped by command 'tstop'.
5686
a22fa6e4
YQ
56872013-03-14 Yao Qi <yao@codesourcery.com>
5688
5689 * tracepoint.c (tfile_write_status): Write trace notes and user
5690 name into tfile if they are not NULL.
5691
d0353e76
YQ
56922013-03-14 Hui Zhu <hui@codesourcery.com>
5693 Yao Qi <yao@codesourcery.com>
5694
5695 * Makefile.in (REMOTE_OBS): Add ctf.o.
5696 (SFILES): Add ctf.c.
5697 (HFILES_NO_SRCDIR): Add ctf.h.
5698 * ctf.c, ctf.h: New files.
5699 * tracepoint.c: Include 'ctf.h'.
5700 (collect_pseudocommand): Remove static.
5701 (trace_save_command): Parse option "-ctf".
5702 Produce different trace file writers per option.
5703 Adjust output message.
5704 (trace_save_tfile, trace_save_ctf): New.
5705 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
5706 * mi/mi-main.c: Include 'ctf.h'.
5707 (mi_cmd_trace_save): Handle option '-ctf'. Call either
5708 trace_save_tfile or trace_save_ctf.
5709 * NEWS: Mention these changes.
5710
3f43bc09
YQ
57112013-03-14 Yao Qi <yao@codesourcery.com>
5712
5713 * tracepoint.c (trace_file_writer_xfree): New.
5714 (struct tfile_writer_data): New.
5715 (tfile_dtor, tfile_can_target_save, tfile_start): New.
5716 (tfile_write_header, tfile_write_regblock_type): New.
5717 (tfile_write_status, tfile_write_uploaded_tsv): New.
5718 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
5719 (tfile_write_raw_data, (tfile_end): New.
5720 (tfile_write_ops): New global variable.
5721 (TRACE_WRITE_R_BLOCK): New macro.
5722 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
5723 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
5724 (TRACE_WRITE_V_BLOCK): New macro.
5725 (trace_save): Add extra one parameter WRITER. Make it static.
5726 Use WRITER to writer trace.
5727 (tfile_trace_file_writer_new): New.
5728 (trace_save_command): Caller update.
5729 (trace_save_tfile): Write trace data in TFILE format.
5730 * tracepoint.h (struct trace_frame_write_ops): New.
5731 (struct trace_file_write_ops): New.
5732 (struct trace_file_writer): New.
5733 (trace_save): Remove its declaration.
5734 (trace_save_tfile): Declare it.
5735 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
5736 instead of trace_save.
5737
58665b40
PA
57382013-03-13 Pedro Alves <palves@redhat.com>
5739
5740 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
5741
10217050
PA
57422013-03-13 Pedro Alves <palves@redhat.com>
5743
5744 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
5745 commented out code.
5746 * demangle.c (current_demangling_style_string): Make it const.
5747 (set_demangling_command): Assert the demangling style is known.
5748 Remove all handling of unknown styles. Set
5749 'current_demangling_style_string' to an element of the
5750 demangling_style_names array.
5751 (set_demangling_style): Delete.
5752 (_initialize_demangler): Set current_demangling_style_string to the
5753 element of the demangling_style_names array that corresponds to
5754 the default demangling style. Remove FIXME note. Don't call
5755 set_demangling_style.
5756 * gdb-demangle.h (set_demangling_style): Remove declaration.
5757
6f937416
PA
57582013-03-13 Pedro Alves <palves@redhat.com>
5759
5760 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
5761 fields const.
5762 (ada_make_symbol_completion_list): Make "text0" parameter const.
5763 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
5764 * breakpoint.c (condition_completer): Make "text" and "word"
5765 parameters const. Adjust.
5766 (check_tracepoint_command): Adjust to validate_actionline
5767 prototype change.
5768 (catch_syscall_completer): Make "text" and "word" parameters
5769 const.
5770 * cli/cli-cmds.c (show_user): Make "comname" local const.
5771 (valid_command_p): Make "command" parameter const.
5772 (alias_command): Make "alias_prefix" and "command_prefix" locals
5773 const.
5774 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
5775 (add_alias_cmd): Make "name" and "oldname" parameters const.
5776 Adjust. No longer make copy of OLDNAME.
5777 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
5778 (add_setshow_cmd_full, add_setshow_enum_cmd)
5779 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5780 (add_setshow_filename_cmd, add_setshow_string_cmd)
5781 (add_setshow_string_noescape_cmd)
5782 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5783 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5784 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
5785 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
5786 Make "name" parameter const.
5787 (help_cmd): Rename "command" parameter to "arg". New const local
5788 "command".
5789 (find_cmd): Make "command" parameter const.
5790 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
5791 deprecated_cmd_warning prototype change.
5792 (undef_cmd_error): Make "cmdtype" parameter const.
5793 (lookup_cmd): Make "line" parameter const.
5794 (deprecated_cmd_warning): Change type of "text" parameter to
5795 pointer to const char, from pointer to pointer to char. Adjust.
5796 (lookup_cmd_composition): Make "text" parameter const.
5797 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
5798 parameters const.
5799 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
5800 const.
5801 * cli/cli-script.c (validate_comname): Make "tem" local const.
5802 (define_command): New const local "tem_c". Use it in calls to
5803 lookup_cmd.
5804 (document_command): Make "tem" and "comfull" locals const.
5805 (show_user_1): Make "prefix" and "name" parameters const.
5806 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
5807 const.
5808 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
5809 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
5810 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
5811 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
5812 (complete_on_enum, add_setshow_enum_cmd)
5813 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5814 (add_setshow_filename_cmd, add_setshow_string_cmd)
5815 (add_setshow_string_noescape_cmd)
5816 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5817 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5818 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
5819 Change prototypes, constifying strings.
5820 * completer.c (noop_completer, filename_completer): Make "text"
5821 and "prefix" parameters const.
5822 (location_completer, expression_completer)
5823 (complete_line_internal): Make "text" and "prefix" parameters
5824 const and adjust.
5825 (command_completer, signal_completer): Make "text" and "prefix"
5826 parameters const.
5827 * completer.h (noop_completer, filename_completer)
5828 (expression_completer, location_completer, command_completer)
5829 (signal_completer): Change prototypes.
5830 * corefile.c (complete_set_gnutarget): Make "text" and "word"
5831 parameters const.
5832 * cp-abi.c (cp_abi_completer): Likewise.
5833 * expression.h (parse_expression_for_completion): Change
5834 prototype.
5835 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
5836 parameters const.
5837 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
5838 * infrun.c (handle_completer): Make "text" and "word" parameters
5839 const.
5840 * interps.c (interpreter_completer): Make "text" and "word"
5841 parameters const.
5842 * language.h (struct language_defn)
5843 <la_make_symbol_completion_list>: Make "text" and "word"
5844 parameters const.
5845 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
5846 (parse_exp_in_context): Rename to ...
5847 (parse_exp_in_context_1): ... this.
5848 (parse_exp_in_context): Reimplement, with const hack from
5849 parse_exp_1.
5850 (parse_expression_for_completion): Make "string" parameter const.
5851 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
5852 to pointer to const char. Adjust.
5853 (print_command_1): Make "exp" parameter const.
5854 (output_command): Rename to ...
5855 (output_command_const): ... this. Make "exp" parameter const.
5856 (output_command): Reimplement.
5857 (x_command): Adjust.
5858 (display_command): Rename "exp" parameter to "arg". New "exp"
5859 local, const version of "arg".
5860 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
5861 "cmd_name" local const.
5862 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
5863 call.
5864 (cmdpy_completer): Make "text" and "word" parameters const.
5865 (gdbpy_parse_command_name): Make "prefix_text2" local const.
5866 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
5867 const.
5868 * remote.c (_initialize_remote): Make "cmd_name" local const.
5869 * symtab.c (language_search_unquoted_string): Make "text" and "p"
5870 parameters const. Adjust.
5871 (completion_list_add_fields): Make "sym_text", "text" and "word"
5872 parameters const.
5873 (struct add_name_data) <sym_text, text, word>: Make fields const.
5874 (default_make_symbol_completion_list_break_on): Make "text" and
5875 "word" parameters const. Adjust locals.
5876 (default_make_symbol_completion_list)
5877 (make_symbol_completion_list, make_symbol_completion_type)
5878 (make_symbol_completion_list_fn): Make "text" and "word"
5879 parameters const.
5880 (make_file_symbol_completion_list): Make "text", "word" and
5881 "srcfile" parameters const. Adjust locals.
5882 (add_filename_to_list): Make "text" and "word" parameters const.
5883 (struct add_partial_filename_data) <text, word>: Make fields
5884 const.
5885 (make_source_files_completion_list): Make "text" and "word"
5886 parameters const.
5887 * symtab.h (default_make_symbol_completion_list_break_on)
5888 (default_make_symbol_completion_list, make_symbol_completion_list)
5889 (make_symbol_completion_type enum type_code)
5890 (make_symbol_completion_list_fn make_file_symbol_completion_list)
5891 (make_source_files_completion_list): Change prototype.
5892 * top.c (execute_command): Adjust to pass pointer to pointer to
5893 const char to lookup_cmd, and to deprecated_cmd_warning prototype
5894 change.
5895 (set_verbose): Make "cmdname" local const.
5896 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
5897 and adjust.
5898 (validate_actionline): Make "line" parameter a pointer to const
5899 char, and adjust.
5900 (encode_actions_1): Make "action_exp" local const, and adjust.
5901 (encode_actions): Adjust.
5902 (replace_comma): Delete.
5903 (trace_dump_actions): Make "action_exp" and "next_comma" locals
5904 const, and adjust. Don't frob the action string while splitting
5905 it at commas. Instead, make a copy of each split substring in
5906 turn.
5907 (trace_dump_command): Adjust to validate_actionline prototype
5908 change.
5909 * tracepoint.h (decode_agent_options, decode_agent_options)
5910 (encode_actions, validate_actionline): Change prototypes.
5911 * valprint.h (output_command): Delete declaration.
5912 (output_command_const): Declare.
5913 * value.c (function_destroyer): Cast const away in xfree call.
5914
a0bcdaa7
PA
59152013-03-13 Pedro Alves <palves@redhat.com>
5916
5917 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
5918 rather than casting 'const char * const *' to 'const char **'.
5919 * ada-lex.l (processInt): Make "trailer" local const. Remove
5920 'const char **' cast.
5921 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
5922 locals, and use those as strtol output pointer, instead than doing
5923 invalid casts to from 'const char **' to 'char **'.
5924 (_initialize_demangle): Remove cast.
5925 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
5926 locals, and use those as strtol output pointer, instead than doing
5927 invalid casts to from 'const char **' to 'char **'.
5928 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
5929 casts.
5930 * stap-probe.c (stap_parse_register_operand)
5931 (stap_parse_single_operand): Likewise.
5932
8ddb1965
YQ
59332013-03-13 Yao Qi <yao@codesourcery.com>
5934
5935 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
5936 the last matched 'V' blcok in trace frame.
5937
2d450646
JB
59382013-03-12 Joel Brobecker <brobecker@adacore.com>
5939
5940 * NEWS: Create a new section for the next release branch.
5941 Rename the section of the current branch, now that it has
5942 been cut.
5943
b4b79973 59442013-03-12 Joel Brobecker <brobecker@adacore.com>
5945
5946 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
5947 * version.in: Bump version to 7.6.50.20130312-cvs.
5948
ee047554
KS
59492013-03-12 Keith Seitz <keiths@redhat.com>
5950
5951 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
5952 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
5953 Remove temporary copy of input string.
5954 (mi_execute_command_wrapper): Make "cmd" const.
5955 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
5956 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
5957 Use const strings.
5958 (mi_parse): Make "cmd" const.
5959 Use const strings.
5960 * mi/mi-parse.h (mi_parse): Make "cmd" const.
5961
bbc13ae3
KS
59622013-03-12 Keith Seitz <keiths@redhat.com>
5963
5964 * ada-lang.c (ada_read_renaming_var_value): Pass const
5965 pointer to expression string to parse_exp_1.
5966 (create_excep_cond_exprs): Likewise.
5967 * ax-gdb.c (agent_eval_command_one): Likewise.
5968 (maint_agent_printf_command): Likewise.
5969 Constify much of the string handling/parsing.
5970 * breakpoint.c (set_breakpoint_condition): Pass const
5971 pointer to expression string to parse_exp_1.
5972 (update_watchpoint): Likewise.
5973 (parse_cmd_to_aexpr): Constify string handling.
5974 Pass const pointer to parse_exp_1.
5975 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
5976 (find_condition_and_thread): Likewise.
5977 Make TOK const.
5978 (watch_command_1): Make "arg" const.
5979 Constify string handling.
5980 Copy the expression string instead of changing the input
5981 string.
5982 (update_breakpoint_location): Pass const pointer to
5983 parse_exp_1.
5984 * eval.c (parse_and_eval_address): Make "exp" const.
5985 (parse_to_comma_and_eval): Make "expp" const.
5986 (parse_and_eval): Make "exp" const.
5987 * expression.h (parse_expression): Make argument const.
5988 (parse_exp_1): Make first argument const.
5989 * findcmd.c (parse_find_args): Treat "args" as const.
5990 * linespec.c (parse_linespec): Pass const pointer to
5991 linespec_expression_to_pc.
5992 (linespec_expression_to_pc): Make "exp_ptr" const.
5993 * parse.c (parse_exp_1): Make "stringptr" const.
5994 Make a copy of the expression to pass to parse_exp_in_context until
5995 this whole interface can be constified.
5996 (parse_expression): Make "string" const.
5997 * printcmd.c (ui_printf): Treat "arg" as const.
5998 Handle const strings.
5999 * tracepoint.c (validate_actionline): Pass const pointer to
6000 all calls to parse_exp_1.
6001 (encode_actions_1): Likewise.
6002 * value.h (parse_to_comma_and_eval): Make argument const.
6003 (parse_and_eval_address): Likewise.
6004 (parse_and_eval): Likewise.
6005 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6006 (varobj_set_value): Likewise.
6007 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6008 constify string handling.
6009 Pass const pointers to parse_and_eval_address and
6010 parse_to_comman_and_eval.
6011 * cli/cli-utils.c (skip_to_space): Rename to ...
6012 (skip_to_space_const): ... this. Handle const strings.
6013 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6014 skip_to_space_const.
6015 (skip_to_space_const): Declare.
6016 * common/format.c (parse_format_string): Make "arg" const.
6017 Handle const strings.
6018 * common/format.h (parse_format_string): Make "arg" const.
6019 * gdbserver/ax.c (ax_printf): Make "format" const.
6020 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6021 of the expression string.
6022
f3cec7e6
HZ
60232013-03-12 Hui Zhu <hui@codesourcery.com>
6024
6025 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6026
9df7235c
HZ
60272013-03-12 Yao Qi <yao@codesourcery.com>
6028 Hui Zhu <hui@codesourcery.com>
6029
6030 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6031 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6032 DW_OP_deref_size.
6033
82d049ab
PH
60342013-03-12 Paul Hilfinger <hilfingr@adacore.com>
6035
5f8e0b8f
MF
6036 * ada-lex.l (rules): Only recognize 'thread' as a
6037 delimiter when followed by numerals, as for c-exp.y.
6038 Use new rewind_to_char function to rewind the input for
6039 expression-delimiting tokens.
6040 (rewind_to_char): New function.
82d049ab 6041
8c1fb155
JK
60422013-03-11 Pedro Alves <palves@redhat.com>
6043 Jan Kratochvil <jan.kratochvil@redhat.com>
6044
6045 * configure: Regenerate.
6046 * configure.ac (check dynamic export flag): Link python test with
6047 $PYTHON_LIBS.
6048
cc81e1c6
DE
60492013-03-11 Doug Evans <dje@google.com>
6050 Keith Seitz <keiths@redhat.com>
6051
6052 * linespec.c (find_linespec_symbols): Call find_function_symbols
6053 first, and then call lookup_prefix_sym/find_method.
6054
39086a0e
PA
60552013-03-11 Pedro Alves <palves@redhat.com>
6056
6057 * charset.c (convert_between_encodings): Don't cast between
6058 different pointer to pointer types. Instead, make the 'inp' local
6059 be of the type iconv expects.
6060 (wchar_iterate): Don't cast between different pointer to pointer
6061 types. Instead, use new pointer local of the type iconv expects.
6062 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6063 Add new local of type char pointer, and use it to get a
6064 char/string view of the byte buffer, instead of casting between
6065 pointer to pointer types.
6066
90585175
HAQ
60672013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6068
6069 * remote.c (remote_set_trace_buffer_size): Move != operator
6070 to the start of next line to fix an ARI warning.
6071
59ea5688
MM
60722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6073
6074 * NEWS: Add record changes.
6075
946287b7
MM
60762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6077
6078 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6079 the instruction history disassembly.
6080 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6081 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6082
afedecd3
MM
60832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6084
6085 * Makefile.in (SFILES): Add record-btrace.c
6086 (COMMON_OBS): Add record-btrace.o
6087 * record-btrace.c: New.
6088 * objfiles.c: Include btrace.h.
6089 (free_objfile): call btrace_free_objfile.
6090
15984c13
MM
60912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6092
6093 * target.c (target_call_history, target_call_history_from,
6094 target_call_history_range): New.
6095 * target.h (target_ops) <to_call_history, to_call_history_from,
6096 to_call_history_range>: New fields.
6097 (target_call_history, target_call_history_from,
6098 target_call_history_range): New declaration.
6099 * record.c (get_call_history_modifiers, cmd_record_call_history,
6100 record_call_history_size): New.
6101 (_initialize_record): Add the "record function-call-history" command.
6102 Add "set/show record function-call-history-size" commands.
6103 * record.h (record_print_flag): New.
6104
67c86d06
MM
61052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6106
6107 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6108 to_insn_history_range>: New fields.
6109 (target_insn_history): New.
6110 (target_insn_history_from): New.
6111 (target_insn_history_range): New.
6112 * target.c (target_insn_history): New.
6113 (target_insn_history_from): New.
6114 (target_insn_history_range): New.
6115 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6116 (record_insn_history_size): New.
6117 (get_insn_number): New.
6118 (get_context_size): New.
6119 (no_chunk): New.
6120 (get_insn_history_modifiers): New.
6121 (cmd_record_insn_history): New.
6122 (_initialize_record): Add "set/show record instruction-history-size"
6123 command. Add "record instruction-history" command.
6124
7c1687a9
MM
61252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6126
6127 * record.h (record_disconnect): New.
6128 (record_detach): New.
6129 (record_mourn_inferior): New.
6130 (record_kill): New.
6131 * record-full.c (record_disconnect, record_detach,
6132 record_mourn_inferior, record_kill): Move to...
6133 * record.c: ...here.
6134 (DEBUG): New.
6135 (record_stop): New.
6136 (record_unpush): New.
6137 (cmd_record_stop): Call record_stop. Replace unpush_target
6138 call with record_unpush call.
6139 (record_disconnect, record_detach): Assert that the target
6140 is of record stratum. Call record_unpush, record_stop, and
6141 DEBUG.
6142 (record_mourn_inferior, record_kill): Assert that the target
6143 is of record stratum. Call record_unpush and DEBUG.
6144
25ea693b
MM
61452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6146
6147 * record-full.h, record-full.c (record_memory_query): Rename
6148 to ...
6149 (record_full_memory_query): ...this. Update all users.
6150 (record_arch_list_add_reg): Rename to ...
6151 (record_full_arch_list_add_reg): ...this. Update all users.
6152 (record_arch_list_add_mem): Rename to ...
6153 (record_full_arch_list_add_mem): ...this. Update all users.
6154 (record_arch_list_add_end): Rename to ...
6155 (record_full_arch_list_add_end): ...this. Update all users.
6156 (record_gdb_operation_disable_set): Rename to ...
6157 (record_full_gdb_operation_disable_set): ...this.
6158 Update all users.
6159
88d1aa9d
MM
61602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6161
6162 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6163 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6164 (RECORD_IS_REPLAY): Renamed to ...
6165 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6166 (RECORD_FILE_MAGIC): Renamed to ...
6167 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6168 (record_mem_entry): Renamed to ...
6169 (record_full_mem_entry): ... this. Updated all users.
6170 (record_reg_entry): Renamed to ...
6171 (record_full_reg_entry): ... this. Updated all users.
6172 (record_end_entry): Renamed to ...
6173 (record_full_end_entry): ... this. Updated all users.
6174 (record_type) <record_end, record_reg, record_mem>: Renamed
6175 to ...
6176 (record_full_type) <record_full_end, record_full_reg,
6177 record_full_mem>: ... this. Updated all users.
6178 (record_entry): Renamed to ...
6179 (record_full_entry): ... this. Updated all users.
6180 (record_core_buf_entry): Renamed to ...
6181 (record_full_core_buf_entry): ... this. Updated all users.
6182 (record_core_regbuf): Renamed to ...
6183 (record_full_core_regbuf): ... this. Updated all users.
6184 (record_core_start): Renamed to ...
6185 (record_full_core_start): ... this. Updated all users.
6186 (record_core_end): Renamed to ...
6187 (record_full_core_end): ... this. Updated all users.
6188 (record_core_buf_list): Renamed to ...
6189 (record_full_core_buf_list): ... this. Updated all users.
6190 (record_first): Renamed to ...
6191 (record_full_first): ... this. Updated all users.
6192 (record_list): Renamed to ...
6193 (record_full_list): ... this. Updated all users.
6194 (record_arch_list_head): Renamed to ...
6195 (record_full_arch_list_head): ... this. Updated all users.
6196 (record_arch_list_tail): Renamed to ...
6197 (record_full_arch_list_tail): ... this. Updated all users.
6198 (record_stop_at_limit): Renamed to ...
6199 (record_full_stop_at_limit): ... this. Updated all users.
6200 (record_insn_max_num): Renamed to ...
6201 (record_full_insn_max_num): ... this. Updated all users.
6202 (record_insn_num): Renamed to ...
6203 (record_full_insn_num): ... this. Updated all users.
6204 (record_insn_count): Renamed to ...
6205 (record_full_insn_count): ... this. Updated all users.
6206 (record_ops): Renamed to ...
6207 (record_full_ops): ... this. Updated all users.
6208 (record_core_ops): Renamed to ...
6209 (record_full_core_ops): ... this. Updated all users.
6210 (set_record_cmdlist): Renamed to ...
6211 (set_record_full_cmdlist): ... this. Updated all users.
6212 (show_record_cmdlist): Renamed to ...
6213 (show_record_full_cmdlist): ... this. Updated all users.
6214 (record_cmdlist): Renamed to ...
6215 (record_full_cmdlist): ... this. Updated all users.
6216 (record_beneath_to_resume_ops): Renamed to ...
6217 (record_full_beneath_to_resume_ops): ... this. Updated all users.
6218 (record_beneath_to_resume): Renamed to ...
6219 (record_full_beneath_to_resume): ... this. Updated all users.
6220 (record_beneath_to_wait_ops): Renamed to ...
6221 (record_full_beneath_to_wait_ops): ... this. Updated all users.
6222 (record_beneath_to_wait): Renamed to ...
6223 (record_full_beneath_to_wait): ... this. Updated all users.
6224 (record_beneath_to_store_registers_ops): Renamed to ...
6225 (record_full_beneath_to_store_registers_ops): ... this.
6226 Updated all users.
6227 (record_beneath_to_store_registers): Renamed to ...
6228 (record_full_beneath_to_store_registers): ... this.
6229 Updated all users.
6230 (record_beneath_to_xfer_partial_ops): Renamed to ...
6231 (record_full_beneath_to_xfer_partial_ops): ... this.
6232 Updated all users.
6233 (record_beneath_to_xfer_partial): Renamed to ...
6234 (record_full_beneath_to_xfer_partial): ... this.
6235 Updated all users.
6236 (record_beneath_to_insert_breakpoint): Renamed to ...
6237 (record_full_beneath_to_insert_breakpoint): ... this.
6238 Updated all users.
6239 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
6240 (record_full_beneath_to_stopped_by_watchpoint): ... this.
6241 Updated all users.
6242 (record_beneath_to_stopped_data_address): Renamed to ...
6243 (record_full_beneath_to_stopped_data_address): ... this.
6244 Updated all users.
6245 (record_beneath_to_async): Renamed to ...
6246 (record_full_beneath_to_async): ... this. Updated all users.
6247 (record_goto_insn): Renamed to ...
6248 (record_full_goto_insn): ... this. Updated all users.
6249 (record_save): Renamed to ...
6250 (record_full_save): ... this. Updated all users.
6251 (record_reg_alloc): Renamed to ...
6252 (record_full_reg_alloc): ... this. Updated all users.
6253 (record_reg_release): Renamed to ...
6254 (record_full_reg_release): ... this. Updated all users.
6255 (record_mem_alloc): Renamed to ...
6256 (record_full_mem_alloc): ... this. Updated all users.
6257 (record_mem_release): Renamed to ...
6258 (record_full_mem_release): ... this. Updated all users.
6259 (record_end_alloc): Renamed to ...
6260 (record_full_end_alloc): ... this. Updated all users.
6261 (record_end_release): Renamed to ...
6262 (record_full_end_release): ... this. Updated all users.
6263 (record_entry_release): Renamed to ...
6264 (record_full_entry_release): ... this. Updated all users.
6265 (record_list_release): Renamed to ...
6266 (record_full_list_release): ... this. Updated all users.
6267 (record_list_release_following): Renamed to ...
6268 (record_full_list_release_following): ... this.
6269 Updated all users.
6270 (record_list_release_first): Renamed to ...
6271 (record_full_list_release_first): ... this. Updated all users.
6272 (record_arch_list_add): Renamed to ...
6273 (record_full_arch_list_add): ... this. Updated all users.
6274 (record_get_loc): Renamed to ...
6275 (record_full_get_loc): ... this. Updated all users.
6276 (record_check_insn_num): Renamed to ...
6277 (record_full_check_insn_num): ... this. Updated all users.
6278 (record_arch_list_cleanups): Renamed to ...
6279 (record_full_arch_list_cleanups): ... this. Updated all users.
6280 (record_message): Renamed to ...
6281 (record_full_message): ... this. Updated all users.
6282 (record_message_wrapper): Renamed to ...
6283 (record_full_message_wrapper): ... this. Updated all users.
6284 (record_message_wrapper_safe): Renamed to ...
6285 (record_full_message_wrapper_safe): ... this. Updated all users.
6286 (record_gdb_operation_disable): Renamed to ...
6287 (record_full_gdb_operation_disable): ... this. Updated all users.
6288 (record_hw_watchpoint): Renamed to ...
6289 (record_full_hw_watchpoint): ... this. Updated all users.
6290 (record_exec_insn): Renamed to ...
6291 (record_full_exec_insn): ... this. Updated all users.
6292 (record_restore): Renamed to ...
6293 (record_full_restore): ... this. Updated all users.
6294 (record_async_inferior_event_token): Renamed to ...
6295 (record_full_async_inferior_event_token): ... this.
6296 Updated all users.
6297 (record_async_inferior_event_handler): Renamed to ...
6298 (record_full_async_inferior_event_handler): ... this.
6299 Updated all users.
6300 (record_core_open_1): Renamed to ...
6301 (record_full_core_open_1): ... this. Updated all users.
6302 (record_open_1): Renamed to ...
6303 (record_full_open_1): ... this. Updated all users.
6304 (record_open): Renamed to ...
6305 (record_full_open): ... this. Updated all users.
6306 (record_close): Renamed to ...
6307 (record_full_close): ... this. Updated all users.
6308 (record_resume_step): Renamed to ...
6309 (record_full_resume_step): ... this. Updated all users.
6310 (record_resumed): Renamed to ...
6311 (record_full_resumed): ... this. Updated all users.
6312 (record_execution_dir): Renamed to ...
6313 (record_full_execution_dir): ... this. Updated all users.
6314 (record_resume): Renamed to ...
6315 (record_full_resume): ... this. Updated all users.
6316 (record_get_sig): Renamed to ...
6317 (record_full_get_sig): ... this. Updated all users.
6318 (record_sig_handler): Renamed to ...
6319 (record_full_sig_handler): ... this. Updated all users.
6320 (record_wait_cleanups): Renamed to ...
6321 (record_full_wait_cleanups): ... this. Updated all users.
6322 (record_wait_1): Renamed to ...
6323 (record_full_wait_1): ... this. Updated all users.
6324 (record_wait): Renamed to ...
6325 (record_full_wait): ... this. Updated all users.
6326 (record_stopped_by_watchpoint): Renamed to ...
6327 (record_full_stopped_by_watchpoint): ... this. Updated all users.
6328 (record_disconnect): Renamed to ...
6329 (record_full_disconnect): ... this. Updated all users.
6330 (record_detach): Renamed to ...
6331 (record_full_detach): ... this. Updated all users.
6332 (record_mourn_inferior): Renamed to ...
6333 (record_full_mourn_inferior): ... this. Updated all users.
6334 (record_kill): Renamed to ...
6335 (record_full_kill): ... this. Updated all users.
6336 (record_stopped_data_address): Renamed to ...
6337 (record_full_stopped_data_address): ... this. Updated all users.
6338 (record_registers_change): Renamed to ...
6339 (record_full_registers_change): ... this. Updated all users.
6340 (record_store_registers): Renamed to ...
6341 (record_full_store_registers): ... this. Updated all users.
6342 (record_xfer_partial): Renamed to ...
6343 (record_full_xfer_partial): ... this. Updated all users.
6344 (record_breakpoint): Renamed to ...
6345 (record_full_breakpoint): ... this. Updated all users.
6346 (record_breakpoint_p): Renamed to ...
6347 (record_full_breakpoint_p): ... this. Updated all users.
6348 (record_breakpoints): Renamed to ...
6349 (record_full_breakpoints): ... this. Updated all users.
6350 (record_sync_record_breakpoints): Renamed to ...
6351 (record_full_sync_record_breakpoints): ... this.
6352 Updated all users.
6353 (record_init_record_breakpoints): Renamed to ...
6354 (record_full_init_record_breakpoints): ... this.
6355 Updated all users.
6356 (record_insert_breakpoint): Renamed to ...
6357 (record_full_insert_breakpoint): ... this. Updated all users.
6358 (record_remove_breakpoint): Renamed to ...
6359 (record_full_remove_breakpoint): ... this. Updated all users.
6360 (record_can_execute_reverse): Renamed to ...
6361 (record_full_can_execute_reverse): ... this. Updated all users.
6362 (record_get_bookmark): Renamed to ...
6363 (record_full_get_bookmark): ... this. Updated all users.
6364 (record_goto_bookmark): Renamed to ...
6365 (record_full_goto_bookmark): ... this. Updated all users.
6366 (record_async): Renamed to ...
6367 (record_full_async): ... this. Updated all users.
6368 (record_can_async_p): Renamed to ...
6369 (record_full_can_async_p): ... this. Updated all users.
6370 (record_is_async_p): Renamed to ...
6371 (record_full_is_async_p): ... this. Updated all users.
6372 (record_execution_direction): Renamed to ...
6373 (record_full_execution_direction): ... this. Updated all users.
6374 (record_info): Renamed to ...
6375 (record_full_info): ... this. Updated all users.
6376 (record_delete): Renamed to ...
6377 (record_full_delete): ... this. Updated all users.
6378 (record_is_replaying): Renamed to ...
6379 (record_full_is_replaying): ... this. Updated all users.
6380 (record_goto_entry): Renamed to ...
6381 (record_full_goto_entry): ... this. Updated all users.
6382 (record_goto_begin): Renamed to ...
6383 (record_full_goto_begin): ... this. Updated all users.
6384 (record_goto_end): Renamed to ...
6385 (record_full_goto_end): ... this. Updated all users.
6386 (record_goto): Renamed to ...
6387 (record_full_goto): ... this. Updated all users.
6388 (init_record_ops): Renamed to ...
6389 (init_record_full_ops): ... this. Updated all users.
6390 (record_core_resume): Renamed to ...
6391 (record_full_core_resume): ... this. Updated all users.
6392 (record_core_kill): Renamed to ...
6393 (record_full_core_kill): ... this. Updated all users.
6394 (record_core_fetch_registers): Renamed to ...
6395 (record_full_core_fetch_registers): ... this. Updated all users.
6396 (record_core_prepare_to_store): Renamed to ...
6397 (record_full_core_prepare_to_store): ... this. Updated all users.
6398 (record_core_store_registers): Renamed to ...
6399 (record_full_core_store_registers): ... this. Updated all users.
6400 (record_core_xfer_partial): Renamed to ...
6401 (record_full_core_xfer_partial): ... this. Updated all users.
6402 (record_core_insert_breakpoint): Renamed to ...
6403 (record_full_core_insert_breakpoint): ... this. Updated all users.
6404 (record_core_remove_breakpoint): Renamed to ...
6405 (record_full_core_remove_breakpoint): ... this. Updated all users.
6406 (record_core_has_execution): Renamed to ...
6407 (record_full_core_has_execution): ... this. Updated all users.
6408 (init_record_core_ops): Renamed to ...
6409 (init_record_full_core_ops): ... this. Updated all users.
6410 (cmd_record_restore): Renamed to ...
6411 (cmd_record_full_restore): ... this. Updated all users.
6412 (record_save_cleanups): Renamed to ...
6413 (record_full_save_cleanups): ... this. Updated all users.
6414 (cmd_record_start): Renamed to ...
6415 (cmd_record_full_start): ... this. Updated all users.
6416 (set_record_insn_max_num): Renamed to ...
6417 (set_record_full_insn_max_num): ... this. Updated all users.
6418 (set_record_command): Renamed to ...
6419 (set_record_full_command): ... this. Updated all users.
6420 (show_record_command): Renamed to ...
6421 (show_record_full_command): ... this. Updated all users.
6422 (_initialize_record): Renamed to ...
6423 (_initialize_record_full): ... this. Updated all users.
6424
d02ed0bb
MM
64252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6426
6427 * record.h: Split into this and ...
6428 * record-full.h: ... this.
6429 * record.c: Split into this and ...
6430 * record-full.c: ... this.
6431 * target.h (target_ops): Add new fields to_info_record,
6432 to_save_record, to_delete_record, to_record_is_replaying,
6433 to_goto_record_begin, to_goto_record_end, to_goto_record.
6434 (target_info_record): New.
6435 (target_save_record): New.
6436 (target_supports_delete_record): New.
6437 (target_delete_record): New.
6438 (target_record_is_replaying): New.
6439 (target_goto_record_begin): New.
6440 (target_goto_record_end): New.
6441 (target_goto_record): New.
6442 * target.c (target_info_record): New.
6443 (target_save_record): New.
6444 (target_supports_delete_record): New.
6445 (target_delete_record): New.
6446 (target_record_is_replaying): New.
6447 (target_goto_record_begin): New.
6448 (target_goto_record_end): New.
6449 (target_goto_record): New.
6450 * record.h: Declare struct cmd_list_element.
6451 (record_cmdlist): New declaration.
6452 (set_record_cmdlist): New declaration.
6453 (show_record_cmdlist): New declaration.
6454 (info_record_cmdlist): New declaration.
6455 (cmd_record_goto): New declaration.
6456 * record.c: Remove unnecessary includes.
6457 Include inferior.h.
6458 (cmd_record_goto): Remove declaration.
6459 (record_cmdlist): Now extern. Initialize.
6460 (set_record_cmdlist): Now extern. Initialize.
6461 (show_record_cmdlist): Now extern. Initialize.
6462 (info_record_cmdlist): Now extern. Initialize.
6463 (find_record_target): New.
6464 (require_record_target): New.
6465 (cmd_record_start): Update.
6466 (cmd_record_delete): Remove target-specific code.
6467 Call target_delete_record.
6468 (cmd_record_stop): Unpush any record target.
6469 (set_record_insn_max_num): Move to record-full.c
6470 (set_record_command): Add comment.
6471 (show_record_command): Add comment.
6472 (info_record_command): Update comment.
6473 Remove target-specific code.
6474 Call the record target's to_info_record.
6475 (cmd_record_start): New.
6476 (cmd_record_goto): Now extern.
6477 Remove target-specific code.
6478 Call target_goto_begin, target_goto_end, or target_goto.
6479 (_initialize_record): Move record target ops initialization to
6480 record-full.c.
6481 Change "record" command help text.
6482 Move "record restore", "record set", and "record show" commands to
6483 record-full.c.
6484 * Makefile.in (SFILES): Add record-full.c.
6485 (HFILES_NO_SRCDIR): Add record-full.h.
6486 (COMMON_OBS): Add record-full.o.
6487 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6488 * arm-tdep.c: Include record-full.h.
6489 * i386-linux-tdep.c: Include record-full.h instead of record.h.
6490 * i386-tdep.c: Include record-full.h.
6491 * infrun.c: Include record-full.h.
6492 * linux-record.c: Include record-full.h.
6493 * moxie-tdep.c: Include record-full.h.
6494 * record-full.c: Include record-full.h.
6495 Change module comment.
6496 (set_record_full_cmdlist): New.
6497 (show_record_full_cmdlist): New.
6498 (record_full_cmdlist): New.
6499 (record_goto_insn): New declaration.
6500 (record_save): New declaration.
6501 (record_check_insn_num): Change query string.
6502 (record_info): New.
6503 (record_delete): New.
6504 (record_is_replaying): New.
6505 (record_goto_entry): New.
6506 (record_goto_begin): New.
6507 (record_goto_end): New.
6508 (record_goto): New.
6509 (init_record_ops): Update.
6510 (init_record_core_ops): Update.
6511 (cmd_record_save): Rename to record_save. Remove target and arg checks.
6512 (cmd_record_start): New.
6513 (set_record_insn_max_num): Moved from record.c
6514 (set_record_full_command): New.
6515 (show_record_full_command): New.
6516 (_initialize_record_full): New.
6517
b48d48eb
MM
65182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6519
6520 * target.h (add_deprecated_target_alias): New.
6521 * target.c (add_deprecated_target_alias): New.
6522
a950d57c
MM
65232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6524
6525 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
6526 and signal.h.
6527 (linux_supports_btrace): Add kernel and
6528 cpuid check.
6529 (kernel_supports_btrace): New function.
6530 (cpu_supports_btrace): New function.
6531 (intel_supports_btrace): New function.
6532
9accd112
MM
65332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6534
6535 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
6536 * remote.c: Include btrace.h.
6537 (struct btrace_target_info): New struct.
6538 (remote_supports_btrace): New function.
6539 (send_Qbtrace): New function.
6540 (remote_enable_btrace): New function.
6541 (remote_disable_btrace): New function.
6542 (remote_teardown_btrace): New function.
6543 (remote_read_btrace): New function.
6544 (init_remote_ops): Add btrace ops.
6545 (enum <unnamed>): Add btrace packets.
6546 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
6547 (_initialize_remote): Add packet configuration for branch tracing.
6548
c12a2917
MM
65492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6550
6551 * features/btrace.dtd: New file.
6552 * Makefile.in (XMLFILES): Add btrace.dtd.
6553 * btrace.h (parse_xml_btrace): New declaration.
6554 * btrace.c: Include xml-support.h.
6555 (parse_xml_btrace): New function.
6556 (parse_xml_btrace_block): New function.
6557 (block_attributes): New struct.
6558 (btrace_attributes): New struct.
6559 (btrace_children): New struct.
6560 (btrace_elements): New struct.
6561
3e3aea48
MM
65622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6563
6564 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
6565 (amd64_linux_enable_btrace): New.
6566 (amd64_linux_disable_btrace): New.
6567 (amd64_linux_teardown_btrace): New.
6568 (_initialize_amd64_linux_nat): Initialize btrace ops.
6569 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
6570 (i386_linux_enable_btrace): New.
6571 (i386_linux_disable_btrace): New.
6572 (i386_linux_teardown_btrace): New.
6573 (_initialize_i386_linux_nat): Initialize btrace ops.
6574 * config/i386/linux.mh: Add linux-btrace.o.
6575 * config/i386/linux64.mh: Add linux-btrace.o.
6576
7c97f91e
MM
65772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6578
6579 * common/linux_btrace.h: New file.
6580 * common/linux_btrace.c: New file.
6581 * Makefile.in (SFILES): Add btrace.c.
6582 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
6583 (COMMON_OBS): Add btrace.o.
6584 (linux-btrace.o): New rule.
6585
1999790b 65862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
6587
6588 * target.h: Include btrace.h.
6589 (struct target_ops) <to_supports_btrace, to_enable_btrace,
6590 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
6591 * target.c (target_supports_btrace): New function.
6592 (target_enable_btrace): New function.
6593 (target_disable_btrace): New function.
6594 (target_teardown_btrace): New function.
6595 (target_read_btrace): New function.
6596 * btrace.h: New file.
6597 * btrace.c: New file.
6598 * Makefile.in: Add btrace.c.
6599 * gdbthread.h: Include btrace.h.
6600 (struct thread_info): Add btrace field.
6601 * thread.c: Include btrace.h.
6602 (clear_thread_inferior_resources): Call target_teardown_btrace.
6603 * common/btrace-common.h: New file.
6604
61a31a67
JK
66052013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6606
6607 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
6608 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
6609 kill_status to outer block.
6610
05c56a9d
JK
66112013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6612
6613 Fix entry-values if the callee called a noreturn function.
6614 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6615 get_frame_address_in_block. Add new comment.
6616
9112db09
JK
66172013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6618
6619 Fix entry-values in C++ across CUs.
6620 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
6621 lookup_minimal_symbol. Add a comment.
6622 * dwarf2read.c
6623 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
6624 DW_AT_linkage_name.
6625
9b67fcec
YQ
66262013-03-08 Yao Qi <yao@codesourcery.com>
6627
6628 * tracepoint.c (_initialize_tracepoint): Indent the code.
6629
6221be90
PA
66302013-03-08 Pedro Alves <palves@redhat.com>
6631
6632 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
6633 (parse_find_args, find_command): Change type of pattern buffer
6634 locals to 'gdb_byte *'.
6635
be9a119c 66362013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
6637 Hafiz Abid Qadeer <abidh@codesourcery.com>
6638
6639 * NEWS: Mention set and show trace-buffer-size commands.
6640 Mention new packet.
6641 * target.h (struct target_ops): New method
6642 to_set_trace_buffer_size.
6643 (target_set_trace_buffer_size): New macro.
6644 * target.c (update_current_target): Set up new method.
6645 * tracepoint.c (trace_buffer_size): New global.
6646 (start_tracing): Send it to the target.
6647 (set_trace_buffer_size): New function.
6648 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
6649 * remote.c (remote_set_trace_buffer_size): New function.
6650 (_initialize_remote): Use it.
6651 (QTBuffer:size) New remote command.
6652 (PACKET_QTBuffer_size): New enum.
6653 (remote_protocol_features): Add an entry for
6654 PACKET_QTBuffer_size.
6655
7da3ab79
TT
66562013-03-08 Tom Tromey <tromey@redhat.com>
6657
6658 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
6659 variable.
6660
0c1f71e7
PA
66612013-03-07 Pedro Alves <palves@redhat.com>
6662
6663 * target.c (target_read_stralloc, target_fileio_read_alloc):
6664 *Cast pointer to 'gdb_byte *' in target call.
6665
c8af03a2
PA
66662013-03-07 Pedro Alves <palves@redhat.com>
6667
6668 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
6669 call.
6670
529480d0
KS
66712013-03-07 Keith Seitz <keiths@redhat.com>
6672
6673 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
6674 (trace_pass_command): Likewise.
6675 * cli/cli-cmds.c: Include cli/cli-utils.h.
6676 (source_command): Use skip-spaces.
6677 (disassemble_command): Likewise.
6678 * findcmd.c: Include cli/cli-utils.h.
6679 (parse_find_args): Use skip_spaces.
6680 * go32-nat.c: Include cli/cli-utils.h.
6681 (go32_sldt): Use skip_spaces.
6682 (go32_sgdt): Likewise.
6683 (go32_sidt): Likewise.
6684 (go32_pde): Likewise.
6685 (go32_pte): Likewise.
6686 (go32_pte_for_address): Likewise.
6687 * infcmd.c: Include cli/cli-utils.h.
6688 (registers_info): Use skip_spaces.
6689 * linux-tdep.c (read_mapping): Use skip_spaces_const.
6690 (linux_info_proc): Likewise.
6691 * linux-thread-db.c: Include cli/cli-utils.h.
6692 (info_auto_load_libthread_db): Use skip_spaces_const.
6693 * m32r-rom.c: Include cli/cli-utils.h.
6694 (m32r_upload_command): Use skip_spaces.
6695 * maint.c: Include cli/cli-utils.h.
6696 (maintenance_translate_address): Use skip_spaces.
6697 * mi/mi-parse.c: Include cli/cli-utils.h.
6698 (mi_parse_argv): Use skip_spaces.
6699 (mi_parse): Likewise.
6700 * minsyms.c: Include cli/cli-utils.h.
6701 (msymbol_hash_iw): Use skip_spaces_const.
6702 * objc-lang.c: Include cli/cli-utils.h.
6703 (parse_selector): Use skip_spaces.
6704 (parse_method): Likewise.
6705 * python/python.c: Include cli/cli-utils.h.
6706 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
6707 (python_command)[HAVE_PYTHON]: Likewise.
6708 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
6709 * remote-m32r-sdi.c: Include cli/cli-utils.h.
6710 (m32r_load): Use skip_spaces.
6711 * serial.c: Include cli/cli-utils.h.
6712 (serial_open): Use skip_spaces_const.
6713 * stack.c: Include cli/cli-utils.h.
6714 (parse_frame_specification_1): Use skip_spaces_const.
6715 * symfile.c: Include cli/cli-utils.h.
6716 (set_ext_lang_command): Use skip_spaces.
6717 * symtab.c: Include cli/cli-utils.h.
6718 (rbreak_command): Use skip_spaces.
6719 * thread.c (thread_name_command): Use skip_spaces.
6720 * tracepoint.c (validate_actionline): Use skip_spaces.
6721 (encode_actions_1): Likewise.
6722 (trace_find_range_command): Likewise.
6723 (trace_find_outside_command): Likewise.
6724 (trace_dump_actions): Likewise.
6725
ac91cd70
PA
67262013-03-07 Pedro Alves <palves@redhat.com>
6727
6728 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
6729 * expprint.c (print_subexp_standard): Likewise.
6730 * utils.c (host_char_to_target): Likewise.
6731 * valprint.c (generic_emit_char, generic_printstr): Likewise.
6732 * varobj.c (value_get_print_value): Change type of local to char*.
6733 Cast it gdb_byte * in call to language printer.
6734
2898e560
PA
67352013-03-07 Pedro Alves <palves@redhat.com>
6736
6737 * charset.c (struct wchar_iterator) <input>: Change type to 'const
6738 gdb_byte *'.
6739 (make_wchar_iterator): Remove cast to char*.
6740 (wchar_iterate): Change type of local.
6741
a09b4448
PA
67422013-03-07 Pedro Alves <palves@redhat.com>
6743
6744 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
6745 for 'regcache->register_status'.
6746
20ced3e4
PA
67472013-03-07 Pedro Alves <palves@redhat.com>
6748
c2d6a675 6749 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
6750 int.
6751
fe106009
PA
67522013-03-07 Pedro Alves <palves@redhat.com>
6753
6754 * stap-probe.c (handle_stap_probe): Add cast to char*.
6755
8ac2c12b
PA
67562013-03-07 Pedro Alves <palves@redhat.com>
6757
6758 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
6759 RECORD_MSGRCV>: Pass a signed variable to
6760 regcache_raw_read_signed, instead of an unsigned one.
6761
99f0a309
PA
67622013-03-07 Pedro Alves <palves@redhat.com>
6763
6764 * remote-notif.c (notif_debug): Change type to int.
6765 * remote-notif.h (notif_debug): Likewise.
6766
964b8317
PA
67672013-03-07 Pedro Alves <palves@redhat.com>
6768
6769 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
6770
f0cc8ad4
PA
67712013-03-07 Pedro Alves <palves@redhat.com>
6772
6773 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
6774 * remote.h (hex2bin, bin2hex): ... here.
6775 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
6776
77dec115
EZ
67772013-03-07 Eli Zaretskii <eliz@gnu.org>
6778
6779 * utils.c (initialize_utils): Improve doc strings of "set/show
6780 width", "set/show height", and "set/show pagination".
6781
741d92cf
KS
67822013-03-06 Keith Seitz <keiths@redhat.com>
6783
6784 * ax-gdb.c (gen_printf): Make FORMAT const.
6785 * ax-gdb.h (gen_printf): Likewise.
6786 * ax-general.c (ax_string): Make STR const.
6787 * ax.h (ax_string): Likewise.
6788
7b6c814e
DE
67892013-03-06 Doug Evans <dje@google.com>
6790
6791 * elfread.c (elf_symfile_read): Move debugging printf to more
6792 logical location.
6793
634334ab
PA
67942013-03-06 Pedro Alves <palves@redhat.com>
6795
6796 * python/py-utils.c (target_string_to_unicode): Delete function.
6797 * python/python-internal.h (target_string_to_unicode): Delete
6798 declaration.
6799
e482a1a7
PM
68002013-03-06 Pierre Muller <muller@sourceware.org>
6801
6802 * linespec.c (get_current_search_block): ARI fix, use (void)
6803 for empty parameter list.
6804
4eeaa230
DE
68052013-03-05 Doug Evans <dje@google.com>
6806
6807 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
6808 of old ada_lookup_symbol_list. In !full_search case, don't
6809 search superblocks.
6810 (ada_lookup_symbol_list): Delete arg full_search, all callers
6811 updated. Call ada_lookup_symbol_list_worker.
6812 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
6813 * ada-lang.h (ada_lookup_symbol_list): Update.
6814 * language.h (language_defn): Update comment for
6815 la_iterate_over_symbols.
6816 * linespec.c (iterate_over_file_blocks): New function.
6817 (iterate_over_all_matching_symtabs): Call it.
6818 (lookup_prefix_sym): Ditto.
6819 (get_current_search_block): New function.
6820 (get_search_block): Delete.
6821 (find_label_symbols): Call get_current_search_block.
6822 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
6823 * symtab.c (iterate_over_symbols): Don't search superblocks.
6824
b69b1fb1
YQ
68252013-03-05 Yao Qi <yao@codesourcery.com>
6826
6827 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
6828 parameter VAR's type from "unsigned int" to "int".
6829 * command.h (var_zuinteger_unlimited): Update its comments.
6830 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
6831
3c095f49
CV
68322013-03-05 Corinna Vinschen <vinschen@redhat.de>
6833
6834 * NEWS: Mention new target x86_64-*-cygwin*.
6835
b5b0b0af
CV
68362013-03-05 Corinna Vinschen <vinschen@redhat.de>
6837
6838 * configure.host: Add x86_64-*-cygwin* as host.
6839 * configure.tgt: Add x86_64-*-cygwin* as target.
6840 * config/i386/cygwin64.mh: New file.
6841
f6f99966
JK
68422013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6843
6844 * linespec.c (decode_line_2): Fix duplicate request off by two message.
6845
33f448b1
JK
68462013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 * linespec.c (struct linespec_canonical_name): New.
6849 (struct linespec_state): Change canonical_names type to it.
6850 (add_sal_to_sals): Change variable canonical_name to canonical. Change
6851 xrealloc element size. Initialize the different CANONICAL fields.
6852 (canonical_to_fullform): New.
6853 (filter_results): Use it. Add variables canonical, fullform and
6854 cleanup.
6855 (struct decode_line_2_item, decode_line_2_compare_items): New.
6856 (decode_line_2): Remove variables iter and item_names, add variables
6857 items and items_count. Modify the code for these new variables.
6858
feb14725
CV
68592013-03-04 Corinna Vinschen <vinschen@redhat.com>
6860
6861 * coff-pe-read.c (read_pe_exported_syms): Don't return without
6862 calling do_cleanup.
6863
e83b17ba
HZ
68642013-03-04 Luis Machado <lgustavo@codesourcery.com>
6865
6866 * tracepoint.c (build_traceframe_info): Add code for byte order.
6867
a2d13a0d
KB
68682013-03-02 Kevin Buettner <kevinb@redhat.com>
6869
8dddcae8
KB
6870 * v850-tdep.c: (v850e2_register_name): Revise system register
6871 names to match current V850E2M architecture specifications.
6872 Update register number enum comments too.
f5aee5ee 6873
d79e58d8
JW
68742013-03-01 Jiong Wang <jiwang@tilera.com>
6875 Pedro Alves <palves@redhat.com>
6876
6877 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
6878 to END_ADDR.
6879 (tilegx_skip_prologue): Limit prologue analysis to section end.
6880
c4be5165
JK
68812013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6882
6883 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
6884 use it.
6885
e362b510
PA
68862013-03-01 Pedro Alves <palves@redhat.com>
6887
6888 Use gdb_byte for bytes from the program being debugged.
6889
6890 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
6891 Change type of local 'buf' to gdb_byte.
6892 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
6893 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
6894 * cris-tdep.c (cris_sigcontext_addr)
6895 (cris_sigtramp_frame_unwind_cache): Likewise.
6896 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
6897 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
6898 Likewise.
6899 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
6900 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
6901 (hppa32_hpux_search_dummy_call_sequence)
6902 (hppa_hpux_supply_save_state): Likewise.
6903 * hppa-linux-tdep.c (insns_match_pattern)
6904 (hppa_linux_find_global_pointer): Likewise.
6905 * hppa-tdep.c (hppa_in_function_epilogue_p)
6906 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
6907 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
6908 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
6909 (i386fbsd_collect_uthread): Likewise.
6910 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
6911 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
6912 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
6913 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
6914 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
6915 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
6916 (ia64_libunwind_frame_prev_register)
6917 (ia64_libunwind_sigtramp_frame_this_id)
6918 (ia64_find_global_pointer_from_dynamic_section)
6919 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
6920 (ia64_unwind_pc): Likewise.
6921 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
6922 * m68hc11-tdep.c (m68hc11_push_dummy_call)
6923 (m68hc11_extract_return_value): Likewise.
6924 * m68klinux-nat.c (fetch_register, store_register): Likewise.
6925 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
6926 (mep_get_insn, mep_push_dummy_call): Likewise.
6927 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
6928 (mips_linux_in_dynsym_stub): Likewise.
6929 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
6930 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6931 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
6932 to gdb_byte.
6933 * remote-mips.c (mips_set_register): Likewise.
6934 * remote-sim.c (gdbsim_fetch_register): Likewise.
6935 * score-tdep.c (score7_fetch_inst): Change type of parameter
6936 'memblock' and local 'buf' to gdb_byte.
6937 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
6938 Change type of local 'buf' to gdb_byte. Adjust.
6939 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
6940 to gdb_byte**.
6941 (score7_analyze_prologue): Change type of 'memblock' and
6942 'memblock_ptr' locals to gdb_byte*.
6943 * sh64-tdep.c (sh64_extract_return_value)
6944 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
6945 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
6946 * solib-pa64.c (pa64_solib_create_inferior_hook)
6947 (pa64_open_symbol_file_object): Remove local 'buf'.
6948 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
6949 (som_open_symbol_file_object): Likewise.
6950 * solib-spu.c (spu_current_sos): Likewise.
6951 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6952 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
6953 (spu_store_registers): Likewise.
6954 * target.c (debug_print_register): Likewise.
6955 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
6956 * xstormy16-tdep.c (xstormy16_store_return_value)
6957 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
6958 (xstormy16_find_jmp_table_entry): Likewise.
6959
75cc61ca 69602013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
6961
6962 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
6963 (tilegx_gdbarch_init): Install it.
6964
ddb08e9c
TT
69652013-02-28 Tom Tromey <tromey@redhat.com>
6966
6967 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
6968 PyLong_Check.
6969
62d7fb51
DE
69702013-02-28 Doug Evans <dje@google.com>
6971
6972 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
6973 * python/python.c (gdbpy_find_pc_line): Ditto.
6974
c4a9e8b4
TT
69752013-02-28 Tom Tromey <tromey@redhat.com>
6976
6977 * contrib/excheck.py: New file.
6978 * contrib/exsummary.py: New file.
6979 * contrib/gcc-with-excheck: New file.
6980
7f6a5dde
TT
69812013-02-28 Tom Tromey <tromey@redhat.com>
6982
6983 * python/python.c (gdbpy_print_stack): Call begin_line and
6984 fprintf_filtered inside TRY_CATCH.
6985
9e974e55
TT
69862013-02-28 Tom Tromey <tromey@redhat.com>
6987
6988 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
6989 inside TRY_CATCH.
6990
dd5fa3e7
TT
69912013-02-28 Tom Tromey <tromey@redhat.com>
6992
6993 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
6994 frame_object_to_frame_info inside TRY_CATCH.
6995
86a3263f
TT
69962013-02-28 Tom Tromey <tromey@redhat.com>
6997
6998 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
6999 TRY_CATCH.
7000
81b52a3a
TT
70012013-02-28 Tom Tromey <tromey@redhat.com>
7002
7003 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7004
d50a0ce2
CV
70052013-02-27 Corinna Vinschen <vinschen@redhat.com>
7006
7007 * windows-nat.c: Throughout, fix format strings and casts of
7008 printf-like functions to avoid type related warnings on all
7009 platforms.
7010 (handle_output_debug_string): Fetch context information address
7011 from debug string using string_to_core_addr.
7012
e1f58301
JW
70132013-02-27 Jiong Wang <jiwang@tilera.com>
7014
7015 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7016 * regformats/reg-tilegx32.dat: New.
7017
4fcd89fc
JW
70182013-02-27 Jiong Wang <jiwang@tilera.com>
7019
7020 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7021
748d24e6
JW
70222013-02-27 Jiong Wang <jiwang@tilera.com>
7023
7024 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7025
6c8e944d
YQ
70262013-02-27 Yao Qi <yao@codesourcery.com>
7027 Pedro Alves <palves@redhat.com>
7028
7029 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
7030 pc/tp/range/outside, look for the next trace frame instead of
7031 always starting from frame 0.
6c8e944d 7032
acd7db30
AG
70332013-02-26 Anthony Green <green@moxielogic.com>
7034
7035 * configure.tgt: Add support for moxie-*-rtems* target.
7036
025e6dce
PA
70372013-02-25 Pedro Alves <palves@redhat.com>
7038
7039 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7040 warning text.
7041
ca9c94ef
MR
70422013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7043
7044 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7045 if $fp is used as the virtual frame pointer.
7046
24c274a1
AM
70472013-02-23 Alan Modra <amodra@gmail.com>
7048
7049 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7050 symbol size.
7051 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7052 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7053 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7054 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7055
bfada189
JK
70562013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7057
7058 Code cleanup.
7059 * elfread.c (build_id_bfd_get): Make the return type const.
7060 (build_id_verify): Make the check parameter const.
7061 (build_id_to_debug_filename): Make the build_id parameter and variable
7062 data const.
7063 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7064
c0355132
AM
70652013-02-21 Alan Modra <amodra@gmail.com>
7066
7067 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7068
9f44fbc0
SCR
70692013-02-20 Siva Chandra Reddy <sivachandra@google.com>
7070
7071 Add a new method 'disassemble' to gdb.Architecture class.
7072 * python/py-arch.c (archpy_disassmble): Implementation of the
7073 new method gdb.Architecture.disassemble.
7074 (arch_object_methods): Add entry for the new method.
7075
b74ea3eb
JW
70762013-02-20 Jiong Wang <jiwang@tilera.com>
7077
7078 * MAINTAINERS (Write After Approval): Add myself to the list.
7079
61a672f1
PA
70802013-02-19 Pedro Alves <palves@redhat.com>
7081
7082 Garbage collect 'struct monitor_ops'::load_routine.
7083
7084 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7085 * monitor.c (monitor_load): No longer call
7086 current_monitor->load_routine.
7087 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7088 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7089 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7090
40e397df
PA
70912013-02-19 Pedro Alves <palves@redhat.com>
7092
7093 PR gdb/15161
7094
7095 Harmonize with generic_load.
7096
7097 * monitor.c: Include "readline/readline.h".
7098 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7099 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7100 long/strtol for the 'load_offset' local. Error out if no argument
7101 is given or if too many arguments are given. Tilde expand the
7102 passed in file name.
7103
f698ca8e
KT
71042013-02-19 Kai Tietz <ktietz@redhat.com>
7105
7106 PR gdb/15161
7107 * symfile.c (load_section_data): Change type of load_offset
7108 to CORE_ADDR.
7109 (generic_load): User strtoulst instead of strtoul for conversion
7110 of load_offset.
7111
3361b059
WL
71122013-02-19 Jiong Wang <jiwang@tilera.com>
7113
7114 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7115 for return address, "lr" register, saved on stack.
7116 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7117 after we invoke tilegx_analyze_prologue.
7118
3e9d5130
WL
71192013-02-19 Jiong Wang <jiwang@tilera.com>
7120
bb1bcd86
WL
7121 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7122
3361b059 71232013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 7124
b74ea3eb 7125 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 7126
4aaf2503
WL
71272013-02-19 Jiong Wang <jiwang@tilera.com>
7128
b74ea3eb 7129 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
7130 (tilegx_write_pc): New function.
7131 (tilegx_cannot_reference_register): Return zero if REGNO
7132 is TILEGX_FAULTNUM_REGNUM.
7133 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7134 (tilegx_register_name): Add handling of "faultnum" register.
7135 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7136 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7137 handling of TILEGX_FAULTNUM_REGNUM.
7138 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7139
bc23a956
WL
71402013-02-19 Jiong Wang <jiwang@tilera.com>
7141
7142 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 7143 should be aligned to 64bit.
bc23a956 7144
42f45f1a
KT
71452013-02-19 Kai Tietz <ktietz@redhat.com>
7146
7147 * windows-nat.c (windows_xfer_memory): Fix debug-output
7148 for LLP64.
7149
6ce4c112
LL
71502013-02-19 Lei Liu <lei.liu2@windriver.com>
7151
7152 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7153 Don't check DSP register number if HAVE_DSP is not set.
7154
30e8ee25
AM
71552013-02-19 Alan Modra <amodra@gmail.com>
7156
7157 * elfread.c (struct build_id): Delete. Use struct elf_build_id
7158 throughout file instead.
7159 (build_id_bfd_get): Update to use new elf_tdata build_id field.
7160 Don't xmalloc return value.
7161 (build_id_verify): Similarly. Don't xfree.
7162 (build_id_to_debug_filename): Update.
7163 (find_separate_debug_file_by_buildid): Update, don't xfree.
7164
4c9ad8c2
TT
71652013-02-18 Tom Tromey <tromey@redhat.com>
7166
7167 PR gdb/15102:
7168 * dwarf2read.c (read_subrange_type): Use result of
7169 'check_typedef'.
7170
983dc440
YQ
71712013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
7172
7173 * frame.c: Remove one extra white space after #include
7174 directive.
7175
7fb2b84a
JK
71762013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7179
edceb2a9
JK
71802013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7181
7182 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7183 and dir commands into an if block.
7184
e81b7af8
TT
71852013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7186
7187 * python/py-breakpoint (struct pybp_code): Use int instead of
7188 enum type_code.
7189
f5911ea1
HAQ
71902013-02-15 Pedro Alves <pedro@codesourcery.com>
7191 Hafiz Abid Qadeer <abidh@codesourcery.com>
7192
7193 * NEWS: Mention new field "trace-file".
7194 * tracepoint.c (trace_status_mi): Output "trace-file" field.
7195 (tfile_open): Record the trace file's filename in the trace
7196 status.
7197 (tfile_files_info): Mention the name of the trace file.
7198 Check the "filename" field explicitely.
7199 (trace_status_command): Explicitely check "filename" field.
7200 (trace_find_command): Ditto.
7201 (trace_find_pc_command): Ditto.
7202 (trace_find_tracepoint_command): Ditto.
7203 (trace_find_line_command): Ditto.
7204 (trace_find_range_command): Ditto.
7205 (trace_find_outside_command): Ditto.
7206 * tracepoint.h (struct trace_status) <from_file>: Rename it
7207 to "filename" and make it hold the trace file's filename
7208 instead of a boolean.
7209 * remote.c (remote_get_trace_status): Initialize "filename"
7210 field with NULL instead of 0.
7211
796cb314
YQ
72122013-02-15 Yao Qi <yao@codesourcery.com>
7213
7214 * remote.c: Fix a typo.
7215
42e79b1d
PM
72162013-02-14 Pierre Muller <muller@sourceware.org>
7217
7218 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7219
baea0dae
PA
72202013-02-14 Pedro Alves <palves@redhat.com>
7221
7222 * utils.c (savestring): Don't #undef it. Move function to
7223 common/common-utils.c.
7224 * common/common-utils.c: Include gdb_string.h.
7225 (savestring): Move here from utils.c.
7226 * common/common-utils.h (savestring): Declare.
7227
57c3b6ed
PA
72282013-02-14 Pedro Alves <palves@redhat.com>
7229
7230 * utils.c (savestring): Rename parameter 'size' to 'len'.
7231
d6c44983
YZ
72322013-02-14 Pedro Alves <palves@redhat.com>
7233 Yufeng Zhang <yufeng.zhang@arm.com>
7234
7235 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
7236 (aarch64_inferior_data, struct aarch64_inferior_data):
7237 Delete.
7238 (struct aarch64_process_info): New.
7239 (aarch64_process_list): New global.
7240 (aarch64_find_process_pid, aarch64_add_process)
7241 (aarch64_process_info_get): New functions.
7242 (aarch64_inferior_data_get): Delete.
7243 (aarch64_process_info_get): New function.
7244 (aarch64_forget_process): New function.
7245 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
7246 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
7247 aarch64_get_debug_reg_state.
7248 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
7249 instead of linux_nat_iterate_watchpoint_lwps.
7250 (aarch64_linux_new_fork): New function.
7251 (aarch64_linux_child_post_startup_inferior): Use
7252 aarch64_forget_process instead of aarch64_init_debug_reg_state.
7253 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
7254 (aarch64_linux_remove_hw_breakpoint)
7255 (aarch64_handle_aligned_watchpoint)
7256 (aarch64_handle_unaligned_watchpoint)
7257 (aarch64_linux_insert_watchpoint)
7258 (aarch64_linux_remove_watchpoint)
7259 (aarch64_linux_stopped_data_address): Adjust to pass the current
7260 process id to aarch64_debug_reg_state.
7261 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
7262 linux_nat_new_fork hook, and aarch64_forget_process as
7263 linux_nat_forget_process hook; remove the call to
7264 register_inferior_data_with_cleanup.
7265
4819b3f8
PA
72662013-02-14 Pedro Alves <palves@redhat.com>
7267
7268 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
7269 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
7270 lval_memory.
7271
1773c82c
HAQ
72722013-02-14 Pedro Alves <pedro@codesourcery.com>
7273 Hafiz Abid Qadeer <abidh@codesourcery.com>
7274
7275 * tracepoint.h (validate_trace_state_variable_name): Declare.
7276 * tracepoint.c (validate_trace_state_variable_name): New.
7277 (trace_variable_command): Parse the trace state variable's name
7278 without using parse_expression. Do several validations.
7279 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
7280 trace state variable's name with parse_expression. Validate it.
7281
53778a97
YQ
72822013-02-14 Yao Qi <yao@codesourcery.com>
7283
7284 * infcmd.c (breakpoint_proceeded): Remove it.
7285
7b3ae3a6
YQ
72862013-02-14 Yao Qi <yao@codesourcery.com>
7287
7288 * tracepoint.c (end_actions_pseudocommand): Make it static.
7289 (while_stepping_pseudocommand): Likewise.
7290 * tracepoint.h (end_actions_pseudocommand): Remove the
7291 declaration.
7292 (while_stepping_pseudocommand): Likewise.
7293
64580925
YQ
72942013-02-14 Yao Qi <yao@codesourcery.com>
7295
7296 * cli/cli-decode.c (help_cmd): Remove the declaration of
7297 "cmdlist".
7298 (help_all): Likewise.
7299
26cb8b7c
PA
73002013-02-13 Pedro Alves <palves@redhat.com>
7301
7302 * amd64-linux-nat.c (update_debug_registers_callback):
7303 Update comment.
7304 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7305 iterate_over_lwps.
7306 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
7307 i386_debug_reg_state.
7308 (amd64_linux_new_fork): New function.
7309 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
7310 linux_nat_new_fork hook, and i386_forget_process as
7311 linux_nat_forget_process hook.
7312 * i386-linux-nat.c (update_debug_registers_callback):
7313 Update comment.
a8256ea1 7314 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
7315 iterate_over_lwps.
7316 (i386_linux_prepare_to_resume): Pass the lwp's pid to
7317 i386_debug_reg_state.
7318 (i386_linux_new_fork): New function.
7319 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
7320 linux_nat_new_fork hook, and i386_forget_process as
7321 linux_nat_forget_process hook.
7322 * i386-nat.c (i386_init_dregs): Delete.
7323 (i386_inferior_data, struct i386_inferior_data):
7324 Delete.
7325 (struct i386_process_info): New.
7326 (i386_process_list): New global.
7327 (i386_find_process_pid, i386_add_process, i386_process_info_get):
7328 New functions.
7329 (i386_inferior_data_get): Delete.
7330 (i386_process_info_get): New function.
7331 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
7332 (i386_forget_process): New function.
7333 (i386_cleanup_dregs): Rewrite.
7334 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
7335 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7336 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7337 (i386_remove_hw_breakpoint): Adjust to pass the current process id
7338 to i386_debug_reg_state.
7339 (i386_use_watchpoints): Don't register inferior data.
7340 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
7341 adjust comment.
7342 (i386_forget_process): Declare.
7343 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
7344 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
7345 New static globals.
7346 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
7347 (add_initial_lwp): New, factored out from ...
7348 (add_lwp): ... this. Don't check the number of lwps before
7349 calling linux_nat_new_thread.
7350 (linux_nat_iterate_watchpoint_lwps): Delete.
7351 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7352 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7353 forks and vforks.
7354 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7355 initial lwp.
7356 (linux_nat_kill, linux_nat_mourn_inferior): Call
7357 linux_nat_forget_process.
7358 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7359 (linux_nat_forget_process): New functions.
7360 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7361 type.
7362 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7363 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7364 types.
7365 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7366 (linux_nat_forget_process): New declarations.
7367
7368 * amd64fbsd-nat.c (super_mourn_inferior): New global.
7369 (amd64fbsd_mourn_inferior): New function.
7370 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7371 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7372
5befea72
MS
73732013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7374
55015247
YQ
7375 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7376 Adding _().
5befea72 7377
1d3ffd6b
MS
73782013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7379
7380 * aarch64-linux-nat.c (debug_reg_change_callback)
7381 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7382 %s and phex().
7383
6eb04473
MS
73842013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7385
7386 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7387 with LONGEST.
7388
a016fc87
HAQ
73892013-02-13 Pedro Alves <palves@redhat.com>
7390 Hafiz Abid Qadeer <abidh@codesourcery.com>
7391
7392 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7393
e234dfaf
TT
73942013-02-12 Tom Tromey <tromey@redhat.com>
7395
7396 PR symtab/11464:
7397 * c-exp.y (lex_one_token): Initialize other fields of yylval on
7398 NAME return.
7399 (classify_inner_name): Remove 'first_name' argument, add
7400 'context'. Remove unused variable.
7401 (yylex): Explicitly maintain the context type. Exit loop earlier
7402 if NAME result is seen.
7403
0b1afbb3
PA
74042013-02-12 Pedro Alves <palves@redhat.com>
7405
7406 * amd64-darwin-tdep.c: Add (C) after Copyright.
7407 * cli/cli-cmds.h: Ditto.
7408 * cli/cli-decode.c: Ditto.
7409 * cli/cli-decode.h: Ditto.
7410 * cli/cli-dump.c: Ditto.
7411 * cli/cli-dump.h: Ditto.
7412 * cli/cli-interp.c: Ditto.
7413 * cli/cli-logging.c: Ditto.
7414 * cli/cli-script.c: Ditto.
7415 * cli/cli-script.h: Ditto.
7416 * cli/cli-setshow.c: Ditto.
7417 * cli/cli-setshow.h: Ditto.
7418 * cli/cli-utils.c: Ditto.
7419 * cli/cli-utils.h: Ditto.
7420 * config/alpha/nm-osf3.h: Ditto.
7421 * config/djgpp/djconfig.sh: Ditto.
7422 * config/i386/nm-fbsd.h: Ditto.
7423 * config/i386/nm-i386gnu.h: Ditto.
7424 * config/nm-linux.h: Ditto.
7425 * config/nm-nto.h: Ditto.
7426 * config/rs6000/nm-rs6000.h: Ditto.
7427 * config/sparc/nm-sol2.h: Ditto.
7428 * darwin-nat-info.c: Ditto.
7429 * dfp.c: Ditto.
7430 * dfp.h: Ditto.
7431 * gdb-demangle.h: Ditto.
7432 * i386-darwin-nat.c: Ditto.
7433 * i386-darwin-tdep.c: Ditto.
7434 * linux-fork.h: Ditto.
7435 * m32c-tdep.c: Ditto.
7436 * microblaze-linux-tdep.c: Ditto.
7437 * microblaze-rom.c: Ditto.
7438 * microblaze-tdep.c: Ditto.
7439 * microblaze-tdep.h: Ditto.
7440 * mips-linux-tdep.h: Ditto.
7441 * ppc-ravenscar-thread.c: Ditto.
7442 * ppc-ravenscar-thread.h: Ditto.
7443 * prologue-value.c: Ditto.
7444 * prologue-value.h: Ditto.
7445 * ravenscar-thread.c: Ditto.
7446 * ravenscar-thread.h: Ditto.
7447 * sparc-ravenscar-thread.c: Ditto.
7448 * sparc-ravenscar-thread.h: Ditto.
7449 * tilegx-linux-tdep.c: Ditto.
7450 * unwind_stop_reasons.def: Ditto.
7451 * windows-nat.h: Ditto.
7452 * xtensa-linux-tdep.c: Ditto.
7453 * xtensa-xtregs.c: Ditto.
7454 * regformats/regdat.sh: Ditto.
7455 * regformats/regdef.h: Ditto.
7456
6c01dd94
PA
74572013-02-12 Pedro Alves <palves@redhat.com>
7458
7459 * break-catch-sig.c: Update copyright years.
7460
b65a2bd9
SCR
74612013-02-11 Siva Chandra Reddy <sivachandra@google.com>
7462
7463 Add support for a destructor for ui_out data and use it to
7464 provide a ui_out destructor.
7465 * ui-out.h: Declare the new ui_out destructor.
7466 (ui_out_impl): Add a field for data destructor in ui_out_impl.
7467 * ui-out.c (default_data_destroy): Add a default data destructor
7468 which does nothing.
7469 (default_ui_out_impl): Set the new data_destroy field to
7470 default_data_destroy
7471 (uo_data_destroy): Local function which invokes the data
7472 destructor if present.
7473 (clear_table): Local function which clears the table data of a
7474 ui_out object.
7475 (ui_out_destroy): Public function which frees a ui_out object.
7476 (ui_out_table_end): Use the new clear_table function.
7477 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7478 NULL.
7479 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7480 to NULL.
7481
c2792f5a
DE
74822013-02-11 Doug Evans <dje@google.com>
7483
7484 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7485 (printf_decfloat): New function. Broken out from ui_printf.
7486 Remove unnecessary code to shift the entire format string down.
7487 (printf_pointer): New function.
7488 (ui_printf): Code to print C strings, wide C strings, decfloats,
7489 and pointers moved to separate functions.
7490
d9e98382
SDJ
74912013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
7492
7493 * valops.c (value_assign): Handling bitfield offset in
7494 `lval_internalvar_component' case.
7495
4ff3ce77
DE
74962013-02-08 Doug Evans <dje@google.com>
7497
7498 * common/format.c (parse_format_string): Fix whitespace.
7499
901900c4
MGD
75002013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7501
7502 * stack.c (return_command): Work around uninitialized variable
7503 warning.
7504
b5dbc8d4
YZ
75052013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
7506
7507 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7508 number of the registers from 36 to 34.
7509
51d66578
MS
75102013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7511
7512 * NEWS: Mention new AArch64 native and target support.
7513
176b1c95
MS
75142013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7515
7516 * MAINTAINERS (Write After Approval): Add myself.
7517
9d19df75
MS
75182013-02-08 Jim MacArthur <jim.macarthur@arm.com>
7519 Marcus Shawcroft <marcus.shawcroft@arm.com>
7520 Nigel Stephens <nigel.stephens@arm.com>
7521 Yufeng Zhang <yufeng.zhang@arm.com>
7522
7523 * aarch64-linux-nat.c: New file.
7524 * config/aarch64/linux.mh: New file.
7525 * configure.host: Add AArch64.
7526 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
7527
7e1e0340
DE
75282013-02-07 Doug Evans <dje@google.com>
7529
7530 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
7531 disassemble command.
7532
45e25a36
MS
75332013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7534
7535 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
7536 set_gdbarch_fetch_tls_load_module_address.
7537
bbfdfe1c
DM
75382013-02-06 David S. Miller <davem@davemloft.net>
7539
7540 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
7541 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7542 * value.c (struct_return_convention): New function.
7543 (using_struct_return): Implement in terms of struct_return_convention.
7544 * value.h (struct_return_convention): Declare.
7545 * stack.c (return_command): Allow successful overriding of the return
7546 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7547
bc9abe4a
TT
75482013-02-06 Tom Tromey <tromey@redhat.com>
7549
7550 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
7551 outside of TRY_CATCH.
7552
134a2066
YQ
75532013-02-06 Yao Qi <yao@codesourcery.com>
7554
7555 * mi/mi-interp.c: Include "tracepoint.h".
7556 (mi_tsv_modified): Declare.
7557 (mi_tsv_created, mi_tsv_deleted): Update declaration.
7558 (mi_interpreter_init): Call observer_attach_tsv_modified.
7559 (mi_tsv_modified): New.
7560 (mi_tsv_created, mi_tsv_deleted): Update.
7561 * tracepoint.c (trace_variable_command): Call
7562 observer_notify_tsv_modified if the initial value of tsv is
7563 changed.
7564 (delete_trace_state_variable): Call
7565 observer_notify_tsv_deleted earlier.
7566 (trace_variable_command): Caller update.
7567 (create_tsv_from_upload): Likewise.
7568 * observer.sh: Declare "struct trace_state_variable".
7569
7570 * NEWS: Mention the new MI notification "=tsv-modified".
7571
59be2b6a
DE
75722013-02-05 Doug Evans <dje@google.com>
7573
7574 * completer.c (location_completer): Fix typo in comment.
7575
d30113d4
JK
75762013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 * breakpoint.c (add_location_to_breakpoint): Insert the location with
7579 ADDRESS sorted.
7580
14ac654f
MS
75812013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7582
7583 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
7584 Refactor if statement to avoid trailing || operator.
7585
543bf33d
AT
75862013-02-05 Andreas Tobler <andreast@fgznet.ch>
7587
7588 * NEWS: Add PowerPC FreeBSD as a new native configuration.
7589
dc18f110
AT
75902013-02-04 Andreas Tobler <andreast@fgznet.ch>
7591
7592 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
7593 * configure.host: Add powerpc*-*-freebsd* target.
7594 * configure.tgt: Add target info for powerpc*-*-freebsd*.
7595 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
7596 * config/powerpc/fbsd.mh: New file.
7597
b3ac9c77
SDJ
75982013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
7599 Denys Vlasenko <dvlasenk@redhat.com>
7600 Pedro Alves <palves@redhat.com>
7601
7602 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
7603 (struct elf_internal_linux_prpsinfo): Forward declare.
7604 * gdbarch.h, gdbarch.c: Regenerate.
7605 * linux-tdep.c: Include `cli/cli-utils.h'.
7606 (linux_fill_prpsinfo): New function.
7607 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
7608 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
7609 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
7610 depending on gdbarch pointer bitness.
7611 * ppc-linux-tdep.c: Include elf-bfd.h.
7612 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
7613 on 32-bit.
7614
176eb98c
MS
76152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7616 Marcus Shawcroft <marcus.shawcroft@arm.com>
7617 Nigel Stephens <nigel.stephens@arm.com>
7618 Yufeng Zhang <yufeng.zhang@arm.com>
7619
7620 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
7621
cf0dbd6f
MS
76222013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7623 Marcus Shawcroft <marcus.shawcroft@arm.com>
7624 Nigel Stephens <nigel.stephens@arm.com>
7625 Yufeng Zhang <yufeng.zhang@arm.com>
7626
7627 * aarch64-newlib-tdep.c: New file.
7628 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
7629 aarch64*-*-elf.
7630 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
7631 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
7632 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
7633 * osabi.c (gdb_osabi_names): Add "Newlib".
7634
1ae3db19
MS
76352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7636 Marcus Shawcroft <marcus.shawcroft@arm.com>
7637 Nigel Stephens <nigel.stephens@arm.com>
7638 Yufeng Zhang <yufeng.zhang@arm.com>
7639
7640 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
7641 (ALLDEPFILES): Add aarch64-linux-tdep.c.
7642 * aarch64-linux-tdep.c: New file.
7643 * aarch64-linux-tdep.h: New file.
7644 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
7645 * configure.tgt: Add aarch64-none-linux-gnu.
7646
07b287a0
MS
76472013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7648 Marcus Shawcroft <marcus.shawcroft@arm.com>
7649 Nigel Stephens <nigel.stephens@arm.com>
7650 Yufeng Zhang <yufeng.zhang@arm.com>
7651
7652 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
7653 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
7654 (ALLDEPFILES): Add aarch64-tdep.c.
7655 * aarch64-tdep.c: New file.
7656 * aarch64-tdep.h: New file.
7657 * configure.tgt: Add AArch64.
7658 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
7659 (aarch64-expedite): New definition.
7660 * features/aarch64-core.xml: New file.
7661 * features/aarch64-fpu.xml: New file.
7662 * features/aarch64-without-fpu.c: New file (generated).
7663 * features/aarch64-without-fpu.xml: New file.
7664 * features/aarch64.c: New file (generated).
7665 * features/aarch64.xml: New file.
7666 * regformats/aarch64-without-fpu.dat: New file (generated).
7667 * regformats/aarch64.dat: New file (generated).
7668
0f1b18ab
JK
76692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7670
7671 * contrib/expect-read1.c: New file.
7672 * contrib/expect-read1.sh: New file.
7673
233d95b5
JK
76742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7675
7676 * dwarf2read.c (file_file_name): New function with code from
7677 file_full_name.
7678 (file_full_name): Move most of the code to file_file_name.
7679 (macro_start_file): Rename variable full_name to file_name and use
7680 file_file_name for it. Add comp_dir parameter to new_macro_table.
7681 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
7682 macro_source_file->filename access by macro_source_fullname call.
7683 * macroscope.c (_initialize_macroscope): Update the new_macro_table
7684 caller.
7685 * macrotab.c (struct macro_table): New field comp_dir.
7686 (macro_include): New variables link_fullname and source_fullname.
7687 Replace any macro_source_file->filename access by macro_source_fullname
7688 call.
7689 (macro_lookup_inclusion): Remove the partial filenames checking code.
7690 (check_for_redefinition): New variables source_fullname and
7691 found_key_fullname. Replace any macro_source_file->filename access by
7692 macro_source_fullname call.
7693 (macro_undef): New variables source_fullname and key_fullname. Replace
7694 any macro_source_file->filename access by macro_source_fullname call.
7695 (macro_lookup_definition): New variables retval and source_fullname.
7696 Replace any macro_source_file->filename access by macro_source_fullname
7697 call.
7698 (foreach_macro): New variable key_fullname. Replace any
7699 macro_source_file->filename access by macro_source_fullname call.
7700 (foreach_macro_in_scope): New variable datum_fullname. Replace any
7701 macro_source_file->filename access by macro_source_fullname call.
7702 (new_macro_table): Add parameter comp_dir. Initialize T with it.
7703 (macro_source_fullname): New function.
7704 * macrotab.h (struct macro_source_file): Extent the filename field
7705 comment.
7706 (new_macro_table): New parameter comp_dir, add a comment for it.
7707 (macro_source_fullname): new declaration.
7708
da235a7c
JK
77092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
7712 this_real_name to outer block. Use it also for
7713 compare_filenames_for_search.
7714 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
7715 with dw2_get_real_path for file_matcher, considering also
7716 BASENAMES_MAY_DIFFER.
7717 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
7718
fbd9ab74
JK
77192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
7722 to the file_matcher parameter. Pass 0 to it.
7723 (dwarf2_create_include_psymtab): Copy also DIRNAME.
7724 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
7725 NULL psymtab_to_fullname result.
7726 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
7727 an expected filename instead.
7728 (expand_symtabs_matching_via_partial): Add basenames parameter to the
7729 file_matcher parameter. Call also psymtab_to_fullname, after newly
7730 considering BASENAMES_MAY_DIFFER.
7731 * source.c (rewrite_source_path): Remove static.
7732 * source.h (rewrite_source_path): New declaration.
7733 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
7734 the expand_symtabs_matching field. Comment it.
7735 * symtab.c (file_matches): New function comment. Add parameter
7736 basenames, implement it.
7737 (search_symbols_file_matches): Add basenames parameter. Update the
7738 file_matches caller.
7739 (search_symbols): Match FILES also against symtab_to_fullname.
7740 Optimize it for BASENAMES_MAY_DIFFER.
7741
56d397a3
JK
77422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7743
7744 * source.c (print_source_lines_base): Print for TUI also "fullname".
7745 * tui/tui-data.c (init_content_element): Change tui_locator_element
7746 field to full_name.
7747 * tui/tui-data.h (struct tui_locator_element): Likewise.
7748 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
7749 tui_update_locator_filename calls to tui_update_locator_fullname.
7750 Replace symtab->filename refererence by symtab_to_fullname call.
7751 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
7752 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
7753 field to full_name. Replace symtab->filename refererence by
7754 symtab_to_fullname call.
7755 (tui_show_symtab_source): Rename parameter to fullname. Change
7756 tui_locator_element field to full_name.
7757 * tui/tui-stack.c: Include source.h.
7758 (tui_set_locator_filename): Rename the declaration to ...
7759 (tui_set_locator_fullname): ... here. Rename its parameter to
7760 fullname, updates its comment.
7761 (tui_set_locator_info): Rename its parameter to fullname.
7762 (tui_set_locator_filename): Rename the definition to ...
7763 (tui_set_locator_fullname): ... here. Rename its parameter to
7764 fullname, updates its comment. Change tui_locator_element field to
7765 full_name.
7766 (tui_set_locator_info): Rename its parameter to fullname.
7767 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
7768 (tui_update_locator_filename): Rename to ...
7769 (tui_update_locator_fullname): ... here. Rename callee to
7770 tui_set_locator_fullname.
7771 (tui_show_frame_info): Replace symtab->filename refererence by
7772 symtab_to_fullname call.
7773 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
7774 (tui_update_locator_fullname): ... here.
7775 * tui/tui-winsource.c (tui_display_main): Rename the callee to
7776 tui_update_locator_fullname. Replace symtab->filename refererence by
7777 symtab_to_fullname call.
7778 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
7779 Rename the callee to tui_update_locator_fullname.
7780 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
7781
05cba821
JK
77822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7783
7784 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
7785 by symtab_to_filename_for_display calls.
7786 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
7787 (clear_command): New variable sal_fullname, initialize it. Replace
7788 compare_filenames_for_search by filename_cmp with sal_fullname.
7789 (say_where, update_static_tracepoint): Replace symtab->filename
7790 refererences by symtab_to_filename_for_display calls.
7791 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
7792 Likewise.
7793 * dwarf2read.c: Include source.h.
7794 (fixup_go_packaging): Replace symtab->filename refererences by
7795 symtab_to_filename_for_display calls.
7796 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
7797 Replace symtab->filename refererences by symtab_to_filename_for_display
7798 calls.
7799 (create_sals_line_offset, convert_linespec_to_sals): New variable
7800 fullname, initialize it, replace symtab->filename reference by the
7801 variable.
7802 * linux-fork.c: Include source.h.
7803 (info_checkpoints_command): Replace symtab->filename refererences by
7804 symtab_to_filename_for_display calls.
7805 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
7806 by symtab_to_filename_for_display calls.
7807 * mdebugread.c: Include source.h.
7808 (psymtab_to_symtab_1): Replace symtab->filename refererences by
7809 symtab_to_filename_for_display calls.
7810 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7811 (mi_cmd_file_list_exec_source_files): Likewise.
7812 * printcmd.c: Include source.h.
7813 (build_address_symbolic): Replace symtab->filename refererences by
7814 symtab_to_filename_for_display calls.
7815 * psymtab.c (partial_map_symtabs_matching_filename)
7816 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
7817 with psymtab_to_fullname.
7818 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
7819 by symtab_to_filename_for_display calls.
7820 (stpy_get_filename): New variable filename, initialize it, use instead
7821 of symtab->filename refererences.
7822 (salpy_str): Make variable filename const char *. Replace
7823 symtab->filename refererences by symtab_to_filename_for_display calls.
7824 * skip.c: Include source.h and filenames.h.
7825 (skip_file_command): Remove const from the symtab variable. Replace
7826 symtab->filename refererences by symtab_to_fullname call.
7827 (function_name_is_marked_for_skip): New variables searched_for_fullname
7828 and fullname. Use them to search also with symtab's fullname.
7829 * source.c (find_source_lines): Replace symtab->filename refererences
7830 by symtab_to_filename_for_display calls.
7831 (print_source_lines_base): New variable filename, use it instead of
7832 symtab->filename. Replace symtab->filename refererences by
7833 symtab_to_filename_for_display calls.
7834 (line_info, forward_search_command): Replace symtab->filename
7835 refererences by symtab_to_filename_for_display calls.
7836 (reverse_search_command): Replace symtab->filename refererences by
7837 symtab_to_filename_for_display calls. New variable filename for it.
7838 * stack.c (frame_info): Likewise.
7839 * symmisc.c: Include source.h.
7840 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
7841 (maintenance_info_symtabs): Replace symtab->filename refererences by
7842 symtab_to_filename_for_display calls.
7843 * symtab.c (iterate_over_some_symtabs): Call
7844 compare_filenames_for_search also with symtab_to_fullname.
7845 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
7846 symtab->filename refererences by symtab_to_filename_for_display calls.
7847 (find_line_symtab): Replace symtab->filename refererences by
7848 symtab_to_filename_for_display calls.
7849 (file_matches): Replace filename_cmp by compare_filenames_for_search.
7850 (print_symbol_info): Make the last parameter const char *. New
7851 variable s_filename. Use it in the function.
7852 (symtab_symbol_info): Make the last_filename variable const char *.
7853 Replace symtab->filename refererences by symtab_to_filename_for_display
7854 calls.
7855 (rbreak_command): New variable fullname. Use it. Replace
7856 symtab->filename refererence by symtab_to_filename_for_display call.
7857 * tracepoint.c (set_traceframe_context, trace_find_line_command)
7858 (print_one_static_tracepoint_marker): Replace symtab->filename
7859 refererences by symtab_to_filename_for_display calls.
7860 * tui/tui-source.c (tui_set_source_content): New variables filename and
7861 s_filename. Replace symtab->filename refererences by this variable.
7862 Replace other symtab->filename refererences by
7863 symtab_to_filename_for_display calls.
7864
1b56eb55
JK
78652013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
7866 Jan Kratochvil <jan.kratochvil@redhat.com>
7867
7868 Add a new variable that controls a way in which filenames are
7869 displayed.
7870 * NEWS (set filename-display): New entry.
7871 * source.c (filename_display_basename, filename_display_relative)
7872 (filename_display_absolute, filename_display_kind_names)
7873 (filename_display_string, show_filename_display_string)
7874 (symtab_to_filename_for_display): New.
7875 (_initialize_source): Added initialization of 'filename-display'
7876 variable.
7877 * source.h (symtab_to_filename_for_display): Added declaration.
7878 * stack.c (print_frame): Added new variable and calling of a new
7879 function and condition with this variable. Changed third argument of
7880 calling of a function.
7881
aa079c93
JK
78822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7883
7884 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
7885 Rename field reference filename to fullname.
7886 * tui/tui-data.h (struct tui_source_info): Rename field filename to
7887 fullname. New comment for it.
7888 * tui/tui-source.c (tui_set_source_content): Rename field reference
7889 filename to fullname. Initialize field by symtab_to_fullname now.
7890 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
7891 reference filename to fullname. Use symtab_to_fullname during
7892 comparison.
7893
652a8996
JK
78942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7895
7896 Code cleanup.
7897 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
7898 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
7899 filename to fullname. Rename variable this_name to this_fullname.
7900 Lowercase FILENAME_CMP call.
7901 (dw2_find_symbol_file): New comment for the returned string.
7902 (dwarf2_gdb_index_functions): Rename the function to
7903 dw2_expand_symtabs_with_fullname.
7904 * psymtab.c (read_psymtabs_with_filename): Rename to ...
7905 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
7906 fullname.
7907 (psym_functions): Rename the function to read_psymtabs_with_fullname.
7908 * symfile.h (struct quick_symbol_functions): Rename field
7909 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
7910 parameter filename to fullname. Document returned string meaning for
7911 find_symbol_file.
7912 * symtab.c (find_line_symtab): Rename the called function to
7913 expand_symtabs_with_fullname.
7914
af529f8f
JK
79152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7916
7917 Code cleanup.
7918 * breakpoint.c (clear_command): Remove variable is_abs, unify the
7919 call of filename_cmp with compare_filenames_for_search.
7920 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
7921 is_abs, unify the call of FILENAME_CMP with
7922 compare_filenames_for_search. New gdb_asserts for real_path and name.
7923 Unify the call of compare_filenames_for_search with FILENAME_CMP.
7924 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7925 * symfile.h (struct quick_symbol_functions): Extend the comment for
7926 map_symtabs_matching_filename.
7927 * symtab.c (compare_filenames_for_search): Remove the function comment
7928 relative path requirement. Handle absolute filenames, with a comment.
7929 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
7930 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
7931 real_path and name. Unify the call of compare_filenames_for_search
7932 with FILENAME_CMP.
7933 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
7934
2f202fde
JK
79352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7936
7937 Code cleanup.
7938 * breakpoint.c (print_breakpoint_location): Replace bp_location field
7939 source_file references by symtab field references. Remove variables
7940 sal and fullname.
7941 (momentary_breakpoint_from_master, add_location_to_breakpoint):
7942 (clear_command, say_where): Replace bp_location field source_file
7943 references by symtab field references.
7944 (bp_location_dtor): Remove the source_file reference.
7945 (update_static_tracepoint): Replace bp_location field source_file
7946 references by symtab field references.
7947 (breakpoint_free_objfile): New function.
7948 * breakpoint.h (struct bp_location): Extend the comment for line_number.
7949 Replace the field source_file by field symtab, extend its comment.
7950 (breakpoint_free_objfile): New declaration.
7951 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
7952 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
7953 field source_file references by symtab field references.
7954
f5b95b50
JK
79552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 Replace xfullpath calls by gdb_realpath calls.
7958 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
7959 function comment.
7960 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
7961 Remove it from the iterate_over_some_symtabs call.
7962 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
7963 Remove it from the dw2_map_expand_apply calls, remove a block handling
7964 it.
7965 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
7966 Remove it from the iterate_over_some_symtabs call.
7967 (partial_map_symtabs_matching_filename): Remove parameter full_path.
7968 Remove it from the partial_map_expand_apply calls, remove a block
7969 handling it. Drop gdb_realpath call and cleanups from the real_path
7970 handling.
7971 * source.c (openp): Drop the comment part about xfullpath. Replace
7972 xfullpath calls by gdb_realpath calls.
7973 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
7974 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
7975 from method map_symtabs_matching_filename and its comment.
7976 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
7977 gdb_realpath call.
7978 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
7979 remove it also from the function comment, remove a block handling it.
7980 Drop gdb_realpath call and cleanups from the real_path handling.
7981 (iterate_over_symtabs): Drop variable full_path and its use.
7982 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
7983 * utils.c (xfullpath): Remove.
7984 * utils.h (xfullpath): Remove.
7985
d78489bf
AT
79862013-02-01 Andreas Tobler <andreast@fgznet.ch>
7987
7988 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
7989 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
7990 (ALLDEPFILES): Add ppc64-tdep.c.
7991 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
7992 ppc64-tdep.o to gdb_target_obs.
7993 * ppc64-tdep.h: New file.
7994 * ppc64-tdep.c: New file.
7995 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
7996 ppc-linux-tdep.c to here.
7997 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
7998 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
7999 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8000 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8001 from ppc-linux-tdep.c to here.
8002 (ppc64_convert_from_func_ptr_addr): Rename from
8003 ppc64_linux_convert_from_func_ptr_addr to
8004 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8005 here.
8006 * rs6000-tdep.c:
8007 (read_insn): Move from ppc-linux-tdep.c to here.
8008 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8009 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8010 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8011 Removed above functions.
8012 (ppc_linux_init_abi): Adjust.
8013
8db60374
AR
80142013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8015
8016 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8017
f2e5f4ce
AR
80182013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8019
8020 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8021
c1f7d745
PA
80222013-02-01 Pedro Alves <palves@redhat.com>
8023
8024 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8025 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8026
8a92335b
JK
80272013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8028
8029 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8030 files with no separate debug info.
8031 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8032 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8033 only for files with no separate debug info.
8034
8eacb197
TT
80352013-01-31 Tom Tromey <tromey@redhat.com>
8036
8037 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8038 change type.
8039 (struct jit_program_space_data): Rename from jit_inferior_data.
8040 Update comments.
8041 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8042 Change return type. Attach data to program space.
8043 (jit_program_space_data_cleanup): Rename from
8044 jit_inferior_data_cleanup; change argument type.
8045 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8046 change type.
8047 (jit_register_code): Update.
8048 (jit_update_inferior_cache): Remove.
8049 (jit_breakpoint_deleted): Get jit data from the location's program
8050 space.
8051 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8052 'ps_data', change type.
8053 (jit_inferior_init, jit_breakpoint_re_set_internal)
8054 (jit_event_handler): Update.
8055 (free_objfile_data): Get data from objfile's program space.
8056 (_initialize_jit): Update.
8057
f25c0135
TT
80582013-01-31 Tom Tromey <tromey@redhat.com>
8059
8060 PR gdb/13987:
8061 * jit.c (struct jit_inferior_data) <cached_code_address,
8062 jit_breakpoint>: New fields.
8063 (jit_breakpoint_re_set_internal): Fix logging. Only create
8064 breakpoint if cached address has changed.
8065 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8066 functions.
8067 (_initialize_jit): Register breakpoint deleted observer.
8068
974a734b
AR
80692013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8070
8071 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8072 (save_infcall_suspend_state): Ifdef out unused inf.
8073 (restore_infcall_suspend_state): Ifdef out unused inf.
8074 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8075 (jit_frame_sniffer): Remove unused inf_data.
8076
df54f8eb
AR
80772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8078
8079 * c-exp.y (classify_inner_name): Remove unused type.
8080 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8081 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8082 need_escape.
8083 (c_get_string): Remove unused kind.
8084 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8085
5799c0b9
AR
80862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8087
8088 * charset.c (intermediate_encoding): Remove unused i.
8089 * completer.c (signal_completer): Remove unused i.
8090 * continuations.c (discard_my_continuations_1): Remove unused
8091 continuation_ptr.
8092 * corelow.c (core_close): Remove unuseD name.
8093 (get_core_siginfo): Remove unused pid.
8094 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8095 i, cps.
8096 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8097 (loclist_describe_location): Remove unused first.
8098 * event-top.c (command_line_handler): Remove unused got_eof.
8099 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8100 (resize_section_table): Remove unused old_value.
8101 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8102 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8103 * i386-tdep.c (i386_process_record): Remove unused rex.
8104 * infcmd.c (get_return_value): Remove unused uiout.
8105 * jv-lang.c (type_from_class): Remove unused is_array.
8106 * jv-valprint.c (java_val_print): Remove unused i.
8107 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8108 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8109 * m2-typeprint.c (m2_print_type): Remove unused code.
8110 * macroexp.c (get_character_constant): Remove unused body_start.
8111 (macro_stringify): Remove unused result.
8112 * objc-lang.c (find_methods): Remove unused gdbarch.
8113 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8114 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8115 * stack.c (print_frame_args): Remove unused summary.
8116 * thread.c (thread_apply_command): Remove unused p.
8117 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8118 * valops.c (search_struct_method): Remove unused skip.
8119 * valprint.c (generic_val_print): Remove unused byte_order.
8120 * varobj.c (varobj_update): Remove unused changed.
8121 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8122 (alias_command): Remove unused c.
8123 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8124 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8125 format.
8126 (mi_cmd_data_write_memory): Remove unused word_format.
8127 (mi_cmd_data_write_memory_bytes): Remove unused r.
8128 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8129 p_start, p_end.
8130 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8131 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8132 line_width.
8133
c656bca5
AR
81342013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8135
8136 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8137 * symtab.c (iterate_over_symtabs): Remove unused s.
8138 (find_pc_sect_symtab): Remove unused pspAce.
8139 (find_pc_sect_line): Remove unused alt_symtab.
8140 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8141 (completion_list_add_name): Remove unused newsize.
8142
7078baeb
TT
81432013-01-31 Tom Tromey <tromey@redhat.com>
8144
8145 PR c++/14998:
8146 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8147 TYPE_CODE_FUNC.
8148
c2e8b827
AR
81492013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8150
8151 * target.c (target_read_string): Remove unused origlen.
8152
0e43993a
AR
81532013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8154
8155 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8156 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8157 * ax-general.c (ax_print): Remove unused is_float.
8158 * blockframe.c (block_innermost_frame): Remove unused start, end.
8159 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8160
765a97ab
AR
81612013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8162
8163 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8164 (svr4_read_so_list): Remove unused lmo.
8165 * solib-target.c (solib_target_relocate_section_addresses): Remove
8166 unused flags.
8167
a99dad3d
TT
81682013-01-30 Tom Tromey <tromey@redhat.com>
8169
8170 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8171
3bff1ecd
TT
81722013-01-30 Tom Tromey <tromey@redhat.com>
8173
8174 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8175 * utils.c (gnu_debuglink_crc32): Remove.
8176 * utils.h (gnu_debuglink_crc32): Don't declare.
8177
7d455152
TT
81782013-01-30 Tom Tromey <tromey@redhat.com>
8179
8180 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8181 (read_structure_type, read_enumeration_type): Remove cast.
8182
abee88f2
TT
81832013-01-30 Tom Tromey <tromey@redhat.com>
8184
8185 * dwarf2read.c (read_namespace_type): Remove cast.
8186 (read_typedef): Likewise.
8187
8d9878a4
TT
81882013-01-29 Tom Tromey <tromey@redhat.com>
8189
8190 * dwarf2read.c (free_dwo_file): Remove assert.
8191
a543d2a9
TT
81922013-01-29 Tom Tromey <tromey@redhat.com>
8193
8194 * value.c (deprecated_set_value_modifiable): Remove.
8195 * value.h (deprecated_set_value_modifiable): Remove.
8196
bed911e5
DE
81972013-01-28 Doug Evans <dje@google.com>
8198
8199 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8200 to addresses from dwo files.
8201
28c64fc2
SCR
82022013-01-25 Siva Chandra Reddy <sivachandra@google.com>
8203
8204 * valops.c (find_overload_match): Remove unused argument 'lax'.
8205 * value.h: Remove unused argument 'lax' from the declaration of
8206 find_overload_match.
8207 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8208 to find_overload_match.
8209 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8210 argument to find_overload_match.
8211
4d4ec4e5
TT
82122013-01-25 Tom Tromey <tromey@redhat.com>
8213
8214 * dwarf2read.c (processing_has_namespace_info): Remove.
8215 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8216 (process_die, read_func_scope, dwarf2_start_symtab)
8217 (new_symbol_full): Update.
8218
195a3f6c
TT
82192013-01-25 Tom Tromey <tromey@redhat.com>
8220
8221 * cp-namespace.c (cp_set_block_scope): Remove.
8222 * cp-support.h (cp_set_block_scope): Remove.
8223 * dbxread.c: Include block.h.
8224 (cp_set_block_scope): New function.
8225 (process_one_symbol): Update.
8226 * dwarf2read.c (read_func_scope): Use block_set_scope.
8227
8ba0730a
PA
82282013-01-25 Pedro Alves <palves@redhat.com>
8229
8230 * remote.c (add_current_inferior_and_thread): Tweak comment.
8231
12aaed36
TT
82322013-01-25 Tom Tromey <tromey@redhat.com>
8233
8234 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8235 (cp_add_using_directive): Add 'copy_names' argument.
8236 * cp-support.h (cp_add_using_directive): Update.
8237 (struct using_direct) <import_src, import_dest, alias,
8238 declaration>: Now const.
8239 * dwarf2read.c (read_import_statement): Use obconcat.
8240 Don't copy names passed to cp_add_using_directive.
8241
7fc75ca7
TT
82422013-01-25 Tom Tromey <tromey@redhat.com>
8243
8244 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
8245
3405876a
PA
82462013-01-25 Pedro Alves <palves@redhat.com>
8247
8248 * remote.c (stop_reply_extract_thread): New.
8249 (add_current_inferior_and_thread): New parameter 'wait_status'.
8250 Handle it.
8251 (remote_start_remote): Pass wait status to
8252 add_current_inferior_and_thread.
8253 (extended_remote_run): Update comment.
8254 (extended_remote_create_inferior_1): Pass wait status to
8255 add_current_inferior_and_thread.
8256
8954db33
AB
82572013-01-25 Andrew Burgess <aburgess@broadcom.com>
8258 Ulrich Weigand <uweigand@de.ibm.com>
8259
8260 * valarith.c (value_vector_widen): New function for replicating a
8261 scalar into a vector.
8262 (value_binop): Use value_vector_widen to widen scalar to vector
8263 rather than casting, this better matches gcc C behaviour.
8264 * valops.c (value_casst): Update logic for casting between vector
8265 types, and for casting from scalar to vector, try to match gcc C
8266 behaviour.
8267 * value.h (value_vector_widen): Declare.
8268 * opencl-lang.c (opencl_value_cast): New opencl specific casting
8269 function, handle special case for casting scalar to vector.
8270 (opencl_relop): Use opencl_value_cast.
8271 (evaluate_subexp_opencl): Use opencl_value_cast instead of
8272 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
8273 in order to use opencl_value_cast.
8274
843b20dc
YQ
82752013-01-25 Yao Qi <yao@codesourcery.com>
8276
8277 * event-loop.c: Include "queue.h".
8278 (gdb_event_p): New typedef.
8279 (DECLARE_QUEUE_P): Use.
8280 (DEFINE_QUEUE_P): Use.
8281 (async_queue_event): Remove.
8282 (gdb_event_xfree): New.
8283 (initialize_event_loop): New.
8284 (process_event): Use QUEUE macros.
8285 (event_queue): Remove.
8286 (gdb_wait_for_event): Caller update.
8287 (check_async_event_handlers): Likewise.
8288 (poll_timers): Likewise.
8289 * event-loop.h (initialize_event_loop): Declare.
8290 * event-loop.c (gdb_event_xfree): New.
8291 * top.c (gdb_init): Call initialize_event_loop.
8292
20ad8856
YQ
82932013-01-25 Yao Qi <yao@codesourcery.com>
8294
8295 * event-loop.c (async_queue_event): Remove one parameter
8296 'position'. Remove code handling 'position' == TAIL.
8297 (gdb_wait_for_event): Caller update.
8298 (check_async_event_handlers): Caller update.
8299 (poll_timers): Caller update.
8300 * event-loop.h (enum queue_position): Remove.
8301
3bbbe775
MK
83022013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
8303
8304 * MAINTAINERS: Update my email.
8305
a87d9ac4
YQ
83062013-01-25 Yao Qi <yao@codesourcery.com>
8307
8308 * main.c (print_gdb_help): Remove "--epoch" from the help
8309 message.
8310
2077afdd
TD
83112013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
8312
8313 * symtab.c (skip_prologue_using_sal): Consider a file
8314 change the same as an increased line number
8315
63da4037
TD
83162013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8317
30e8ee25 8318 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 8319
45e6c716
TT
83202013-01-24 Tom Tromey <tromey@redhat.com>
8321
8322 * ada-lang.h (ada_decode_symbol): Make return type const.
8323 * ada-lang.c (ada_decode_symbol): Likewise.
8324
b1ae631a
DE
83252013-01-23 Doug Evans <dje@google.com>
8326
8327 * linespec.c (find_linespec_symbols): Make static.
8328
55a78401
SDJ
83292013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8330
8331 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
8332 type on float conversion for complex type.
8333
bea883fd
SCR
83342013-01-23 Siva Chandra Reddy <sivachandra@google.com>
8335
8336 Add a new class gdb.Architecture which exposes GDB's
8337 internal representation of architecture via GDB Python API.
8338 * Makefile.in: Add entries corresponding to the new file
8339 python/py-arch.c.
8340 * NEWS (Python Scripting): Add entries for the new class
8341 gdb.Architecture and the new method gdb.Frame.architecture.
8342 * python/py-arch.c: Implement gdb.Architecture class.
8343 * python/py-frame.c (frapy_arch): Implement the method
8344 gdb.Frame.architecture().
8345 (frame_object_methods): Add 'architecture' to the method table.
8346 * python/python-internal.h: Add declarations of new utility
8347 functions.
8348 * python/python.c (_initialize_python): Initialize
8349 gdb.Architecture class.
8350
796a7ff8
DE
83512013-01-23 Doug Evans <dje@google.com>
8352
8353 Work around binutils/15021.
8354 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8355 type_unit_group out of union s. All uses updated.
8356 (read_index_from_section): Watch for index version 8.
8357 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8358 an imported symtab.
8359 (write_psymtabs_to_index): Increment version number to 8.
8360
0928e93d
PA
83612013-01-22 Pedro Alves <palves@redhat.com>
8362
8363 * annotate.c (breakpoint_changed): Skip if breakpoint is not
8364 user-visible.
8365
9c97429f
PA
83662013-01-22 Pedro Alves <palves@redhat.com>
8367
8368 * annotate.c (annotate_breakpoints_changed): Rename to ...
8369 (annotate_breakpoints_invalid): ... this. Make static.
8370 (breakpoint_changed): Adjust.
8371 (_initialize_annotate): Always install the observers. Install a
8372 "breakpoint_created" observer.
8373 * annotate.h (annotate_breakpoints_changed): Delete declaration.
8374 * breakpoint.c (set_breakpoint_condition)
8375 (breakpoint_set_commands, do_map_commands_command)
8376 (init_raw_breakpoint, clear_command, set_ignore_count)
8377 (enable_breakpoint_disp): No longer call
8378 annotate_breakpoints_changed.
8379
bd00c694
PA
83802013-01-22 Pedro Alves <palves@redhat.com>
8381
8382 * annotate.c: Include "inferior.h".
8383 (frames_invalid_emitted)
8384 (breakpoints_invalid_emitted): New globals.
8385 (async_background_execution_p): New function.
8386 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8387 emitting the annotation if it has already been emitted.
8388 (annotate_display_prompt): New function.
8389 * annotate.h (annotate_display_prompt): New declaration.
8390 * event-top.c: Include annotate.h.
8391 (display_gdb_prompt): Call annotate_display_prompt.
8392
187d10dd
PA
83932013-01-22 Pedro Alves <palves@redhat.com>
8394
8395 * annotate.c (ignore_count_changed): Delete.
8396 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8397 (annotate_ignore_count_change): Delete.
8398 (annotate_stopped): Don't emit a delayed breakpoints-changed
8399 annotation.
8400 * annotate.h (annotate_ignore_count_change): Delete.
8401 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8402 annotate_ignore_count_change.
8403
d84cf7eb
TT
84042013-01-22 Tom Tromey <tromey@redhat.com>
8405
8406 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8407 require_rvalue for a register location.
8408
8f1d5693
MK
84092013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
8410
8411 * breakpoint.c (print_one_breakpoint_location): Add MI
8412 field 'thread-groups' when printing a breakpoint.
8413 (output_thread_groups): New function.
8414
aa6199c6
SCR
84152013-01-21 Siva Chandra Reddy <sivachandra@google.com>
8416
8417 * python/lib/gdb/commands/explore.py
8418 (CompoundExplorer.explore_expr): Correct the name of a method
8419 being invoked.
8420 (ExploreTypeCommand.invoke): Add a missing 'return'.
8421
d2afef13
TT
84222013-01-21 Tom Tromey <tromey@redhat.com>
8423
8424 * gdb_obstack.h (obconcat): Move declaration here, from...
8425 * symfile.h (obconcat): ... here.
8426 * gdb_obstack.c: New file.
8427 (obconcat): Move from...
8428 * symfile.c (obconcat): ... here.
8429 * Makefile.in (SFILES): Add gdb_obstack.c.
8430 (COMMON_OBS): Add gdb_obstack.o.
8431
10f0c4bb
TT
84322013-01-21 Tom Tromey <tromey@redhat.com>
8433
8434 * symfile.h (obsavestring): Don't declare.
8435 * symfile.c (obsavestring): Remove.
8436 * ada-exp.y: Use obstack_copy0, not obsavestring.
8437 * ada-lang.c: Use obstack_copy0, not obsavestring.
8438 * coffread.c: Use obstack_copy0, not obsavestring.
8439 * cp-namespace.c: Use obstack_copy0, not obsavestring.
8440 * dbxread.c: Use obstack_copy0, not obsavestring.
8441 * dwarf2read.c: Use obstack_copy0, not obsavestring.
8442 * jit.c: Use obstack_copy0, not obsavestring.
8443 * mdebugread.c: Use obstack_copy0, not obsavestring.
8444 * psymtab.c: Use obstack_copy0, not obsavestring.
8445 * stabsread.c: Use obstack_copy0, not obsavestring.
8446 * xcoffread.c: Use obstack_copy0, not obsavestring.
8447
86f62fd7
TT
84482013-01-21 Tom Tromey <tromey@redhat.com>
8449
8450 * dwarf2read.c (fixup_go_packaging): Save package name
8451 on objfile obstack.
8452 * gdbtypes.c (init_type): Don't copy name.
8453
15d034d0
TT
84542013-01-21 Tom Tromey <tromey@redhat.com>
8455
8456 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8457 const.
8458 (struct attribute) <u.str>: Now const.
8459 (struct fnfieldlist) <name>: Now const.
8460 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8461 (partial_die_parent_scope): Make return type const.
8462 (partial_die_full_name, add_partial_symbol): Update.
8463 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8464 'name' const.
8465 (find_file_and_directory): Make 'name' and 'comp_dir' const.
8466 (read_file_scope, read_func_scope, dwarf2_add_field)
8467 (dwarf2_add_member_fn, read_structure_type)
8468 (process_enumeration_scope, read_array_type, read_module_type)
8469 (read_base_type, read_subrange_type): Update.
8470 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8471 (new_symbol_full, guess_full_die_structure_name): Update.
8472 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
8473 (dwarf2_name): Return const type.
8474 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8475 const.
8476
748e18ae
TT
84772013-01-21 Tom Tromey <tromey@redhat.com>
8478
8479 * gdbtypes.c (init_type): Make 'name' const.
8480 * gdbtypes.h (init_type): Update.
8481
46212e0b
TT
84822013-01-21 Tom Tromey <tromey@redhat.com>
8483
8484 * buildsym.c (patch_subfile_names): Use set_last_source_file.
8485 (start_symtab): Make 'name' and 'dirname' const. Use
8486 set_last_source_file.
8487 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8488 (last_source_file): Define. Now static.
8489 (set_last_source_file, get_last_source_file): New functions.
8490 * buildsym.h (last_source_file): Don't declare.
8491 (start_symtab): Update.
8492 (set_last_source_file, get_last_source_file): Declare.
8493 * coffread.c (complete_symtab): Use set_last_source_file.
8494 (coff_end_symtab): Likewise.
8495 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8496 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8497 set_last_source_file.
8498 (process_one_symbol): Use get_last_source_file.
8499 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8500 (psymtab_to_symtab_1): Use get_last_source_file.
8501 * xcoffread.c (process_linenos): Use get_last_source_file.
8502 (complete_symtab): Use set_last_source_file.
8503 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8504 (scan_xcoff_symtab): Use set_last_source_file.
8505
9d2ceabe
TT
85062013-01-21 Tom Tromey <tromey@redhat.com>
8507
8508 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8509 (symbol_set_names): Remove casts. Handle field const-ness.
8510
cfc594ee
TT
85112013-01-21 Tom Tromey <tromey@redhat.com>
8512
8513 * dwarf2read.c (new_symbol_full): Remove cast.
8514 * symtab.c (symbol_set_demangled_name): Make 'name' const.
8515 * symtab.h (symbol_set_demangled_name): Update.
8516
5484b13a
TT
85172013-01-21 Tom Tromey <tromey@redhat.com>
8518
8519 * main.c (captured_main): Call bfd_init.
8520
1605ef26
TT
85212013-01-21 Tom Tromey <tromey@redhat.com>
8522
8523 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
8524 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
8525 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
8526 * NEWS: Update.
8527
3b74cdc3
JK
85282013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8529
8530 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
8531
5a352474
JK
85322013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8533
8534 Fix gdb.fortran/common-block.exp crash in PIE mode.
8535 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
8536 LOC_COMMON_BLOCK.
8537 * f-valprint.c (info_common_command_for_block): Expect
8538 LOC_COMMON_BLOCK in gdb_assert.
8539 * symtab.h (struct general_symbol_info): Update comment for the
8540 common_block member.
8541 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
8542 (enum address_class): New member LOC_COMMON_BLOCK.
8543
c60797fd
DB
85442013-01-18 David Blaikie <dblaikie@gmail.com>
8545
8546 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 8547
46f35228
TT
85482013-01-18 Tom Tromey <tromey@redhat.com>
8549
8550 PR c++/14999:
8551 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
8552 Call require_rvalue.
8553
257e7a09
YQ
85542013-01-18 Yao Qi <yao@codesourcery.com>
8555
8556 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
8557 (dbx_read_symtab): New declaration.
8558 (dbx_psymtab_to_symtab): Delete.
8559 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
8560 Rename parameter PST to SELF. Exchanged two parameters.
8561 (start_psymtab): Caller update.
8562 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
8563 (dwarf2_read_symtab): New declaration.
8564 (dwarf2_psymtab_to_symtab): Delete.
8565 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
8566 Rename parameter PST to SELF. Exchanged two parameters.
8567 (create_partial_symtab): Caller update.
8568 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
8569 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
8570 Rename parameter PST to SELF. Exchanged two parameters.
8571 (parse_partial_symbols, new_psymtab): Caller update.
8572 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
8573 two parameters.
8574 * psymtab.c (psymtab_to_symtab): Caller update.
8575 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
8576 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
8577 Rename parameter PST to SELF. Exchanged two parameters.
8578 (xcoff_start_psymtab): Caller update.
8579
0de5618e
YQ
85802013-01-18 Yao Qi <yao@codesourcery.com>
8581
8582 * infrun.c (proceed): Rename local variable 'oneproc' to
8583 'force_step'.
8584
5c04624b
DE
85852013-01-17 Doug Evans <dje@google.com>
8586
848e3e78
DE
8587 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
8588 (dw2_build_type_unit_groups): Delete. All uses updated.
8589
5c04624b
DE
8590 * symtab.h (struct symbol_search): Add comment.
8591
d84fca2c
JK
85922013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8593
8594 * symtab.c (compare_filenames_for_search): New comment for
8595 HAS_DRIVE_SPEC.
8596
6108433d
TT
85972013-01-17 Tom Tromey <tromey@redhat.com>
8598
8599 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
8600
c89ffd86
JK
86012013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8602
8603 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
8604 initialize it by existing make_cleanup. Call new do_cleanups.
8605
db2b2972
TT
86062013-01-17 Tom Tromey <tromey@redhat.com>
8607
8608 * cp-abi.c (cp_abi_completer): New function.
8609 (_initialize_cp_abi): Set completer for "set cp-abi".
8610
be7d37a2
TT
86112013-01-17 Tom Tromey <tromey@redhat.com>
8612
8613 * mem-break.c: Remove obsolete comment.
8614 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
8615
c9fb1240
SD
86162012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8617
8618 * jit.c (jit_reader_load_command): Interpret the jit reader name
8619 as an absolute path if it begins with a forward slash.
8620
db334a01
SD
86212012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8622
8623 PR gdb/14550
8624
8625 * jit.c (finalize_symtab): Ensure that only the global block has a
8626 NULL superblock.
8627
7d928dac
PA
86282013-01-17 Pedro Alves <palves@redhat.com>
8629
8630 * acinclude.m4: Include ../config/plugins.m4,
8631 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
8632 * Makefile.in (aclocal_m4_deps): Update.
8633 * aclocal.m4: Renegerate.
8634
fb8cf7c5
DE
86352013-01-16 Doug Evans <dje@google.com>
8636
8637 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
8638
ab04a2af
TT
86392013-01-16 Pedro Alves <palves@redhat.com>
8640 Tom Tromey <tromey@redhat.com>
8641
8642 PR cli/7221:
8643 * NEWS: Add "catch signal".
8644 * breakpoint.c (base_breakpoint_ops): No longer static.
8645 (bpstat_explains_signal): New function.
8646 (init_catchpoint): No longer static.
8647 (base_breakpoint_explains_signal): New function.
8648 (base_breakpoint_ops): Initialize new field.
8649 * breakpoint.h (enum bpstat_signal_value): New.
8650 (struct breakpoint_ops) <explains_signal>: New field.
8651 (bpstat_explains_signal): Remove macro, declare as function.
8652 (base_breakpoint_ops, init_catchpoint): Declare.
8653 * break-catch-sig.c: New file.
8654 * inferior.h (signal_catch_update): Declare.
8655 * infrun.c (signal_catch): New global.
8656 (handle_syscall_event): Update for change to
8657 bpstat_explains_signal.
8658 (handle_inferior_event): Likewise. Always handle random signals
8659 via bpstats.
8660 (signal_cache_update): Check signal_catch.
8661 (signal_catch_update): New function.
8662 (_initialize_infrun): Initialize signal_catch.
8663 * Makefile.in (SFILES): Add break-catch-sig.c.
8664 (COMMON_OBS): Add break-catch-sig.o.
8665
8ac3646f
TT
86662013-01-16 Tom Tromey <tromey@redhat.com>
8667
8668 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
8669 (print_one_catch_solib, print_one_catch_syscall)
8670 (print_one_catch_exec, print_one_exception_catchpoint): Emit
8671 "catch-type".
8672
5a18e302
YQ
86732013-01-16 Yao Qi <yao@codesourcery.com>
8674
8675 * printcmd.c (current_display_number): Make it static.
8676
3f01d0d0
YQ
86772013-01-16 Yao Qi <yao@codesourcery.com>
8678
8679 * infcmd.c (step_once): Don't check '!single_inst' as it was
8680 checked before.
8681
1ed59174
JK
86822013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8683
8684 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
8685
44478ab3
TT
86862013-01-14 Tom Tromey <tromey@redhat.com>
8687
8688 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
8689 set command.
8690 * command.h (add_setshow_string_noescape_cmd): Update.
8691 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
8692 (complete_set_gnutarget): New function.
8693 (_initialize_core): Set the "set gnutarget" completer.
8694
06d66ee9
TT
86952013-01-14 Tom Tromey <tromey@redhat.com>
8696
8697 PR symtab/14442:
8698 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
8699 (c_type_print_modifier): Likewise.
8700 * dwarf2read.c (read_tag_restrict_type): New function.
8701 (read_type_die_1): Handle DW_TAG_restrict_type.
8702 * gdbtypes.c (make_restrict_type): New function.
8703 (recursive_dump_type): Handle TYPE_RESTRICT.
8704 * gdbtypes.h (enum type_flag_values): Renumber.
8705 (enum type_instance_flag_value): Add
8706 TYPE_INSTANCE_FLAG_RESTRICT.
8707 (TYPE_RESTRICT): New macro.
8708 (make_restrict_type): Declare.
8709
c9bf0622
TT
87102013-01-14 Tom Tromey <tromey@redhat.com>
8711
8712 PR symtab/14931:
8713 * psymtab.c (struct psymtab_state): New.
8714 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
8715 functions.
8716 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
8717 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
8718
44d594fd
PA
87192013-01-14 Richard Sharman <richard_sharman@mitel.com>
8720 Pedro Alves <palves@redhat.com>
8721
8722 PR remote/14786
8723
8724 * remote.c (remote_threads_info): Make a copy of the reply from
8725 qfThreadInfo and use that instead of rs->buf.
8726
442e4d9c
YQ
87272013-01-14 Yao Qi <yao@codesourcery.com>
8728
8729 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
8730 (dbx_psymtab_to_symtab): Likewise.
8731 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
8732 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
8733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
8734
5b12a61c
JK
87352013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8736
8737 * parse.c (parse_exp_in_context): New variable inner_chain. Call
8738 make_cleanup_restore_current_language. Call set_language. Move
8739 OLD_CHAIN and INNER_CHAIN cleanups.
8740 * utils.c (do_restore_current_language)
8741 (make_cleanup_restore_current_language): New functions.
8742 * utils.h (make_cleanup_restore_current_language): New declaration.
8743
f0a4b570
JK
87442013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
8747 non-existing files.
8748
57b3c00c
JK
8749 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
8750 non-existing files if FILENAME is already absolute.
8751
daefa854
JK
87522013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
8755 fputs_filtered. Append trailing newline.
8756
ca9c6ee2
YQ
87572013-01-11 Yao Qi <yao@codesourcery.com>
8758 Stan Shebs <stan@codesourcery.com>
8759
8760 * psymtab.c (init_psymbol_list): Clarify the comment.
8761
f28045c2
YQ
87622013-01-11 Yao Qi <yao@codesourcery.com>
8763
8764 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
8765 (update_dprintf_command_list): Assert that 'printf_line' is
8766 non-null. Remove condition check.
8767
da5132d3
JK
87682013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8769
8770 Code cleanup.
8771 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
8772 type const char *.
8773 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
8774 const char *.
8775 * tui/tui-source.h (tui_source_is_displayed): Likewise.
8776
843e694d
AG
87772013-01-09 Anthony Green <green@moxielogic.com>
8778
8779 * cp-abi.c (cplus_print_vtable): Don't return value from void
8780 function.
8781 * ada-lang.c (re_set_catch_assert): Ditto.
8782
da51c347
DE
87832013-01-09 Doug Evans <dje@google.com>
8784
8785 * symfile.h (quick_symbol_functions): Delete member
8786 pre_expand_symtabs_matching. All uses removed.
8787 * dwarf2read.c (dw2_lookup_symbol): Implement.
8788 (dw2_do_expand_symtabs_matching): Delete.
8789 (dw2_pre_expand_symtabs_matching): Delete.
8790 (struct dw2_symtab_iterator): New type.
8791 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
8792 (dw2_expand_symtabs_for_function): Rewrite.
8793 (dwarf2_gdb_index_functions): Update.
8794 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
8795 (psym_functions): Update.
8796
b2259038
TT
87972013-01-09 Tom Tromey <tromey@redhat.com>
8798
8799 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
8800 * configure: Rebuild.
8801 * configure.ac: Add somread.o to the build if BFD has SOM
8802 support.
8803 * somread.c: Include som/aout.h, not syms.h.
8804 (som_symtab_read): Use som_external_symbol_dictionary_record.
8805 Unpack records manually.
8806 (_initialize_somread): Declare.
8807
bdad4180
MF
88082012-01-08 Mike Frysinger <vapier@gentoo.org>
8809
8810 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
8811 Cast return_address to 64bits.
8812
03cdf680
HZ
88132013-01-08 Hui Zhu <hui_zhu@mentor.com>
8814
8815 * printcmd.c: Remove define of function output_command.
8816 * tracepoint.c: Remove extern of function output_command.
8817 * valprint.h: (output_command): New extern.
8818
8a808554
TT
88192013-01-07 Tom Tromey <tromey@redhat.com>
8820
8821 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
8822 Remove.
8823 (objc_language_defn): Use c_printchar, c_printstr,
8824 c_emit_char.
8825
e93a8774
TT
88262013-01-07 Tom Tromey <tromey@redhat.com>
8827
8828 PR cli/7719:
8829 * NEWS: Update.
8830 * ada-valprint.c (printstr, print_field_values): Remove
8831 "inspect_it" code.
8832 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
8833 code.
8834 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
8835 code.
8836 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
8837 * main.c (captured_main): Remove "epoch" argument.
8838 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
8839 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
8840 * p-valprint.c (pascal_object_print_value_fields): Remove
8841 "inspect_it" code.
8842 * printcmd.c (print_command_1): Remove 'inspect' argument.
8843 (print_command, call_command): Update.
8844 (inspect_command): Remove.
8845 (_initialize_printcmd): Make "inspect" an alias for "print".
8846 * top.c (epoch_interface): Remove.
8847 * top.h (epoch_interface): Remove.
8848 * valprint.c (user_print_options): Update.
8849 (print_converted_chars_to_obstack): Remove "inspect_it" code.
8850 * valprint.h (struct value_print_options) <inspect_it>: Remove
8851 field.
8852
88532013-01-04 Tom Tromey <tromey@redhat.com>
8854
8855 * valprint.h (read_string): Add 'extern'.
8856
b967eb24
JB
88572013-01-07 Joel Brobecker <brobecker@adacore.com>
8858
8859 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
8860 used to decide whether to define darwin_read_dyld_info or not.
8861
78a8b30e
PM
88622013-01-03 Pierre Muller <muller@sourceware.org>
8863
8864 * main.c (relocate_gdb_directory): Avoid calling stat function
8865 if DIR is empty.
8866
50da2f25
YQ
88672013-01-03 Yao Qi <yao@codesourcery.com>
8868
8869 * psymtab.c (fixup_psymbol_section): Update declaration.
8870 (fixup_psymbol_section): Remove code returning value.
8871
e7e8980f
YQ
88722013-01-03 Yao Qi <yao@codesourcery.com>
8873
8874 * symtab.h: Remove some out of date comments.
8875 (enum exception_event_kind): Move it ...
8876 * breakpoint.c: ... here.
8877
569283d4
MF
88782013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8879
9f9d9a96 8880 PR gdb/14405
569283d4
MF
8881 * darwin-nat.c (darwin_read_dyld_info): Only build if
8882 TASK_DYLD_INFO_COUNT is defined.
8883 (darwin_xfer_partial): Call darwin_read_dyld_info only if
8884 TASK_DYLD_INFO_COUNT is defined.
8885
2e36fbea
TT
88862013-01-02 Tom Tromey <tromey@redhat.com>
8887
8888 * symfile.h (struct ecoff_debug_hack): Remove.
8889 * objfiles.c: Don't include mdebugread.h.
8890
4f05add4
TT
88912013-01-02 Tom Tromey <tromey@redhat.com>
8892
8893 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
8894 * configure.ac: Check for Mach-O support in BFD. Update
8895 CONFIG_OBS.
8896 * configure: Rebuild.
8897
def63ff0
TT
88982013-01-02 Tom Tromey <tromey@redhat.com>
8899
8900 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
8901 * configure.ac: Use GDB_AC_CHECK_BFD.
8902 * configure: Rebuild.
8903
60c5dd93
MK
89042013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8905
8906 * MAINTAINERS: Update my email.
8907
6e58437e
JB
89082013-01-01 Joel Brobecker <brobecker@adacore.com>
8909
8910 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
8911
627fe805
JB
89122013-01-01 Joel Brobecker <brobecker@adacore.com>
8913
8914 * rs6000-nat.c (bss_data_overlap): New function.
8915 (vmap_symtab): Use it to adjust the .bss section's offset.
8916
28e7fd62
JB
89172013-01-01 Joel Brobecker <brobecker@adacore.com>
8918
8919 Update year range in copyright notice of all files.
8920
e93a8774 89212013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
8922
8923 * top.c (print_gdb_version): Update copyright year.
8924
72b20e9c 8925For older changes see ChangeLog-2012.
c906108c
SS
8926\f
8927Local Variables:
8928mode: change-log
8929left-margin: 8
8930fill-column: 74
8931version-control: never
57da7796 8932coding: utf-8
c906108c 8933End:
This page took 2.197223 seconds and 4 git commands to generate.