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