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