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