]> Git Repo - binutils.git/blame - gdb/ChangeLog
daily update
[binutils.git] / gdb / ChangeLog
CommitLineData
89e63ee4
DE
12013-09-04 Doug Evans <[email protected]>
2
3 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4 (queue_and_load_dwo_tu): New function.
5 (lookup_dwo_signatured_type): Set per_cu.tu_read.
6 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
7 Make dependent_cu optional.
8 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
9 and an older .gdb_index is in use, queue and load all its TUs too.
10
492c0ab7
JK
112013-09-04 Jan Kratochvil <[email protected]>
12
13 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
14 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
15 variable search_flags.
16 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
17 (OPF_RETURN_REALPATH): ... here.
18 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
19 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
20 call. Twice.
21 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
22 openp call.
23 * solib.c (solib_find): Likewise. Four times.
24 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
25 in the function comment and for the realpath_fptr variable.
26 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
27 (find_and_open_source): Likewise. Twice.
28 * symfile.c (symfile_bfd_open): Likewise, also twice.
29
23a44de8
DE
302013-09-04 Doug Evans <[email protected]>
31
32 * progspace.c (save_current_space_and_thread): Remove unnecessary
33 call to save_current_inferior.
34
47061676
AB
352013-09-04 Andrew Burgess <[email protected]>
36
37 * sh64-tdep.c (sh64_do_register): Return after printing message
38 about unavailable register contents.
39
41dc8db8
MB
402013-09-04 Muhammad Bilal <[email protected]>
41 Pedro Alves <[email protected]>
42
43 * symfile.c (add_symbol_file_command): Error out on unknown
44 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
45 options and collapse into single conditional branch.
46
07107ca6
LM
472013-09-03 Luis Machado <[email protected]>
48
49 * inf-child.c (inf_child_follow_fork) New parameter
50 detach_fork.
51 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
52 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
53 * inferior.h (detach_fork): Remove.
54 * infrun.c (detach_fork): Adjust comment and make it
55 static.
56 (follow_fork): Pass detach_fork parameter to
57 target_follow_fork.
58 * linux-nat.c (linux_child_follow_fork): New parameter
59 detach_fork.
60 * target.c (target_follow_fork): New parameter detach_fork.
61 Pass detach_fork as parameter and print its value.
62 * target.h (struct target_ops) <to_follow_fork>: New int
63 parameter.
64 (target_follow_fork): New parameter detach_fork.
65
3bec2768
JB
662013-09-03 Joel Brobecker <[email protected]>
67
68 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
69 Replace sec->bfd by sec->the_bfd_section->owner.
70
c01cbb3d
YQ
712013-09-03 Yao Qi <[email protected]>
72
73 * linux-tdep.c (linux_is_uclinux): New function. Code moved
74 from linux_has_shared_address_space.
75 (linux_has_shared_address_space): Call linux_is_uclinux.
76 * linux-tdep.h (linux_is_uclinux): Declare.
77 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
78 linux_is_uclinux.
79
7b00db47
YQ
802013-09-03 Yao Qi <[email protected]>
81
82 * config/djgpp/fnchange.lst: Remove entry of
83 i386-interix-nat.c and i386-interix-tdep.c.
84 * configure.ac: Remove '*-*-interix*'.
85 * configure: Re-generated.
86 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
87 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
88 obsolete comments.
89 * osabi.c (gdb_osabi_names): Remove "Interix".
90
0f9741f2
YQ
912013-09-03 Yao Qi <[email protected]>
92
93 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
94
1e038f67
MM
952013-09-02 Markus Metzger <[email protected]>
96
97 * record.h (record_print_flag) <record_print_src_line,
98 record_print_insn_range>: Rename into ...
99 (record_print_flag) <record_print_src_line,
100 record_print_insn_range>: ... this. Update all users.
101
9e52adf9
PM
1022013-09-02 Pierre Muller <[email protected]>
103
104 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
105 error code.
106
a2388568
PM
1072013-09-02 Pierre Muller <[email protected]>
108
109 * windows-nat.c (windows_xfer_memory): Fix compilation failure
110 by use of plongest function.
111
9058cc3a
TG
1122013-09-02 Tristan Gingold <[email protected]>
113
114 * NEWS: Add entry mentioning support for native Windows x64
115 SEH data.
116
117 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
118 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
119 (struct amd64_windows_frame_cache): New struct.
120 (amd64_windows_w2gdb_regnum): New global.
121 (pc_in_range, amd64_windows_frame_decode_epilogue)
122 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
123 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
124 (amd64_windows_frame_this_id): New functions.
125 (amd64_windows_frame_unwind): New static global.
126 (amd64_windows_skip_prologue): New function.
127 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
128 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
129 with amd64_windows_skip_prologue.
130
3161820b 1312013-08-30 Joel Brobecker <[email protected]>
132
133 GDB 7.6.1 released.
134
02457c76
PA
1352013-08-30 Pedro Alves <[email protected]>
136
137 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
138 SRC_AND_LOC.
139
e0162910
PA
1402013-08-30 Pedro Alves <[email protected]>
141
142 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
143 warning text.
144
6391ce51
PA
1452013-08-30 Pedro Alves <[email protected]>
146
147 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
148 Adjust arguments to print_stack_frame.
149
d1da0587
PA
1502013-08-30 Pedro Alves <[email protected]>
151
152 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
153
adfd8245
PA
1542013-08-30 Pedro Alves <[email protected]>
155
156 * frame.h (show_and_print_stack_frame): Delete declaration.
157
96d9056e
PM
1582013-08-30 Phil Muldoon <[email protected]>
159
160 PR python/15461
161
162 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
163 (archpy_name): Check for valid architecture.
164 (archpy_disassemble): Ditto.
165
11cb8762
JB
1662013-08-29 Joel Brobecker <[email protected]>
167
168 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
169 instead of "long long" in call to ptrace64.
170
1af12a7d
AB
1712013-08-29 Andrew Burgess <[email protected]>
172
173 * mi/mi-interp.c (mi_command_loop): Change signature to match
174 interp_command_loop_ftype.
175 (mi1_command_loop): Remove.
176 (mi2_command_loop): Remove.
177 (mi3_command_loop): Remove.
178 (mi_interpreter_resume): Remove setting of
179 deprecated_command_loop_hook.
180 (_initialize_mi_interp): Set mi_command_loop as the command loop
181 callback.
182
acc900c2
SA
1832013-08-29 Sanimir Agovic <[email protected]>
184
185 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
186 value_type.
187
548b762d
SA
1882013-08-29 Sanimir Agovic <[email protected]>
189
190 * value.c (allocate_value_contents): Make static.
191 * value.h (allocate_value_contents): Remove prototype.
192
08039c9e
SA
1932013-08-29 Sanimir Agovic <[email protected]>
194
195 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
196 of assembling value via allocate_value_lazy and attribute setter.
197 * findvar.c (default_read_var_value): Use value_at_lazy instead of
198 assembling value via allocate_value_lazy and attribute setter.
199 * valops.c (do_search_struct_field): Use value_at_lazy instead of
200 assembling value via allocate_value_lazy and attribute setter.
201
314c7de9
SA
2022013-08-29 Sanimir Agovic <[email protected]>
203
204 * value.c (value_from_contents_and_address): Replace allocate_value and
205 memcpy with value_from_contents.
206
8f28f522
PM
2072013-08-29 Phil Muldoon <[email protected]>
208
209 * python/py-framefilter.c (py_print_frame): Remove usage of
210 PyString_AsString. Use python_string_to_host_string instead.
211 Refactor function to work with a string as a new allocation
212 instead of a pointer.
213 (py_print_frame): Ditto.
214 * python/lib/gdb/frames.py (return_list): Cain iterators together
215 instead of adding them as a list.
216 (_sort_list): Call return_list, and remove duplicate code.
217 (execute_frame_filters): Convert iterator to a list with list().
218 * python/lib/gdb/command/frame_filters.py
219 (SetFrameFilterPriority._set_filter_priority): Convert priority
220 attribute to an integer.
221 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
222 wrapper function __next__.
223 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
224 define as "str".
225
8ee002df
PM
2262013-08-29 Phil Muldoon <[email protected]>
227
228 PR python/15752
8ee002df
PM
229 * python/py-framefilter.c (apply_frame_filter): Check
230 gdb_python_initialized. Exit if the Python frame-filter code
231 cannot be initialized.
232
af4c453a
PM
2332013-08-29 Phil Muldoon <[email protected]>
234
235 PR cli/15842
af4c453a
PM
236 * top.c (print_gdb_version): Remove erroneous newline after help
237 text.
238
bf8793bb
YQ
2392013-08-29 Yao Qi <[email protected]>
240
241 * varobj.c (install_dynamic_child): Remove trailing space.
242 Add one blank line after variable declaration.
243
1f0c4988
JK
2442013-08-28 Jan Kratochvil <[email protected]>
245
246 PR gdb/15415
247 * corefile.c (get_exec_file): Use exec_filename.
248 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
249 * exec.c (exec_close): Free EXEC_FILENAME.
250 (exec_file_attach): New variable canonical_pathname. Use
251 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
252 EXEC_FILENAME.
253 * exec.h (exec_filename): New.
254 * inferior.c (print_inferior, inferior_command): Use
255 PSPACE_EXEC_FILENAME.
256 * mi/mi-main.c (print_one_inferior): Likewise.
257 * progspace.c (clone_program_space, print_program_space): Likewise.
258 * progspace.h (struct program_space): New field pspace_exec_filename.
259 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
260 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
261
59ee9f94
WN
2622013-08-28 Will Newton <[email protected]>
263
264 * common/linux-ptrace.c: Include stdint.h unconditionally.
265
c8a2a419
JK
2662013-08-28 Jan Kratochvil <[email protected]>
267
268 Code cleanup.
269 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
270
ffa4ac95
YQ
2712013-08-28 Yao Qi <[email protected]>
272 Pedro Alves <[email protected]>
273
274 * event-top.c (gdb_setup_readline): Call stderr_fileopen
275 instead of stdio_fileopen.
276 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
277 .Call stderr_fileopen instead of stdio_fileopen.
278 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
279 [__MINGW32__] (stderr_file_fputs): New function.
280 (stderr_fileopen): New function.
281 * ui-file.h (stderr_fileopen): Declare.
282
69d751e3
DE
2832013-08-27 Doug Evans <[email protected]>
284
285 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
286 (struct dwarf2_per_cu_data): Ditto.
287 (maybe_queue_comp_unit): Delete forward decl. Add comment.
288 (process_imported_unit_die): Ditto.
289 (follow_die_sig_1): Simplify assert.
290
44f38867
PA
2912013-08-27 Pedro Alves <[email protected]>
292
293 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
294 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
295 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
296 windows_xfer_memory directly.
297 (init_windows_ops): Don't install a deprecated_xfer_memory method.
298
d28d46b5
PA
2992013-08-27 Pedro Alves <[email protected]>
300
301 * darwin-nat.c (darwin_xfer_memory): Delete.
302 (_initialize_darwin_inferior): Don't install a
303 deprecated_xfer_memory method.
304
6211c335
YQ
3052013-08-27 Pedro Alves <[email protected]>
306 Yao Qi <[email protected]>
307
308 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
309 (parse_no_frames_option): Remove.
310 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
311 (mi_cmd_stack_list_args): Adjust.
312 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
313 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
314 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
315 Caller update.
316 (list_args_or_locals): New parameter 'skip_unavailable'.
317 Handle it.
318 * valprint.c (scalar_type_p): Rename to ...
319 (val_print_scalar_type_p): ... this. Make extern.
320 (val_print, value_check_printable): Adjust.
321 * valprint.h (val_print_scalar_type_p): Declare.
322 * value.c (value_entirely_unavailable): New function.
323 * value.h (value_entirely_unavailable): Declare.
324
325 * NEWS: Mention the new option "--skip-unavailable" to MI
326 commands '-stack-list-locals', '-stack-list-arguments' and
327 '-stack-list-variables'.
328
242f1fd7
YQ
3292013-08-27 Yao Qi <[email protected]>
330
331 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
332 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
333 options.
334 * mi/mi-getopt.c (mi_getopt): Remove.
335 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
336 'error_on_unknown'.
337 (mi_getopt): Call mi_getopt_1.
338 (mi_getopt_silent): New.
339 * mi/mi-getopt.h (mi_getopt_silent): Declare.
340
260b681b
DE
3412013-08-26 Doug Evans <[email protected]>
342
779bd270
DE
343 PR symtab/15885
344 * dwarf2read.c (dw2_dump): Print some minimal information indicating
345 .gdb_index is in use.
346 * symfile.c (reread_symbols): Reset objfile->sf.
347
52e260a3
DE
348 * NEWS: Document "mt print objfiles" now takes optional regexp.
349 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
350 regexp of objfiles to print.
351 (_initialize_symmisc): Update doc string for "mt print objfiles".
352
260b681b
DE
353 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
354 missing debug info checks.
355
a85c52f2
UW
3562013-08-26 Raunaq Bathija <[email protected]>
357 Ulrich Weigand <[email protected]>
358
359 * xcoffread.c (arrange_linetable): Add fix to correctly handle
360 line tables generated by XLC compiled binaries.
361
4f00dda3
DE
3622013-08-23 Doug Evans <[email protected]>
363
db68bbae
DE
364 * symmisc.c (dump_symtab): Delete prototype.
365 (dump_msymbols, dump_objfile): Ditto.
366 (maintenance_info_symtabs): Mark as dont_repeat.
367 (_initialize_symmisc): Improve doc string for "mt info symtabs".
368
4f00dda3
DE
369 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
370 debugging printf to better location.
371
23d577b0
PA
3722013-08-23 Pedro Alves <[email protected]>
373
374 * target.c (target_read_live_memory): Change type of 'ret' local
375 to LONGEST.
376
00d84524
PA
3772013-08-23 Pedro Alves <[email protected]>
378
379 * remote.c (remote_write_bytes_aux, remote_write_bytes)
380 (remote_read_bytes): Change return type to LONGEST, and adjust to
381 return a target_xfer_error on error.
382 (remote_xfer_memory): Delete.
383 (remote_flash_write): Change type of 'ret' local to LONGEST.
384 (remote_xfer_partial, remote_xfer_partial): Adjust.
385 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
386
1ed3ee94
PM
3872013-08-23 Pierre Muller <[email protected]>
388
389 ARI fix: Push # directives to start of line.
390 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
391
9eaabc75
MW
3922013-08-12 Muhammad Waqas <[email protected]>
393
394 PR gdb/15501
395 * breakpoint.c (enable_command, disable_command): Iterate over
396 all specified breakpoint locations.
397
101158d9
LM
3982013-08-22 Luis Machado <[email protected]>
399
400 * common/linux-ptrace.c (linux_fork_to_function): Push #
401 directives to the start of the line.
402 (linux_check_ptrace_features): Fix warning message to use
403 the "_" markup.
404
96d7229d
LM
4052013-08-22 Luis Machado <[email protected]>
406
407 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
408 nat/linux-waitpid.h.
409 (linux-waitpid.o): New object file rule.
410 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
411 (current_ptrace_options): Moved from linux-nat.c.
412 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
413 parameters.
414 (linux_fork_to_function): New function.
415 (linux_grandchild_function): Likewise.
416 (linux_child_function): Likewise.
417 (linux_check_ptrace_features): New function, heavily
418 based on linux-nat.c:linux_test_for_tracefork.
419 (linux_enable_event_reporting): New function.
420 (ptrace_supports_feature): Likewise.
421 (linux_supports_tracefork): Likewise.
422 (linux_supports_traceclone): Likewise.
423 (linux_supports_tracevforkdone): Likewise.
424 (linux_supports_tracesysgood): Likewise.
425 * common/linux-ptrace.h (HAS_NOMMU): Moved from
426 gdbserver/linux-low.c.
427 (linux_enable_event_reporting): New declaration.
428 (linux_supports_tracefork): Likewise.
429 (linux_supports_traceclone): Likewise.
430 (linux_supports_tracevforkdone): Likewise.
431 (linux_supports_tracesysgood): Likewise.
432 * config.in (PTRACE_TYPE_ARG4): Regenerate.
433 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
434 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
435 * config/arm/linux.mh (NATDEPFILES): Likewise.
436 * config/i386/linux.mh (NATDEPFILES): Likewise.
437 * config/i386/linux64.mh (NATDEPFILES): Likewise.
438 * config/ia64/linux.mh (NATDEPFILES): Likewise.
439 * config/m32r/linux.mh (NATDEPFILES): Likewise.
440 * config/m68k/linux.mh (NATDEPFILES): Likewise.
441 * config/mips/linux.mh (NATDEPFILES): Likewise.
442 * config/pa/linux.mh (NATDEPFILES): Likewise..
443 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
444 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
445 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
446 * config/sparc/linux.mh (NATDEPFILES): Likewise.
447 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
448 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
449 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
450 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
451 ptrace's 4th argument's types.
452 Check the type of PTRACE_TYPE_ARG4.
453 * configure: Regenerate.
454 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
455 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
456 (linux_supports_tracefork_flag): Remove.
457 (linux_supports_tracesysgood_flag): Likewise.
458 (linux_supports_tracevforkdone_flag): Likewise.
459 (current_ptrace_options): Moved to
460 common/linux-ptrace.c.
461 (linux_tracefork_child): Remove.
462 (my_waitpid): Remove.
463 (linux_test_for_tracefork): Renamed to
464 linux_check_ptrace_features and moved to common/linux-ptrace.c.
465 (linux_test_for_tracesysgood): Remove.
466 (linux_supports_tracesysgood): Remove.
467 (linux_supports_tracefork): Remove.
468 (linux_supports_tracevforkdone): Remove.
469 (linux_enable_tracesysgood): Remove.
470 (linux_enable_event_reporting): Remove.
471 (linux_init_ptrace): New function.
472 (linux_child_post_attach): Call linux_init_ptrace.
473 (linux_child_post_startup_inferior): Call linux_init_ptrace.
474 (linux_child_follow_fork): Call linux_supports_tracefork
475 and linux_supports_tracevforkdone.
476 (linux_child_insert_fork_catchpoint): Call
477 linux_supports_tracefork.
478 (linux_child_insert_vfork_catchpoint): Likewise.
479 (linux_child_set_syscall_catchpoint): Call
480 linux_supports_tracesysgood.
481 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
482 * nat/linux-nat.h: New file.
483 * nat/linux-waitpid.c: New file.
484 * nat/linux-waitpid.h: New file.
485
9f948660
SDJ
4862013-08-22 Samuel Bronson <[email protected]>
487
488 ARM Linux support for `catch syscall'.
489 * syscalls/arm-linux.py: New file.
490 * syscalls/arm-linux.xml: Likewise.
491 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
492 (arm_linux_init_abi): Register the new function and syscall xml file.
493 * data-directory/Makefile.in: Install the new syscall xml file.
494 * NEWS: Brag about this.
495
6be7b56e
PA
4962013-08-22 Pedro Alves <[email protected]>
497
498 PR gdb/15871
499 * corefile.c (target_xfer_memory_error): New function.
500 (memory_error): Defer EIO to target_memory_error.
501 (read_memory): Use target_xfer_partial, and handle finer-grained
502 target xfer errors.
503 * target.c (target_xfer_error_to_string): New function.
504 (memory_xfer_partial_1): If memory is known to be
505 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
506 (target_xfer_partial): Make extern.
507 * target.h (enum target_xfer_error): New enum.
508 (target_xfer_error_to_string): Declare function.
509 (target_xfer_partial): Declare function.
510 (struct target_ops) <xfer_partial>: Adjust describing comment.
511
bcbec14e
AM
5122013-08-22 Alan Modra <[email protected]>
513
514 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
515 * configure.tgt: Likewise as targets.
516
fc474241
DE
5172013-08-20 Doug Evans <[email protected]>
518
519 * buildsym.c (subfile_stack): Move here from buildsym.h.
520 (pending_macros): Ditto.
521 (get_macro_table): New function.
522 (buildsym_init): Initialize subfile_stack.
523 * coffread.c (type_vector,type_vector_length): Moved here from
524 buildsym.h.
525 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
526 (coff_symtab_read): Use it.
527 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
528 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
529 with call to get_macro_table.
530 * stabsread.c (type_vector,type_vector_length): Moved here from
531 buildsym.h.
532 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
533 * buildsym.h (get_macro_table): Declare.
534
bec71544
TT
5352013-08-20 Tom Tromey <[email protected]>
536
537 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
538 Update.
539 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
540
0002ad5f
DE
5412013-08-20 Doug Evans <[email protected]>
542
543 * blockframe.c: Remove #include "psymtab.h".
544 * cp-support.c: Ditto.
545 * source.c: Ditto.
546 * stack.c: Ditto.
547
df302446
TT
5482013-08-20 Tom Tromey <[email protected]>
549
550 PR python/15816:
551 * exceptions.h (return_mask): Now an enum.
552 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
553 enum constants.
554
df6d5441
TT
5552013-08-20 Tom Tromey <[email protected]>
556
557 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
558 get_objfile_arch.
559 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
560 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
561 * jit.c (jit_object_close_impl): Update.
562 * jv-lang.c (get_dynamics_objfile): Update.
563 * linespec.c (add_minsym): Use get_dynamics_objfile.
564 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
565 (allocate_objfile): Don't initialize 'gdbarch' field.
566 (get_objfile_arch): Update.
567 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
568 moved from...
569 (struct objfile) <gdbarch>: ... here. Remove.
570 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
571 get_objfile_arch.
572 * symfile.c (init_entry_point_info): Use get_objfile_arch.
573
f5aee5ee
AM
5742013-08-20 Alan Modra <[email protected]>
575
576 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
577 for IBM long double nan and inf.
578 (floatformat_is_negative, floatformat_classify,
579 floatformat_mantissa): Similarly.
580 (floatformat_ieee_single, floatformat_ieee_double,
581 floatformat_ieee_quad, floatformat_arm_ext,
582 floatformat_ia64_spill): Delete unused vars.
583 (_initialize_doublest): Delete unused function.
584 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
585 little-endian variants of floatformat_ibm_long_double.
586
33b60d58 5872013-08-19 Luis Machado <[email protected]>
f5aee5ee 588
33b60d58
LM
589 * Makefile.in (SFILES): Remove common/target-common.c and
590 add target/waitstatus.c.
591 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
592 target/resume.h, target/wait.h and target/waitstatus.h.
593 (COMMON_OBS): Remove target-common.o and add
594 waitstatus.o.
595 (target-common.o): Remove.
596 (waitstatus.o): New target object file.
597 * common/target-common.c: Move contents to
598 target/waitstatus.c and remove.
599 * common/target-common.h: Move contents to other files and
600 remove.
601 (enum resume_kind: Move to target/resume.h.
602 (TARGET_WNOHANG): Move to target/wait.h.
603 (enum target_waitkind): Move to target/waitstatus.h.
604 (struct target_waitstatus): Likewise.
605 * target.h: Do not include target-common.h and
606 include target/resume.h, target/wait.h and
607 target/waitstatus.h.
608 * target/resume.h: New file.
609 * target/wait.h: New file.
610 * target/waitstatus.h: New file.
611 * target/waitstatus.c: New file.
612
12696c10
PA
6132013-08-19 Pedro Alves <[email protected]>
614
615 * linux-nat.c (linux_test_for_tracefork)
616 (linux_test_for_tracesysgood, linux_child_follow_fork)
617 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
618 (linux_nat_wait_1): Extend comment.
619 (linux_async_pipe): Add comment.
620
ba89f962
KB
6212013-08-15 Kevin Buettner <[email protected]>
622
623 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
624 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
625 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
626 Update to account for fact that PC is now a pseudo-register.
627 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
628 cases for RL78_PC_REGNUM.
629
35ab155d
MB
6302013-08-15 Muhammad Bilal <[email protected]>
631
632 PR cli/15841
633 * top.c (quit_force): Skip writing history file
634 if input is not from terminal.
635
0d031856
TT
6362013-08-14 Tom Tromey <[email protected]>
637
638 * remote.c (struct remote_state) <echo_nextthread, nextthread,
639 resultthreadlist>: New fields.
640 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
641 (remote_get_threadlist, remote_threadlist_iterator): Use
642 new fields. Remove static variables.
643
ee154bee
TT
6442013-08-14 Tom Tromey <[email protected]>
645
646 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
647 remote_watch_data_address>: New fields.
648 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
649 (process_stop_reply, remote_wait_as)
650 (remote_check_watch_resources, remote_stopped_data_address): Update.
651
88b496c3
TT
6522013-08-14 Tom Tromey <[email protected]>
653
654 * remote.c (struct remote_state) <async_client_callback,
655 async_client_context>: New fields.
656 (async_client_callback, async_client_context): Remove.
657 (remote_async_serial_handler, remote_async): Update.
658
2f65bcb7
TT
6592013-08-14 Tom Tromey <[email protected]>
660
661 * remote.c (sizeof_pkt): Remove.
662 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
663
b80fafe3
TT
6642013-08-14 Tom Tromey <[email protected]>
665
666 * remote.c (struct remote_state) <use_threadinfo_query,
667 use_threadextra_query>: New fields.
668 (remote_threads_info, remote_threads_extra_info)
669 (remote_open_1): Update.
670
8e88304f
TT
6712013-08-14 Tom Tromey <[email protected]>
672
673 * remote.c (struct remote_state) <finished_object,
674 finished_annex, finished_offset>: New fields.
675 (remote_read_qxfer): Use remote_state fields; remove static
676 variables.
677
280ceea3
TT
6782013-08-14 Tom Tromey <[email protected]>
679
680 * remote.c (struct remote_state) <last_sent_step>:
681 New field.
682 (last_sent_step): Remove.
683 (remote_resume, remote_wait_as): Update.
684
b73be471
TT
6852013-08-14 Tom Tromey <[email protected]>
686
687 * remote.c (struct remote_state) <last_sent_signal>:
688 New field.
689 (last_sent_signal): Remove.
690 (new_remote_state, remote_resume, remote_wait_as): Update.
691
5e4a05c4
TT
6922013-08-14 Tom Tromey <[email protected]>
693
694 * remote.c (struct remote_state) <last_program_signals_packet>:
695 New field.
696 (last_program_signals_packet): Remove.
697 (remote_program_signals, remote_open_1): Update.
698
747dc59d
TT
6992013-08-14 Tom Tromey <[email protected]>
700
701 * remote.c (struct remote_state) <last_pass_packet>:
702 New field.
703 (last_pass_packet): Remove.
704 (remote_pass_signals, remote_open_1): Update.
705
262e1174
TT
7062013-08-14 Tom Tromey <[email protected]>
707
708 * remote.c (struct remote_state) <remote_traceframe_number>:
709 New field.
710 (remote_traceframe_number): Remove.
711 (new_remote_state, remote_open_1, set_remote_traceframe)
712 (remote_trace_find): Update.
713
47f8a51d
TT
7142013-08-14 Tom Tromey <[email protected]>
715
716 * remote.c (struct remote_state) <general_thread, continue_thread>:
717 New fields.
718 (general_thread, continue_thread): Remove.
719 (record_currthread, set_thread, set_general_process)
720 (remote_open_1, extended_remote_attach_1, remote_wait_as)
721 (extended_remote_mourn_1): Update.
722
5d93a237
TT
7232013-08-14 Tom Tromey <[email protected]>
724
725 * remote.c (struct remote_state) <remote_desc>: New field.
726 (remote_desc): Remove.
727 (remote_threads_info, remote_threads_extra_info, remote_close)
728 (send_interrupt_sequence, remote_start_remote, remote_open_1)
729 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
730 (remote_hostio_send_command, remote_file_put, remote_file_get)
731 (remote_file_delete, remote_can_async_p, remote_is_async_p)
732 (remote_async, remote_new_objfile, set_range_stepping): Update.
733
cf792862
TT
7342013-08-14 Tom Tromey <[email protected]>
735
736 * remote.c (remote_state): Now a pointer.
737 (get_remote_state_raw): Update.
738 (new_remote_state): New function.
739 (_initialize_remote): Use new_remote_state.
740
dc473cfb
TT
7412013-08-14 Tom Tromey <[email protected]>
742
743 * remote.c (remote_protocol_features): Now const.
744
85ec6ce7
TT
7452013-08-14 Tom Tromey <[email protected]>
746
747 * remote.c (crc32_table, crc32): Remove.
748 (remote_verify_memory): Use xcrc32.
749
73033f12
SDJ
7502013-08-13 Sergio Durigan Junior <[email protected]>
751
752 * value.h (create_internalvar_type_lazy): Adjust prototype
753 declaration.
754
5c30d39a
AB
7552013-08-13 Andrew Burgess <[email protected]>
756
757 * common/format.c (parse_format_string): Don't allow '#' flag for
758 pointer arguments in format string.
759
1a66331e
PM
7602013-08-13 Pierre Muller <[email protected]>
761
fde605f3 762 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
763 if rl_get_screen_size did not return useful values.
764
b4013987
AA
7652013-08-12 Ali Anwar <[email protected]>
766
767 PR breakpoints/15117
768 * linespec.c (linespec_parse_basic): Check for convenience
769 variable or history value while parsing.
770
959b6a66
SDJ
7712013-08-12 Sergio Durigan Junior <[email protected]>
772
773 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
774 AVR.
775 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
776 different signals between the generic Linux kernel implementation
777 and AVR's.
778 (avr_linux_gdb_signal_from_target): Delete.
779 (avr_linux_gdb_signal_to_target): Delete.
780 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
781
24a55014
DE
7822013-08-09 Doug Evans <[email protected]>
783
784 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
785 entries.
786
eb14d406
SDJ
7872013-08-09 Sergio Durigan Junior <[email protected]>
788
789 * linux-tdep.c: Define enum with generic signal numbers.
790 (linux_gdb_signal_from_target): New function.
791 (linux_gdb_signal_to_target): Likewise.
792 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
793 methods to the functions above.
794 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
795 (linux_gdb_signal_to_target): Likewise.
796 * alpha-linux-tdep.c: Define new enum with signals different
797 from generic Linux kernel.
798 (alpha_linux_gdb_signal_from_target): New function.
799 (alpha_linux_gdb_signal_to_target): Likewise.
800 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
801 with the functions mentioned above.
802 * avr-tdep.c: Define enum with differences between Linux kernel
803 and AVR signals.
804 (avr_linux_gdb_signal_from_target): New function.
805 (avr_linux_gdb_signal_to_target): Likewise.
806 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
807 the functions mentioned above.
808 * sparc-linux-tdep.c: Define enum with differences between SPARC
809 and generic Linux kernel signal numbers.
810 (sparc32_linux_gdb_signal_from_target): New function.
811 (sparc32_linux_gdb_signal_to_target): Likewise.
812 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
813 to the functions defined above.
814 * xtensa-linux-tdep.c: Define enum with differences between
815 Xtensa and Linux kernel generic signals.
816 (xtensa_linux_gdb_signal_from_target): New function.
817 (xtensa_linux_gdb_signal_to_target): Likewise.
818 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
819 to the functions defined above.
820 * mips-linux-tdep.c: Define enum with differences between
821 signals in MIPS and Linux kernel generic ones.
822 (mips_gdb_signal_to_target): New function.
823 (mips_gdb_signal_from_target): Redefine to use new enum, handle
824 only different signals from the Linux kernel generic.
825 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
826 the functions defined above.
827 * mips-linux-tdep.h (enum mips_signals): Remove.
828
156d08c8
PA
8292013-08-09 Pedro Alves <[email protected]>
830
831 * avr-tdep.c (XMALLOC): Delete macro.
832 * cli/cli-dump.c (XMALLOC): Delete macro.
833
db229724
PA
8342013-08-09 Pedro Alves <[email protected]>
835
836 * cli/cli-dump.c: Don't include cli/cli-dump.h.
837 (scan_expression_with_cleanup, scan_filename_with_cleanup)
838 (fopen_with_cleanup, add_dump_command): Make static.
839 * cli/cli-dump.h: Delete file.
840 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
841 cli/cli-dump.h.
842
3f12a589
PA
8432013-08-09 Pedro Alves <[email protected]>
844
845 * tracepoint.c (tfile_start): Show tilde-expanded filename in
846 error message.
847
c718be47
PA
8482013-08-09 Pedro Alves <[email protected]>
849
156d08c8 850 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
851 error message.
852
1e351ed1
PA
8532013-08-09 Pedro Alves <[email protected]>
854
855 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
856 (gcore_command): Use tilde_expand here, and when showing the
857 filename to the user, show the expanded version.
858
1ed8d800
YQ
8592013-08-09 Yao Qi <[email protected]>
860
861 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
862 'entryval' is set.
863
47ecca85
PA
8642013-08-08 Azat Khuzhin <[email protected]> (tiny change)
865
866 * gcore.c (create_gcore_bfd): Use tilde_expand.
867
82a0a75f
YQ
8682013-08-08 Yao Qi <[email protected]>
869
870 * frame.h (read_frame_local): Declare.
871 * mi/mi-cmd-stack.c (list_args_or_locals): Call
872 read_frame_local.
873 * stack.c (read_frame_local): New.
874
5c4aa40b
YQ
8752013-08-08 Yao Qi <[email protected]>
876
877 * mi/mi-cmd-stack.c: Update comments to function
878 list_args_or_locals.
879
b93601f3
TT
8802013-08-07 Tom Tromey <[email protected]>
881
882 PR symtab/15028:
883 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
884 (process_psymtab_comp_unit_reader): Use it.
885 (process_psymtab_comp_unit): Update. Add "pretend_language"
886 argument.
887 (dwarf2_build_psymtabs_hard): Update.
888 (scan_partial_symbols): Pass CU's language to
889 process_psymtab_comp_unit.
890
fa760f46
TT
8912013-08-07 Tom Tromey <[email protected]>
892
893 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
894 (dwarf2_gdb_index_functions): Update.
895 * psymtab.c (find_symbol_file_from_partial): Remove.
896 (psym_functions): Update.
897 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
898 Remove.
899
bf6d8a91
TT
9002013-08-07 Tom Tromey <[email protected]>
901
902 * symfile.c (set_initial_language): Look up "main" symbol
903 and use its language.
904 * symtab.c (find_main_filename): Remove.
905 * symtab.h (find_main_filename): Remove.
906
f9125b6c
TT
9072013-08-07 Tom Tromey <[email protected]>
908
909 * dwarf2read.c (recursively_compute_inclusions): Add
910 "immediate_parent" argument. Set symtab's "user" field
911 if not set.
912 (compute_symtab_includes): Update.
913
fdbb204b
TT
9142013-08-07 Tom Tromey <[email protected]>
915
916 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
917 when adding label symbols.
918
49de1690
UW
9192013-08-07 Raunaq Bathija <[email protected]>
920 Ulrich Weigand <[email protected]>
921
922 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
923 * configure.host (powerpc64-*-aix*): Likewise.
924
b08ee99f
UW
9252013-08-07 Raunaq Bathija <[email protected]>
926 Ulrich Weigand <[email protected]>
927
928 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
929 is defined.
930 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
931 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
932 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
933 * configure.ac: Check for ptrace64.
934 * configure, config.in: Regenerate.
935
fecf803e
UW
9362013-08-07 Raunaq Bathija <[email protected]>
937 Ulrich Weigand <[email protected]>
938
939 * aixthread.c: Call ptrace64 instead of ptracex if defined.
940 Call ptrace64 instead of ptrace if defined.
941 Add macro addr_ptr to take care of ptrace address argument.
942 (pdc_read_regs): Likewise.
943 (pdc_write_regs): Likewise.
944 (aix_thread_resume): Likewise.
945 (fetch_regs_kernel_thread): Likewise.
946 (store_regs_kernel_thread): Likewise.
947
3bb5e4a8
AB
9482013-08-07 Anton Blanchard <[email protected]>
949
950 * MAINTAINERS: Add myself to Write After Approval.
951
12070676
TT
9522013-08-05 Tom Tromey <[email protected]>
953
954 * aix-thread.c (_initialize_aix_thread): Use
955 complete_target_initialization.
956 * bsd-uthread.c (_initialize_bsd_uthread): Use
957 complete_target_initialization.
958 * dec-thread.c (_initialize_dec_thread): Use
959 complete_target_initialization.
960 * ravenscar-thread.c (_initialize_ravenscar): Use
961 complete_target_initialization.
962 * sol-thread.c (_initialize_sol_thread): Use
963 complete_target_initialization.
964 * spu-multiarch.c (_initialize_spu_multiarch): Use
965 complete_target_initialization.
966
7c7b6655
TT
9672013-08-05 Tom Tromey <[email protected]>
968
969 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
970 * ada-lang.c (ada_lookup_simple_minsym): Return
971 bound_minimal_symbol.
972 * ada-lang.h (ada_lookup_simple_minsym): Update.
973 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
974 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
975 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
976 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
977 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
978 * minsyms.c (msymbol_objfile): Remove.
979 (lookup_minimal_symbol_internal): New function, from
980 lookup_minimal_symbol.
981 (lookup_minimal_symbol): Rewrite using
982 lookup_minimal_symbol_internal.
983 (lookup_bound_minimal_symbol): New function.
984 * minsyms.h (msymbol_objfile): Remove.
985 (lookup_bound_minimal_symbol): Declare.
986 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
987 * parse.c (write_exp_msymbol): Change parameter to a
988 bound_minimal_symbol.
989 (write_dollar_variable): Use lookup_bound_minimal_symbol.
990 * parser-defs.h (write_exp_msymbol): Update.
991 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
992 * symfile.c (simple_read_overlay_table): Use
993 lookup_bound_minimal_symbol.
994 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
995 (search_symbols): Likewise.
996 (print_msymbol_info): Take a bound_minimal_symbol argument.
997 (symtab_symbol_info, rbreak_command): Update.
998 * symtab.h (struct symbol_search) <msymbol>: Change type
999 to bound_minimal_symbol.
1000 * valops.c (find_function_in_inferior): Use
1001 lookup_bound_minimal_symbol.
1002 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1003
934b9bac
JK
10042013-08-05 Jan Kratochvil <[email protected]>
1005
1006 Code cleanup.
1007 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1008 to ...
1009 (async_cleanup_sigint_signal_handler): ... this.
1010 (initialize_sigint_signal_handler): Remove declaration.
1011 (handle_remote_sigint): Rename the declaration to ...
1012 (async_handle_remote_sigint): ... this.
1013 (handle_remote_sigint_twice): Rename the declaration to ...
1014 (async_handle_remote_sigint_twice): ... this.
1015 (async_remote_interrupt, async_remote_interrupt_twice)
1016 (remote_interrupt): Remove the declarations.
1017 (remote_interrupt_twice): Rename the declaration ...
1018 (sync_remote_interrupt_twice): ... this.
1019 (sigint_remote_twice_token): Rename the variable to ...
1020 (async_sigint_remote_twice_token): ... this.
1021 (sigint_remote_token): Rename the variable to ...
1022 (async_sigint_remote_token): ... this.
1023 (initialize_sigint_signal_handler): Rename the function to ...
1024 (async_initialize_sigint_signal_handler): ... this. Update the name
1025 inside.
1026 (handle_remote_sigint): Rename the function to ...
1027 (async_handle_remote_sigint): ... this. Update the names inside.
1028 (handle_remote_sigint_twice): Rename the function to ...
1029 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1030 (cleanup_sigint_signal_handler): Rename the function to ...
1031 (async_cleanup_sigint_signal_handler): ... this.
1032 (remote_interrupt): Rename the function to ...
1033 (sync_remote_interrupt): this. Update the names inside.
1034 (remote_interrupt_twice): Rename the function to ...
1035 (sync_remote_interrupt_twice): this. Update the names inside.
1036 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1037 (_initialize_remote): Update the names inside.
1038
3a1115a0
TT
10392013-08-02 Tom Tromey <[email protected]>
1040
1041 PR symtab/15719:
1042 * breakpoint.c (update_watchpoint, watchpoint_check)
1043 (watch_command_1): Update.
1044 * eval.c (fetch_subexp_value): Add "preserve_errors"
1045 parameter.
1046 * ppc-linux-nat.c (check_condition): Update.
1047 * value.h (fetch_subexp_value): Update.
1048
58b19776
AB
10492013-08-02 Andrew Burgess <[email protected]>
1050
1051 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1052 add_file_handler.
1053
ec94af83
DE
10542013-08-01 Doug Evans <[email protected]>
1055
7ee85ab1
DE
1056 PR symtab/15691
1057 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1058 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1059 Add assert of sig_entry->dwo_unit == NULL.
1060 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1061 had already been read.
1062 (read_signatured_type): Set per_cu.tu_read.
1063
b846d303
DE
1064 PR symtab/15695
1065 * valops.c (value_struct_elt): Add missing call to check_typedef.
1066 (value_find_oload_method_list): Ditto.
1067
b52109bc
DE
1068 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1069 effectively, struct symbol_search **.
1070 (make_cleanup_free_search_symbols): Change arg to struct
1071 symbol_search **. All callers updated.
1072 (compare_search_syms): Compare symtab file name and block as well.
1073 (search_symbols_equal): New function.
1074 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1075 New args new_head, new_tail. Result is now void. Remove dups after
1076 sorting the symbols.
1077 (search_symbols): Sort all found symbols once, after all have been
1078 found, and remove duplicates. Simplify cleanup tracking of result.
1079 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1080
ec94af83
DE
1081 Further workarounds for binutils/15021.
1082 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1083 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1084 Watch for duplicate symtabs coming from type units.
1085 (compute_symtab_includes): Update call to
1086 recursively_compute_inclusions. Build vector of included symtabs
1087 instead of per_cus.
1088 * symtab.h (symtab_ptr): New typedef.
1089 (DEF_VEC_P (symtab_ptr)): New VEC type.
1090 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1091 instead.
1092
b2ae85cf
AB
10932013-08-01 Andrew Burgess <[email protected]>
1094
1095 * cli/cli-script.c (script_from_file): Remove use of
1096 error_pre_print.
1097 * main.c (captured_main): Remove use of error_pre_print and
1098 quit_pre_print.
1099 * utils.c (error_pre_print, quit_pre_print): Remove.
1100 * utils.h (error_pre_print, quit_pre_print): Likewise.
1101
645eab03
YQ
11022013-08-01 Yao Qi <[email protected]>
1103
1104 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1105 with mi_getopt.
1106 (mi_cmd_stack_list_variables): Likewise.
1107
16f92dd4
AB
11082013-07-31 Andrew Burgess <[email protected]>
1109
1110 * exceptions.c (deprecated_throw_reason): Remove.
1111 * exceptions.h (deprecated_throw_reason): Remove.
1112
13f78033
AB
11132013-07-31 Andrew Burgess <[email protected]>
1114
1115 * remote-mips.c (mips_error): Replace use of
1116 deprecated_throw_reason with throw_verror. Use the error message
1117 passed to mips_error as the error message for throw_verror.
1118
039e3c22
AB
11192013-07-31 Andrew Burgess <[email protected]>
1120
1121 * monitor.c (monitor_interrupt_query): Replace use of
1122 deprecated_throw_reason with quit.
1123 * nto-procfs.c (interrupt_query): Likewise.
1124 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1125 * remote-mips.c (mips_kill): Likewise.
1126 * remote.c (interrupt_query): Likewise.
1127
8150913b
AB
11282013-07-31 Andrew Burgess <[email protected]>
1129
1130 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1131 with call to fatal.
1132
de74e63a
YQ
11332013-07-31 Pedro Alves <[email protected]>
1134 Yao Qi <[email protected]>
1135
1136 * tracepoint.c (trace_dump_command): Select the current frame.
1137
247f5c4f
DE
11382013-07-30 Doug Evans <[email protected]>
1139
1140 * dwarf2read.c (process_queue): Add type signature to debug output.
1141
11b4b7cc
AB
11422013-07-30 Andrew Burgess <[email protected]>
1143
1144 * value.c (value_fetch_lazy): Mark optimized out values as such
1145 rather than raising an error.
1146
b0c54aa5
AB
11472013-07-30 Andrew Burgess <[email protected]>
1148
1149 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1150 before checking which bits of the parent, not the child, value are
1151 valid.
1152
97c85fc6
MB
11532013-07-30 Muhammad Bilal <[email protected]>
1154
1155 PR gdb/15715
1156 * top.c: Include "filenames.h".
1157 (set_history_filename): New function.
1158 (init_main): Install it as set hook of the "set history filename"
1159 command.
1160
ff39bb5e
SA
11612013-07-30 Sanimir Agovic <[email protected]>
1162
1163 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1164 attribute parameter.
1165 (dwarf2_const_value_data): Constify struct attribute parameter.
1166 (dwarf2_const_value): Constify struct attribute parameter.
1167 (dwarf2_const_value_attr): Constify struct attribute parameter.
1168 (lookup_die_type): Constify struct attribute parameter.
1169 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1170 (follow_die_ref_or_sig): Constify struct attribute parameter.
1171 (follow_die_ref): Constify struct attribute parameter.
1172 (follow_die_sig): Constify struct attribute parameter.
1173 (get_DW_AT_signature_type): Constify struct attribute parameter.
1174 (get_type_unit_group): Constify struct attribute parameter.
1175 (fill_in_loclist_baton): Constify struct attribute parameter.
1176 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1177 (type_unit_group): Constify struct attribute parameter.
1178
6e5a29e1
SA
11792013-07-30 Sanimir Agovic <[email protected]>
1180
1181 * dwarf2read.c (attr_form_is_block): Make argument const.
1182 (attr_form_is_section_offset): Make argument const.
1183 (attr_form_is_constant): Make argument const.
1184 (attr_form_is_ref): Make argument const.
1185
7771576e
SA
11862013-07-30 Sanimir Agovic <[email protected]>
1187
1188 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1189 All uses updated.
1190 (attr_form_is_ref): Moved below attr_form_is_constant.
1191
a94e8645
DE
11922013-07-29 Doug Evans <[email protected]>
1193
bb5291d0
DE
1194 * main.c (captured_command_loop): Tweak comment.
1195
b5419e49
DE
1196 * target.c (target_async_permitted_1): Fix comment.
1197
b2d23133
DE
1198 * symtab.c (iterate_over_some_symtabs): Add comment.
1199
a94e8645
DE
1200 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1201
7a60ad40
YQ
12022013-07-27 Yao Qi <[email protected]>
1203
1204 * NEWS: Mention that GDBserver now supports hardware
1205 watchpoints on the MIPS GNU/Linux target.
1206
aaee2056
YQ
12072013-07-27 Yao Qi <[email protected]>
1208
1209 * Makefile.in (HFILES_NO_SRCDIR): Add
1210 common/mips-linux-watch.h.
1211 (mips-linux-watch.o): New rule.
1212 * common/mips-linux-watch.c: New.
1213 * common/mips-linux-watch.h: New.
1214 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1215 * mips-linux-nat.c: Include mips-linux-watch.h.
1216 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1217 to common/mips-linux-watch.h.
1218 (MAX_DEBUG_REGISTER): Likewise.
1219 (enum pt_watch_style): Likewise.
1220 (struct mips32_watch_regs): Likewise.
1221 (struct mips64_watch_regs): Likewise.
1222 (struct pt_watch_regs): Likewise.
1223 (struct mips_watchpoint): Likewise.
1224 (mips_linux_watch_get_irw_mask): Move to
1225 common/mips-linux-watch.c.
1226 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1227 (mips_linux_watch_get_watchlo): Likewise.
1228 (mips_linux_watch_set_watchlo): Likewise.
1229 (mips_linux_watch_get_watchhi): Likewise.
1230 (mips_linux_watch_set_watchhi): Likewise.
1231 (mips_linux_read_watch_registers): Likewise.
1232 (mips_linux_watch_type_to_irw): Likewise.
1233 (mips_linux_stopped_data_address, fill_mask): Likewise.
1234 (mips_linux_watch_try_one_watch): Likewise.
1235 (mips_linux_watch_populate_regs): Likewise.
1236
b3436450
YQ
12372013-07-27 Yao Qi <[email protected]>
1238
1239 * mips-linux-nat.c (get_irw_mask): Rename to ...
1240 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1241 'set' to 'n'. Update function comment. All callers changed.
1242 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1243 function comment. All callers changed.
1244 (get_num_valid): Rename to ...
1245 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1246 'set' to 'n'. Update function comment. All callers changed.
1247 (get_watchlo): Rename to ...
1248 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1249 'set' to 'n'. Update function comment. All callers changed.
1250 (set_watchlo): Rename to ...
1251 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1252 'set' to 'n'. Update function comment. All callers changed.
1253 (get_watchhi): Rename to ...
1254 (mips_linux_watch_get_watchhi): ... this. Update function
1255 comment. All callers changed.
1256 (set_watchhi): Rename to ...
1257 (mips_linux_watch_set_watchhi): ... this. Update function
1258 comment. All callers changed.
1259 (mips_linux_read_watch_registers): Update function comment.
1260 Add new parameters 'lwpid', 'watch_readback', and
1261 'watch_readback_valid'. Update.
1262 (type_to_irw): Rename to ...
1263 (mips_linux_watch_type_to_irw): ... this. Update function
1264 comment. All callers changed.
1265 (fill_mask): Update function comment.
1266 (try_one_watch): Rename to ...
1267 (mips_linux_watch_try_one_watch): ... this. Change the type
1268 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1269 (populate_regs_from_watches): Rename to ...
1270 (mips_linux_watch_populate_regs): ... this. Add parameter
1271 'current_watches'. All callers changed.
1272
9be14b81
YQ
12732013-07-27 Yao Qi <[email protected]>
1274
1275 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1276 the code.
1277 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1278 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1279 (struct pt_watch_regs): Likewise.
1280 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1281 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1282 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1283 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1284 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1285
de6f69ad
YQ
12862013-07-27 Yao Qi <[email protected]>
1287
1288 * breakpoint.h: Include break-common.h.
1289 (enum target_hw_bp_type): Move to ...
1290 * common/break-common.h: ... here. New.
1291
6f64ef53
PA
12922013-07-26 Cyril Nikolaev <[email protected]>
1293
1294 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1295 process group regardless of having tty on stdin.
1296
6107e809
DE
12972013-07-25 Doug Evans <[email protected]>
1298
1299 * linux-fork.h (detach_fork): Delete.
1300
7fdc1521
TT
13012013-07-25 Tom Tromey <[email protected]>
1302
1303 PR remote/15256, PR remote/15266:
1304 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1305 * monitor.c (monitor_detach): Use unpush_target.
1306 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1307 * remote-mips.c (mips_detach): Use unpush_target. Don't
1308 call mips_close.
1309 * remote-sim.c (gdbsim_detach): Use unpush_target.
1310 * target.c (pop_target): Remove.
1311 (pop_all_targets_above): Don't call target_close.
1312 (target_close): Assert that the target is unpushed.
1313 * target.h (pop_target): Don't declare.
1314 * tracepoint.c (tfile_open): Use unpush_target.
1315
c22a2b88
TT
13162013-07-25 Tom Tromey <[email protected]>
1317
1318 * linux-thread-db.c (init_thread_db_ops): Call
1319 complete_target_initialization.
1320 (_initialize_thread_db): Don't call add_target.
1321 * target.c (complete_target_initialization): New function.
1322 (add_target_with_completer): Call it.
1323 * target.h (complete_target_initialization): Declare.
1324
cbb6aada
MK
13252013-07-25 Mark Kettenis <[email protected]>
1326
1327 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1328 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1329 (HPPANBSD_SIZEOF_GREGS): New define.
1330 (hppaobsd_supply_gregset): Handle additional registers.
1331 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1332 we provide more registers now.
1333 (hppabsd_supply_gregset): Supply additional registers.
1334 (hppabsd_collect_gregset): Collect additional registers.
1335
17767988
MK
13362013-07-25 Mark Kettenis <[email protected]>
1337
1338 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1339 (hppabsd_dwarf2_frame_init_reg): New function.
1340 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1341
fdc8aae8
AB
13422013-07-25 Andrew Burgess <[email protected]>
1343
1344 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1345 'z' format code. Remove error for optimized out values, standard
1346 code will handle these fine.
1347
6fbe845e
AB
13482013-07-25 Andrew Burgess <[email protected]>
1349
1350 * NEWS: Mention new 'z' formatter.
1351 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1352 (_initialize_printcmd): Mention 'z' formatter in help text of the
1353 'x' command.
1354
3373342d
MR
13552013-07-24 Maciej W. Rozycki <[email protected]>
1356
1357 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1358 formatting.
1359
25f9533e
SDJ
13602013-07-24 Sergio Durigan Junior <[email protected]>
1361
1362 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1363 interface can evaluate arguments. Fallback to the old mode if it
1364 cannot.
1365 (create_exception_master_breakpoint): Likewise.
1366 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1367 (struct sym_probe_fns elf_probe_fns): Export function above to the
1368 probe interface.
1369 * probe.c (can_evaluate_probe_arguments): New function.
1370 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1371 function pointer.
1372 (can_evaluate_probe_arguments): New function prototype.
1373 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1374 probe interface can evaluate arguments. Fallback to the old mode
1375 if it cannot.
1376 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1377 interface can evaluate arguments. Warning the user if it cannot.
1378 (stap_can_evaluate_probe_arguments): New function.
1379 (struct probe_ops stap_probe_ops): Export function above to the
1380 probe interface.
1381 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1382 New function pointer.
1383
3360c0bf
LM
13842013-07-24 Luis Machado <[email protected]>
1385
1386 * Makefile.in (SFILES): Add common/target-common.c.
1387 Add common/target-common.h to headers.
1388 (COMMON_OBS): Add target-common.o.
1389 (target-common.o): New target.
1390 * linux-nat.h (resume_kind): Move to common/target-common.h.
1391 * target.c (target_waitstatus_to_string): Move to
1392 common/target-common.c.
1393 * target.h: Include target-common.h.
1394 (target_waitkind): Move to common/target-common.h.
1395 (target_waitstatus): Likewise.
1396 (TARGET_WNOHANG): Likewise.
1397 * common/target-common.c: New file.
1398 * common/target-common.h: New file.
1399
6656a72d
DE
14002013-07-24 Doug Evans <[email protected]>
1401
1402 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1403 a warning.
1404
6df81a63
YQ
14052013-07-23 Yao Qi <[email protected]>
1406
1407 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1408 parameter 'gdbarch'.
1409 (i386_stack_tramp_frame_sniffer): Caller update.
1410 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1411 parameter 'gdbarch' and 'target'.
1412 (i386_linux_core_read_description): Caller update.
1413 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1414 Likewise.
1415 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1416 declaration.
1417
365156ad
TT
14182013-07-23 Tom Tromey <[email protected]>
1419
1420 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1421 2013-07-22.
1422
046ac79f
JK
14232013-07-22 Doug Evans <[email protected]>
1424
1425 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
1426 * exec.c (exec_close): Update call to remove_target_sections.
1427 (remove_target_sections): Delete arg abfd.
046ac79f
JK
1428 * solib.c (update_solib_list): Ditto.
1429 (reload_shared_libraries_1): Ditto.
1430 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
1431 * target.h (struct target_section): Rename key to owner.
1432 All uses updated.
046ac79f 1433
29b2cc46
TT
14342013-07-22 Tom Tromey <[email protected]>
1435
1436 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1437
d1160018
TT
14382013-07-22 Tom Tromey <[email protected]>
1439
1440 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1441 Simplify cleanup handling.
1442
2f324bf6
TT
14432013-07-22 Tom Tromey <[email protected]>
1444
1445 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1446 on all return paths.
1447
e23b9d6e
UW
14482013-07-22 Edjunior Barbosa Machado <[email protected]>
1449
1450 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1451 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1452 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1453
1cf55f60
PM
14542013-07-22 Phil Muldoon <[email protected]>
1455
1456 * top.c (print_gdb_version): Add help, apropos description and
1457 url to online documentation.
1458
fa876972
HZ
14592013-07-19 Hui Zhu <[email protected]>
1460
1461 PR gdb/15692
1462 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1463
1527aea8
YQ
14642013-07-19 Yao Qi <[email protected]>
1465
1466 * target.c (update_current_target): Change the default action
1467 of 'to_traceframe_info' from tcomplain to return_zero.
1468 * target.h (struct target_ops) <to_traceframe_info>: Add more
1469 comments.
1470 * valops.c (read_value_memory): Call
1471 traceframe_available_memory unconditionally.
1472
886f230e
YQ
14732013-07-18 Yao Qi <[email protected]>
1474
1475 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1476 if the name is prefixed by "__imp_" or "_imp_", look for minimal
1477 symbol without prefix. If found, set its type to
1478 'mst_solib_trampoline'.
1479
16419bae
DE
14802013-07-17 Doug Evans <[email protected]>
1481
e7045703
DE
1482 * NEWS: Mention "set print raw frame-arguments".
1483 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1484 * stack.c (print_raw_frame_arguments): New static global.
1485 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1486 (_initialize_stack): New command "set/show print raw frame-arguments".
1487 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1488 (set_print_raw, show_print_raw): New functions.
1489 (_initialize_valprint): New prefix command "set/show print raw".
1490 * valprint.h (value_print_options): Improve comments.
1491
453e48a5
DE
1492 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1493 of all *list variables.
1494
16419bae
DE
1495 * gdbcmd.h (togglelist): Delete.
1496 * cli/cli-cmds.c (togglelist): Delete.
1497 (init_cmd_lists): Update.
1498 * cli/cli-cmds.h (togglelist): Delete.
1499
626f2d1c
TT
15002013-07-17 Tom Tromey <[email protected]>
1501
1502 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1503 dwarf2_per_objfile.
1504
57e6060e
DE
15052013-07-16 Doug Evans <[email protected]>
1506
1507 * nto-tdep.c (nto_relocate_section_addresses): Update,
1508 target_section.bfd deleted.
1509 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1510 * s390-tdep.c (s390_load): Ditto.
1511 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1512
5ea5559b
AB
15132013-07-16 Andrew Burgess <[email protected]>
1514
1515 * common/format.c (parse_format_string): Add checks for NULL
1516 character before calling strchr.
1517
2b2848e2
DE
15182013-07-16 Doug Evans <[email protected]>
1519
2c571006
DE
1520 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1521 temp_pathname argument.
1522 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1523 when opening the file fails.
1524
2b2848e2
DE
1525 * target.h (struct target_section): Delete member bfd.
1526 All users updated to use the_bfd_section->owner instead.
1527 * exec.c (add_to_section_table): Assert bfd is expected value.
1528 Remove initialization of target_section.bfd.
1529 (remove_target_sections): Update.
1530 (section_table_available_memory): Update.
1531 (section_table_xfer_memory_partial): Update.
1532 (print_section_info): Update.
1533 (exec_set_section_address): Update.
1534 * record-full.c (record_full_core_xfer_partial): Update.
1535 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1536 * solib-target.c (solib_target_relocate_section_addresses): Update.
1537 * symfile.c (build_section_addr_info_from_section_table): Update.
1538 * target.c (memory_xfer_live_readonly_partial): Update.
1539 (memory_xfer_partial_1): Update.
1540
926bf92d
UW
15412013-07-15 Edjunior Barbosa Machado <[email protected]>
1542
1543 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1544 now available for embedded (BookE) and server (BookS) processors,
1545 correct mentions of 'booke' and adjust comments accordingly in order to
1546 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1547 (have_ptrace_booke_interface): Rename function and variable
1548 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1549 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1550 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1551 'hwdebug_point_cmp'. Update all uses.
1552 (booke_find_thread_points_by_tid): Rename function
1553 'booke_find_thread_points_by_tid' to
1554 'hwdebug_find_thread_points_by_tid'. Update all uses.
1555 (booke_insert_point): Rename function 'booke_insert_point' to
1556 'hwdebug_insert_point'. Update all uses.
1557 (booke_remove_point): Rename function 'booke_remove_point' to
1558 'hwdebug_remove_point'. Update all uses.
1559
d929bc19
MR
15602013-07-15 Maciej W. Rozycki <[email protected]>
1561
1562 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1563 numbers with enum values.
1564
054e8d9e
AA
15652013-07-15 Ali Anwar <[email protected]>
1566
1567 PR threads/13217
1568 * thread.c (thread_apply_all_command): Check for valid threads
1569 and thread count.
1570 (thread_array_cleanup): New struct.
1571 (set_thread_refcount): New function.
1572
cf006359
AB
15732013-07-11 Andrew Burgess <[email protected]>
1574
1575 * infcmd.c (default_print_one_register_info): Reuse function
1576 print_hex_chars.
1577
94e36acc
TT
15782013-07-10 Tom Tromey <[email protected]>
1579
1580 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1581 (ada-exp.o): New target.
1582
915dd369
SDJ
15832013-07-10 Sergio Durigan Junior <[email protected]>
1584
1585 * mt-tdep.c (mt_registers_info): Call
1586 get_no_prettyformat_print_options instead of
1587 get_raw_print_options (regression by last patch from Doug
1588 Evans).
1589
eca07816
JB
15902013-07-09 Pedro Alves <[email protected]>
1591
1592 Checked in by Joel Brobecker <[email protected]>.
1593 * ada-lang.c (coerce_unspec_val_to_type): Use
1594 value_optimized_out_const.
1595 * value.c (value_optimized_out_const): New function.
1596 * value.h (value_optimized_out_const): New declaration.
1597
2a998fc0
DE
15982013-07-09 Doug Evans <[email protected]>
1599
1600 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1601 Enum values rename as well. All uses updated.
1602 * valprint.h (value_print_options): Rename member pretty to
1603 pretty format. Rename member prettyprint_arrays to
1604 prettyformat_arrays. Rename member prettyprint_structs to
1605 prettyformat_structs. All uses updated.
1606 (get_no_prettyformat_print_options): Renamed from
1607 get_raw_print_options.
1608 * valprint.c (get_no_prettyformat_print_options): Renamed from
1609 get_raw_print_options. All callers updated.
1610 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1611 All callers updated.
1612 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1613 All callers updated.
1614 (_initialize_valprint): Improve help text for "set print pretty" and
1615 "set print arrays".
1616
466c1fca
AB
16172013-07-09 Andrew Burgess <[email protected]>
1618
1619 * value.c (value_bits_valid): Revert previous change, and change
1620 by Pedro on 2013-07-04, due to regressions in
1621 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1622
ad0f0303
AB
16232013-07-08 Andrew Burgess <[email protected]>
1624 Pedro Alves <[email protected]>
1625
1626 * value.c (value_bits_valid): If the value is not lval_computed
1627 or has no check validity handler then the answer is the
1628 optimized_out flag, otherwise defer to the handler.
1629
b187bec1
EZ
16302013-07-06 Eli Zaretskii <[email protected]>
1631
48d1d6f5
EZ
1632 * top.c (print_gdb_configuration): Explain in output of
1633 --configuration what does "relocatable" mean.
1634
b187bec1
EZ
1635 * main.c (print_gdb_help): Regroup options in the --help text.
1636 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1637 the relevant discussions.
1638
52d361e1
YQ
16392013-07-06 Yao Qi <[email protected]>
1640
1641 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1642 Remove parameter 'lsal'.
1643 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1644 to inner block. Caller update.
1645 (base_breakpoint_create_breakpoints_sal): Update.
1646 (bkpt_create_breakpoints_sal): Likewise.
1647 (tracepoint_create_breakpoints_sal): Likewise.
1648 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1649 element 0 of vector 'canonical->sals'.
1650
e1ec1b42
LM
16512013-07-05 Luis Machado <[email protected]>
1652
1653 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1654 register number instead of the pseudo register one.
1655 (rs6000_dwarf2_reg_to_regnum): Likewise.
1656
7195e6f0
PA
16572013-07-04 Pedro Alves <[email protected]>
1658
1659 * findvar.c (value_of_register): Use allocate_optimized_out_value
1660 if the register has been optimized out, instead of
1661 set_value_optimized_out.
1662 * frame-unwind.c (frame_unwind_got_optimized): Use
1663 allocate_optimized_out_value.
1664
58722cac
PA
16652013-07-04 Pedro Alves <[email protected]>
1666
1667 * value.c (value_bits_valid): If the value is not lval_computed,
1668 or doesn't have a check_validity hook, assume the value is entirely
1669 valid.
1670
691a26f5
AB
16712013-07-04 Andrew Burgess <[email protected]>
1672
1673 * stack.c (read_frame_arg): No longer fetch lazy values.
1674 * value.c (value_optimized_out): If the value is not already
1675 marked optimized out, and is lazy then fetch it.
1676 (value_primitive_field): Move optimized out check to later in the
1677 function, after we have loaded any lazy values.
1678 (value_fetch_lazy): Use optimized out flag directly rather than
1679 calling optimized_out method.
1680
a58e2656
AB
16812013-07-04 Andrew Burgess <[email protected]>
1682
1683 * valops.c: Don't include "user-regs.h".
1684 (value_fetch_lazy): Moved to value.c.
1685 * value.c: Include "user-regs.h".
1686 (value_fetch_lazy): Moved from valops.c.
1687
bd885420
YQ
16882013-07-04 Yao Qi <[email protected]>
1689
1690 Revert:
1691 2013-06-27 Yao Qi <[email protected]>
1692
1693 * common/create-version.sh: Update comments. Handle the case
1694 that TARGET_ALIAS is empty.
1695
17ef446e
PA
16962013-07-03 Pedro Alves <[email protected]>
1697
1698 * Makefile.in (config.status): Depend on development.sh.
1699 (aclocal_m4_deps): Add libmcheck.m4.
1700 * acinclude.m4: Include libmcheck.m4.
1701 * configure.ac: Source development.sh instead of setting
1702 'development' here. --enable-libmcheck/--disable-libmcheck code
1703 factored out to GDB_AC_LIBMCHECK. Run it.
1704 * development.sh: New file.
1705 * libmcheck.m4: New file.
1706 * configure: Regenerate.
1707
ac6dd50f
TT
17082013-07-02 Tom Tromey <[email protected]>
1709
1710 * contrib/ari/update-web-ari.sh: Update for version.in change.
1711
bd1df410
TT
17122013-07-02 Tom Tromey <[email protected]>
1713
1714 * common/ptid.h: Comment fixes.
1715
4db1a1dc
TT
17162013-07-01 Tom Tromey <[email protected]>
1717
1718 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
1719 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
1720 (dwarf2_read_index, create_all_comp_units): Update.
1721
dd9aa048
TT
17222013-07-01 Tom Tromey <[email protected]>
1723
1724 * configure.ac (build_warnings): Add -Wold-style-definition.
1725 * configure: Rebuild.
1726 * machoread.c (_initialize_machoread): Use "(void)".
1727 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
1728 use "(void)".
1729
44d100c3
TT
17302013-07-01 Tom Tromey <[email protected]>
1731
1732 * configure.ac (build_warnings): Add -Wold-style-declaration.
1733 * configure: Rebuild.
1734 * dsrec.c (make_srec): Use "static const", not "const static".
1735 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
1736 not "const static".
1737 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
1738 Use "static const", not "const static".
1739 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
1740 not "const static".
1741 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
1742 not "const static".
1743 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
1744 not "const static".
1745 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
1746 not "const static".
1747 (v850_dbtrap_breakpoint_from_pc): Likewise.
1748 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
1749 not "const static".
1750
2945b807
TT
17512013-07-01 Tom Tromey <[email protected]>
1752
1753 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
1754 * configure: Rebuild.
1755
d8d2a3ee
PA
17562013-07-01 Pedro Alves <[email protected]>
1757
1758 * defs.h: Include "pathmax.h".
1759 * utils.c: Don't include sys/param.h.
1760 (gdb_realpath): Remove code that checks for MAXPATHLEN.
1761 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
1762 instead of MAXPATHLEN.
1763 * solib-sunos.c: Don't include sys/param.h.
1764 * xcoffread.c: Don't include sys/param.h.
1765 * bsd-kvm.c: Don't include sys/param.h.
1766 * darwin-nat.c: Don't include sys/param.h.
1767 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1768 * darwin-nat-info.c: Don't include sys/param.h.
1769 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
1770 MAXPATHLEN.
1771 * i386obsd-nat.c: Don't include sys/param.h.
1772 * inf-child.c: Don't include sys/param.h.
1773 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
1774 * linux-fork.c: Don't include sys/param.h.
1775 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
1776 * linux-nat.c: Don't include sys/param.h.
1777 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
1778 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
1779 * m68klinux-nat.c: Don't include sys/param.h.
1780 * nbsd-nat.c: Don't include sys/param.h.
1781 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1782 * ppc-linux-nat.c: Don't include sys/param.h.
1783 * rs6000-nat.c: Don't include sys/param.h.
1784 * spu-linux-nat.c. Don't include sys/param.h.
1785 * windows-nat.c: Don't include sys/param.h.
1786 * xtensa-linux-nat.c: Don't include sys/param.h.
1787 * config/i386/nm-fbsd.h: Don't include sys/param.h.
1788
38ec2207
PA
17892013-07-01 Pedro Alves <[email protected]>
1790
1791 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
1792 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
1793 * gnulib/aclocal.m4: Regenerate.
1794 * gnulib/config.in: Regenerate.
1795 * gnulib/configure: Regenerate.
1796 * gnulib/import/pathmax.h: New file.
1797 * gnulib/import/Makefile.am: Regenerate.
1798 * gnulib/import/Makefile.in: Regenerate.
1799 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1800 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1801 * gnulib/import/m4/pathmax.m4: New file.
1802
e655c1a2
PA
18032013-07-01 Pedro Alves <[email protected]>
1804
1805 * configure.ac (GDBINIT): Define, depending on host.
1806 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
1807 * top.c (PATH_MAX): Delete fallback definition.
1808 (GDBINIT_FILENAME): Delete.
1809 (gdbinit): Reimplement as const char array set to the GDBINIT
1810 string constant.
1811 * top.h (gdbinit): Make const.
1812 * configure, config.in: Regenerate.
1813
50dd9793
PA
18142013-07-01 Pedro Alves <[email protected]>
1815
1816 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
1817 * cli/cli-cmds.h (source_script): Likewise.
1818 * exceptions.c (catch_command_errors_const): New function.
1819 * exceptions.h (catch_command_errors_const): Declare.
1820 * main.c (get_init_files): Make parameters const, and adjust.
1821 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
1822 'local_gdbinit' locals const. Adjust to use
1823 catch_command_errors_const.
1824 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
1825 'local_gdbinit' locals const.
1826
bc7dea8d
PA
18272013-07-01 Pedro Alves <[email protected]>
1828
1829 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
1830 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
1831 * tracepoint.c: Don't check HAVE_UNISTD_H before including
1832 <unistd.h>.
1833
8839a007
PA
18342013-07-01 Pedro Alves <[email protected]>
1835
1836 Import the "unistd" gnulib module.
1837 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1838 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1839 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1840 import/m4/unistd_h.m4.
1841 * gnulib/aclocal.m4: Renenerate.
1842 * gnulib/config.in: Renenerate.
1843 * gnulib/configure: Renenerate.
1844 * gnulib/import/Makefile.am: Renenerate.
1845 * gnulib/import/Makefile.in: Renenerate.
1846 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1847 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1848 * gnulib/import/m4/off_t.m4: New file.
1849 * gnulib/import/m4/ssize_t.m4: New file.
1850 * gnulib/import/m4/sys_types_h.m4: New file.
1851 * gnulib/import/m4/unistd_h.m4: New file.
1852 * gnulib/import/sys_types.in.h: New file.
1853 * gnulib/import/unistd.c: New file.
1854 * gnulib/import/unistd.in.h: New file.
1855
8c0da261
PA
18562013-07-01 Pedro Alves <[email protected]>
1857
1858 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1859 defined instead of checking HAVE_UNISTD_H.
1860
3574124b
PA
18612013-07-01 Pedro Alves <[email protected]>
1862
1863 Reimport gnulib from scratch.
1864 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1865 import/m4/onceonly.m4.
1866 * gnulib/aclocal.m4: Renegerate.
1867 * gnulib/config.in: Renegerate.
1868 * gnulib/configure: Renegerate.
1869 * gnulib/import/Makefile.in: Renegerate.
1870 * gnulib/import/extra/update-copyright: Renegerate.
1871 * gnulib/import/m4/onceonly.m4: Delete.
1872
702dc4fd
PA
18732013-07-01 Pedro Alves <[email protected]>
1874
1875 * tui/tui-regs.c (pagination_enabled): Delete declaration.
1876
47e1ce27
JK
18772013-06-30 Jan Kratochvil <[email protected]>
1878
1879 Code cleanup.
1880 * remote.c (async_remote_interrupt_twice): Make it static.
1881 * remote.h (async_remote_interrupt_twice): Remove the declaration.
1882
e82839d4
SDJ
18832013-06-29 Sergio Durigan Junior <[email protected]>
1884
1885 * ia64-linux-tdep.c: Include <ctype.h>.
1886 (ia64_linux_stap_is_single_operand): New function.
1887 (ia64_linux_init_abi): Initialize SystemTap related attributes.
1888
d6c2da54
TT
18892013-06-28 Tom Tromey <[email protected]>
1890
1891 * Makefile.in (version.c): Use version.in, not
1892 common/version.in.
1893 * common/create-version.sh: Likewise.
1894 * common/version.in: Move...
1895 * version.in: ...here.
1896
74da6f00
PA
18972013-06-28 Pedro Alves <[email protected]>
1898
1899 * infrun.c (set_observer_mode): Don't declare pagination_enabled
1900 here.
1901 * utils.h (pagination_enabled): Declare.
1902
d32dc48e
PA
19032013-06-28 Pedro Alves <[email protected]>
1904
1905 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1906 Move higher up in file.
1907
0edd9e3b
TT
19082013-06-28 Tom Tromey <[email protected]>
1909
1910 * tracepoint.c (deprecated_readline_begin_hook)
1911 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1912 declare.
1913
4eb59108
PA
19142013-06-28 Pedro Alves <[email protected]>
1915
1916 PR tui/14880
1917 * tui/tui-regs.c (tui_get_register): Fetch value contents before
1918 checking if they're available.
1919 * value.c (value_available_contents_eq): Change comment.
1920 * value.h (value_available_contents_eq): Expand comment.
1921
97b17156
TT
19222013-06-27 Tom Tromey <[email protected]>
1923
1924 * target.c (find_run_target): Remove.
1925 * target.h (find_run_target): Remove.
1926
6a3bfc5c
TT
19272013-06-27 Tom Tromey <[email protected]>
1928
1929 * corelow.c (core_gdbarch): Now static.
1930
c9ef825d
TT
19312013-06-27 Tom Tromey <[email protected]>
1932
1933 * target.c (target_struct_index): Remove.
1934
e5823f1c
PA
19352013-06-27 Pedro Alves <[email protected]>
1936
1937 * infrun.c: Remove comment describing the 'stepping over runtime
1938 loader dynamic symbol resolution code' mechanism; moved to
1939 gdbint.texinfo.
1940
97f8dd09
PA
19412013-06-27 Pedro Alves <[email protected]>
1942
1943 * exceptions.c (catch_command_errors): Remove spurious space.
1944 * exceptions.h (catch_command_errors): Second parameter is "arg",
1945 not "command".
1946
02b1871e
YQ
19472013-06-27 Yao Qi <[email protected]>
1948
1949 * common/create-version.sh: Update comments. Handle the case
1950 that TARGET_ALIAS is empty.
1951
bb1b1cf1
PA
19522013-06-26 Pedro Alves <[email protected]>
1953
1954 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1955 comment.
1956
7b624e71
PA
19572013-06-26 Pedro Alves <[email protected]>
1958
1959 * infrun.c: Update comments on stepping over runtime loader
1960 dynamic symbol resolution code.
1961
74e5a346
SDJ
19622013-06-26 Sergio Durigan Junior <[email protected]>
1963
1964 * ax-gdb.h (union exp_element): Forward declare.
1965 * parser-defs.h: Include expression.h.
1966
a2fb2cee
MR
19672013-06-26 Maciej W. Rozycki <[email protected]>
1968
1969 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1970
cdba14e0
DK
19712013-06-26 Dmitry Kozlov <[email protected]>
1972
1973 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1974
f30aa5af
DK
19752013-06-26 Dmitry Kozlov <[email protected]>
1976
1977 Fix trace-status to output proper start-time and stop-time.
1978 * tracepoint.c (trace_status_command): Fix type of printf arg to
1979 prevent improper type conversion.
1980 (trace_status_mi): Likewise.
1981
1aee363c
MR
19822013-06-26 Maciej W. Rozycki <[email protected]>
1983
1984 * mips-tdep.c (mips_next_pc): Fix a typo.
1985
3356937a
MR
19862013-06-26 Maciej W. Rozycki <[email protected]>
1987
1988 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1989
dc673c81
YQ
19902013-06-26 Pedro Alves <[email protected]>
1991 Yao Qi <[email protected]>
1992
1993 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1994 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1995 * mi/mi-main.c (print_variable_or_computed): New function.
1996 (mi_cmd_trace_frame_collected): New function.
1997 * tracepoint.c (find_trace_state_variable_by_number): New.
1998 (struct traceframe_info): Move to tracepoint.h
1999 (struct collection_list): Likewise.
2000 (do_collect_symbol): Include locals and arguments in the
2001 collected variables list.
2002 (clear_collection_list): Clear wholly collected variables list
2003 and computed variables list.
2004 (append_exp): New function.
2005 (encode_actions_1): Include variables in the wholly
2006 collected variables list. Include memory ranges and
2007 full-fledged expressions in the computed expressions list.
2008 (encode_actions): Move some code to ...
2009 Return the cleanup chain.
2010 (encode_actions_rsp): ... here. New function.
2011 (get_traceframe_location, get_traceframe_info): Remove static.
2012 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2013 (struct collection_list): Moved from tracepoint.c. Add two
2014 new fields 'wholly_collected' and 'computed'.
2015 (find_trace_state_variable_by_number): Declare.
2016 (encode_actions): Adjust declaration.
2017 (encode_actions_rsp): Declare.
2018 (get_traceframe_info, get_traceframe_location): Declare.
2019
2020 * NEWS: Mention new MI command -trace-frame-collected.
2021
28a93511
YQ
20222013-06-26 Pedro Alves <[email protected]>
2023 Yao Qi <[email protected]>
2024
2025 * ctf.c (ctf_traceframe_info): Push trace state variables
2026 present in the trace data into the traceframe info object.
2027 * breakpoint.c (DEF_VEC_I): Remove.
2028 * common/filestuff.c (DEF_VEC_I): Likewise.
2029 * dwarf2loc.c (DEF_VEC_I): Likewise.
2030 * mi/mi-main.c (DEF_VEC_I): Likewise.
2031 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2032 * features/traceframe-info.dtd: Add tvar element and its
2033 attributes.
2034 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2035 (build_traceframe_info): Push trace state variables present in
2036 the trace data into the traceframe info object.
2037 (traceframe_info_start_tvar): New function.
2038 (tvar_attributes): New.
2039 (traceframe_info_children): Add "tvar" element.
2040 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2041
2042 * NEWS: Mention the change in GDB and GDBserver.
2043
ddacd3c8
YQ
20442013-06-26 Pedro Alves <[email protected]>
2045 Yao Qi <[email protected]>
2046
2047 * tracepoint.c (trace_dump_command): Move code to ...
2048 (get_traceframe_location): ... here. New.
2049
05796b35
YQ
20502013-06-26 Pedro Alves <[email protected]>
2051 Yao Qi <[email protected]>
2052
2053 * tracepoint.c (trace_dump_command): GDB emits an error
2054 instead of a warning when a traceframe is not selected.
2055
cbfa3b61
YQ
20562013-06-26 Pedro Alves <[email protected]>
2057 Yao Qi <[email protected]>
2058
2059 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2060 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2061 in collection_list.
2062 (do_clear_collection_list, init_collection_list): New.
2063 (encode_actions): Add local variables 'tracepoint_list' and
2064 'stepping_list'. Call init_collection_list and make cleanup
2065 which calls do_clear_collection_list. Don't call
2066 clear_collection_list.
2067 (_initialize_tracepoint): Delete references to
2068 'tracepoint_list' and 'stepping_list'.
2069
6e2048d3
TT
20702013-06-25 Tom Tromey <[email protected]>
2071
2072 * common/create-version.sh (date): Use "$", not "$$" in sed
2073 expression.
2074
42059f0e
KB
20752013-06-25 Kevin Buettner <[email protected]>
2076
2077 * NEWS (New targets): Add entry for TI MSP430.
2078
a0743c90
YQ
20792013-06-25 Yao Qi <[email protected]>
2080
2081 * remote.c (remote_start_remote): Move code to upload tsv
2082 earlier.
2083
9d6e6e84
HZ
20842013-06-25 Yao Qi <[email protected]>
2085 Hui Zhu <[email protected]>
2086 Pedro Alves <[email protected]>
2087
2088 PR breakpoints/15075
2089 PR breakpoints/15434
2090 * breakpoint.c (bpstat_stop_status): Call
2091 b->ops->after_condition_true.
2092 (update_dprintf_command_list): Don't append "continue" command
2093 to the command list of dprintf breakpoint.
2094 (base_breakpoint_after_condition_true): New function.
2095 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2096 (dprintf_after_condition_true): New function.
2097 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2098 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2099
586cf749
KB
21002013-06-24 Kevin Buettner <[email protected]>
2101
2102 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2103 (ALLDEPFILES): Add msp430-tdep.c.
2104 * configure.tgt (msp430*-*-elf): New target.
2105 * msp430-tdep.c: New file.
2106
1bbce132
MR
21072013-06-24 Maciej W. Rozycki <[email protected]>
2108
2109 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2110 microMIPS synthetic symbols.
2111
3e5d3a5a
MR
21122013-06-24 Maciej W. Rozycki <[email protected]>
2113
2114 * objfiles.h (pc_in_section): New prototype.
2115 (in_plt_section): Remove name argument, replace prototype with
2116 static inline function.
2117 * mips-tdep.h: Include "objfiles.h".
2118 (in_mips_stubs_section): New function.
2119 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2120 in_solib_call_trampoline member.
2121 (hppa_in_solib_call_trampoline): Remove name argument.
2122 * objfiles.c (pc_in_section): New function.
2123 (in_plt_section): Remove function.
2124 * mips-linux-tdep.c: Include "objfiles.h".
2125 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2126 name argument. Return 1 rather than the low 16-bit halfword of
2127 any instruction examined.
2128 (mips_linux_in_dynsym_resolve_code): Update
2129 mips_linux_in_dynsym_stub call accordingly.
2130 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2131 rather than an equivalent hand-coded sequence.
2132 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2133 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2134 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2135 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2136 in_opd_section.
2137 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2138 on call to tdep->in_solib_call_trampoline.
2139 (hppa_in_solib_call_trampoline): Remove name argument, update
2140 according to in_plt_section change.
2141 (hppa_skip_trampoline_code): Update according to in_plt_section
2142 change.
2143 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2144 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2145 Likewise.
2146 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2147 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2148 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2149 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2150 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2151 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2152 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2153 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2154 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2155 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2156 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2157 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2158 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2159
b9b26a16
JB
21602013-06-24 Joel Brobecker <[email protected]>
2161
2162 * common/create-version.sh: Fix expansion of $host_alias
2163 and $target_alias in generation of HOST_NAME and TARGET_NAME
2164 (resp.).
2165
01208463
TT
21662013-06-24 Tom Tromey <[email protected]>
2167
2168 * common/create-version.sh: New file.
2169 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2170 create-version.sh.
2171 (HFILES_NO_SRCDIR): Use common/version.h.
2172 * version.in: Move to ...
2173 * common/version.in: ... here. Replace date with "DATE".
2174 * version.h: Move to ...
2175 * common/version.h: ... here.
2176
bb6b9a5e
JB
21772013-06-21 Joel Brobecker <[email protected]>
2178
2179 * gdb/gnulib/Makefile.in: Update date in copyright header.
2180 * gdb/gnulib/configure.ac: Ditto.
2181 * gdb/gnulib/update-gnulib.sh: Ditto.
2182
c3b18ee7
JB
21832013-06-21 Joel Brobecker <[email protected]>
2184
2185 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2186 "gdb/gnulib/import".
2187
85d3b769
WN
21882013-06-21 Will Newton <[email protected]>
2189
2190 * doublest.c (ldfrexp): Remove function.
2191 (convert_doublest_to_floatformat): Call frexpl instead of
2192 ldfrexp.
2193
88b48903
WN
21942013-06-21 Will Newton <[email protected]>
2195
2196 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2197 * gnulib/aclocal.m4: Regenerate.
2198 * gnulib/config.in: Regenerate.
2199 * gnulib/configure: Regenerate.
2200 * gnulib/import/Makefile.am: Update.
2201 * gnulib/import/Makefile.in: Update.
2202 * gnulib/import/m4/gnulib-cache.m4: Update.
2203 * gnulib/import/m4/gnulib-comp.m4: Update.
2204 * gnulib/import/float+.h: Import.
2205 * gnulib/import/float.c: Import.
2206 * gnulib/import/float.in.h: Import.
2207 * gnulib/import/fpucw.h: Import.
2208 * gnulib/import/frexp.c: Import.
2209 * gnulib/import/frexpl.c: Import.
2210 * gnulib/import/isnan.c: Import.
2211 * gnulib/import/isnand-nolibm.h: Import.
2212 * gnulib/import/isnand.c: Import.
2213 * gnulib/import/isnanl-nolibm.h: Import.
2214 * gnulib/import/isnanl.c: Import.
2215 * gnulib/import/itold.c: Import.
2216 * gnulib/import/m4/exponentd.m4: Import.
2217 * gnulib/import/m4/exponentl.m4: Import.
2218 * gnulib/import/m4/float_h.m4: Import.
2219 * gnulib/import/m4/fpieee.m4: Import.
2220 * gnulib/import/m4/frexp.m4: Import.
2221 * gnulib/import/m4/frexpl.m4: Import.
2222 * gnulib/import/m4/isnand.m4: Import.
2223 * gnulib/import/m4/isnanl.m4: Import.
2224 * gnulib/import/m4/math_h.m4: Import.
2225 * gnulib/import/math.c: Import.
2226 * gnulib/import/math.in.h: Import.
2227
4353c9e6
JK
22282013-06-21 Jan Kratochvil <[email protected]>
2229
2230 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2231 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2232 signature_INTEL_edx comparisons.
2233
e3e06db3
DE
22342013-06-20 Doug Evans <[email protected]>
2235
6ac97d4c
DE
2236 symtab/15652
2237 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2238 All callers updated.
2239 (open_dwp_file): If we can't find the dwp file, search the basename
2240 in debug-file-directory.
2241
93417882
DE
2242 * dwarf2read.c (struct dwp_file): Fix comment.
2243 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2244
e3e06db3
DE
2245 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2246 better.
2247
0878d0fa
YQ
22482013-06-20 Yao Qi <[email protected]>
2249
2250 * breakpoint.c (create_breakpoint): Fix code indentation.
2251
023fa29b
YQ
22522013-06-20 Yao Qi <[email protected]>
2253
2254 * breakpoint.c (create_breakpoints_sal_default): Remove
2255 parameter 'lsal'. Update declaration.
2256 (bkpt_create_breakpoints_sal): Caller update.
2257 (tracepoint_create_breakpoints_sal): Likewise.
2258
c898adb7
YQ
22592013-06-20 Pedro Alves <[email protected]>
2260 Yao Qi <[email protected]>
2261
2262 * NEWS: Mention the new option '--skip-unavailable' of command
2263 -data-list-register-values.
2264 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2265 --skip-unavailable option. Adjust to use output_register.
2266 (output_register): Add new 'skip_unavailable' parameter.
2267 Handle it.
2268
4d157a3d
MF
22692013-06-19 Mike Frysinger <[email protected]>
2270
2271 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2272 common/i386-gcc-cpuid.h.
2273 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2274 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2275 Copy the latest version from upstream gcc.
2276 * common/linux-btrace.c: Include i386-cpuid.h.
2277 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2278 call to i386_cpuid.
2279 (cpu_supports_btrace): Likewise.
2280 * go32-nat.c: Include i386-cpuid.h.
2281 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2282
1ce4db08
DE
22832013-06-19 Doug Evans <[email protected]>
2284
2285 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2286 (get_section_index): Ditto.
2287
0e4777df
TT
22882013-06-19 Tom Tromey <[email protected]>
2289
2290 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2291 "dprintf" help.
2292
3190f0c6
DE
22932013-06-18 Doug Evans <[email protected]>
2294
2295 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2296 before using it.
2297 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2298 Move test of cu_index closer to use. Print complaint if cu_index
2299 is bad.
2300
8b89a20a
JB
23012013-06-18 Joel Brobecker <[email protected]>
2302
2303 * machoread.c (oso_vector): Delete this global.
2304 (macho_register_oso): Add new parameter "oso_vector_ptr".
2305 Use it instead of the "oso_vector" global.
2306 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2307 (macho_symfile_read): Use a local oso_vector, to be free'ed
2308 at the end of this function, in place of the old "oso_vector"
2309 global. Update various function calls accordingly. Use one
2310 single cleanup chain for the entire function.
2311
59b0c7c1
JB
23122013-06-18 Joel Brobecker <[email protected]>
2313
937c708c 2314 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
2315 DWARF2_PER_OBJFILE by uses of DATA instead.
2316
427cd150
TT
23172013-06-18 Tom Tromey <[email protected]>
2318
2319 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2320 argument.
2321 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2322 Special case signals other than GDB_SIGNAL_TRAP.
2323 (explains_signal_watchpoint): New function.
2324 (base_breakpoint_explains_signal): Add 'sig' argument.
2325 (initialize_breakpoint_ops): Set 'explains_signal' method for
2326 watchpoints.
2327 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2328 signal argument.
2329 (bpstat_explains_signal): Likewise.
2330 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2331
2d57700b
TT
23322013-06-18 Tom Tromey <[email protected]>
2333
2334 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2335
ac475191
TT
23362013-06-18 Tom Tromey <[email protected]>
2337
2338 * python/python.c (finish_python_initialization): Decref
2339 'pythondir' on failure path as well.
2340
5bd1ef56
TT
23412013-06-18 Tom Tromey <[email protected]>
2342
2343 PR symtab/15391:
2344 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2345 after taking bits_to_skip into account. Sign extend byte_offset.
2346 * utils.h (gdb_sign_extend): Declare.
2347 * utils.c (gdb_sign_extend): New function.
2348
92fac807
JK
23492013-06-18 Jan Kratochvil <[email protected]>
2350
2351 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2352
2d503272
PM
23532013-06-17 Pierre Muller <[email protected]>
2354
2355 * corelow.c (core_open): Print GDB signal name instead of target
2356 signal number.
2357
6916fd98
MF
23582013-06-17 Mike Frysinger <[email protected]>
2359
2360 * .gitignore: Add /gcore.
2361
9c02c129
DE
23622013-06-13 Doug Evans <[email protected]>
2363
2364 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2365 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2366
d0548fa2
PM
23672013-06-12 Phil Muldoon <[email protected]>
2368
2369 * stack.c (backtrace_command_1): Fix indentation.
2370
22128028
JB
23712013-06-11 Joel Brobecker <[email protected]>
2372
2373 * window-nat.c (thread_rec): Add missing empty line after
2374 local variable declaration.
2375
2ed3e009
JB
23762013-06-11 Joel Brobecker <[email protected]>
2377
2378 * windows-nat.c (thread_rec): Revert format used to print
2379 error code returned by SuspendThread from %d back to %u.
2380
0c3d84be
JB
23812013-06-11 Joel Brobecker <[email protected]>
2382
2383 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2384 ID in debug trace.
2385 (get_windows_debug_event): Likewise, for all debug traces.
2386
80e88e1a
JB
23872013-06-11 Joel Brobecker <[email protected]>
2388
2389 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2390 warning message.
2391
1edebdbf
YQ
23922013-06-08 Pedro Alves <[email protected]>
2393 Yao Qi <[email protected]>
2394
2395 * mi/mi-main.c (get_register): Remove declaration.
2396 (output_register): Declare.
2397 (mi_cmd_data_list_register_values): Remove local variable
2398 'tuple_cleanup'. Move some code into output_register.
2399 (get_register): Renamed to ...
2400 (output_register): ... this. Output the register's
2401 "number" ui_out tuple here.
2402
47d48711
PA
24032013-06-07 Pedro Alves <[email protected]>
2404
2405 * darwin-nat.c: Fix formating in copyright header.
2406 * darwin-nat.h: Likewise.
2407 * gnu-nat.c: Likewise.
2408 * machoread.c: Likewise.
2409
3aee8918
PA
24102013-06-07 Pedro Alves <[email protected]>
2411
5f2b57b5 2412 PR server/14823
3aee8918
PA
2413 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2414 static. Output a global target description pointer.
2415 (init_registers_${name}): Adjust to initialize a
2416 target description structure.
2417
fe8400b4
WN
24182013-06-07 Will Newton <[email protected]>
2419
2420 * printcmd.c (build_address_symbolic): Call
2421 gdbarch_addr_bits_remove for text minimal symbols.
2422
20df6206
WN
24232013-06-07 Will Newton <[email protected]>
2424
2425 * MAINTAINERS: Add myself to Write After Approval.
2426
aef525cb
YQ
24272013-06-07 Yao Qi <[email protected]>
2428
2429 * tracepoint.c (start_tracing): Move code to ...
2430 (trace_reset_local_state): ... here. New.
2431 (disconnect_tracing): Don't call set_current_traceframe,
2432 set_tracepoint_num, and set_traceframe_context. Call
2433 trace_reset_local_state instead.
2434 (tfile_close): Call trace_reset_local_state.
2435 * ctf.c (ctf_close): Likewise.
2436 * remote.c (remote_close): Likewise.
2437 * tracepoint.h (trace_reset_local_state): Declare.
2438
d2415c6c
DE
24392013-06-06 Doug Evans <[email protected]>
2440
2441 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2442 and fix header docs.
2443
69fc87c2
DE
24442013-06-05 Doug Evans <[email protected]>
2445 Keith Seitz <[email protected]>
2446
2447 PR 15519
2448 * cp-namespace.c (find_symbol_in_baseclass): Call
2449 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2450 Check result of call to lookup_symbol_static.
2451 Call lookup_static_symbol_aux unconditionally.
2452 Call check_typedef on base types before accessing them.
2453 (cp_lookup_nested_symbol): Fix comment.
2454
a513d1e8
LM
24552013-06-05 Luis Machado <[email protected]>
2456
2457 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2458 minimal symbols pointing to function descriptors.
2459
351a6f02
TT
24602013-06-05 Tom Tromey <[email protected]>
2461
2462 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2463
5e1b953b 24642013-06-04 Sergio Durigan Junior <[email protected]>
c7c0b644 2465 Pedro Alves <[email protected]>
5e1b953b
SDJ
2466
2467 * remote.c (remote_wait_as): Restore signal handler before returning
2468 when GDB gets a notification.
2469
f9e14852
GB
24702013-06-04 Gary Benson <[email protected]>
2471
8445cbf1 2472 PR 2328
f9e14852
GB
2473 * breakpoint.h (handle_solib_event): Moved function declaration
2474 to solib.h.
2475 * breakpoint.c (handle_solib_event): Moved function to solib.c.
2476 (bpstat_stop_status): Pass new argument to handle_solib_event.
2477 * solib.h (update_solib_breakpoints): New function declaration.
2478 (handle_solib_event): Moved function declaration from
2479 breakpoint.h.
2480 * solib.c (update_solib_breakpoints): New function.
2481 (handle_solib_event): Moved function from breakpoint.c.
2482 Updated to call solib_ops->handle_event if not NULL.
2483 * solist.h (target_so_ops): New fields "update_breakpoints" and
2484 "handle_event".
2485 * infrun.c (set_stop_on_solib_events): New function.
2486 (_initialize_infrun): Use the above for "set
2487 stop-on-solib-events".
2488 (handle_inferior_event): Pass new argument to handle_solib_event.
2489 * solib-svr4.c (probe.h): New include.
2490 (svr4_free_library_list): New forward declaration.
2491 (probe_action): New enum.
2492 (probe_info): New struct.
2493 (probe_info): New static variable.
2494 (NUM_PROBES): New definition.
2495 (svr4_info): New fields "using_xfer", "probes_table" and
2496 "solib_list".
2497 (free_probes_table): New function.
2498 (free_solib_list): New function.
2499 (svr4_pspace_data_cleanup): Free probes table and solib list.
2500 (svr4_copy_library_list): New function.
2501 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2502 (svr4_read_so_list): New parameter "prev_lm".
2503 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2504 (svr4_current_sos): New function.
2505 (probe_and_action): New struct.
2506 (hash_probe_and_action): New function.
2507 (equal_probe_and_action): Likewise.
2508 (register_solib_event_probe): Likewise.
2509 (solib_event_probe_at): Likewise.
2510 (solib_event_probe_action): Likewise.
2511 (solist_update_full): Likewise.
2512 (solist_update_incremental): Likewise.
2513 (disable_probes_interface_cleanup): Likewise.
2514 (svr4_handle_solib_event): Likewise.
2515 (svr4_update_solib_event_breakpoint): Likewise.
2516 (svr4_update_solib_event_breakpoints): Likewise.
2517 (svr4_create_solib_event_breakpoints): Likewise.
2518 (enable_break): Free probes table before creating breakpoints.
2519 Use svr4_create_solib_event_breakpoints to create breakpoints.
2520 (svr4_solib_create_inferior_hook): Free the solib list.
2521 (_initialize_svr4_solib): Initialise
2522 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2523
ced63ec0
GB
25242013-06-04 Gary Benson <[email protected]>
2525
2526 * target.h (target_ops): New field
2527 "to_augmented_libraries_svr4_read".
2528 (target_augmented_libraries_svr4_read): New macro.
2529 * target.c (update_current_target): Handle
2530 to_augmented_libraries_svr4_read.
2531 * remote.c (remote_state): New field
2532 "augmented_libraries_svr4_read".
2533 (remote_augmented_libraries_svr4_read_feature): New function.
2534 (remote_protocol_features): Add entry for
2535 "augmented-libraries-svr4-read".
2536 (remote_augmented_libraries_svr4_read): New function.
2537 (init_remote_ops): Initialize
2538 remote_ops.to_augmented_libraries_svr4_read.
2539
7f91dbec
GB
25402013-06-04 Gary Benson <[email protected]>
2541
2542 * NEWS: Update.
2543
607ece04
GB
25442013-06-04 Gary Benson <[email protected]>
2545
2546 * objfiles.h (inhibit_section_map_updates): New function
2547 declaration.
2548 (resume_section_map_updates): Likewise.
2549 (resume_section_map_updates_cleanup): Likewise.
2550 * objfiles.c (objfile_pspace_info): Removed field
2551 "objfiles_changed_p". New fields "new_objfiles_available",
2552 "section_map_dirty" and "inhibit_updates".
2553 (allocate_objfile): Set new_objfiles_available.
2554 (free_objfile): Set section_map_dirty.
2555 (objfile_relocate1): Likewise.
2556 (in_plt_section): Likewise.
2557 (find_pc_section): Update the conditions under which the
2558 section map will be updated.
2559 (inhibit_section_map_updates): New function.
2560 (resume_section_map_updates): Likewise.
2561 (resume_section_map_updates_cleanup): Likewise.
2562
9ee6a5ac
GB
25632013-06-04 Gary Benson <[email protected]>
2564
2565 * probe.h (get_probe_argument_count): New declaration.
2566 (evaluate_probe_argument): Likewise.
2567 * probe.c (get_probe_argument_count): New function.
2568 (evaluate_probe_argument): Likewise.
2569 (probe_safe_evaluate_at_pc): Use the above new functions.
2570
845d4708
AM
25712013-06-04 Alan Modra <[email protected]>
2572
2573 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2574 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2575 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2576 target mem reads on optional insns.
2577 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2578 ppc_insns_match_pattern calls.
2579 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2580 Add match for power7 thread safety insns, and new order of
2581 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2582 invocation in comment, and update rest of comment.
2583 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2584 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2585 (ppc64_standard_linkage2_target): Update insn offsets.
2586 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2587 stubs first. Update calls.
2588
404e278f
YQ
25892013-06-04 Yao Qi <[email protected]>
2590
2591 * solib.c (solib_find): Don't need dir separator if path has
2592 drive spec.
2593
f6aea118
JB
25942013-06-03 Joel Brobecker <[email protected]>
2595
2596 Revert (indirectly causes a SIGSEGV):
2597 * machoread.c (macho_symfile_read): Assign first cleanup to
2598 'back_to'.
2599
87967e27
YQ
26002013-06-03 Yao Qi <[email protected]>
2601
2602 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2603 mi-parse.c. Make them static.
2604 (mi_all_values): Likewise.
2605 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2606 mi_parse_print_values. Make it external.
2607 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2608 Remove the declarations.
2609 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2610 * mi/mi-parse.h (mi_parse_print_values): Declare.
2611 * mi/mi-cmd-stack.c: Include mi-parse.h.
2612 (parse_print_values): Remove
2613 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2614 of parse_print_values.
2615 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2616
3ca73e0c
YQ
26172013-05-31 Pedro Alves <[email protected]>
2618 Yao Qi <[email protected]>
2619
2620 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2621 (encode_actions): Move code to ...
2622 (all_tracepoint_actions_and_cleanup): ... here. New.
2623 (trace_dump_command): Likewise.
2624
4e993a19
TT
26252013-05-30 Tom Tromey <[email protected]>
2626
2627 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2628
e3b76b4f
TT
26292013-05-30 Tom Tromey <[email protected]>
2630
2631 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2632 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
2633 'old_chain' argument. Add 'parser_result' argument.
2634 (gdb_xml_create_parser_and_cleanup): Remove old version.
2635 (gdb_xml_parse_quick): Update.
2636 (xml_process_xincludes): Update.
2637 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2638 declare.
2639
db26349c
TT
26402013-05-30 Tom Tromey <[email protected]>
2641
2642 * probe.c (collect_probes): Check arguments for NULL before
2643 calling compile_rx_or_error.
2644 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2645 Remove NULL return.
2646
77f9e713
TT
26472013-05-30 Tom Tromey <[email protected]>
2648
2649 * infrun.c (adjust_pc_after_break): Introduce an outer null
2650 cleanup.
2651
45475de7
TT
26522013-05-30 Tom Tromey <[email protected]>
2653
2654 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2655
ac5007fd
TT
26562013-05-30 Tom Tromey <[email protected]>
2657
2658 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2659 for 'old_chain'. Do not check 'head' before processing
2660 cleanups.
2661
cd82eddc
TT
26622013-05-30 Tom Tromey <[email protected]>
2663
2664 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2665 "cleanup_tuple".
2666
57cee33a
TT
26672013-05-30 Tom Tromey <[email protected]>
2668
2669 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2670 inner scope. Unconditionally call do_cleanups.
2671
795d915c
TT
26722013-05-30 Tom Tromey <[email protected]>
2673
2674 * source.c (find_and_open_source): Call do_cleanups.
2675
1fc3cf4a
TT
26762013-05-30 Tom Tromey <[email protected]>
2677
2678 * linux-thread-db.c (thread_db_load_search): Unconditionally
2679 call do_cleanups.
2680
e35ac9bf
TT
26812013-05-30 Tom Tromey <[email protected]>
2682
2683 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2684 for 'cleanup'; instead use a later one.
2685
f3300387
TT
26862013-05-30 Tom Tromey <[email protected]>
2687
2688 * python/py-breakpoint.c (bppy_get_commands): Use
2689 explicit, unconditional return.
2690 * python/py-frame.c (frapy_read_var): Likewise.
2691 * python/python.c (gdbpy_decode_line): Likewise.
2692
c27e16e3
TT
26932013-05-30 Tom Tromey <[email protected]>
2694
2695 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2696 do_cleanups on all return paths.
2697
5ae85e44
TT
26982013-05-30 Tom Tromey <[email protected]>
2699
2700 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2701
73b8d9da
TT
27022013-05-30 Tom Tromey <[email protected]>
2703
2704 * stabsread.c (read_struct_type): Call do_cleanups along
2705 all return paths.
2706
7d266584
MR
27072013-05-30 Maciej W. Rozycki <[email protected]>
2708
2709 * mips-linux-tdep.c: Adjust formatting throughout.
2710
0f900f54
TT
27112013-05-30 Tom Tromey <[email protected]>
2712
2713 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
2714 along all return paths.
2715
a991ac28
TT
27162013-05-30 Tom Tromey <[email protected]>
2717
2718 * symfile.c (find_separate_debug_file): Call do_cleanups
2719 along all return paths.
2720
1abaf042
TT
27212013-05-30 Tom Tromey <[email protected]>
2722
2723 * symtab.c (search_symbols): Introduce a null cleanup for
2724 'retval_chain'.
2725
edefe1da
TT
27262013-05-30 Tom Tromey <[email protected]>
2727
2728 * python/py-value.c (valpy_binop): Call do_cleanups before
2729 exiting loop.
2730
54f72dcc
TT
27312013-05-30 Tom Tromey <[email protected]>
2732
2733 * python/py-prettyprint.c (print_children): Remove extra
2734 do_cleanups call.
2735
af1c6971
TT
27362013-05-30 Tom Tromey <[email protected]>
2737
2738 * python/py-frame.c (frapy_read_var): Call do_cleanups along
2739 all return paths.
2740
b862ce75
TT
27412013-05-30 Tom Tromey <[email protected]>
2742
2743 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
2744 along all return paths.
2745
e12fefc8
TT
27462013-05-30 Tom Tromey <[email protected]>
2747
2748 * cli/cli-logging.c (set_logging_redirect): Unconditionally
2749 call do_cleanups.
2750
4867f990
TT
27512013-05-30 Tom Tromey <[email protected]>
2752
2753 * varobj.c (c_value_of_root): Call do_cleanups along all
2754 return paths.
2755
4fd2d6af
TT
27562013-05-30 Tom Tromey <[email protected]>
2757
2758 * tracepoint.c (trace_dump_command): Unconditionally call
2759 do_cleanups.
2760
752eb8b4
TT
27612013-05-30 Tom Tromey <[email protected]>
2762
2763 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
2764 do_cleanups earlier.
2765
e42d0aa5
TT
27662013-05-30 Tom Tromey <[email protected]>
2767
2768 * machoread.c (macho_symfile_read): Assign first cleanup to
2769 'back_to'.
2770
4bbc010a
TT
27712013-05-30 Tom Tromey <[email protected]>
2772
2773 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2774
b9635925
TT
27752013-05-30 Tom Tromey <[email protected]>
2776
2777 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
2778
25f43500
TT
27792013-05-30 Tom Tromey <[email protected]>
2780
2781 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
2782 call discard_cleanups.
2783 (inf_ptrace_attach): Likewise.
2784
d6a2e54a
TT
27852013-05-30 Tom Tromey <[email protected]>
2786
2787 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
2788 return paths.
2789 (mips_initialize): Likewise.
2790 (common_open): Call do_cleanups.
2791
48be7c1b
TT
27922013-05-30 Tom Tromey <[email protected]>
2793
2794 * utils.c (internal_vproblem): Call do_cleanups.
2795
e61727ab
TT
27962013-05-30 Tom Tromey <[email protected]>
2797
2798 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
2799
b81b921f
TT
28002013-05-30 Tom Tromey <[email protected]>
2801
2802 * cli/cli-script.c (setup_user_args): Don't return after error.
2803
fe48dfb1
TT
28042013-05-30 Tom Tromey <[email protected]>
2805
2806 * somread.c (som_symtab_read): Call do_cleanups.
2807
27833de7
TT
28082013-05-30 Tom Tromey <[email protected]>
2809
2810 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
2811
5b3fca71
TT
28122013-05-30 Tom Tromey <[email protected]>
2813
2814 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
2815 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
2816 * interps.c (interpreter_exec_cmd): Call do_cleanups.
2817 * source.c (show_substitute_path_command): Call do_cleanups.
2818 (unset_substitute_path_command, set_substitute_path_command):
2819 Likewise.
2820 * symfile.c (load_command): Call do_cleanups.
2821
af83e3f8
TT
28222013-05-30 Tom Tromey <[email protected]>
2823
2824 * contrib/cleanup_check.py: New file.
2825 * contrib/gcc-with-excheck: Add option parsing.
2826
564eac42
JB
28272013-05-30 Joel Brobecker <[email protected]>
2828
2829 * windows-nat.c (windows_delete_thread): Add missing space
2830 in cast expression.
2831
47902076
HAQ
28322013-05-30 Hafiz Abid Qadeer <[email protected]>
2833
2834 * inferior.c (top level): Include tilde.h.
2835 (add_inferior_command): Call tilde_expand on the value of 'exec'
2836 argument.
2837
23da373a
YQ
28382013-05-30 Pedro Alves <[email protected]>
2839 Yao Qi <[email protected]>
2840
2841 * tracepoint.c (encode_actions_1): Remove parameter 't'.
2842 Caller update.
2843 (encode_actions): Likewise.
2844 * remote.c (remote_download_tracepoint): Caller update.
2845 * tracepoint.h (encode_actions): Update declaration.
2846
a6e6f791
PA
28472013-05-30 Pedro Alves <[email protected]>
2848
2849 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2850 pointer.
2851
36d25514
YQ
28522013-05-30 Yao Qi <[email protected]>
2853
2854 * remote.c (remote_check_symbols): Remove unused parameter
2855 'objfile'.
2856 Declaration update.
2857 (remote_start_remote, remote_new_objfile): Caller update.
2858
62a813cc
YQ
28592013-05-30 Yao Qi <[email protected]>
2860
2861 * mi/mi-cmds.c (mi_cmds): Define MI command
2862 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2863 DEF_MI_CMD_CLI.
2864
28439a30
PA
28652013-05-29 Pedro Alves <[email protected]>
2866
2867 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2868 (remote_insert_watchpoint, remote_remove_watchpoint)
2869 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2870 (remote_verify_memory, compare_sections_command)
2871 (remote_search_memory): Set the general process/thread on the
2872 remote side.
2873
6ac1c082
PA
28742013-05-29 Pedro Alves <[email protected]>
2875
2876 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2877 (_initialize_aarch64_tdep): Don't call
2878 initialize_tdesc_aarch64_without_fpu.
2879 * features/Makefile (WHICH): Remove reference to
2880 aarch64-without-fpu.
2881 * features/aarch64-without-fpu.c: Delete file.
2882 * regformats/aarch64-without-fpu.dat: Delete file.
2883
a73e3634
YQ
28842013-05-28 Yao Qi <[email protected]>
2885
2886 * tracepoint.c (stringify_collection_list): Remove parameter
2887 'string'.
2888 (encode_actions): Caller update. Remove local variables.
2889
c0ea94eb
YQ
28902013-05-24 Yao Qi <[email protected]>
2891
2892 * tracepoint.c (TFILE_PID): Remove.
2893 (tfile_open): Don't add thread and inferior.
2894 (tfile_close): Don't set 'inferior_ptid'. Don't call
2895 exit_inferior_silent.
2896 (tfile_thread_alive): Remove.
2897 (init_tfile_ops): Don't set field 'to_thread_alive' of
2898 tfile_ops.
2899
20d7f211
DE
29002013-05-23 Doug Evans <[email protected]>
2901
2902 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2903
8658d16d
PA
29042013-05-23 Pedro Alves <[email protected]>
2905
2906 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2907 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2908 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2909 Only define if HAVE_SOCKETS is defined.
2910 * configure.ac: Check for sys/socket.h.
2911 * config.in, configure: Regenerate.
2912
21aa081e
PA
29132013-05-23 Pedro Alves <[email protected]>
2914
2915 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2916 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2917 printing uint32_t variables.
2918
c2d6af84
PA
29192013-05-23 Pedro Alves <[email protected]>
2920
2921 * NEWS: Mention GDBserver range stepping support.
2922
c1e36e3e
PA
29232013-05-23 Yao Qi <[email protected]>
2924 Pedro Alves <[email protected]>
2925
2926 * gdbthread.h (struct thread_control_state) <may_range_step>: New
2927 field.
2928 * infcmd.c (step_once, until_next_command): Enable range stepping.
2929 * infrun.c (displaced_step_prepare): Disable range stepping.
2930 (resume): Disable range stepping if stepping over a breakpoint or
2931 we have software watchpoints. If range stepping is enabled,
2932 assert the thread is in the stepping range.
2933 (clear_proceed_status_thread): Clear may_range_step.
2934 (handle_inferior_event): Disable range stepping as soon as we know
2935 the thread that hit the event. Re-enable it whenever we're going
2936 to step with a step range.
2937 * remote.c (struct vCont_action_support) <r>: New field.
2938 (use_range_stepping): New global.
2939 (remote_vcont_probe): Handle 'r' action.
2940 (append_resumption): Append an 'r' action if the thread may range
2941 step.
2942 (show_range_stepping): New function.
2943 (set_range_stepping): New function.
2944 (_initialize_remote): Call add_setshow_boolean_cmd to register the
2945 'set range-stepping' and 'show range-stepping' commands.
2946 * NEWS: Mention range stepping, the new vCont;r action, and the
2947 new "set/show range-stepping" commands.
2948
d458bd84
PA
29492013-05-23 Yao Qi <[email protected]>
2950 Pedro Alves <[email protected]>
2951
2952 * remote.c (struct vCont_action_support): New struct.
2953 (struct remote_state) <support_vCont_t>: Remove field.
2954 <vCont_actions_support>: New field.
2955 (remote_vcont_probe, remote_stop_ns): Update.
2956
ce4c476a
PA
29572013-05-23 Yao Qi <[email protected]>
2958 Pedro Alves <[email protected]>
2959
2960 * gdbthread.h (pc_in_thread_step_range): New declaration.
2961 * thread.c (pc_in_thread_step_range): New function.
2962 * infrun.c (handle_inferior_event): Use it.
2963
ce70887a
JB
29642013-05-23 Joel Brobecker <[email protected]>
2965
2966 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2967 of sprintf.
2968
55b87a52
KS
29692013-05-22 Keith Seitz <[email protected]>
2970
2971 * ada-lang.c (is_known_support_routine): Add explicit free of
2972 'func_name' from find_frame_funname.
2973 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2974 for func_name from find_frame_funname.
2975 * python/py-frame.c (frapy_name): Add explicit free of
2976 'name' from find_frame_funname.
2977 * stack.c (find_frame_funname): Add comment explaining that
2978 funcp must be freed by the caller.
2979 Return copy of symbol names instead of pointers.
2980 (print_frame): Add a cleanup for 'funname' from
2981 find_frame_funname.
2982 * stack.h (find_frame_funname): Remove "const" from
2983 'funname' parameter.
2984
5f2e6b00
TT
29852013-05-22 Tom Tromey <[email protected]>
2986
2987 PR c++/15401:
2988 * c-valprint.c (c_value_print): Use value_addr for
2989 references. Convert back to reference type with value_ref.
2990
d85c4847
EZ
29912013-05-22 Eli Zaretskii <[email protected]>
2992
2993 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2994 unloaded DLL, it will be done by handle_solib_event. See
2995 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2996 details.
2997
54eb231c
PM
29982013-05-22 Phil Muldoon <[email protected]>
2999
3000 * ui-out.c: Create typedef ui_out_level_p and define vector
3001 operations for that type.
3002 (struct ui_out): Use a vector instead of an array.
3003 (current_level): Return level from a vector.
3004 (push_level): Create a level in a vector.
3005 (pop_level): Delete a level in a vector.
3006 (ui_out_new): Create initial level zero level, and store in a
3007 vector.
3008 (ui_out_destroy): Add vector cleanup.
3009
ac90359c
PA
30102013-05-22 Pedro Alves <[email protected]>
3011
3012 * python/python-internal.h (gdb_Py_DECREF): Tag with
3013 "ARI: editCase function".
3014
6dcc1893
PP
30152013-05-21 Paul Pluzhnikov <[email protected]>
3016
3017 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3018
c8c735b9
PA
30192013-05-21 Pedro Alves <[email protected]>
3020
3021 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3022 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3023 * python/py-utils.c (py_decref): Don't check for NULL before
3024 calling Py_DECREF.
3025
1915daeb
PA
30262013-05-21 Pedro Alves <[email protected]>
3027
3028 * python/py-utils.c (py_decref): Remove extra braces.
3029 (gdb_pymodule_addobject): Remove extra braces.
3030 * python-internal.h (gdb_Py_DECREF): New static inline function.
3031 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3032
bd9673a4
PW
30332013-05-21 Philippe Waroquiers <[email protected]>
3034
3035 * breakpoints.c (detach_breakpoints): Do not
3036 detach breakpoints locations with loc_type bp_loc_other.
3037
ff6009d0
JK
30382013-05-21 Jan Kratochvil <[email protected]>
3039
3040 Workaround Python 2.6.
3041 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3042 a block.
3043
3641da11
JK
30442013-05-21 Jan Kratochvil <[email protected]>
3045
3046 Code cleanup: constification.
3047 * solib.c (solib_ops): Make return type and ops variable type const.
3048 (set_solib_ops): Make the new_ops parameter and ops variable const.
3049 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3050 (solib_add, solib_keep_data_in_core, clear_solib)
3051 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3052 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3053 const.
3054 * solib.h (set_solib_ops): Make the new_ops parameter const.
3055
776af39e
JB
30562013-05-21 Joel Brobecker <[email protected]>
3057
3058 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3059 variable.
3060 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3061 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3062 (SYSTEM_GDBINIT_FILES): New variables.
3063 (all): Add stamp-system-gdbinit.
3064 (stamp-system-gdbinit): New rule.
3065 (clean-system-gdbinit, install-system-gdbinit)
3066 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3067 (install-only): Add dependency on install-system-gdbinit.
3068 (uninstall): Add dependency on uninstall-system-gdbinit.
3069 (clean): Add dependency on clean-system-gdbinit.
3070 * system-gdbinit/elinos.py: New file.
3071 * system-gdbinit/wrs-linux.py: New file.
3072
1509e573
JB
30732013-05-21 Joel Brobecker <[email protected]>
3074
3075 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3076
c5867ab6
HZ
30772013-05-21 Hui Zhu <[email protected]>
3078
3079 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3080 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3081 * mi/mi-cmd-break.c (ctype.h): New include.
3082 (gdb_obstack.h): New include.
3083 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3084 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3085 (mi_cmd_dprintf_insert): New.
3086 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3087 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3088
7d38e38f
TT
30892013-05-20 Tom Tromey <[email protected]>
3090
3091 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3092
97b77b39
TT
30932013-05-20 Tom Tromey <[email protected]>
3094
3095 * python/py-value.c (valpy_get_dynamic_type): Simplify
3096 dynamic_type assignment. Use Py_XINCREF.
3097
53e66479
TT
30982013-05-20 Tom Tromey <[email protected]>
3099
3100 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3101
dcf87832
TT
31022013-05-20 Tom Tromey <[email protected]>
3103
3104 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3105 (gdbpy_selected_frame): Move object-construction code
3106 out of TRY_CATCH.
3107
aa36459a
TT
31082013-05-20 Tom Tromey <[email protected]>
3109
3110 * python/py-arch.c (gdbpy_initialize_arch): Use
3111 gdb_pymodule_addobject.
3112 * python/py-block.c (gdbpy_initialize_blocks): Use
3113 gdb_pymodule_addobject.
3114 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3115 gdb_pymodule_addobject.
3116 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3117 gdb_pymodule_addobject.
3118 * python/py-event.c (gdbpy_initialize_event_generic): Use
3119 gdb_pymodule_addobject.
3120 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3121 gdb_pymodule_addobject.
3122 * python/py-evts.c (add_new_registry): Use
3123 gdb_pymodule_addobject.
3124 (gdbpy_initialize_py_events): Likewise.
3125 * python/py-finishbreakpoint.c
3126 (gdbpy_initialize_finishbreakpoints): Use
3127 gdb_pymodule_addobject.
3128 * python/py-frame.c (gdbpy_initialize_frames): Use
3129 gdb_pymodule_addobject.
3130 * python/py-function.c (gdbpy_initialize_functions): Use
3131 gdb_pymodule_addobject.
3132 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3133 gdb_pymodule_addobject.
3134 * python/py-infthread.c (gdbpy_initialize_thread): Use
3135 gdb_pymodule_addobject.
3136 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3137 gdb_pymodule_addobject.
3138 * python/py-param.c (gdbpy_initialize_parameters): Use
3139 gdb_pymodule_addobject.
3140 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3141 gdb_pymodule_addobject.
3142 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3143 gdb_pymodule_addobject.
3144 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3145 gdb_pymodule_addobject.
3146 * python/py-type.c (gdbpy_initialize_types): Use
3147 gdb_pymodule_addobject.
3148 * python/py-utils.c (gdb_pymodule_addobject): New function.
3149 * python/py-value.c (gdbpy_initialize_values): Use
3150 gdb_pymodule_addobject.
3151 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3152 * python/python.c (_initialize_python): Use
3153 gdb_pymodule_addobject.
3154
3d4a3c3e
TT
31552013-05-20 Tom Tromey <[email protected]>
3156
3157 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3158 * python/py-param.c (get_set_value, get_show_value): Use
3159 explicit decrefs.
3160 * python/python.c (start_type_printers, apply_type_printers):
3161 Use explicit decrefs.
3162
72ff8829
TT
31632013-05-20 Tom Tromey <[email protected]>
3164
3165 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3166 incref the module.
3167
02146ba5
TT
31682013-05-20 Tom Tromey <[email protected]>
3169
3170 * python/python.c (gdbpy_run_events): Decref the result
3171 of PyObject_CallObject.
3172
33ee792f
TT
31732013-05-20 Tom Tromey <[email protected]>
3174
3175 * python/py-symtab.c (set_sal): Use
3176 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3177 (symtab_and_line_to_sal_object): Update.
3178
fcb49fc8
TT
31792013-05-20 Tom Tromey <[email protected]>
3180
3181 * python/py-param.c (compute_enum_values): Decref 'item'.
3182
0646da15
TT
31832013-05-20 Tom Tromey <[email protected]>
3184
3185 * mi/mi-main.c: Include python-internal.h.
3186 (mi_cmd_list_features): Check gdb_python_initialized.
3187 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3188 (python_inferior_exit, python_new_objfile, add_thread_object)
3189 (delete_thread_object, py_free_inferior): Check
3190 gdb_python_initialized.
3191 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3192 gdb_python_initialized.
3193 * python/py-type.c (save_objfile_types): Check
3194 gdb_python_initialized.
3195 * python/python-internal.h (gdb_python_initialized): Declare.
3196 * python/python.c (ensure_python_env): Throw exception if
3197 Python not initialized.
3198 (before_prompt_hook, source_python_script_for_objfile)
3199 (start_type_printers, apply_type_printers,
3200 free_type_printers): Check gdb_python_initialized.
3201 * varobj.c (varobj_get_display_hint)
3202 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3203 (install_new_value_visualizer, varobj_set_visualizer)
3204 (value_get_print_value): Check gdb_python_initialized.
3205
999633ed
TT
32062013-05-20 Tom Tromey <[email protected]>
3207
3208 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3209 Check errors.
3210 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3211 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3212 Check errors.
3213 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3214 Check errors.
3215 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3216 Check errors.
3217 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3218 Check errors.
3219 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3220 init function to return 'int'.
3221 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3222 Return 'int'. Check errors.
3223 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3224 Check errors.
3225 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3226 Return 'int'. Check errors.
3227 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3228 Check errors.
3229 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3230 Check errors.
3231 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3232 Check errors.
3233 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3234 Check errors.
3235 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3236 Check errors.
3237 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3238 Check errors.
3239 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3240 Check errors.
3241 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3242 Check errors.
3243 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3244 Check errors.
3245 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3246 Check errors.
3247 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3248 Check errors.
3249 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3250 Check errors.
3251 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3252 Check errors.
3253 * python/python-internal.h (gdbpy_initialize_auto_load,
3254 gdbpy_initialize_values, gdbpy_initialize_frames,
3255 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3256 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3257 gdbpy_initialize_blocks, gdbpy_initialize_types,
3258 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3259 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3260 gdbpy_initialize_finishbreakpoints,
3261 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3262 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3263 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3264 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3265 gdbpy_initialize_signal_event,
3266 gdbpy_initialize_breakpoint_event,
3267 gdbpy_initialize_continue_event,
3268 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3269 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3270 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3271 * python/python.c (gdb_python_initialized): New global.
3272 (gdbpy_initialize_events): Return 'int'. Check errors.
3273 (_initialize_python): Check errors. Set
3274 gdb_python_initialized.
3275
18868860
TT
32762013-05-20 Tom Tromey <[email protected]>
3277
3278 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3279 Decref the reslut of PyObject_CallMethod.
3280
9f4ff0c2
TT
32812013-05-20 Tom Tromey <[email protected]>
3282
3283 * python/py-event.c (gdbpy_initialize_event_generic): Return
3284 early if PyType_Ready fails.
3285
0d3a2e8a
TT
32862013-05-20 Tom Tromey <[email protected]>
3287
3288 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3289 as 'default' in the switch.
3290
b86af38a
TT
32912013-05-20 Tom Tromey <[email protected]>
3292
3293 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3294 get_addr_from_python calls out of TRY_CATCH.
3295 (infpy_write_memory, infpy_search_memory): Likewise.
3296 * python/py-utils.c (get_addr_from_python): Return negative
3297 value on error. Use TRY_CATCH.
3298 * python/python-internal.h (get_addr_from_python): Use
3299 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3300
c127ec58
TT
33012013-05-20 Tom Tromey <[email protected]>
3302
3303 * python/py-event.c (evpy_emit_event): Decref the
3304 result of PyObject_CallFunctionObjArgs.
3305
ba327838
TT
33062013-05-20 Tom Tromey <[email protected]>
3307
3308 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3309 Correctly decref.
3310
d8191432
TT
33112013-05-20 Tom Tromey <[email protected]>
3312
3313 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3314
5d153bd1
TT
33152013-05-20 Tom Tromey <[email protected]>
3316
3317 * python/py-event.h (gdbpy_initialize_event_generic): Use
3318 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3319 * python/py-evts.c (add_new_registry): Use
3320 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3321 * python/python-internal.h
3322 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3323
56cc411c
TT
33242013-05-20 Tom Tromey <[email protected]>
3325
3326 * python/py-arch.c (archpy_disassemble): Update.
3327 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3328 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3329 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3330 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3331 macro.
3332 (GDB_PY_HANDLE_EXCEPTION): Update.
3333 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3334
8919e174
TT
33352013-05-20 Tom Tromey <[email protected]>
3336
3337 * python/python-internal.h (events_object_type): Remove.
3338
9b08f225
TT
33392013-05-20 Tom Tromey <[email protected]>
3340
f5aee5ee
AM
3341 * python/py-event.h (evpy_emit_event): Use
3342 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3343 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3344 New macro.
9b08f225 3345
f04010ff
TT
33462013-05-20 Tom Tromey <[email protected]>
3347
3348 * py-evtregistry.c (create_event_object): Decref
3349 eventregistry_object if PyList_New fails.
3350
3919fd96
TT
33512013-05-20 Tom Tromey <[email protected]>
3352
3353 * py-cmd.c (gdbpy_string_to_argv): Check result of
3354 PyList_New.
3355
0430e8cb
TT
33562013-05-20 Tom Tromey <[email protected]>
3357
3358 * python/python.c (before_prompt_hook): Add cleanup to
3359 decref 'hook'.
3360
764123e4
TT
33612013-05-20 Tom Tromey <[email protected]>
3362
3363 * python/py-function.c (fnpy_init): Decref result of
3364 PyObject_GetAttrString.
3365
634c58be
TT
33662013-05-20 Tom Tromey <[email protected]>
3367
3368 * python/py-threadevent.c (get_event_thread): Use
3369 CPYCHECKER_RETURNS_BORROWED_REF.
3370 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3371 New define.
3372 (pspace_to_pspace_object, objfile_to_objfile_object)
3373 (find_thread_object): Use it.
3374
62eec1a5
TT
33752013-05-20 Tom Tromey <[email protected]>
3376
3377 * python/py-arch.c (arch_object_type): Use
3378 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3379 * python/py-block.c (block_syms_iterator_object_type):
3380 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3381 * python/py-bpevent.c (breakpoint_event_object_type):
3382 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3383 * python/py-cmd.c (cmdpy_object_type): Use
3384 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3385 * python/py-continueevent.c (continue_event_object_type):
3386 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3387 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3388 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3389 * python/py-events.h (thread_event_object_type):
3390 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3391 * python/py-evtregistry.c (eventregistry_object_type): Use
3392 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3393 * python/py-exitedevent.c (exited_event_object_type):
3394 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3395 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3396 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3397 * python/py-function.c (fnpy_object_type): Use
3398 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3399 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3400 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3401 * python/py-infthread.c (thread_object_type): Use
3402 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3403 * python/py-lazy-string.c (lazy_string_object_type):
3404 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3405 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3406 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3407 * python/py-objfile.c (objfile_object_type): Use
3408 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3409 * python/py-param.c (parmpy_object_type):
3410 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3411 * python/py-progspace.c (pspace_object_type):
3412 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3413 * python/py-signalevent.c (signal_event_object_type):
3414 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3415 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3416 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3417 * python/py-type.c (type_object_type, field_object_type)
3418 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3419 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3420 define.
3421 (value_object_type, block_object_type, symbol_object_type)
3422 (event_object_type, stop_event_object_type, breakpoint_object_type)
3423 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3424
81ea8796
AT
34252013-05-20 Andreas Tobler <[email protected]>
3426
3427 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3428 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3429
a2ce51a0
DE
34302013-05-20 Doug Evans <[email protected]>
3431
3432 When reading CU, stay in DWO. Be more tolerent of bad debug info.
3433 For Fission.
3434 * dwarf2read.c (struct dwarf2_per_cu_data): New member
3435 reading_dwo_directly.
3436 (struct signatured_type): New member dwo_unit.
3437 (struct die_reader_specs): New member comp_dir.
3438 (create_signatured_type_table_from_index): Use malloc for
3439 all_type_units instead of objfile's obstack.
3440 (create_all_type_units): Ditto.
3441 (fill_in_sig_entry_from_dwo_entry): New function.
3442 (add_type_unit): New function.
3443 (lookup_dwo_signatured_type): New function.
3444 (lookup_dwp_signatured_type): New function.
3445 (lookup_signatured_type): New arg cu. All callers updated.
3446 (init_cu_die_reader): Initialize comp_dir.
3447 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
3448 Change assert of matching type signatures to call error on mismatch.
3449 (lookup_dwo_unit): Add assert.
3450 (init_tu_and_read_dwo_dies): New function.
3451 (init_cutu_and_read_dies): Call it.
3452 (build_type_unit_groups): Handle case of no type unit groups created.
3453 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3454 (lookup_dwo_cutu): Tweak complaint.
3455 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3456 (dwarf2_per_objfile_free): Free all_type_units.
3457
a25cd31f
JB
34582013-05-20 Joel Brobecker <[email protected]>
3459
3460 * windows-nat.c (handle_unload_dll): Add missing empty line.
3461
4d804846
JB
34622013-05-20 Joel Brobecker <[email protected]>
3463
3464 * dwarf2read.c (prototyped_function_p): New function.
3465 (read_subroutine_type): Use it.
3466
1c432e72
JB
34672013-05-20 Joel Brobecker <[email protected]>
3468
3469 * rs6000-aix-tdep.c: De-indent some example code provided
3470 as a comment.
3471
4feebbdd
EBM
34722013-05-17 Edjunior Machado <[email protected]>
3473
3474 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3475 region is ok for a hardware watchpoint using the new ptrace interface
3476 on Power servers.
3477
7d0c9981
DE
34782013-05-17 Doug Evans <[email protected]>
3479
3480 * NEWS: Mention new maintenance commands check-symtabs, and
3481 expand-symtabs, and renamed check-psymtabs.
3482 * psymtab.c (maintenance_check_psymtabs): Renamed from
3483 maintenance_check_symtabs. Only process already-expanded symbol
3484 tables.
3485 (_initialize_psymtab): Update.
3486 * symmisc.c (maintenance_check_symtabs): New function.
3487 (maintenance_expand_name_matcher): New function
3488 (maintenance_expand_file_matcher): New function
3489 (maintenance_expand_symtabs): New function.
3490 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3491 commands.
3492
6cbc7c3d
TT
34932013-05-17 Tom Tromey <[email protected]>
3494
3495 * python/py-inferior.c (infpy_read_memory): Don't call
3496 PyErr_SetString if PyObject_New fails.
3497 * python/py-frame.c (frame_info_to_frame_object): Don't call
3498 PyErr_SetString if PyObject_New fails.
3499
a48b32c0
L
35002013-05-17 Pavel Chupin <[email protected]>
3501
3502 * acinclude.m4: Add check for dlopen in libdl.
3503 * configure.ac: Ditto.
3504 * configure: Regenerate.
3505
3de661e6
PM
35062013-05-17 Phil Muldoon <[email protected]>
3507
3508 * frame.c (frame_stash): Convert to htab.
3509 (frame_addr_hash): New function.
3510 (frame_addr_hash_eq): New function.
3511 (frame_stash_create): Convert function to create
3512 a hash table.
3513 (frame_stash_add): Convert function to add an entry to a hash
3514 table.
3515 (frame_stash_find): Convert function to search the hash table.
3516 (frame_stash_invalidate): Convert function to empty the hash
3517 table.
3518 (get_frame_id): Only add to stash if a frame_id is created.
3519 (_initialize_frame): Call frame_stash_create.
3520
bb4168a9 35212013-05-16 Yue Lu <[email protected]> (tiny change)
036c3acb
TS
3522
3523 * configure.ac: Ensure MIG is available when building for GNU Hurd
3524 hosts.
3525 * configure: Regenerate.
3526
d1be3247
JB
35272013-05-16 Joel Brobecker <[email protected]>
3528
3529 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3530
b8fea896
JB
35312013-05-16 Joel Brobecker <[email protected]>
3532
3533 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3534 all cleanups are done before returning from this function.
3535
af880d85
JB
35362013-05-15 Joel Brobecker <[email protected]>
3537
3538 * utils.h: #include "exceptions.h".
3539 (enum errors): Remove partial declaration.
3540
356a5233
JB
35412013-05-15 Joel Brobecker <[email protected]>
3542
3543 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3544 * gdbarch.h, gdbarch.c: Regenerate.
3545 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3546 handling.
3547
3548 * rs6000-aix-tdep.h: New file.
3549 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3550 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3551 "xml-utils.h".
3552 (struct field_info, struct ld_info_desc): New types.
3553 (ld_info32_desc, ld_info64_desc): New static constants.
3554 (struct ld_info): New type.
3555 (rs6000_aix_extract_ld_info): New function.
3556 (rs6000_aix_shared_library_to_xml): Likewise.
3557 (rs6000_aix_ld_info_to_xml): Likewise.
3558 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3559 (rs6000_aix_init_osabi): Add call to
3560 set_gdbarch_core_xfer_shared_libraries_aix.
3561 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3562 Remove "xml-utils.h" include.
3563 (LdInfo): Delete typedef.
3564 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3565 Delete macros.
3566 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3567 Adjust code accordingly.
3568 (rs6000_core_ldinfo): Delete, folded into
3569 rs6000_aix_core_xfer_shared_libraries_aix.
3570 (rs6000_xfer_shared_library): Delete.
3571 (rs6000_xfer_shared_libraries): Reimplement.
3572
742ce053
MM
35732013-05-15 Markus Metzger <[email protected]>
3574
3575 * record.c (record_goto_cmdlist): New.
3576 (cmd_record_goto): Split into this ...
3577 (cmd_record_goto_begin): ... this
3578 (cmd_record_goto_end): ... and this.
3579 (_initialize_record): Change "record goto" to prefix command.
3580 Add commands for "record goto begin" and "record goto end".
3581 Add an alias for "record goto start" to "record goto begin".
3582
e93ba630
JK
35832013-05-14 Jan Kratochvil <[email protected]>
3584
3585 * linespec.c (convert_linespec_to_sals): New comment for
3586 SOURCE_FILENAME assignment.
3587
5821aace
JK
35882013-05-14 Jan Kratochvil <[email protected]>
3589
3590 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3591 internal_warning.
3592
a1b8c4cc
TT
35932013-05-14 Tom Tromey <[email protected]>
3594
3595 * eval.c (parse_and_eval_long): Make 'exp' const.
3596 * value.h (parse_and_eval_long): Update.
3597
23b3a2c3
TT
35982013-05-14 Tom Tromey <[email protected]>
3599
3600 * ui-file.c (gdb_fopen): Make arguments const.
3601 * ui-file.h (gdb_fopen): Make arguments const.
3602
ca623f82
TT
36032013-05-14 Tom Tromey <[email protected]>
3604
3605 * remote.c (remote_set_trace_notes): Make arguments const.
3606 * target.c (update_current_target): Update cast.
3607 * target.h (to_set_trace_notes): Make arguments const.
3608
503ebb2c
TT
36092013-05-14 Tom Tromey <[email protected]>
3610
3611 * go32-nat.c (go32_terminal_info): Make 'args' const.
3612 * inferior.h (child_terminal_info): Update.
3613 * inflow.c (child_terminal_info): Make 'args' const.
3614 * target.c (default_terminal_info): Make 'args' const.
3615 (debug_to_terminal_save_ours): Likewise.
3616 * target.h (struct target_ops) <to_terminal_info>: Make argument
3617 const.
3618
85e1311a
TT
36192013-05-13 Tom Tromey <[email protected]>
3620
3621 * gcore.c (create_gcore_bfd): Make 'filename' const.
3622 * gcore.h (create_gcore_bfd): Make 'filename' const.
3623 * record-full.c (record_full_save): Make 'recfilename' const.
3624 * target.c (target_save_record): Make 'filename' const.
3625 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3626 const.
3627 (target_save_record): Likewise.
3628
d62bfeaf
TT
36292013-05-13 Tom Tromey <[email protected]>
3630
f5aee5ee 3631 PR gdb/15338:
d62bfeaf
TT
3632 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3633 ranges section has been read.
3634
ac1ca910
TT
36352013-05-13 Tom Tromey <[email protected]>
3636
3637 PR exp/15364:
3638 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3639 STRUCTOP_PTR>: Return a not_lval value for
3640 EVAL_AVOID_SIDE_EFFECTS.
3641 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3642 for EVAL_AVOID_SIDE_EFFECTS.
3643
36d1c68c
JB
36442013-05-13 Joel Brobecker <[email protected]>
3645
3646 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3647 floating point registers to register type before storing
3648 value.
3649 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3650 Likewise.
3651
21ff4686
TT
36522013-05-10 Joel Brobecker <[email protected]>
3653 Tom Tromey <[email protected]>
3654
3655 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3656 New functions.
3657 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3658 Declare.
3659 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3660 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3661 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3662 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3663
d3685d60
TT
36642013-05-10 Freddie Chopin <[email protected]>
3665 Tom Tromey <[email protected]>
3666
3667 PR build/15414:
3668 * configure: Rebuild.
3669 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3670 with -Wno-format.
3671
eb9fe518
PA
36722013-05-10 Pedro Alves <[email protected]>
3673
3674 * remote.c (_initialize_remote): Fix spelling of
3675 qXfer:traceframe-info:read packet in packet config command.
3676
9779ab84
PA
36772013-05-10 David Taylor <[email protected]>
3678
3679 PR remote/15455
3680
3681 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3682 "QTro" at start of packet.
3683
060cfbef
JB
36842013-05-10 Joel Brobecker <[email protected]>
3685
3686 * solib-aix.c (solib_aix_relocate_section_addresses):
3687 For the .bss section action, apply the same offset as
3688 the .data section.
3689
ab1c4e88
JB
36902013-05-10 Joel Brobecker <[email protected]>
3691
3692 * solib-aix.c (solib_aix_relocate_section_addresses):
3693 Remove FIXME comment.
3694
c1357578
JB
36952013-05-10 Joel Brobecker <[email protected]>
3696
3697 PR tdep/15420:
3698 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3699 New functions, directly copied from sparc-sol-thread.c.
3700 * sparc-sol-thread.c: Delete.
3701 * configure.ac: Remove code handling sparc-solaris-thread.c.
3702 * configure: Regenerate.
3703
1e611234
PM
37042013-05-10 Phil Muldoon <[email protected]>
3705
3706 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3707 filter logic.
3708 (backtrace_command): Add "no-filters" option parsing.
3709 (_initialize_stack): Alter help to reflect "no-filters" option.
3710 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3711 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3712 (py-frame.o): Add target
3713 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
3714 filter files.
3715 * python/python.h: Add new frame filter constants, and flag enum.
3716 (apply_frame_filter): Add definition.
3717 * python/python.c (apply_frame_filter): New non-Python
3718 enabled function.
3719 * python/py-utils.c (py_xdecref): New function.
3720 (make_cleanup_py_xdecref): Ditto.
3721 * python/py-objfile.c: Declare frame_filters dictionary.
3722 (objfpy_dealloc): Add frame_filters dealloc.
3723 (objfpy_new): Initialize frame_filters attribute.
3724 (objfile_to_objfile_object): Ditto.
3725 (objfpy_get_frame_filters): New function.
3726 (objfpy_set_frame_filters): New function.
3727 * python/py-progspace.c: Declare frame_filters dictionary.
3728 (pspy_dealloc): Add frame_filters dealloc.
3729 (pspy_new): Initialize frame_filters attribute.
3730 (pspacee_to_pspace_object): Ditto.
3731 (pspy_get_frame_filters): New function.
3732 (pspy_set_frame_filters): New function.
3733 * python/py-framefilter.c: New file.
3734 * python/lib/gdb/command/frame_filters.py: New file.
3735 * python/lib/gdb/frames.py: New file.
3736 * python/lib/gdb/__init__.py: Initialize global frame_filters
3737 dictionary
3738 * python/lib/gdb/FrameDecorator.py: New file.
3739 * python/lib/gdb/FrameIterator.py: New file.
3740 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
3741 * mi/mi-cmds.h: Declare.
3742 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
3743 --no-frame-filter logic, and Python frame filter logic.
3744 (stack_enable_frame_filters): New function.
3745 (parse_no_frame_option): Ditto.
3746 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
3747 filter logic.
3748 (mi_cmd_stack_list_locals): Ditto.
3749 (mi_cmd_stack_list_args): Ditto.
3750 (mi_cmd_stack_list_variables): Ditto.
3751 * NEWS: Add frame filter note.
3752
2cb9c859
DE
37532013-05-09 Doug Evans <[email protected]>
3754
6bf667bb
DE
3755 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
3756 All callers updated.
3757 (syms_from_objfile): Ditto. Make static.
3758 (symbol_file_add_with_addrs): Renamed from
3759 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
3760 num_offsets. All callers updated.
3761 * symfile.h (syms_from_objfile): Delete.
3762
2cb9c859
DE
3763 * symfile.c (decrement_reading_symtab): Add assert.
3764 (increment_reading_symtab): Ditto.
3765
40aea477
JB
37662013-05-09 Joel Brobecker <[email protected]>
3767
3768 * source.c (forward_search_command): Replace call to getc
3769 by call to fgetc.
3770 (reverse_search_command): Likewise.
3771
680d1742
DE
37722013-05-08 Doug Evans <[email protected]>
3773
3774 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
3775 matching test.
3776
17e760ae
JB
37772013-05-08 Joel Brobecker <[email protected]>
3778
3779 * sol-thread.c (info_cb): Factorize the code a little.
3780
c0f5f490
JB
37812013-05-08 Joel Brobecker <[email protected]>
3782
3783 * sol-thread.c (info_cb): Rework the output of the "maintenance
3784 info sol-threads" command a bit.
3785
5d74e061
JB
37862013-05-08 Joel Brobecker <[email protected]>
3787
3788 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
3789 Replace ti.ti_startfunc by ti.ti_pc.
3790
814a3ff7
JB
37912013-05-08 Joel Brobecker <[email protected]>
3792
3793 * solib-aix.c (solib_aix_free_library_list): New function
3794 for the case where HAVE_LIBEXPAT is not defined.
3795
58ce7251
SDJ
37962013-05-07 Sergio Durigan Junior <[email protected]>
3797
3798 PR breakpoints/15413:
3799 * breakpoint.c (condition_completer): Simplify the code to
3800 disconsider multiple locations of breakpoints when completing the
3801 "condition" command.
3802
be8b1ea6
PM
38032013-05-07 Pierre Muller <[email protected]>
3804
3805 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
3806 instead of <sys/wait.h>.
3807
1e52bda6
PM
38082013-05-07 Pierre Muller <[email protected]>
3809
3810 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
3811 trailing new line from warning message.
3812
27fd0c6b
PM
38132013-05-07 Pierre Muller <[email protected]>
3814
3815 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
3816 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
3817
e228ac87
JB
38182013-05-07 Joel Brobecker <[email protected]>
3819
3820 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
3821 error message (ARI fix).
3822
38232013-05-07 Joel Brobecker <[email protected]>
3824
3825 * features/library-list-aix.dtd: Replace library-list by
3826 library-list-aix.
3827 * rs6000-nat.c: Replace library-list by library-list-aix
3828 throughout.
3829 * solib-aix.c: Likewise.
3830
38312013-05-07 Joel Brobecker <[email protected]>
3832
3833 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3834 Renames TARGET_OBJECT_AIX_LIBRARIES.
3835 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3836 TARGET_OBJECT_LIBRARIES_AIX throughout.
3837 * solib-aix.c: Likwise.
3838
26a4dda9
YQ
38392013-05-07 Yao Qi <[email protected]>
3840
3841 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3842 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3843
3582629f
YQ
38442013-05-07 Yao Qi <[email protected]>
3845
3846 * solib-dsbt.c (enable_break): Declare.
3847 (dsbt_current_sos): Remove call to enable_break2.
3848 (enable_break2): Rename to enable_break. Set solib breakpoint
3849 on '_dl_debug_state'.
3850 (enable_break): Remove.
3851
aacbb8a5
LM
38522013-05-07 Luis Machado <[email protected]>
3853
3854 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3855 debug state prior to replicating existing hardware watchpoints or
3856 breakpoints.
3857
0c013353
JK
38582013-05-07 Jan Kratochvil <[email protected]>
3859
3860 * gcore.c (gcore_create_callback): Ignore sections with
3861 separate_debug_objfile_backlink != NULL.
3862
a1217d97
SL
38632013-05-06 Sandra Loosemore <[email protected]>
3864 Andrew Jenner <[email protected]>
3865 Chung-Lin Tang <[email protected]>
3866 Julian Brown <[email protected]>
3867
3868 Based on the nios2-elf port from Altera Corporation.
3869
3870 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3871 nios2-linux-tdep.o.
3872 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3873 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3874 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3875 * nios2-tdep.h: New.
3876 * nios2-tdep.c: New.
3877 * nios2-linux-tdep.c: New.
3878 * features/Makefile (WHICH): Add nios2-linux.
3879 (nios2-linux-expedite): Set.
3880 * features/nios2-cpu.xml: New.
3881 * features/nios2.xml: New.
3882 * features/nios2-linux.xml: New.
3883 * features/nios2.c: New (autogenerated).
3884 * features/nios2-linux.c: New (autogenerated).
3885 * regformats/nios2-linux.dat: New (autogenerated).
3886 * NEWS (Changes since GDB 7.6): Add new Nios II targets
3887 and commands.
3888
0892cb63
DE
38892013-05-06 Doug Evans <[email protected]>
3890
3b7bacac
DE
3891 * symfile.c: Whitespace cleanup.
3892
0892cb63
DE
3893 * solist.h (struct target_so_ops): New member clear_so.
3894 * solib-svr4.c (svr4_clear_so): New function.
3895 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3896 * solib.c (clear_so): Renamed from free_so_symbols.
3897 All callers updated. Call target clear_so if it exists.
3898
40501e00
TT
38992013-05-06 Tom Tromey <[email protected]>
3900
3901 * ada-lang.c (ada_value_primitive_packed_val): Don't
3902 call value_incref.
3903 * value.c (set_value_parent): Incref the new parent and decref
3904 the old parent.
3905 (value_copy, value_primitive_field): Use set_value_parent.
3906
b6807d98
TT
39072013-05-06 Tom Tromey <[email protected]>
3908
3909 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3910 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3911 if needed.
3912 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3913 * dwarf2read.c (write_constant_as_bytes)
3914 (dwarf2_fetch_constant_bytes): New functions.
3915
3aef2284
TT
39162013-05-06 Tom Tromey <[email protected]>
3917
3918 * dwarf2read.c (dwarf2_const_value_data): Remove unused
3919 parameters.
3920 (dwarf2_const_value_attr): Update.
3921
66f65e2b
TT
39222013-05-06 Tom Tromey <[email protected]>
3923
3924 * somread.c (som_symfile_offsets): Add 'const' to addrs.
3925 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3926 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3927 Remove declaration.
3928
7919a973
TT
39292013-05-06 Tom Tromey <[email protected]>
3930
3931 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3932 objfile's obstack.
3933
a7bfba49
DE
39342013-05-06 Doug Evans <[email protected]>
3935
3189cb12
DE
3936 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3937 * stabsread.h (process_one_symbol): Update declaration.
3938 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3939 * elfread.c (elf_symfile_relocate_probe): Ditto.
3940 * psymtab.c (relocate_psymtabs): Ditto.
3941 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3942 (objfile_relocate): Ditto.
3943 * objfiles.h (objfile_relocate): Update declaration.
3944 * symfile.c (relative_addr_info_to_section_offsets): Constify
3945 addrs parameter.
3946 (default_symfile_offsets): Ditto.
3947 (syms_from_objfile_1): Constify offsets parameter.
3948 (syms_from_objfile): Ditto.
3949 (symbol_file_add_with_addrs_or_offsets): Ditto.
3950 (symfile_map_offsets_to_segments): Constify data parameter.
3951 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3952 delta parameters of member relocate.
3953 (struct sym_probe_fns): Constify new_offsets,
3954 delta parameters of member sym_relocate_probe.
3955 (struct sym_fns): Constify section_addr_info parameter of member
3956 sym_offsets.
3957 (relative_addr_info_to_section_offsets): Update declaration.
3958 (default_symfile_offsets): Ditto.
3959 (syms_from_objfile): Ditto.
3960 (symfile_map_offsets_to_segments): Ditto.
3961
a7bfba49
DE
3962 * symfile.c (syms_from_objfile_1): Use correct section count when
3963 objfile->sf == NULL.
3964
5f8e0b8f
MF
39652013-05-06 Mike Frysinger <[email protected]>
3966
3967 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3968
ea52d893
DE
39692013-05-06 Doug Evans <[email protected]>
3970
3971 * psympriv.h (struct partial_symtab): Augment comment for member
3972 section_offsets.
3973
4d1eb6b4
JB
39742013-05-06 Joel Brobecker <[email protected]>
3975
3976 Reimplement shared library support on ppc-aix...
3977 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3978 * features/library-list-aix.dtd: New file.
3979 * solib-aix.h, solib-aix.c: New file.
3980 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3981 (rs6000_find_toc_address_hook): Delete.
3982 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3983 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3984 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
3985 "xml-utils.h".
3986 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3987 (vmap_symtab, fixup_breakpoints): Delete.
3988 (rs6000_xfer_shared_libraries): New function.
3989 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3990 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3991 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3992 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3993 (rs6000_xfer_shared_library): New function.
3994 (find_toc_address): Delete.
3995 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3996 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3997 * xcoffread.c (record_minimal_symbol): Reloate symbol address
3998 before creating minimal symbol. Adjust function description
3999 accordingly.
4000 (scan_xcoff_symtab): Replace call to
4001 prim_record_minimal_symbol_and_info by call to
4002 record_minimal_symbol.
4003 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4004 around default_symfile_offsets.
4005 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4006 powerpc-aix targets.
4007 * config/rs6000/nm-rs6000.h: Delete.
4008 * config/powerpc/aix.mh (NAT_FILE): Delete.
4009 (NATDEPFILES): Remove xcoffsolib.o.
4010 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4011 (ALL_TARGET_OBS): Add solib-aix.o.
4012 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4013 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4014 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4015 * xcoffsolib.h, xcoffsolib.c: Delete.
4016
4017 * solib.c (reload_shared_libraries): Remove reference to
4018 SOLIB_CREATE_INFERIOR_HOOK.
4019 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4020 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4021 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4022 comment.
4023 * corelow.c (deprecated_core_resize_section_table): Delete.
4024 * exec.c: Remove include of xcoffsolib.h".
4025 (map_vmap, vmap): Delete.
4026 (exec_close_1): Remove references to vmap.
4027 (exec_file_attach): Remove vmap handling code, and reference
4028 to DEPRECATED_IBM6000_TARGET.
4029 (bfdsec_to_vmap): Delete.
4030 (exec_files_info): Remove block of code handling VMAP.
4031 * infcmd.c (post_create_inferior): Remove reference to
4032 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4033 * infrun.c (follow_exec): Remove reference to
4034 SOLIB_CREATE_INFERIOR_HOOK.
4035 * stack.c (print_frame): Remove reference to PC_SOLIB.
4036 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4037 (dsbt_relocate_main_executable): Likewise.
4038 * solib-frv.c (frv_current_sos): Likewise.
4039
0c4f667c
JB
40402013-05-06 Joel Brobecker <[email protected]>
4041
4042 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4043 to target_write_memory and target_read_memory.
4044
726ce67c
JB
40452013-05-06 Joel Brobecker <[email protected]>
4046
4047 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4048 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4049
c8c9911f
JB
40502013-05-06 Joel Brobecker <[email protected]>
4051
4052 * darwin-nat.c: Replace all "%x" instances in format strings
4053 into "0x%x" throughout.
4054
fda184b6
JB
40552013-05-06 Joel Brobecker <[email protected]>
4056
4057 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4058 gdb_assert by call to MACH_CHECK_ERROR.
4059 (darwin_attach_pid): Raise an error rather than a failed
4060 assertion when various system calls failed. Report a warning
4061 instead of raising a failed assertion when PREV_NOT is not NULL
4062 after call to mach_port_request_notification.
4063 (darwin_ptrace_me): Raise an error rather than a failed
4064 assertion when read returns nonzero.
4065
d1d69afb
JB
40662013-05-06 Joel Brobecker <[email protected]>
4067
4068 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4069
dc90b24d
JK
40702013-05-05 Jan Kratochvil <[email protected]>
4071
4072 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4073
faab9922
JK
40742013-05-05 Jan Kratochvil <[email protected]>
4075
4076 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4077 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4078 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4079 a stale cleanup. Fix double free of NAME.
4080
e0ea48a0
EZ
40812013-05-04 Eli Zaretskii <[email protected]>
4082
4083 * windows-nat.c (windows_delete_thread): Accept an additional
4084 argument, the thread's exit code, and announce thread death when
4085 print_thread_events is non-zero and we are deleting a thread that
4086 is not the main thread.
4087 (get_windows_debug_event): Pass thread exit code to
4088 windows_delete_thread.
4089
83b2706a
KB
40902013-05-03 Kevin Buettner <[email protected]>
4091
4092 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4093 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4094 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4095 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4096 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4097 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4098 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4099 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4100 (gdbarch_tdep): New struct.
4101 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4102 E_NUM_REGS.
4103 (v850e3v5_register_name): New function.
4104 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4105 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4106 code handling the struct return conventions for the RH850 ABI.
4107 Update all callers.
4108 (v850_eight_byte_align_p): New function.
4109 (v850_push_call_dummy): Push structs by value, not by reference
4110 for the RH850 ABI. Add support for eight byte alignment.
4111 (v850_dbtrap_breakpoint_from_pc): New function.
4112 (v850_gdbarch_init): Add ABI detection code. Register
4113 v850e3v5_register_name for the v850e3v5 architecture. Set the
4114 number of registers for v850e3v5. Register
4115 v850_dbtrap_breakpoint_from_pc as appropriate.
4116 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4117
d445b2f6
DE
41182013-05-03 Doug Evans <[email protected]>
4119
4120 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4121 of bfd_count_sections.
4122 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4123 * symfile.c (default_symfile_offsets): Ditto.
4124 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4125 one entry, not bfd_count_sections entries.
4126
b3ce41ea
KB
41272013-05-03 Kevin Buettner <[email protected]>
4128
4129 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4130 `save' and `restore' register groups. Don't include SPL
4131 or SPH in these groups.
4132 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4133 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4134 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4135 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4136 dwarf2_append_unwinders().
4137
96f7d3f1
PW
41382013-05-03 Philippe Waroquiers <[email protected]>
4139
4140 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4141 ignore SIGINT and SIGTRAP in case these internal signals are
4142 caught explicitely.
4143
b9dd1947
JB
41442013-05-01 Joel Brobecker <[email protected]>
4145
4146 * darwin-nat.c (darwin_read_write_inferior): Change types
4147 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4148 of copy_count to "mach_msg_type_number_t".
4149 (darwin_read_dyld_info): Change type of parameter
4150 rdaddr to "gdb_byte *".
4151
4ca18a63
JB
41522013-05-01 Joel Brobecker <[email protected]>
4153
4154 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4155 of &info->load_map from "char *" to "gdb_byte *".
4156
2b692d32
JB
41572013-05-01 Joel Brobecker <[email protected]>
4158
4159 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4160 from "char *" to "gdb_byte *".
4161 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4162
a98c29a0
DE
41632013-04-30 Doug Evans <[email protected]>
4164
6a506a2d
DE
4165 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4166 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4167 DWO stub. If DWO isn't found, just use stub.
4168 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4169
a98c29a0
DE
4170 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4171 calling init_cutu_and_read_dies.
4172
f92b06da
WT
41732013-03-27 Walfred Tedeschi <[email protected]>
4174
4175 * target-descriptions.c (maint_print_c_tdesc_cmd):
4176 Add case to parse structures as register types and
4177 bitfields.
4178
95eebdcc
WT
41792013-04-30 Walfred Tedeschi <[email protected]>
4180
4181 * MAINTAINERS (Write After Approval): Add myself to the list.
4182
019c1128
JB
41832013-04-30 Joel Brobecker <[email protected]>
4184
4185 * sol-thread.c (rw_common): Change type of parameter "buf"
4186 to "gdb_byte *".
4187 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4188 rw_common to "gdb_byte *" instead of "char *".
4189
5812197c
JB
41902013-04-30 Joel Brobecker <[email protected]>
4191
4192 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4193 of local variable msym to const struct bound_minimal_symbol.
4194 Adjust use accordingly.
4195 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4196
ecccb813
TS
41972013-04-30 Samuel Thibault <[email protected]>
4198
4199 * i386gnu-nat.c (CREG_OFFSET): New macro.
4200 (creg_offset): New array.
4201 (CREG_ADDR): Use creg_offset instead of reg_offset.
4202
f1d02dd4 42032013-04-30 Joel Brobecker <[email protected]>
54746424
JB
4204
4205 * mep-tdep.c (mep_write_pc): Delete.
4206 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4207 Add call to set_gdbarch_pc_regnum.
4208
f1d02dd4 42092013-04-30 Joel Brobecker <[email protected]>
01da98f9
JB
4210
4211 * common/filestuff.c: Replace #include <dirent.h> by
4212 #include "gdb_dirent.h".
4213
f1d02dd4 42142013-04-30 Joel Brobecker <[email protected]>
366c6766
JB
4215
4216 * common/filestuff.c: Replace #include <sys/stat.h> by
4217 #include "gdb_stat.h".
4218
b385a60d
PM
42192013-04-29 Pierre Muller <[email protected]>
4220
4221 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4222 editCase function rule.
4223 (get_DW_AT_signature_type): Likewise.
4224
d27b54ad
JB
42252013-04-29 Joel Brobecker <[email protected]>
4226
4227 * m32r-tdep.c (m32r_write_pc): Delete.
4228 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4229 Add call to set_gdbarch_pc_regnum.
4230
47d21dc5
PM
42312013-04-29 Pierre Muller <[email protected]>
4232
4233 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4234
9056882e
JB
42352013-04-29 Joel Brobecker <[email protected]>
4236
4237 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4238
7ee4732a
YQ
42392013-04-28 Yao Qi <[email protected]>
4240
4241 * solib-dsbt.c (fetch_loadmap): Re-indent.
4242 (displacement_from_map, enable_break2): Likewise.
4243 (dsbt_relocate_section_addresses): Likewise.
4244
2260af53 42452013-04-26 Joel Brobecker <[email protected]>
4246
4247 GDB 7.6 released.
4248
ff546935
TT
42492013-04-25 Andreas Kaufmann <[email protected]>
4250
4251 PR corefiles/14983:
4252 * dwarf2read.c (process_full_comp_unit): Always create a static
4253 block.
4254
40fb6c5e
HZ
42552013-04-25 Hui Zhu <[email protected]>
4256
4257 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4258 to loc->cmd_bytecode.
4259
74e04d1c
DE
42602013-04-24 Doug Evans <[email protected]>
4261
4262 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4263
3cf62c1d
KS
42642013-04-22 Keith Seitz <[email protected]>
4265
4266 * tracepoint.c (trace_save): Call the writer's start method.
4267
bf9e4d0c
MB
42682013-04-24 Muhammad Bilal <[email protected]>
4269
4270 PR gdb/10462
4271 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4272 before argument.
4273
5d71132c
TT
42742013-04-23 Tom Tromey <[email protected]>
4275
4276 * common/filestuff.c: Check USE_WIN32API before including
4277 sys/socket.h.
4278 (HAVE_F_GETFD): New define.
4279 (mark_cloexec): Check HAVE_F_GETFD.
4280 (gdb_open_cloexec): Change 'mode' to unsigned long.
4281 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4282 (gdb_pipe_cloexec): Check HAVE_PIPE.
4283 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4284 long.
4285
a11cfd87
HZ
42862013-04-23 Hui Zhu <[email protected]>
4287
4288 PR gdb/15293
a11cfd87
HZ
4289 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4290
2d9442cc
HZ
42912013-04-23 Hui Zhu <[email protected]>
4292
4293 PR gdb/15165
2d9442cc
HZ
4294 * breakpoint.c (dprintf_print_recreate): New.
4295 (save_breakpoints): Let it not save dprintf commands.
4296 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4297
614c279d
TT
42982013-04-22 Tom Tromey <[email protected]>
4299
4300 PR gdb/7912:
4301 * Makefile.in (SFILES): Add filestuff.c
4302 (COMMON_OBS): Add filestuff.o.
4303 (filestuff.o): New target.
4304 * auto-load.c (auto_load_objfile_script_1): Use
4305 gdb_fopen_cloexec.
4306 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4307 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4308 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4309 * common/agent.c (gdb_connect_sync_socket): Use
4310 gdb_socket_cloexec.
4311 * common/filestuff.c: New file.
4312 * common/filestuff.h: New file.
4313 * common/linux-osdata.c (linux_common_core_of_thread)
4314 (command_from_pid, commandline_from_pid, print_source_lines)
4315 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4316 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4317 gdb_fopen_cloexec.
4318 * common/linux-procfs.c (linux_proc_get_int)
4319 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4320 * config.in, configure: Rebuild.
4321 * configure.ac: Don't check for sys/socket.h. Check for
4322 fdwalk, pipe2.
4323 * corelow.c (core_open): Use gdb_open_cloexec.
4324 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4325 * fork-child.c (fork_inferior): Call close_most_fds.
4326 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4327 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4328 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4329 Use gdb_fopen_cloexec.
4330 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4331 gdb_open_cloexec.
4332 (linux_async_pipe): Use gdb_pipe_cloexec.
4333 * remote-fileio.c (remote_fileio_func_open): Use
4334 gdb_open_cloexec.
4335 * remote.c (remote_file_put, remote_file_get): Use
4336 gdb_fopen_cloexec.
4337 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4338 close_most_fds.
4339 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4340 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4341 * solib.c (solib_find): Use gdb_open_cloexec.
4342 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4343 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4344 (tfile_open): Use gdb_open_cloexec.
4345 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4346 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4347 * xml-support.c (xml_fetch_content_from_file): Use
4348 gdb_fopen_cloexec.
4349 * main.c (captured_main): Call notice_open_fds.
4350
5fda2332
EBM
43512013-04-22 Edjunior Machado <[email protected]>
4352
4353 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4354 'char *' to 'gdb_byte *'.
4355 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4356 'gdb_byte'.
4357
eb6c553b
YQ
43582013-04-22 Yao Qi <[email protected]>
4359
4360 * infrun.c: Fix typo in comment.
4361
9991b207
SDJ
43622013-04-22 Andrew Haley <[email protected]>
4363
4364 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4365 instead of "long".
4366
8b4833e3
YQ
43672013-04-20 Yao Qi <[email protected]>
4368
4369 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4370 'char *' to 'gdb_byte *'. Cast the return value of
4371 'bt_ctf_get_char_array' to 'gdb_byte *'.
4372
bd3f3b55
PA
43732013-04-19 Pedro Alves <[email protected]>
4374
4375 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4376 -Wpointer-sign.
4377 * configure: Regenerate.
4378
c49e7f76
PA
43792013-04-19 Pedro Alves <[email protected]>
4380
4381 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4382 'void *'.
4383
12ff8552
PA
43842013-04-19 Pedro Alves <[email protected]>
4385
4386 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4387 Change type of 'myaddr' parameter to gdb_byte pointer.
4388 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4389 to 'long long' pointer instead of to 'unsigned long long'.
4390 (monitor_write_memory_block, monitor_read_memory_single)
4391 (monitor_read_memory): Change type of 'myaddr' parameter to
4392 gdb_byte pointer.
4393
9c37696b
PA
43942013-04-19 Pedro Alves <[email protected]>
4395
4396 * record.c (validate_history_size): Make parameter 'setting'
4397 unsigned.
4398
a398505b
PA
43992013-04-19 Pedro Alves <[email protected]>
4400
4401 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4402 to 'gdb_byte *'.
4403
9f8afa72
PA
44042013-04-19 Pedro Alves <[email protected]>
4405
4406 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4407 local to int.
4408
c714b426
PA
44092013-04-19 Pedro Alves <[email protected]>
4410
4411 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4412 * ada-tasks.c (read_fat_string_value): Likewise.
4413
507a579c
PA
44142013-04-19 Pedro Alves <[email protected]>
4415
4416 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4417 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4418 'offset', and adjust.
4419
f9d83a0b
PA
44202013-04-19 Pedro Alves <[email protected]>
4421
4422 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4423 (read_index_from_section): Add cast to 'char *'.
4424
745eb4fd
PA
44252013-04-19 Pedro Alves <[email protected]>
4426
4427 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4428
db5be46f
PA
44292013-04-19 Pedro Alves <[email protected]>
4430
4431 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4432
0f928d68
PA
44332013-04-19 Pedro Alves <[email protected]>
4434
4435 * record-full.c (record_full_get_bookmark): Change local 'ret'
4436 type to char * and add cast to gdb_byte *.
4437 (record_full_goto_bookmark): Handle 'bookmark' argument as a
4438 string.
4439 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4440
89f6d837
PA
44412013-04-19 Pedro Alves <[email protected]>
4442
4443 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4444 * python/py-prettyprint.c (print_string_repr): Change type of
4445 'output' local to char *. Add cast to gdb_byte * in
4446 LA_PRINT_STRING call.
4447 (print_children): Change type of 'output' local to char *.
4448 * python/py-value.c (valpy_string): Add cast to const char * in
4449 PyUnicode_Decode call.
4450
ce6ec7d8
PA
44512013-04-19 Pedro Alves <[email protected]>
4452
4453 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4454 and change its type to 'const char *'. Adjust.
4455 (mips_send_packet): Add cast to 'char *', and remove cast to
4456 'unsigned char *'.
4457 (mips_receive_packet): Remove cast to 'unsigned char *'.
4458 (mips_load_srec): Use bfd_byte.
4459 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4460 (pmon_checkset): Make 'value' parameter unsigned.
4461
fda0389f
PA
44622013-04-19 Pedro Alves <[email protected]>
4463
4464 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4465
bc20a4af
PA
44662013-04-19 Pedro Alves <[email protected]>
4467
4468 * remote.c (remote_write_bytes_aux, compare_sections_command)
4469 (remote_read_qxfer)
4470 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4471 (remote_hostio_readlink, remote_bfd_iovec_pread)
4472 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4473 binary buffer, and char when buffer is used as string.
4474 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4475 (trace_save, tfile_open, traceframe_walk_blocks)
4476 (tfile_fetch_registers): Likewise.
4477
c628b528
PA
44782013-04-19 Pedro Alves <[email protected]>
4479
4480 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4481 buffer and size_t size. Adjust.
4482 * ser-base.h (ser_base_write): Adjust.
4483 * ser-go32.c (cnts): Change type to size_t.
4484 (dos_write): Change prototype -- take 'void *'
4485 buffer and size_t size. Adjust.
4486 (dos_info): Print elements of 'cnts' as unsigned long.
4487 * serial.c (serial_write): Likewise.
4488 * serial.h (serial_write): Adjust.
4489 (struct serial_ops) <write>: Change prototype -- take 'void *'
4490 buffer and size_t size. Adjust.
4491
51a5cd90
PA
44922013-04-19 Pedro Alves <[email protected]>
4493
4494 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4495 gdb_byte *.
4496 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4497
a9933661
PA
44982013-04-19 Pedro Alves <[email protected]>
4499
4500 * alpha-tdep.c (alpha_extract_return_value): Use
4501 regcache_cooked_read_unsigned to read 'v0'.
4502
19afdd07
PA
45032013-04-19 Pedro Alves <[email protected]>
4504
4505 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4506 parameters 'at', 'as' and 'offset' to uint32_t.
4507
96b32e50
PA
45082013-04-19 Pedro Alves <[email protected]>
4509
4510 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4511 'is64' to signed 'int'.
4512
eb1bd1fb
PA
45132013-04-19 Pedro Alves <[email protected]>
4514
4515 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4516 parameter to int *.
4517
463920bf
PA
45182013-04-19 Pedro Alves <[email protected]>
4519
4520 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4521 'insnbuf' buffer type to unsigned int[].
4522
70242eb1
PA
45232013-04-19 Pedro Alves <[email protected]>
4524
4525 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4526
9d1dd0e2
PA
45272013-04-19 Pedro Alves <[email protected]>
4528
4529 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4530 unsigned long *.
4531
44096aee
PA
45322013-04-19 Pedro Alves <[email protected]>
4533
4534 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4535 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4536 UINT_MAX.
4537 * mips-tdep.c (heuristic_fence_post): Change type to int.
4538 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4539
e4286e57
PA
45402013-04-19 Pedro Alves <[email protected]>
4541
4542 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4543 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4544 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4545
001f13d8
PA
45462013-04-19 Pedro Alves <[email protected]>
4547
4548 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4549 it to get a string view of the byte buffer.
4550 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4551 type to gdb_byte *. Adjust.
4552 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4553 Change local to char *.
4554 * solib-darwin.c (find_program_interpreter): Change return type to
4555 char *. Adjust.
4556 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4557 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4558 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4559 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4560 * solib-svr4.c (find_program_interpreter): Change return type to
4561 char *. Adjust.
4562 (enable_break): Change local 'interp_name' to char *.
4563 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4564 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4565 (spu_pseudo_register_write_spu): Use char for string buffer.
4566 Adjust.
4567 (info_spu_event_command, info_spu_signal_command): Add casts to
4568 'char *'.
4569
948f8e3d
PA
45702013-04-19 Pedro Alves <[email protected]>
4571
4572 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4573 gdb_byte[].
4574 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4575 * ada-lang.c (ada_value_assign): Use gdb_byte.
4576 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4577 (alphanbsd_sigtramp_offset): Use gdb_byte.
4578 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4579 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4580 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4581 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4582 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4583 * arm-tdep.c (arm_stub_unwind_sniffer)
4584 (arm_displaced_init_closure): Use gdb_byte.
4585 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4586 (arm_default_thumb_le_breakpoint)
4587 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4588 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4589 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4590 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4591 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4592 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4593 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4594 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4595 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4596 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4597 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4598 (cris_store_return_value, cris_extract_return_value): Use
4599 gdb_byte.
4600 (constraint): Change type of parameter to char * from signed
4601 char*. Use gdb_byte.
4602 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4603 of local buffer to gdb_byte *.
4604 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4605 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4606 (add_address_entry): Change type of local buffer to gdb_byte[].
4607 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4608 (frv_push_dummy_call): Use gdb_byte.
4609 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4610 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4611 (hppa_hpux_supply_save_state): Use gdb_byte.
4612 * hppa-tdep.c (hppa32_push_dummy_call)
4613 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4614 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4615 (slotN_contents, replace_slotN_contents): Change type of parameter
4616 to gdb_byte *.
4617 (fetch_instruction, ia64_pseudo_register_write)
4618 (ia64_register_to_value, ia64_value_to_register)
4619 (ia64_extract_return_value, ia64_store_return_value)
4620 (ia64_push_dummy_call): Use gdb_byte.
4621 * m32c-tdep.c (m32c_return_value): Remove cast.
4622 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4623 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4624 gdb_byte.
4625 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4626 * mn10300-tdep.c (mn10300_store_return_value)
4627 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4628 gdb_byte.
4629 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4630 (moxie_process_record): Remove casts.
4631 * ppc-ravenscar-thread.c (supply_register_at_address)
4632 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4633 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4634 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4635 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4636 * remote.c (compare_sections_command): Use gdb_byte.
4637 * score-tdep.c (score7_free_memblock): Change type of parameter to
4638 gdb_byte *.
4639 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4640 gdb_byte *. Use gdb_byte.
4641 (sh_push_dummy_call_fpu): Use gdb_byte.
4642 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4643 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4644 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4645 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4646 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4647 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4648 (sh64_store_return_value, sh64_register_convert_to_virtual):
4649 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4650 (sh64_pseudo_register_write): Use gdb_byte.
4651 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4652 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
4653 buffer.
4654 (irix_current_sos): Use gdb_byte.
4655 * solib-som.c (som_current_sos): Use gdb_byte.
4656 * sparc-ravenscar-thread.c (supply_register_at_address)
4657 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4658 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4659 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4660 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4661 'gdb_byte *'.
4662 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4663 'gdb_byte *'.
4664 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4665 * xstormy16-tdep.c (xstormy16_extract_return_value)
4666 (xstormy16_store_return_value): Change parameter type to
4667 'gdb_byte *'. Adjust.
4668 (xstormy16_push_dummy_call): Use gdb_byte.
4669 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4670 (call0_analyze_prologue, execute_code): Use gdb_byte.
4671
433730c9
PA
46722013-04-19 Vladimir Kargov <[email protected]>
4673 Pedro Alves <[email protected]>
4674
4675 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4676 value contents.
4677
ac9ec31b
DE
46782013-04-17 Doug Evans <[email protected]>
4679
4680 * dwarf2read.c (struct signatured_type): New member type.
4681 (struct attribute): Replace member signatured_type with signature.
4682 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4683 (read_call_site_scope): Call follow_die_ref instead of
4684 follow_die_ref_or_sig.
4685 (read_structure_type): Rewrite handling of signatured types.
4686 (read_enumeration_type): Ditto.
4687 (read_attribute_value): Update.
4688 (build_error_marker_type): New function.
4689 (lookup_die_type): Add assert. Rewrite handling of signatured types.
4690 Don't call error for bad types, just build an error marker type.
4691 (dump_die_shallow): Update.
4692 (follow_die_sig_1): Renamed from follow_die_sig.
4693 Don't call error for bad types, instead return NULL.
4694 (follow_die_sig): New function.
4695 (get_signatured_type, get_DW_AT_signature_type): New functions.
4696
e546e8bb
YZ
46972013-04-17 Yufeng Zhang <[email protected]>
4698
4699 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
4700 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4701 function.
e546e8bb 4702
ab116149
YQ
47032013-04-17 Yao Qi <[email protected]>
4704
4705 * top.c (print_gdb_configuration): Print configure-time
4706 parameter on using libbabeltrace or not.
4707
488a42b8
PA
47082013-04-16 Pedro Alves <[email protected]>
4709
4710 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4711
f5fb825b
PA
47122013-04-16 Pedro Alves <[email protected]>
4713
85d494ea 4714 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
4715 (git 568035b7874a099087b77f7bba3e36a1173787b0).
4716
e1154999
PA
47172013-04-16 Pedro Alves <[email protected]>
4718
4719 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
4720 * common/glibc_thread_db.h: ... this new file ...
4721 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
4722
e3b50a7f
PA
47232013-04-16 Will Newton <[email protected]>
4724 Pedro Alves <[email protected]>
4725
4726 PR build/11881
4727
4728 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
4729 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
4730 HAVE_THREAD_DB_H.
4731
1c2e4450
PA
47322013-04-16 Pedro Alves <[email protected]>
4733 Eli Zaretskii <[email protected]>
4734
4735 * NEWS: Mention "set foo unlimited".
4736
4031ecc5
DE
47372013-04-15 Doug Evans <[email protected]>
4738
19c3d4c9
DE
4739 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4740 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
4741 (create_dwo_cu_reader): Renamed from
4742 create_dwo_debug_info_hash_table_reader.
4743 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
4744 Remove support for multiple CUs in a DWO file.
4745 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
4746
4031ecc5
DE
4747 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
4748 instead of phex.
4749 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
4750 (create_dwo_in_dwp): Ditto.
4751
b340913d
TT
47522013-04-15 Tom Tromey <[email protected]>
4753
4754 * NEWS: Move recent entries into "since 7.6" section.
4755
cc16e6c9
TT
47562013-04-15 Tom Tromey <[email protected]>
4757
4758 PR c++/13588:
4759 * NEWS: Update.
4760 * break-catch-throw.c (struct exception_catchpoint)
4761 <exception_rx, pattern>: New fields.
4762 (fetch_probe_arguments, dtor_exception_catchpoint)
4763 (check_status_exception_catchpoint)
4764 (print_one_detail_exception_catchpoint): New functions.
4765 (handle_gnu_v3_exceptions): Add "except_rx" argument.
4766 Compile regular expression if needed.
4767 (extract_exception_regexp): New function.
4768 (catch_exception_command_1): Use extract_exception_regexp.
4769 (compute_exception): Use fetch_probe_arguments.
4770 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
4771 and check_status fields.
4772 * cp-abi.c (cplus_typename_from_type_info): New function.
4773 * cp-abi.h (cplus_typename_from_type_info): Declare.
4774 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
4775 * gdb_regex.h (compile_rx_or_error): Declare.
4776 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
4777 comment.
4778 (init_gnuv3_ops): Set get_type_from_type_info field.
4779 * probe.c (compile_rx_or_error): Move...
4780 * utils.c (compile_rx_or_error): ... here.
4781
72f1fe8a
TT
47822013-04-15 Tom Tromey <[email protected]>
4783
4784 PR c++/15176:
4785 * NEWS: Update.
4786 * break-catch-throw.c (compute_exception): New function.
4787 (exception_funcs): New global.
4788 (_initialize_break_catch_throw): Create $_exception.
4789 * cp-abi.c (cplus_type_from_type_info): New function.
4790 * cp-abi.h (cplus_type_from_type_info): Declare.
4791 (struct cp_abi_ops) <get_type_from_type_info>: New field.
4792 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
4793 (gnuv3_get_type_from_type_info): New functions.
4794 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
4795
fc4746a2
TT
47962013-04-15 Tom Tromey <[email protected]>
4797
4798 * break-catch-throw.c (struct exception_names): New.
4799 (exception_functions): Change type.
4800 (re_set_exception_catchpoint): Look for SDT probes.
4801
15a73f56
TT
48022013-04-15 Tom Tromey <[email protected]>
4803
4804 PR c++/10119:
4805 * break-catch-throw.c (exception_functions): New global.
4806 (gnu_v3_exception_catchpoint_ops): Move earlier.
4807 (struct exception_catchpoint): New.
4808 (classify_exception_breakpoint): Rewrite.
4809 (re_set_exception_catchpoint): New function.
4810 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
4811 Allocate a struct exception_catchpoint.
4812 (catch_exception_command_1): Update.
4813 (initialize_throw_catchpoint_ops): Set 're_set' method.
4814
916703c0
TT
48152013-04-15 Tom Tromey <[email protected]>
4816
4817 * Makefile.in (SFILES): Add break-catch-throw.c
4818 (COMMON_OBS): Add break-catch-throw.o.
4819 * break-catch-throw.c: New file.
4820 * breakpoint.c: Move exception-catching code to new file.
4821 (ep_parse_optional_if_clause): No longer static.
4822 * breakpoint.h (ep_parse_optional_if_clause): Declare.
4823
6e72ca20
TT
48242013-04-15 Tom Tromey <[email protected]>
4825
4826 PR c++/9065:
4827 * NEWS: Update.
4828 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
4829 * c-exp.y (TYPEID): New token.
4830 (exp): Add new TYPEID productions.
4831 (ident_tokens): Add "typeid".
4832 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4833 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4834 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4835 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4836 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4837 case.
4838 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4839 (build_std_type_info_type, gnuv3_get_typeid_type)
4840 (gnuv3_get_typeid): New functions.
4841 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
4842 new fields on ABI object.
4843 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4844 * std-operator.def (OP_TYPEID): New.
4845
715c6909
TT
48462013-04-15 Tom Tromey <[email protected]>
4847
4848 * elfread.c (elf_symtab_read): Install versioned symbol under
4849 unversioned name as well.
4850
8de20a37
TT
48512013-04-15 Tom Tromey <[email protected]>
4852
4853 PR c++/11990:
4854 * c-lang.c (cplus_language_defn): Use gdb_demangle.
4855 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4856 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4857 (gdb_demangle): New function.
4858 * cp-support.h (gdb_demangle): Declare.
4859 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4860 (dwarf2_name): Use gdb_demangle.
4861 * gdbtypes.c (check_stub_method): Use gdb_demangle.
4862 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4863 suffixes from name.
4864 (gnuv3_print_method_ptr): Use gdb_demangle.
4865 * jv-lang.c (java_demangle): Use gdb_demangle.
4866 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4867 * language.c (unk_lang_demangle): Use gdb_demangle.
4868 * symtab.c (symbol_find_demangled_name)
4869 (demangle_for_lookup): Use gdb_demangle.
4870
591f19e8
TT
48712013-04-15 Tom Tromey <[email protected]>
4872
4873 PR c++/12824:
4874 * NEWS: Update.
4875 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4876 New constant.
4877 (classify_exception_breakpoint): New function.
4878 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4879 (print_mention_exception_catchpoint)
4880 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4881 (catch_exception_command_1): Handle "rethrow" catchpoint.
4882 (catch_rethrow_command): New function.
4883 (_initialize_breakpoint): Add "catch rethrow" command.
4884
4d40cad2
PM
48852013-04-15 Pierre Muller <[email protected]>
4886
4887 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4888 set_gdbarch_write_pc as deprecated anymore.
4889
30bcb456
JB
48902013-04-15 Joel Brobecker <[email protected]>
4891
4892 * spu-tdep.c (spu_write_pc): Add empty line after local variable
4893 declarations.
4894
da9160e4
YQ
48952013-04-13 Yao Qi <[email protected]>
4896
4897 * ctf.c (_initialize_ctf): Include "completer.h".
4898 Call add_target_with_completer instead of add_target.
4899
39ed5604
JK
49002013-04-12 Jan Kratochvil <[email protected]>
4901
4902 Fix GDB regression related to PR binutils/14813.
4903 * jit.c (mem_bfd_iovec_close): Return 0 for success.
4904 * minidebug.c (lzma_close): Add return value comment.
4905 * remote.c (remote_bfd_iovec_close): Return 0 for success.
4906 * solib-spu.c (spu_bfd_iovec_close): Likewise.
4907 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4908
49092013-04-12 Jan Kratochvil <[email protected]>
49369217
JK
4910
4911 * config.in: Regenerate.
4912
d521ce57
TT
49132013-04-12 Tom Tromey <[email protected]>
4914
4915 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4916 const.
4917 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4918 (struct die_reader_specs) <buffer>: Likewise.
4919 (die_reader_func_ftype): Make 'info_ptr' const.
4920 (struct line_header) <include_dirs, statement_program_start,
4921 statement_program_end>: Now const.
4922 (struct file_entry) <name>: Likewise.
4923 (struct partial_die_info) <sibling>: Likewise.
4924 (struct dwarf_block) <data>: Likewise.
4925 (dwarf2_read_section): Remove cast.
4926 (dwarf2_get_section_info): Make 'bufp' const.
4927 (read_index_from_section): Constify.
4928 (dw2_get_file_names_reader): Make 'info_ptr' const.
4929 (dw2_get_primary_filename_reader): Likewise.
4930 (read_comp_unit_head): Make 'info_ptr' and return type const.
4931 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4932 Likewise.
4933 (read_abbrev_offset): Constify.
4934 (dwarf2_create_include_psymtab): Make 'name' const.
4935 (create_debug_types_hash_table): Update.
4936 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4937 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4938 Constify.
4939 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4940 (load_partial_comp_unit_reader): Make 'info_ptr' const.
4941 (read_comp_units_from_section): Constify.
4942 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4943 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4944 const.
4945 (dwarf2_compute_name, setup_type_unit_groups): Constify.
4946 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4947 (create_dwp_hash_table, dwarf2_ranges_read)
4948 (dwarf2_record_block_ranges): Constify.
4949 (read_die_and_children, read_die_and_siblings_1)
4950 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4951 const.
4952 (read_full_die_1, read_full_die): Make 'info_ptr' const.
4953 (abbrev_table_read_table): Constify.
4954 (load_partial_dies): Make 'info_ptr' const.
4955 (read_partial_die, read_attribute_value, read_attribute): Make
4956 'info_ptr' and return type const.
4957 (read_address, read_initial_length)
4958 (read_checked_initial_length_and_offset, read_offset)
4959 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4960 const.
4961 (read_direct_string): Make 'buf' and return type const.
4962 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4963 (read_indirect_string): Make return type const.
4964 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4965 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4966 'info_ptr' const.
4967 (read_str_index): Make return type const.
4968 (add_include_dir): Make 'include_dir' const.
4969 (add_file_name): Make 'name' const.
4970 (dwarf_decode_line_header): Constify.
4971 (psymtab_include_file_name): Make return type const.
4972 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4973 (dwarf2_start_subfile): Make 'filename' const.
4974 (dwarf2_const_value_attr): Make 'bytes' const.
4975 (read_signatured_type_reader): Make 'info_ptr' const.
4976 (decode_locdesc): Constify.
4977 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4978 const.
4979 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4980 'mac_end', and return type const.
4981 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4982 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4983 type const.
4984 (per_cu_header_read_in): Constify.
4985 * symfile.h (dwarf2_get_section_info): Update.
4986
d47a1bc1
TT
49872013-04-12 Tom Tromey <[email protected]>
4988
4989 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4990
6eaaf48b
EZ
49912013-04-12 Eli Zaretskii <[email protected]>
4992
fc4c25bf 4993 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
4994 * top.c (print_gdb_configuration): New function, displays the
4995 details about GDB configure-time parameters.
4996 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
4997 * cli/cli-cmds.c (show_configuration): New function.
4998 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
4999 * main.c (captured_main) <print_configuration>: New static var.
5000 <long_options>: Use it.
5001 If --configuration was given, call print_gdb_configuration.
5002
b292c783
JK
50032013-04-11 Jan Kratochvil <[email protected]>
5004 Pedro Alves <[email protected]>
5005
5006 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5007 (generated_files): Add gcore.
5008 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5009 HAVE_NATIVE_GCORE_HOST.
5010 (gcore): New.
5011 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5012 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5013 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5014 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5015 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5016 Add HAVE_NATIVE_GCORE_HOST.
5017 * configure: Regenerate.
5018 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5019 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5020 AC_CONFIG_FILES for gcore.
5021 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5022 gdb_have_gcore.
5023 * gdb_gcore.sh: Rename to ...
5024 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5025 and GCORE_TRANSFORM_NAME substitutions.
5026
c96b3c4f
JK
5027 Fix parsing tabs in ${gdb_target_obs}.
5028 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5029
d6cb50a2
JK
50302013-04-11 Jan Kratochvil <[email protected]>
5031
5032 * remote.c (unpush_and_perror): Add output message final dot.
5033
cf2cb5ec
YQ
50342013-04-11 Yao Qi <[email protected]>
5035
5036 * tracepoint.c (tfile_interp_line): Fit parameters line and
5037 utpp in one line.
5038
07293be4
JB
50392013-04-10 Joel Brobecker <[email protected]>
5040
5041 * solib.c (solib_map_sections): Remove code overwriting
5042 SO->SO_NAME with the bfd's filename.
5043
f81d1120
PA
50442013-04-10 Pedro Alves <[email protected]>
5045
5046 * cli/cli-decode.c (integer_unlimited_completer): New function.
5047 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5048 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5049 completer.
5050 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5051 (is_unlimited_literal): New function.
5052 (do_set_command): Handle literal "unlimited" arguments.
5053 * frame.c (_initialize_frame) <set backtrace limit>: Document
5054 "unlimited".
5055 * printcmd.c (_initialize_printcmd) <set print
5056 max-symbolic-offset>: Add help text.
5057 * record-full.c (_initialize_record_full) <set record full
5058 insn-number-max>: Likewise.
5059 * record.c (_initialize_record) <set record
5060 instruction-history-size, set record function-call-history-size>:
5061 Add help text.
5062 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5063 help text.
5064 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5065 Likewise.
5066 * source.c (_initialize_source) <set listsize>: Add help text.
5067 * utils.c (initialize_utils) <set height, set width>: Likewise.
5068 <set pagination>: Mention "set height unlimited".
5069 * valprint.c (_initialize_valprint) <set print elements, set print
5070 repeats>: Document "unlimited".
5071
2f9d54cf
PA
50722013-04-10 Pedro Alves <[email protected]>
5073
5074 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5075 instead of disconnect_tracing.
5076 * infcmd.c (detach_command, disconnect_command): Call
5077 query_if_trace_running. Adjust.
5078 * top.c: Include "tracepoint.h".
5079 (quit_target): Delete. Contents moved ...
5080 (quit_force): ... here. Wrap each stage of teardown in
5081 TRY_CATCH. Call disconnect_tracing before detaching.
5082
393fd4c3
YQ
50832013-04-10 Hui Zhu <[email protected]>
5084 Yao Qi <[email protected]>
5085
5086 * configure.ac: Check libbabeltrace is installed.
5087 * config.in: Regenerate.
5088 * configure: Regenerate.
5089 * Makefile.in (LIBBABELTRACE): New.
5090 (CLIBS): Add LIBBABELTRACE.
5091 * ctf.c: Include "exec.h".
5092 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5093 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5094 (ctf_save_metadata_header): Define new type aliases in
5095 metadata.
5096 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5097 in metadata. Start a new faked packet for trace status.
5098 (ctf_write_status): Write trace status to CTF.
5099 (ctf_write_uploaded_tsv): Write TSV to CTF.
5100 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5101 (ctf_write_definition_end): End the faked packet.
5102
5103 (ctx, ctf_iter, trace_dirname): New.
5104 (start_pos): New variable.
5105 (ctf_destroy, ctf_open_dir, ctf_open): New.
5106 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5107 macros.
5108 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5109 (ctf_fetch_registers, ctf_xfer_partial): New.
5110 (ctf_get_trace_state_variable_value): New.
5111 (ctf_get_tpnum_from_frame_event): New.
5112 (ctf_get_traceframe_address): New.
5113 (ctf_trace_find, ctf_has_stack): New.
5114 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5115 (ctf_get_trace_status, ctf_read_status): New.
5116 (_initialize_ctf): New.
5117 * tracepoint.c (get_tracepoint_number): New
5118 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 5119 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
5120 * tracepoint.h: ... here.
5121 (get_tracepoint_number): Declare it.
5122 (get_uploaded_tsv): Declare it.
5123
5124 * NEWS: Mention new configure option.
5125
5c2b4418
HZ
51262013-04-10 Pedro Alves <[email protected]>
5127 Hui Zhu <[email protected]>
5128
5129 * breakpoint.c (dprintf_re_set): New.
5130 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5131 to dprintf_re_set.
5132
a5c66735
JB
51332013-04-09 Joel Brobecker <[email protected]>
5134
5135 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5136 Remove solib-svr4.o from the list.
5137
9e77999c
JB
51382013-04-09 Joel Brobecker <[email protected]>
5139
5140 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5141 Use gdb_assert_not_reached instead of invalid boolean expression.
5142
1927e618
PA
51432013-04-09 Pedro Alves <[email protected]>
5144
5145 * remote.c (unpush_and_perror): New function.
5146 (readchar, remote_serial_write): Use it.
5147
10782d74
MM
51482013-04-09 Markus Metzger <[email protected]>
5149
5150 * NEWS: Mention new btrace RSP packets.
5151
4c8429ef
TT
51522013-04-08 Tom Tromey <[email protected]>
5153
5154 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5155 long.
5156
8625fc1b
TT
51572013-04-08 Tom Tromey <[email protected]>
5158
5159 * maint.c (print_bfd_section_info): Print the section index.
5160 * symmisc.c (dump_msymbols): Print the section index.
5161
e27d198c
TT
51622013-04-08 Tom Tromey <[email protected]>
5163
5164 PR symtab/8424:
5165 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5166 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5167 * breakpoint.c (resolve_sal_pc): Update.
5168 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5169 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5170 (minsym_lookup_iterator_cb): Use it.
5171 (default_read_var_value): Update.
5172 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5173 Update.
5174 * infcmd.c (jump_command): Update.
5175 * linespec.c (minsym_found): Update.
5176 * maint.c (maintenance_translate_address): Update.
5177 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5178 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5179 * parse.c (write_exp_msymbol): Update.
5180 * printcmd.c (address_info): Update.
5181 * psymtab.c (find_pc_sect_psymbol): Update.
5182 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5183 SYMBOL_OBJ_SECTION.
5184 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5185 Don't initialize SYMBOL_OBJ_SECTION.
5186 * spu-tdep.c (spu_catch_start): Update.
5187 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5188 * symmisc.c (dump_msymbols, print_symbol): Update.
5189 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5190 how fallback section is computed.
5191 (fixup_symbol_section): Update.
5192 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5193 Update.
5194 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5195 Initialize SYMBOL_SECTION.
5196 * symtab.h (struct general_symbol_info) <section>: Update comment.
5197 <obj_section>: Remove.
5198 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5199 (SYMBOL_OBJFILE): New macro.
5200
e6dc44a8
TT
52012013-04-08 Tom Tromey <[email protected]>
5202
5203 * coffread.c (record_minimal_symbol): Update.
5204 * dbxread.c (record_minimal_symbol): Update.
5205 * elfread.c (record_minimal_symbol): Update.
5206 * machoread.c (macho_symtab_add_minsym): Update.
5207 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5208 Update.
5209 * minsyms.c (prim_record_minimal_symbol): Update.
5210 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5211 argument.
5212 (prim_record_minimal_symbol_and_info): Likewise.
5213 * minsyms.h (prim_record_minimal_symbol_full)
5214 (prim_record_minimal_symbol_and_info): Update.
5215 * symtab.c (allocate_symbol, initialize_symbol)
5216 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5217 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5218 Update.
5219
36192a8d
TT
52202013-04-08 Tom Tromey <[email protected]>
5221
5222 PR symtab/8423:
5223 * solib-som.c (som_solib_section_offsets): Use BFD section
5224 indices. Set offsets for all sections.
5225 * somread.c (som_symtab_read): Compute BFD section for
5226 symbol. Use prim_record_minimal_symbol_and_info.
5227 (som_symfile_read): Fix comment.
5228 (struct find_section_offset_arg): New.
5229 (find_section_offset, set_section_index): New functions.
5230 (som_symfile_offsets): Use set_section_index to compute
5231 section indices.
5232
65cf3563
TT
52332013-04-08 Tom Tromey <[email protected]>
5234
5235 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5236 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5237 gdb_bfd_section_index.
5238 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5239 New functions.
5240 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5241 Declare.
5242 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5243 Update.
5244 * objfiles.c (add_to_objfile_sections_full): New function.
5245 (add_to_objfile_sections): Use it.
5246 (build_section_table): Rewrite.
5247 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5248 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5249 (struct objfile) <sections>: Update comment.
5250 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5251 is NULL.
5252 (ALL_OBJSECTIONS): Use it.
5253 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5254 * solib-frv.c (frv_relocate_main_executable): Update.
5255 * solib-target.c (solib_target_relocate_section_addresses):
5256 Use gdb_bfd_section_index.
5257 * symfile.c (build_section_addr_info_from_section_table):
5258 Use gdb_bfd_section_index.
5259 (build_section_addr_info_from_bfd, place_section): Likewise.
5260 * symtab.c (fixup_section): Update.
5261 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5262
7cbd4a93
TT
52632013-04-08 Tom Tromey <[email protected]>
5264
5265 * minsyms.h (struct bound_minimal_symbol): New.
5266 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5267 Remove objfile argument.
5268 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5269 Return bound_minimal_symbol.
5270 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5271 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5272 Return bound_minimal_symbol.
5273 (in_gnu_ifunc_stub): Update.
5274 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5275 Remove 'objfile_p' argument.
5276 (lookup_solib_trampoline_symbol_by_pc): Update.
5277 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5278 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5279 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5280 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5281 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5282 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5283 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5284 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5285 stack.c, symtab.c, tui/tui-disasm.c: Update.
5286
f85f34ed
TT
52872013-04-08 Tom Tromey <[email protected]>
5288
5289 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5290 Use symbol's obstack, not an objfile.
5291 * coffread.c (process_coff_symbol): Update.
5292 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5293 * jv-lang.c (add_class_symbol): Update.
5294 * mdebugread.c (new_symbol): Update.
5295 * minsyms.c (prim_record_minimal_symbol_full)
5296 (terminate_minimal_symbol_table): Update.
5297 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5298 * stabsread.c (define_symbol, read_enum_type): Update.
5299 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5300 Handle Ada specially.
5301 (symbol_set_language): Add 'obstack' argument.
5302 (symbol_set_names): Update.
5303 (symbol_natural_name, symbol_demangled_name): Always use
5304 ada_decode_symbol.
5305 * symtab.h (struct general_symbol_info)
5306 <language_specific::obstack>: New field.
5307 <ada_mangled>: New field.
5308 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5309 (symbol_set_language): Update.
5310
ccde22c0
TT
53112013-04-08 Tom Tromey <[email protected]>
5312
5313 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5314 Take an obstack, not an objfile.
5315 (symbol_set_names): Update.
5316 * symtab.h (symbol_set_demangled_name): Update.
5317
e623cf5d
TT
53182013-04-08 Tom Tromey <[email protected]>
5319
5320 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5321 allocate_symbol.
5322 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5323 (read_func_scope): Call allocate_template_symbol.
5324 (new_symbol_full): Call allocate_symbol.
5325 * jit.c (finalize_symtab): Call allocate_symbol.
5326 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5327 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5328 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5329 (common_block_end): Call allocate_symbol.
5330 * symtab.c (allocate_symbol, initialize_symbol)
5331 (allocate_template_symbol): New functions.
5332 * symtab.c (allocate_symbol, initialize_symbol)
5333 (allocate_template_symbol): Declare.
5334 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5335
f6de8ec2
PA
53362013-04-08 Pedro Alves <[email protected]>
5337 Keith Seitz <[email protected]>
5338
5339 * breakpoint.c (create_breakpoint): Rename
5340 "parse_condition_and_thread" parameter to "parse_arg". Update
5341 describing comment. If !PARSE_ARG, then error out if ARG is not
5342 the empty string after extracting the location.
5343 * breakpoint.h (create_breakpoint): Rename
5344 "parse_condition_and_thread" parameter to "parse_arg".
5345
f65ce5fb
AR
53462013-04-08 Aleksandar Ristovski <[email protected]
5347
5348 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5349
cc5925ad
YQ
53502013-04-07 Yao Qi <[email protected]>
5351
5352 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5353 and 'addr2' to CORE_ADDR.
5354 * target.c (update_current_target): Update.
5355 * target.h (struct target_ops) <to_trace_find>: Change parameter
5356 type to CORE_ADDR.
5357 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5358 'addr2' to CORE_ADDR.
5359 (tfile_trace_find): Likewise.
5360 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5361 Change local variable 'addr' to type CORE_ADDR.
5362 * tracepoint.h (tfind_1): Update declaration.
5363
d9ac0664
EZ
53642013-04-06 Eli Zaretskii <[email protected]>
5365
5366 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5367 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5368 Include main.h.
5369
5370 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5371 here...
5372 * main.h (windows_get_absolute_argv0): ...to here.
5373
02142a6c
DE
53742013-04-05 Doug Evans <[email protected]>
5375
5376 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5377 (read_cutu_die_from_dwo): Add comments.
5378 (read_structure_type): Update comment.
5379 (read_enumeration_type, read_namespace_type): Update comment.
5380 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5381
43662968
JK
53822013-04-05 Jan Kratochvil <[email protected]>
5383
5384 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5385 * Makefile.in (gdb.z): Remove.
5386 (install-only): Remove $(man1dir) and gdb.1 installation.
5387 * gdb.1: Remove.
5388
9ead1b84
JK
53892013-04-05 Jan Kratochvil <[email protected]>
5390
5391 Fix compatibility with Linux kernel 3.8.3.
5392 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5393 to more inner block. Remove parsing of NUMBER from outer block.
5394 Parse NUMBER only if KEYWORD has been identified.
5395
d1794952
JK
53962013-04-05 Jan Kratochvil <[email protected]>
5397
5398 Fix variable name shadowing.
5399 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5400 filename to mapsfilename and update its uses.
5401
9025569e
EZ
54022013-04-05 Eli Zaretskii <[email protected]>
5403
5404 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5405 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5406 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5407 details of the problem.
5408
c9a6ce02
PA
54092013-04-04 Pedro Alves <[email protected]>
5410 Hui Zhu <[email protected]>
5411
5412 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5413 tracepoint, reset its STEP_COUNT and call validate_actionline.
5414
5ff888ce
DE
54152013-04-03 Doug Evans <[email protected]>
5416
bf6af496
DE
5417 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5418 read_die_and_siblings.
5419 (read_die_and_siblings): New function.
5420 (read_cutu_die_from_dwo): Dump die if requested.
5421 (read_die_and_children): Call read_full_die_1 and
5422 read_die_and_siblings_1.
5423 (read_full_die): Dump die if requested.
5424
5425 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5426
0ac5b59e
DE
5427 * dwarf2read.c (struct dwo_file): New member comp_dir.
5428 Rename member name to dwo_name. All uses updated.
5429 (hash_dwo_file): Include comp_dir in computation.
5430 (eq_dwo_file): Ditto.
5431 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
5432 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5433
5ff888ce
DE
5434 * psymtab.c (read_psymtabs_with_fullname): Don't call
5435 psymtab_to_fullname if the basenames are different.
5436
ec83d211
JK
54372013-04-03 Jan Kratochvil <[email protected]>
5438
5439 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5440 New entry about "fullname" presence.
5441
4f4352f7
PA
54422013-04-03 Pedro Alves <[email protected]>
5443
5444 * NEWS: Mention x86_64/Cygwin as new native configuration.
5445
3d1d5ea3
DE
54462013-04-02 Doug Evans <[email protected]>
5447
5448 * dwarf2read.c (read_structure_type): Fix typo in comment.
5449
be9a8770
PA
54502013-04-02 Pedro Alves <[email protected]>
5451
5452 * NEWS: Mention "set/show debug aarch64", "set/show debug
5453 coff-pe-read" and "set/show debug mach-o".
5454
a46c1e42
PA
54552013-04-02 Pedro Alves <[email protected]>
5456
5457 * NEWS: Mention "set/show remote trace-buffer-size-packet".
5458
3ad18b19
EZ
54592013-04-02 Eli Zaretskii <[email protected]>
5460
5461 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5462 gdb_string.h is now in common/.
5463
e9f1758d
PA
54642013-04-02 Pedro Alves <[email protected]>
5465
5466 * NEWS: Move "set debug notification" and "set trace-buffer-size"
5467 under "New options".
5468
049dc89b
JK
54692013-04-02 Jan Kratochvil <[email protected]>
5470
5471 Revert this patch:
5472 PR gdb/15275
5473 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5474
c33e31fd
PA
54752013-04-02 Pedro Alves <[email protected]>
5476
5477 PR gdb/15275
5478
5479 * remote.c (send_interrupt_sequence): Use remote_serial_write.
5480 (remote_serial_write): New function.
5481 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5482
ea5f3910
JW
54832013-04-01 Jiong Wang <[email protected]>
5484
5485 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 5486 "New targets" sections.
ea5f3910 5487
5c6fa7ab
DE
54882013-04-01 Doug Evans <[email protected]>
5489
c0f78cd4
DE
5490 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5491 (process_enumeration_scope): Simplify.
5492
0186c6a7
DE
5493 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5494 type_unit_group ...
5495 (struct signatured_type): ... to here.
5496 (sig_type_ptr): New typedef.
5497 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5498 out of union 't'. All uses updated.
5499 (dw2_get_file_names_reader): Assert not called for a type unit.
5500 (dw2_get_file_names): Assert not called for a type unit or type
5501 unit group.
5502 (build_type_psymtabs_reader): Assert called for a type unit.
5503 (build_type_psymtab_dependencies): Assert called for a type unit group.
5504
5c6fa7ab
DE
5505 * dwarf2read.c (free_dwo_file): Add comment.
5506 (dwarf2_per_objfile_free): Unref dwp bfd.
5507
b3c0ad67 55082013-04-01 Aleksandar Ristovski <[email protected]>
cebca8c1
AR
5509
5510 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5511 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5512 (read_pe_exported_syms): Remove unused 'exportix'.
5513 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5514 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5515 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5516
e2df1547
AR
55172013-04-01 Aleksandar Ristovski <[email protected]>
5518
5519 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5520 (print_it_watchpoint): Remove unused 'bl'.
5521 (say_where): Remove unused 'uiout'.
5522 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5523 (bkpt_breakpoint_hit): Remove unused 'b'.
5524 (internal_bkpt_print_it): Remove unused 'uiout'.
5525 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5526
d81e75c0
TD
55272013-03-31 Tiago Stürmer Daitx <[email protected]>
5528
5529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5530 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5531
5a8b3f62
DE
55322013-03-29 Doug Evans <[email protected]>
5533
ab5088bf
DE
5534 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5535 Delete arg is_dwp. All callers updated.
5536 (open_dwp_file): New function.
5537 (open_and_init_dwp_file): Call it.
5538 (get_dwp_file): New function.
5539 (lookup_dwo_cutu): Call it.
5540
a8ad1e57
DE
5541 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5542 unnecessary, cleanup.
5543
6296d8c1
DE
5544 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5545
b0c7bfa9
DE
5546 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5547 (lookup_dwo_unit): New function.
5548 (init_cutu_and_read_dies): Move DWO handling to new functions.
5549
c88ee1f0
DE
5550 * dwarf2read.c (struct signatured_type): Tweak comment.
5551 (struct dwo_unit): Tweak comment.
5552 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5553 (create_dwo_debug_info_hash_table): Tweak comment.
5554 (dwarf2_per_cu_offset_and_type): Tweak comment.
5555
5a8b3f62
DE
5556 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5557 missing .debug_types section.
5558
9852c492
YQ
55592013-03-29 Yao Qi <[email protected]>
5560
5561 * corelow.c: Include "completer.h".
5562 (_initialize_corelow): Call add_target_with_completer with
5563 argument 'filename_completer'.
5564 * tracepoint.c: Likewise.
5565 * exec.c (_initialize_exec): Likewise.
5566 * target.c (add_target): Rename to ...
5567 (add_target_with_completer): ... this. Call set_cmd_completer
5568 if parameter completer is not NULL.
5569 (add_target): New.
5570 * target.h: Include "command.h".
5571 (add_target_with_completer): Declare it.
5572
af312be7
JB
55732013-03-28 Joel Brobecker <[email protected]>
5574
5575 * coffread.c (is_import_fixup_symbol): New function.
5576 (record_minimal_symbol): Use is_import_fixup_symbol to
5577 detect import fixup symbols, and discard them.
5578
8a0459fd
DE
55792013-03-28 Doug Evans <[email protected]>
5580
0349ea22
DE
5581 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5582 types hash table until we know we need it.
5583
f652bce2
DE
5584 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5585 index numbers.
5586
e4a48d9d
DE
5587 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5588 All callers updated.
5589 (dw2_print_stats): Print #read CUs too.
5590 (dump_die_shallow): Print signatured types better.
5591
8a0459fd
DE
5592 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5593 info_or_types_section to section. All uses updated.
5594 (struct dwo_unit): Ditto.
5595
bd3eecc3
PA
55962013-03-28 Pedro Alves <[email protected]>
5597
5598 * NEWS (New options): New section.
5599 (New options): Mention set/show remote trace-status-packet.
5600 * remote.c (PACKET_qTStatus): New enumeration value.
5601 (remote_get_trace_status): Skip sending qTStatus if the packet is
5602 disabled. Use packet_ok.
5603 (_initialize_remote): Register a configuration command for
5604 qTStatus packet.
5605
41245087
DE
56062013-03-28 Doug Evans <[email protected]>
5607
7edbb660
DE
5608 * symfile.c (find_separate_debug_file): Add comment.
5609 (terminate_after_last_dir_separator): Tweak comment.
5610
0018ea6f
DE
5611 * dwarf2read.c (create_partial_symtab): Add forward decl.
5612 (create_partial_symtab): Move to be closer to other psymtab functions.
5613 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5614
ca69b9e6
DE
5615 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5616 (compute_symtab_includes): Remove unnecessary forward declaration.
5617 (die_needs_namespace): Add comment marking group of functions for
5618 dwarf2 name computation.
5619
a9375afe
DE
5620 * typeprint.c (_initialize_typeprint): Improve type help text.
5621
41245087
DE
5622 * python/python.c (finish_python_initialization): Provide suggestion
5623 for how to tell gdb to find its python files.
5624
7f7cc265
PA
56252013-03-28 Pedro Alves <[email protected]>
5626
5627 PR gdb/15294
5628
5629 * source.c (_initialize_source): Change back "set listsize" to an
5630 integer command.
5631
ec21308c
JK
56322013-03-27 Gareth McMullin <[email protected]>
5633
5634 PR gdb/15275
5635 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5636
840a9a1f
PA
56372013-03-27 Pedro Alves <[email protected]>
5638
5639 * top.c (history_size): Rename to ...
5640 (history_size_setshow_var): ... this. Add comment.
5641 (show_commands): Use readline's 'history_length' instead of
5642 computing the history length by calling history_get in a loop.
5643 (set_history_size_command): Error out for sizes over INT_MAX.
5644 Restore previous history size on invalid size.
5645 (init_history): If HISTSIZE is negative, leave the history size as
5646 zero. Add comments.
5647 (init_main): Adjust.
5648
826ecc4d
PA
56492013-03-27 Pedro Alves <[email protected]>
5650
5651 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5652 coff_pe_read" command to "set debug coff-pe-read".
5653
0ccfeeae
MM
56542013-03-27 Markus Metzger <[email protected]>
5655
5656 * record.c (command_size_to_target_size): Fix size comparison.
5657 Change parameter type from pointer to integer to integer.
5658 Update all users.
5659
40653b35
PM
56602013-03-27 Pierre Muller <[email protected]>
5661
5662 * windows-nat.c (handle_output_debug_string): Avoid typecast
5663 from integer of different size warning.
5664
c62fa0e2
JB
56652013-03-26 Joel Brobecker <[email protected]>
5666
5667 * windows-nat.c (handle_output_debug_string): Add empty line
5668 after local block variable definition.
5669
2c619be2
PA
56702013-03-26 Pedro Alves <[email protected]>
5671
5672 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5673 (net_open): Make 'polls' local unsigned.
5674
1b493192
PA
56752013-03-26 Pedro Alves <[email protected]>
5676
5677 * remote.c (_initialize_remote): Make "set remoteaddresssize"
5678 a zuinteger command instead of uinteger.
5679
7ee70bf5
PA
56802013-03-26 Pedro Alves <[email protected]>
5681
5682 * record-full.c (record_full_insn_num): Make it unsigned.
5683 (record_full_check_insn_num, record_full_message)
5684 (record_full_registers_change, record_full_xfer_partial): Remove
5685 record_full_insn_max_num check (it's always != 0).
5686 (record_full_info, record_full_restore): Use %u as format string.
5687 (): Use %u as format string.
5688 (set_record_full_insn_max_num): Remove record_full_insn_max_num
5689 check (it's always != 0).
5690
dfd1f9bb
PA
56912013-03-26 Pedro Alves <[email protected]>
5692
5693 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5694 and "set dcache size" commands zuinteger instead of uinteger.
5695
addb4faf
PA
56962013-03-26 Pedro Alves <[email protected]>
5697
5698 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5699 command zuinteger instead of uinteger.
5700
b75bf488
PA
57012013-03-26 Pedro Alves <[email protected]>
5702
5703 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5704 zuinteger instead of uinteger.
5705
42c634cb
PA
57062013-03-26 Pedro Alves <[email protected]>
5707
5708 * record.c (record_insn_history_size_setshow_var)
5709 (record_call_history_size_setshow_var): New globals.
5710 (command_size_to_target_size): New function.
5711 (cmd_record_insn_history, cmd_record_call_history): Use
5712 command_size_to_target_size instead of cast.
5713 (validate_history_size, set_record_insn_history_size)
5714 (set_record_call_history_size): New functions.
5715 (_initialize_record): Install set_record_insn_history_size and
5716 set_record_call_history_size as "set" hooks of "set record
5717 instruction-history-size" and "set record
5718 function-call-history-size".
5719
1fb2e2b5
PA
57202013-03-26 Pedro Alves <[email protected]>
5721
5722 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
5723 use with history_max_entries use. Remove FIXME note.
5724
99c819ee
MM
57252013-03-26 Markus Metzger <[email protected]>
5726
5727 * record-btrace.c (record_btrace_close): Call
5728 record_btrace_auto_disable.
5729
9f9e404c
JB
57302013-03-25 Joel Brobecker <[email protected]>
5731
5732 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
5733
ebcdfe33
DE
57342013-03-25 Doug Evans <[email protected]>
5735
5736 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
5737
24955f63
TT
57382013-03-25 Tom Tromey <[email protected]>
5739
5740 PR symtab/11462:
5741 * c-exp.y (exp): Add new productions for destructors after '.' and
5742 '->'.
5743 (write_destructor_name): New function.
5744
fce632b6
TT
57452013-03-25 Tom Tromey <[email protected]>
5746
5747 PR c++/9197:
5748 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
5749 value_struct_elt, not lookup_struct_elt_type.
5750 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5751 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
5752 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
5753
a4341769
YQ
57542013-03-25 Yao Qi <[email protected]>
5755
5756 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
5757 instead of '_mkdir'.
5758
b5981e5a
EZ
57592013-03-23 Eli Zaretskii <[email protected]>
5760
5761 * windows-nat.c (windows_get_absolute_argv0): New function.
5762 * windows-nat.h: Add its prototype.
5763
5764 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
5765 Use IS_DIR_SEPARATOR instead of looking for a character inside
5766 SLASH_STRING. Include filenames.h.
5767 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
5768 relocate_gdb_directory works when passed gdb_program_name.
5769 Include windows-nat.h.
5770
598d3636
JK
57712013-03-22 Jan Kratochvil <[email protected]>
5772
5773 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
5774 * remote.c (trace_error): Remove the special handling of '2'.
5775 (readchar) <SERIAL_EOF>
5776 (readchar) <SERIAL_ERROR>
5777 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
5778 (remote_get_trace_status): Call throw_exception if EX is
5779 TARGET_CLOSE_ERROR.
5780 * utils.c (perror_with_name): Rename to ...
5781 (throw_perror_with_name): ... here. New parameter errcode, describe it
5782 in the function comment.
5783 (perror_with_name): New function wrapper.
5784 * utils.h (enum errors): New stub declaration.
5785 (throw_perror_with_name): New declaration.
5786
82b821e9
PA
57872013-03-22 Pedro Alves <[email protected]>
5788 Yao Qi <[email protected]>
5789 Mark Kettenis <[email protected]>
5790
5791 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
5792 Don't let the user set the value to UINT_MAX directly.
5793 <var_integer>: Don't let the user set the value to INT_MAX
5794 directly.
5795
78a095c3
JK
57962013-03-22 Jan Kratochvil <[email protected]>
5797
5798 * remote.c (remote_unpush_target): New function.
5799 (remote_open_1): Remove two pop_target calls, update one comment, add
5800 comment to target_preopen call. Replace pop_target call by
5801 remote_unpush_target call.
5802 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
5803 pop_target calls by remote_unpush_target calls.
5804
3e74e146
PA
58052013-03-22 Pedro Alves <[email protected]>
5806
5807 * linux-nat.c (linux_child_follow_fork): Don't call
5808 linux_enable_event_reporting.
5809 (linux_handle_extended_wait): Don't call
5810 linux_enable_event_reporting.
5811
a2213dca
PA
58122013-03-22 Pedro Alves <[email protected]>
5813
5814 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
5815 use it to rewrite the trampoline buffers with type gdb_byte[], and
5816 undefine the macro. Remove char* cast.
5817
bd712aed
DE
58182013-03-21 Doug Evans <[email protected]>
5819
5820 New commands "mt set per-command {space,time,symtab} {on,off}".
5821 * NEWS: Add entry.
5822 * event-top.c: #include "maint.h".
5823 * main.c: #include "maint.h".
5824 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
5825 timeval-utils.h, maint.h, cli/cli-setshow.h.
5826 (per_command_time, per_command_space): New static globals.
5827 (per_command_symtab): New static global.
5828 (per_command_setlist, per_command_showlist): New static globals.
5829 (struct cmd_stats): Move here from utils.c.
5830 (set_per_command_time): Renamed from set_display_time in utils.c
5831 and moved here. All callers updated.
5832 (set_per_command_space): Renamed from set_display_space in utils.c
5833 and moved here. All callers updated.
5834 (count_symtabs_and_blocks): New function.
5835 (report_command_stats): Moved here from utils.c. Add support for
5836 printing symtab stats. Only print data if enabled before command
5837 executed.
5838 (make_command_stats_cleanup): Ditto.
5839 (sert_per_command_cmd, show_per_command_cmd): New functions.
5840 (_initialize_maint_cmds): Add new commands
5841 mt set per-command {space,time,symtab} {on,off}.
5842 * maint.h: New file.
5843 * top.c: #include "maint.h".
5844 * utils.c (reset_prompt_for_continue_wait_time): New function.
5845 (get_prompt_for_continue_wait_time): New function.
5846 * utils.h (reset_prompt_for_continue_wait_time): Declare
5847 (get_prompt_for_continue_wait_time): Declare.
5848 (make_command_stats_cleanup): Moved to maint.h.
5849 (set_display_time, set_display_space): Moved to maint.h and renamed
5850 to set_per_command_time, set_per_command_space.
5851 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5852 parse_binary_operation and made non-static. Don't call error,
5853 just return an error marker. All callers updated.
5854 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5855
d76488d8
TT
58562013-03-21 Tom Tromey <[email protected]>
5857
5858 * symfile.c (alloc_section_addr_info): Update header. Don't set
5859 'num_sections' field.
5860 (build_section_addr_info_from_section_table): Set 'num_sections'.
5861 (build_section_addr_info_from_bfd): Likewise.
5862 (build_section_addr_info_from_objfile): Remove dead loop
5863 condition.
5864 (free_section_addr_info): Unconditionally call xfree.
5865 (relative_addr_info_to_section_offsets, addrs_section_sort)
5866 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5867 condition.
5868 (syms_from_objfile_1): Remove dead 'if' condition. Check
5869 'num_sections'.
5870 (add_symbol_file_command): Set 'num_sections'.
5871 * symfile-mem.c (symbol_file_add_from_memory): Set
5872 'num_sections'.
5873 * somread.c (som_symfile_offsets): Remove dead loop condition.
5874 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5875 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5876
a72e5169 58772013-03-21 Tom Tromey <[email protected]>
92bc6a20
TT
5878
5879 * tracepoint.h (decode_agent_options): Add 'trace_string'
5880 argument.
5881 * tracepoint.c (decode_agent_options): Add 'trace_string'
5882 argument.
5883 (validate_actionline): Update.
5884 (collect_symbol): Add 'trace_string' argument.
5885 (struct add_local_symbols_data) <trace_string>: New field.
5886 (do_collect_symbol): Update.
5887 (add_local_symbols): Add 'trace_string' argument.
5888 (encode_actions_1): Update.
5889 (trace_dump_actions): Update.
5890 * dwarf2loc.c (access_memory): Update.
5891 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5892 * ax-general.c (new_agent_expr): Update.
5893 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5894 (gen_trace_for_return_address): Add argument.
5895 (trace_kludge, trace_string_kludge): Remove.
5896 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5897 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5898 (gen_trace_for_var): Add 'trace_string' argument.
5899 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5900 (gen_printf, agent_eval_command_one): Update.
5901
b2f83c08
TT
59022013-03-21 Tom Tromey <[email protected]>
5903
5904 PR exp/15109:
5905 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5906 Handle FILENAME token.
5907
9507860e
TT
59082013-03-21 Tom Tromey <[email protected]>
5909
5910 * c-exp.y (YYPRINT): Define.
5911 (c_print_token): New function.
5912
e403aa4b
TT
59132013-03-21 Tom Tromey <[email protected]>
5914
5915 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5916
af307d6a
YQ
59172013-03-21 Yao Qi <[email protected]>
5918
5919 * ctf.c: Include "gdb_stat.h".
5920 [USE_WIN32API]: New macro 'mkdir'.
5921 (ctf_start): Use permission bits macros if they are defined.
5922
fb81d016
KS
59232013-03-20 Keith Seitz <[email protected]>
5924
5925 * breakpoint.h (struct breakpoint): Add comment to
5926 extra_string indicating that this member is mallod'd.
5927 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5928
ef0026f0
PA
59292013-03-20 Pedro Alves <[email protected]>
5930
5931 PR gdb/15289
5932
5933 * cli/cli-setshow.c (do_set_command)
5934 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5935 the result of parsing the command argument. Throw error if the
5936 value is greater than UINT_MAX. Print the invalid value with
5937 plongest.
5938 <var_integer, var_zinteger>: Use LONGEST for variable holding the
5939 result of parsing the command argument. Throw error if the value
5940 is greater than INT_MAX, not greater or equal. Also throw error
5941 if the value is less than INT_MIN. Print the invalid value with
5942 plongest.
5943 <var_zuinteger_unlimited>: Throw error if the value is greater
5944 than INT_MAX, not greater or equal.
5945 (do_show_command) <var_integer, var_zinteger,
5946 var_zuinteger_unlimited>: Use %d for printing int, not %u.
5947
24d6c2a0
TT
59482013-03-20 Tom Tromey <[email protected]>
5949
5950 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5951 if possible.
5952 * dwarf2read.c (read_func_scope): Remove old FIXME.
5953 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5954 not LOC_COMPUTED.
5955 * findvar.c (symbol_read_needs_frame, default_read_var_value):
5956 Unconditionally call via computed ops, if possible.
5957 * printcmd.c (address_info): Unconditionally call via computed ops,
5958 if possible.
5959 * stack.c (read_frame_arg): Unconditionally call via computed ops,
5960 if possible.
5961 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5962 * tracepoint.c (scope_info): Unconditionally call via computed ops,
5963 if possible.
5964
f1e6e072
TT
59652013-03-20 Jan Kratochvil <[email protected]>
5966 Tom Tromey <[email protected]>
5967
5968 PR symtab/8421:
5969 * coffread.c (coff_register_index): New global.
5970 (process_coff_symbol, coff_read_enum_type): Set
5971 SYMBOL_ACLASS_INDEX.
5972 (_initialize_coffread): Initialize new global.
5973 * dwarf2loc.c (locexpr_find_frame_base_location)
5974 (dwarf2_block_frame_base_locexpr_funcs)
5975 (loclist_find_frame_base_location)
5976 (dwarf2_block_frame_base_loclist_funcs): New.
5977 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5978 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5979 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5980 (dwarf2_block_frame_base_loclist_funcs): New.
5981 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5982 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5983 globals.
5984 (read_func_scope): Update.
5985 (fixup_go_packaging, mark_common_block_symbol_computed)
5986 (var_decode_location, new_symbol_full, dwarf2_const_value):
5987 Set SYMBOL_ACLASS_INDEX.
5988 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
5989 (_initialize_dwarf2_read): Initialize new globals.
5990 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5991 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5992 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5993 globals.
5994 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5995 (_initialize_mdebugread): Initialize new globals.
5996 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5997 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5998 (stab_register_index, stab_regparm_index): New globals.
5999 (define_symbol, read_enum_type, common_block_end): Set
6000 SYMBOL_ACLASS_INDEX.
6001 (_initialize_stabsread): Initialize new globals.
6002 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6003 globals.
6004 (MAX_SYMBOL_IMPLS): New define.
6005 (register_symbol_computed_impl, register_symbol_block_impl)
6006 (register_symbol_register_impl)
6007 (initialize_ordinary_address_classes): New functions.
6008 (_initialize_symtab): Call initialize_ordinary_address_classes.
6009 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6010 (struct symbol_impl): New.
6011 (SYMBOL_ACLASS_BITS): New define.
6012 (struct symbol) <aclass, ops>: Remove fields.
6013 <aclass_index>: New field.
6014 (symbol_impls): Declare.
6015 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6016 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6017 (register_symbol_computed_impl, register_symbol_block_impl)
6018 (register_symbol_register_impl): Declare.
6019 (struct symbol_computed_ops): Add location_has_loclist.
6020 (struct symbol_block_ops): New.
6021 (SYMBOL_BLOCK_OPS): New.
6022 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6023
dbccfd4c
TT
60242013-03-20 Tom Tromey <[email protected]>
6025
6026 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6027 (print_partial_symbols, recursively_search_psymtabs): Use
6028 PSYMBOL_CLASS.
6029
e3f1ad4f
PM
60302013-03-20 Pierre Muller <[email protected]>
6031
6032 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6033 addtion, subtraction, multiplication and division binary operator.
6034
460014f5
JK
60352013-03-20 Jan Kratochvil <[email protected]>
6036
6037 Code cleanup.
6038 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6039 * bsd-kvm.c (bsd_kvm_close): Likewise.
6040 * bsd-uthread.c (bsd_uthread_close): Likewise.
6041 * corelow.c (core_close): Likewise.
6042 (core_close_cleanup): Remove parameter quitting from a caller.
6043 * event-top.c (async_disconnect): Likewise.
6044 * exec.c (exec_close_1): Remove parameter quitting.
6045 * go32-nat.c (go32_close): Likewise.
6046 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6047 parameter quitting from a caller.
6048 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6049 variable.
6050 (mips_linux_close): Remove parameter quitting. Remove parameter
6051 quitting from a caller.
6052 * monitor.c (monitor_close): Remove parameter quitting.
6053 * monitor.h (monitor_close): Likewise.
6054 * record-btrace.c (record_btrace_close): Likewise.
6055 * record-full.c (record_full_close): Likewise.
6056 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6057 it also from fprintf_unfiltered.
6058 * remote-mips.c (mips_close): Remove parameter quitting.
6059 (mips_detach): Remove parameter quitting from a caller.
6060 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6061 (gdbsim_close): Remove duplicate function comment. Remove parameter
6062 quitting and remove it also from printf_filtered.
6063 * remote.c (remote_close): Remove parameter quitting.
6064 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6065 * target.c (update_current_target): Remove parameter int from to_close
6066 de_fault.
6067 (push_target, unpush_target, pop_target): Remove parameter quitting from
6068 a caller.
6069 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6070 Remove parameter quitting from a caller.
6071 (target_preopen): Remove parameter quitting from a caller.
6072 (target_close): Remove parameter quitting. Remove parameter quitting
6073 from a caller two times. Remove parameter quitting also from
6074 fprintf_unfiltered.
6075 * target.h (struct target_ops): Remove parameter quitting and as int
6076 from fields to_xclose and to_close.
6077 (extern struct target_ops current_target):
6078 (target_close, pop_all_targets): Remove parameter quitting. Update the
6079 comment.
6080 (pop_all_targets_above): Remove parameter quitting.
6081 * top.c (quit_target): Remove parameter quitting from a caller.
6082 * tracepoint.c (tfile_close): Remove parameter quitting.
6083 * windows-nat.c (windows_close): Remove parameter quitting.
6084
35a7120b
CV
60852013-03-20 Corinna Vinschen <[email protected]>
6086
6087 * windows-nat.c (handle_output_debug_string): Replace call
6088 to string_to_core_addr with call to strtoull.
6089
8249a5a9
YQ
60902013-03-20 Yao Qi <[email protected]>
6091
6092 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6093 and write it to CTF metadata.
6094
2c15ef43
CV
60952013-03-19 Corinna Vinschen <[email protected]>
6096
6097 * windows-nat.c (handle_output_debug_string): Change type of n to
6098 SIZE_T to avoid crash on 64 bit systems.
6099
1cdd3232
EZ
61002013-03-17 Eli Zaretskii <[email protected]>
6101
6102 * python/python-internal.h (HAVE_SNPRINTF)
6103 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6104 about redefinition of snprintf by pyerrors.h.
6105
3cb2ab1a
SE
61062013-03-15 Steve Ellcey <[email protected]>
6107
6108 * remote-sim.c (sim_command_completer): Make char arguments const.
6109
9ce98649
TT
61102013-03-15 Tom Tromey <[email protected]>
6111
6112 PR c++/15116:
6113 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6114
dccee2de
TT
61152013-03-14 Tom Tromey <[email protected]>
6116
6117 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6118 New fields.
6119 (get_file_crc): Move from symfile.c.
6120 (gdb_bfd_crc): New function.
6121 * gdb_bfd.h (gdb_bfd_crc): Declare.
6122 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6123 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6124 (separate_debug_file_exists): Use gdb_bfd_crc.
6125
cc0ea93c
TT
61262013-03-14 Tom Tromey <[email protected]>
6127
6128 * symfile.c (get_debug_link_info): Remove.
6129 (find_separate_debug_file_by_debuglink): Use
6130 bfd_get_debug_link_info.
6131
08c23b0d
TT
61322013-03-14 Tom Tromey <[email protected]>
6133
6134 * symtab.c (error_in_psymtab_expansion): New function.
6135 (lookup_symbol_aux_quick)
6136 (basic_lookup_transparent_type_quick): Remove "last resort"
6137 code. Use error_in_psymtab_expansion.
6138
288e77a7
JK
61392013-03-14 Doug Evans <[email protected]>
6140 Jan Kratochvil <[email protected]>
6141
6142 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6143 any successful compare_filenames_for_search or FILENAME_CMP.
6144 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6145 * symtab.c (iterate_over_some_symtabs): Likewise.
6146
8f1b8b82
JK
61472013-03-14 Jan Kratochvil <[email protected]>
6148
6149 * source.c (print_source_lines_base): Make a local copy of
6150 symtab_to_fullname.
6151
23eb71e4
JK
61522013-03-14 Hui Zhu <[email protected]>
6153 Jan Kratochvil <[email protected]>
6154
6155 * source.c (print_source_lines_base): Suppress "file" for TUI.
6156
bb869963
SDJ
61572013-03-14 Keith Seitz <[email protected]>
6158 Alan Matsuoka <[email protected]>
6159
6160 PR c++/15203
6161 PR c++/15210
6162 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6163 TYPE_CODE_METHOD.
6164 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6165 symbols.
6166
d6682f9e
YQ
61672013-03-14 Yao Qi <[email protected]>
6168
6169 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6170 status to tfile if trace is stopped by command 'tstop'.
6171
a22fa6e4
YQ
61722013-03-14 Yao Qi <[email protected]>
6173
6174 * tracepoint.c (tfile_write_status): Write trace notes and user
6175 name into tfile if they are not NULL.
6176
d0353e76
YQ
61772013-03-14 Hui Zhu <[email protected]>
6178 Yao Qi <[email protected]>
6179
6180 * Makefile.in (REMOTE_OBS): Add ctf.o.
6181 (SFILES): Add ctf.c.
6182 (HFILES_NO_SRCDIR): Add ctf.h.
6183 * ctf.c, ctf.h: New files.
6184 * tracepoint.c: Include 'ctf.h'.
6185 (collect_pseudocommand): Remove static.
6186 (trace_save_command): Parse option "-ctf".
6187 Produce different trace file writers per option.
6188 Adjust output message.
6189 (trace_save_tfile, trace_save_ctf): New.
6190 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6191 * mi/mi-main.c: Include 'ctf.h'.
6192 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6193 trace_save_tfile or trace_save_ctf.
6194 * NEWS: Mention these changes.
6195
3f43bc09
YQ
61962013-03-14 Yao Qi <[email protected]>
6197
6198 * tracepoint.c (trace_file_writer_xfree): New.
6199 (struct tfile_writer_data): New.
6200 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6201 (tfile_write_header, tfile_write_regblock_type): New.
6202 (tfile_write_status, tfile_write_uploaded_tsv): New.
6203 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6204 (tfile_write_raw_data, (tfile_end): New.
6205 (tfile_write_ops): New global variable.
6206 (TRACE_WRITE_R_BLOCK): New macro.
6207 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6208 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6209 (TRACE_WRITE_V_BLOCK): New macro.
6210 (trace_save): Add extra one parameter WRITER. Make it static.
6211 Use WRITER to writer trace.
6212 (tfile_trace_file_writer_new): New.
6213 (trace_save_command): Caller update.
6214 (trace_save_tfile): Write trace data in TFILE format.
6215 * tracepoint.h (struct trace_frame_write_ops): New.
6216 (struct trace_file_write_ops): New.
6217 (struct trace_file_writer): New.
6218 (trace_save): Remove its declaration.
6219 (trace_save_tfile): Declare it.
6220 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6221 instead of trace_save.
6222
58665b40
PA
62232013-03-13 Pedro Alves <[email protected]>
6224
6225 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6226
10217050
PA
62272013-03-13 Pedro Alves <[email protected]>
6228
6229 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6230 commented out code.
6231 * demangle.c (current_demangling_style_string): Make it const.
6232 (set_demangling_command): Assert the demangling style is known.
6233 Remove all handling of unknown styles. Set
6234 'current_demangling_style_string' to an element of the
6235 demangling_style_names array.
6236 (set_demangling_style): Delete.
6237 (_initialize_demangler): Set current_demangling_style_string to the
6238 element of the demangling_style_names array that corresponds to
6239 the default demangling style. Remove FIXME note. Don't call
6240 set_demangling_style.
6241 * gdb-demangle.h (set_demangling_style): Remove declaration.
6242
6f937416
PA
62432013-03-13 Pedro Alves <[email protected]>
6244
6245 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6246 fields const.
6247 (ada_make_symbol_completion_list): Make "text0" parameter const.
6248 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6249 * breakpoint.c (condition_completer): Make "text" and "word"
6250 parameters const. Adjust.
6251 (check_tracepoint_command): Adjust to validate_actionline
6252 prototype change.
6253 (catch_syscall_completer): Make "text" and "word" parameters
6254 const.
6255 * cli/cli-cmds.c (show_user): Make "comname" local const.
6256 (valid_command_p): Make "command" parameter const.
6257 (alias_command): Make "alias_prefix" and "command_prefix" locals
6258 const.
6259 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6260 (add_alias_cmd): Make "name" and "oldname" parameters const.
6261 Adjust. No longer make copy of OLDNAME.
6262 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6263 (add_setshow_cmd_full, add_setshow_enum_cmd)
6264 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6265 (add_setshow_filename_cmd, add_setshow_string_cmd)
6266 (add_setshow_string_noescape_cmd)
6267 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6268 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6269 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6270 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6271 Make "name" parameter const.
6272 (help_cmd): Rename "command" parameter to "arg". New const local
6273 "command".
6274 (find_cmd): Make "command" parameter const.
6275 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6276 deprecated_cmd_warning prototype change.
6277 (undef_cmd_error): Make "cmdtype" parameter const.
6278 (lookup_cmd): Make "line" parameter const.
6279 (deprecated_cmd_warning): Change type of "text" parameter to
6280 pointer to const char, from pointer to pointer to char. Adjust.
6281 (lookup_cmd_composition): Make "text" parameter const.
6282 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6283 parameters const.
6284 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6285 const.
6286 * cli/cli-script.c (validate_comname): Make "tem" local const.
6287 (define_command): New const local "tem_c". Use it in calls to
6288 lookup_cmd.
6289 (document_command): Make "tem" and "comfull" locals const.
6290 (show_user_1): Make "prefix" and "name" parameters const.
6291 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6292 const.
6293 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6294 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6295 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6296 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6297 (complete_on_enum, add_setshow_enum_cmd)
6298 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6299 (add_setshow_filename_cmd, add_setshow_string_cmd)
6300 (add_setshow_string_noescape_cmd)
6301 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6302 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6303 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6304 Change prototypes, constifying strings.
6305 * completer.c (noop_completer, filename_completer): Make "text"
6306 and "prefix" parameters const.
6307 (location_completer, expression_completer)
6308 (complete_line_internal): Make "text" and "prefix" parameters
6309 const and adjust.
6310 (command_completer, signal_completer): Make "text" and "prefix"
6311 parameters const.
6312 * completer.h (noop_completer, filename_completer)
6313 (expression_completer, location_completer, command_completer)
6314 (signal_completer): Change prototypes.
6315 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6316 parameters const.
6317 * cp-abi.c (cp_abi_completer): Likewise.
6318 * expression.h (parse_expression_for_completion): Change
6319 prototype.
6320 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6321 parameters const.
6322 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6323 * infrun.c (handle_completer): Make "text" and "word" parameters
6324 const.
6325 * interps.c (interpreter_completer): Make "text" and "word"
6326 parameters const.
6327 * language.h (struct language_defn)
6328 <la_make_symbol_completion_list>: Make "text" and "word"
6329 parameters const.
6330 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6331 (parse_exp_in_context): Rename to ...
6332 (parse_exp_in_context_1): ... this.
6333 (parse_exp_in_context): Reimplement, with const hack from
6334 parse_exp_1.
6335 (parse_expression_for_completion): Make "string" parameter const.
6336 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6337 to pointer to const char. Adjust.
6338 (print_command_1): Make "exp" parameter const.
6339 (output_command): Rename to ...
6340 (output_command_const): ... this. Make "exp" parameter const.
6341 (output_command): Reimplement.
6342 (x_command): Adjust.
6343 (display_command): Rename "exp" parameter to "arg". New "exp"
6344 local, const version of "arg".
6345 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6346 "cmd_name" local const.
6347 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6348 call.
6349 (cmdpy_completer): Make "text" and "word" parameters const.
6350 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6351 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6352 const.
6353 * remote.c (_initialize_remote): Make "cmd_name" local const.
6354 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6355 parameters const. Adjust.
6356 (completion_list_add_fields): Make "sym_text", "text" and "word"
6357 parameters const.
6358 (struct add_name_data) <sym_text, text, word>: Make fields const.
6359 (default_make_symbol_completion_list_break_on): Make "text" and
6360 "word" parameters const. Adjust locals.
6361 (default_make_symbol_completion_list)
6362 (make_symbol_completion_list, make_symbol_completion_type)
6363 (make_symbol_completion_list_fn): Make "text" and "word"
6364 parameters const.
6365 (make_file_symbol_completion_list): Make "text", "word" and
6366 "srcfile" parameters const. Adjust locals.
6367 (add_filename_to_list): Make "text" and "word" parameters const.
6368 (struct add_partial_filename_data) <text, word>: Make fields
6369 const.
6370 (make_source_files_completion_list): Make "text" and "word"
6371 parameters const.
6372 * symtab.h (default_make_symbol_completion_list_break_on)
6373 (default_make_symbol_completion_list, make_symbol_completion_list)
6374 (make_symbol_completion_type enum type_code)
6375 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6376 (make_source_files_completion_list): Change prototype.
6377 * top.c (execute_command): Adjust to pass pointer to pointer to
6378 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6379 change.
6380 (set_verbose): Make "cmdname" local const.
6381 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6382 and adjust.
6383 (validate_actionline): Make "line" parameter a pointer to const
6384 char, and adjust.
6385 (encode_actions_1): Make "action_exp" local const, and adjust.
6386 (encode_actions): Adjust.
6387 (replace_comma): Delete.
6388 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6389 const, and adjust. Don't frob the action string while splitting
6390 it at commas. Instead, make a copy of each split substring in
6391 turn.
6392 (trace_dump_command): Adjust to validate_actionline prototype
6393 change.
6394 * tracepoint.h (decode_agent_options, decode_agent_options)
6395 (encode_actions, validate_actionline): Change prototypes.
6396 * valprint.h (output_command): Delete declaration.
6397 (output_command_const): Declare.
6398 * value.c (function_destroyer): Cast const away in xfree call.
6399
a0bcdaa7
PA
64002013-03-13 Pedro Alves <[email protected]>
6401
6402 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6403 rather than casting 'const char * const *' to 'const char **'.
6404 * ada-lex.l (processInt): Make "trailer" local const. Remove
6405 'const char **' cast.
6406 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6407 locals, and use those as strtol output pointer, instead than doing
6408 invalid casts to from 'const char **' to 'char **'.
6409 (_initialize_demangle): Remove cast.
6410 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6411 locals, and use those as strtol output pointer, instead than doing
6412 invalid casts to from 'const char **' to 'char **'.
6413 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6414 casts.
6415 * stap-probe.c (stap_parse_register_operand)
6416 (stap_parse_single_operand): Likewise.
6417
8ddb1965
YQ
64182013-03-13 Yao Qi <[email protected]>
6419
6420 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6421 the last matched 'V' blcok in trace frame.
6422
2d450646
JB
64232013-03-12 Joel Brobecker <[email protected]>
6424
6425 * NEWS: Create a new section for the next release branch.
6426 Rename the section of the current branch, now that it has
6427 been cut.
6428
b4b79973 64292013-03-12 Joel Brobecker <[email protected]>
6430
6431 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6432 * version.in: Bump version to 7.6.50.20130312-cvs.
6433
ee047554
KS
64342013-03-12 Keith Seitz <[email protected]>
6435
6436 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6437 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6438 Remove temporary copy of input string.
6439 (mi_execute_command_wrapper): Make "cmd" const.
6440 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6441 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6442 Use const strings.
6443 (mi_parse): Make "cmd" const.
6444 Use const strings.
6445 * mi/mi-parse.h (mi_parse): Make "cmd" const.
6446
bbc13ae3
KS
64472013-03-12 Keith Seitz <[email protected]>
6448
6449 * ada-lang.c (ada_read_renaming_var_value): Pass const
6450 pointer to expression string to parse_exp_1.
6451 (create_excep_cond_exprs): Likewise.
6452 * ax-gdb.c (agent_eval_command_one): Likewise.
6453 (maint_agent_printf_command): Likewise.
6454 Constify much of the string handling/parsing.
6455 * breakpoint.c (set_breakpoint_condition): Pass const
6456 pointer to expression string to parse_exp_1.
6457 (update_watchpoint): Likewise.
6458 (parse_cmd_to_aexpr): Constify string handling.
6459 Pass const pointer to parse_exp_1.
6460 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6461 (find_condition_and_thread): Likewise.
6462 Make TOK const.
6463 (watch_command_1): Make "arg" const.
6464 Constify string handling.
6465 Copy the expression string instead of changing the input
6466 string.
6467 (update_breakpoint_location): Pass const pointer to
6468 parse_exp_1.
6469 * eval.c (parse_and_eval_address): Make "exp" const.
6470 (parse_to_comma_and_eval): Make "expp" const.
6471 (parse_and_eval): Make "exp" const.
6472 * expression.h (parse_expression): Make argument const.
6473 (parse_exp_1): Make first argument const.
6474 * findcmd.c (parse_find_args): Treat "args" as const.
6475 * linespec.c (parse_linespec): Pass const pointer to
6476 linespec_expression_to_pc.
6477 (linespec_expression_to_pc): Make "exp_ptr" const.
6478 * parse.c (parse_exp_1): Make "stringptr" const.
6479 Make a copy of the expression to pass to parse_exp_in_context until
6480 this whole interface can be constified.
6481 (parse_expression): Make "string" const.
6482 * printcmd.c (ui_printf): Treat "arg" as const.
6483 Handle const strings.
6484 * tracepoint.c (validate_actionline): Pass const pointer to
6485 all calls to parse_exp_1.
6486 (encode_actions_1): Likewise.
6487 * value.h (parse_to_comma_and_eval): Make argument const.
6488 (parse_and_eval_address): Likewise.
6489 (parse_and_eval): Likewise.
6490 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6491 (varobj_set_value): Likewise.
6492 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6493 constify string handling.
6494 Pass const pointers to parse_and_eval_address and
6495 parse_to_comman_and_eval.
6496 * cli/cli-utils.c (skip_to_space): Rename to ...
6497 (skip_to_space_const): ... this. Handle const strings.
6498 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6499 skip_to_space_const.
6500 (skip_to_space_const): Declare.
6501 * common/format.c (parse_format_string): Make "arg" const.
6502 Handle const strings.
6503 * common/format.h (parse_format_string): Make "arg" const.
6504 * gdbserver/ax.c (ax_printf): Make "format" const.
6505 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6506 of the expression string.
6507
f3cec7e6
HZ
65082013-03-12 Hui Zhu <[email protected]>
6509
6510 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6511
9df7235c
HZ
65122013-03-12 Yao Qi <[email protected]>
6513 Hui Zhu <[email protected]>
6514
6515 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6516 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6517 DW_OP_deref_size.
6518
82d049ab
PH
65192013-03-12 Paul Hilfinger <[email protected]>
6520
5f8e0b8f
MF
6521 * ada-lex.l (rules): Only recognize 'thread' as a
6522 delimiter when followed by numerals, as for c-exp.y.
6523 Use new rewind_to_char function to rewind the input for
6524 expression-delimiting tokens.
6525 (rewind_to_char): New function.
82d049ab 6526
8c1fb155
JK
65272013-03-11 Pedro Alves <[email protected]>
6528 Jan Kratochvil <[email protected]>
6529
6530 * configure: Regenerate.
6531 * configure.ac (check dynamic export flag): Link python test with
6532 $PYTHON_LIBS.
6533
cc81e1c6
DE
65342013-03-11 Doug Evans <[email protected]>
6535 Keith Seitz <[email protected]>
6536
6537 * linespec.c (find_linespec_symbols): Call find_function_symbols
6538 first, and then call lookup_prefix_sym/find_method.
6539
39086a0e
PA
65402013-03-11 Pedro Alves <[email protected]>
6541
6542 * charset.c (convert_between_encodings): Don't cast between
6543 different pointer to pointer types. Instead, make the 'inp' local
6544 be of the type iconv expects.
6545 (wchar_iterate): Don't cast between different pointer to pointer
6546 types. Instead, use new pointer local of the type iconv expects.
6547 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6548 Add new local of type char pointer, and use it to get a
6549 char/string view of the byte buffer, instead of casting between
6550 pointer to pointer types.
6551
90585175
HAQ
65522013-03-11 Hafiz Abid Qadeer <[email protected]>
6553
6554 * remote.c (remote_set_trace_buffer_size): Move != operator
6555 to the start of next line to fix an ARI warning.
6556
59ea5688
MM
65572013-03-11 Markus Metzger <[email protected]>
6558
6559 * NEWS: Add record changes.
6560
946287b7
MM
65612013-03-11 Markus Metzger <[email protected]>
6562
6563 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6564 the instruction history disassembly.
6565 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6566 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6567
afedecd3
MM
65682013-03-11 Markus Metzger <[email protected]>
6569
6570 * Makefile.in (SFILES): Add record-btrace.c
6571 (COMMON_OBS): Add record-btrace.o
6572 * record-btrace.c: New.
6573 * objfiles.c: Include btrace.h.
6574 (free_objfile): call btrace_free_objfile.
6575
15984c13
MM
65762013-03-11 Markus Metzger <[email protected]>
6577
6578 * target.c (target_call_history, target_call_history_from,
6579 target_call_history_range): New.
6580 * target.h (target_ops) <to_call_history, to_call_history_from,
6581 to_call_history_range>: New fields.
6582 (target_call_history, target_call_history_from,
6583 target_call_history_range): New declaration.
6584 * record.c (get_call_history_modifiers, cmd_record_call_history,
6585 record_call_history_size): New.
6586 (_initialize_record): Add the "record function-call-history" command.
6587 Add "set/show record function-call-history-size" commands.
6588 * record.h (record_print_flag): New.
6589
67c86d06
MM
65902013-03-11 Markus Metzger <[email protected]>
6591
6592 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6593 to_insn_history_range>: New fields.
6594 (target_insn_history): New.
6595 (target_insn_history_from): New.
6596 (target_insn_history_range): New.
6597 * target.c (target_insn_history): New.
6598 (target_insn_history_from): New.
6599 (target_insn_history_range): New.
6600 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6601 (record_insn_history_size): New.
6602 (get_insn_number): New.
6603 (get_context_size): New.
6604 (no_chunk): New.
6605 (get_insn_history_modifiers): New.
6606 (cmd_record_insn_history): New.
6607 (_initialize_record): Add "set/show record instruction-history-size"
6608 command. Add "record instruction-history" command.
6609
7c1687a9
MM
66102013-03-11 Markus Metzger <[email protected]>
6611
6612 * record.h (record_disconnect): New.
6613 (record_detach): New.
6614 (record_mourn_inferior): New.
6615 (record_kill): New.
6616 * record-full.c (record_disconnect, record_detach,
6617 record_mourn_inferior, record_kill): Move to...
6618 * record.c: ...here.
6619 (DEBUG): New.
6620 (record_stop): New.
6621 (record_unpush): New.
6622 (cmd_record_stop): Call record_stop. Replace unpush_target
6623 call with record_unpush call.
6624 (record_disconnect, record_detach): Assert that the target
6625 is of record stratum. Call record_unpush, record_stop, and
6626 DEBUG.
6627 (record_mourn_inferior, record_kill): Assert that the target
6628 is of record stratum. Call record_unpush and DEBUG.
6629
25ea693b
MM
66302013-03-11 Markus Metzger <[email protected]>
6631
6632 * record-full.h, record-full.c (record_memory_query): Rename
6633 to ...
6634 (record_full_memory_query): ...this. Update all users.
6635 (record_arch_list_add_reg): Rename to ...
6636 (record_full_arch_list_add_reg): ...this. Update all users.
6637 (record_arch_list_add_mem): Rename to ...
6638 (record_full_arch_list_add_mem): ...this. Update all users.
6639 (record_arch_list_add_end): Rename to ...
6640 (record_full_arch_list_add_end): ...this. Update all users.
6641 (record_gdb_operation_disable_set): Rename to ...
6642 (record_full_gdb_operation_disable_set): ...this.
6643 Update all users.
6644
88d1aa9d
MM
66452013-03-11 Markus Metzger <[email protected]>
6646
6647 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6648 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6649 (RECORD_IS_REPLAY): Renamed to ...
6650 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6651 (RECORD_FILE_MAGIC): Renamed to ...
6652 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6653 (record_mem_entry): Renamed to ...
6654 (record_full_mem_entry): ... this. Updated all users.
6655 (record_reg_entry): Renamed to ...
6656 (record_full_reg_entry): ... this. Updated all users.
6657 (record_end_entry): Renamed to ...
6658 (record_full_end_entry): ... this. Updated all users.
6659 (record_type) <record_end, record_reg, record_mem>: Renamed
6660 to ...
6661 (record_full_type) <record_full_end, record_full_reg,
6662 record_full_mem>: ... this. Updated all users.
6663 (record_entry): Renamed to ...
6664 (record_full_entry): ... this. Updated all users.
6665 (record_core_buf_entry): Renamed to ...
6666 (record_full_core_buf_entry): ... this. Updated all users.
6667 (record_core_regbuf): Renamed to ...
6668 (record_full_core_regbuf): ... this. Updated all users.
6669 (record_core_start): Renamed to ...
6670 (record_full_core_start): ... this. Updated all users.
6671 (record_core_end): Renamed to ...
6672 (record_full_core_end): ... this. Updated all users.
6673 (record_core_buf_list): Renamed to ...
6674 (record_full_core_buf_list): ... this. Updated all users.
6675 (record_first): Renamed to ...
6676 (record_full_first): ... this. Updated all users.
6677 (record_list): Renamed to ...
6678 (record_full_list): ... this. Updated all users.
6679 (record_arch_list_head): Renamed to ...
6680 (record_full_arch_list_head): ... this. Updated all users.
6681 (record_arch_list_tail): Renamed to ...
6682 (record_full_arch_list_tail): ... this. Updated all users.
6683 (record_stop_at_limit): Renamed to ...
6684 (record_full_stop_at_limit): ... this. Updated all users.
6685 (record_insn_max_num): Renamed to ...
6686 (record_full_insn_max_num): ... this. Updated all users.
6687 (record_insn_num): Renamed to ...
6688 (record_full_insn_num): ... this. Updated all users.
6689 (record_insn_count): Renamed to ...
6690 (record_full_insn_count): ... this. Updated all users.
6691 (record_ops): Renamed to ...
6692 (record_full_ops): ... this. Updated all users.
6693 (record_core_ops): Renamed to ...
6694 (record_full_core_ops): ... this. Updated all users.
6695 (set_record_cmdlist): Renamed to ...
6696 (set_record_full_cmdlist): ... this. Updated all users.
6697 (show_record_cmdlist): Renamed to ...
6698 (show_record_full_cmdlist): ... this. Updated all users.
6699 (record_cmdlist): Renamed to ...
6700 (record_full_cmdlist): ... this. Updated all users.
6701 (record_beneath_to_resume_ops): Renamed to ...
6702 (record_full_beneath_to_resume_ops): ... this. Updated all users.
6703 (record_beneath_to_resume): Renamed to ...
6704 (record_full_beneath_to_resume): ... this. Updated all users.
6705 (record_beneath_to_wait_ops): Renamed to ...
6706 (record_full_beneath_to_wait_ops): ... this. Updated all users.
6707 (record_beneath_to_wait): Renamed to ...
6708 (record_full_beneath_to_wait): ... this. Updated all users.
6709 (record_beneath_to_store_registers_ops): Renamed to ...
6710 (record_full_beneath_to_store_registers_ops): ... this.
6711 Updated all users.
6712 (record_beneath_to_store_registers): Renamed to ...
6713 (record_full_beneath_to_store_registers): ... this.
6714 Updated all users.
6715 (record_beneath_to_xfer_partial_ops): Renamed to ...
6716 (record_full_beneath_to_xfer_partial_ops): ... this.
6717 Updated all users.
6718 (record_beneath_to_xfer_partial): Renamed to ...
6719 (record_full_beneath_to_xfer_partial): ... this.
6720 Updated all users.
6721 (record_beneath_to_insert_breakpoint): Renamed to ...
6722 (record_full_beneath_to_insert_breakpoint): ... this.
6723 Updated all users.
6724 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
6725 (record_full_beneath_to_stopped_by_watchpoint): ... this.
6726 Updated all users.
6727 (record_beneath_to_stopped_data_address): Renamed to ...
6728 (record_full_beneath_to_stopped_data_address): ... this.
6729 Updated all users.
6730 (record_beneath_to_async): Renamed to ...
6731 (record_full_beneath_to_async): ... this. Updated all users.
6732 (record_goto_insn): Renamed to ...
6733 (record_full_goto_insn): ... this. Updated all users.
6734 (record_save): Renamed to ...
6735 (record_full_save): ... this. Updated all users.
6736 (record_reg_alloc): Renamed to ...
6737 (record_full_reg_alloc): ... this. Updated all users.
6738 (record_reg_release): Renamed to ...
6739 (record_full_reg_release): ... this. Updated all users.
6740 (record_mem_alloc): Renamed to ...
6741 (record_full_mem_alloc): ... this. Updated all users.
6742 (record_mem_release): Renamed to ...
6743 (record_full_mem_release): ... this. Updated all users.
6744 (record_end_alloc): Renamed to ...
6745 (record_full_end_alloc): ... this. Updated all users.
6746 (record_end_release): Renamed to ...
6747 (record_full_end_release): ... this. Updated all users.
6748 (record_entry_release): Renamed to ...
6749 (record_full_entry_release): ... this. Updated all users.
6750 (record_list_release): Renamed to ...
6751 (record_full_list_release): ... this. Updated all users.
6752 (record_list_release_following): Renamed to ...
6753 (record_full_list_release_following): ... this.
6754 Updated all users.
6755 (record_list_release_first): Renamed to ...
6756 (record_full_list_release_first): ... this. Updated all users.
6757 (record_arch_list_add): Renamed to ...
6758 (record_full_arch_list_add): ... this. Updated all users.
6759 (record_get_loc): Renamed to ...
6760 (record_full_get_loc): ... this. Updated all users.
6761 (record_check_insn_num): Renamed to ...
6762 (record_full_check_insn_num): ... this. Updated all users.
6763 (record_arch_list_cleanups): Renamed to ...
6764 (record_full_arch_list_cleanups): ... this. Updated all users.
6765 (record_message): Renamed to ...
6766 (record_full_message): ... this. Updated all users.
6767 (record_message_wrapper): Renamed to ...
6768 (record_full_message_wrapper): ... this. Updated all users.
6769 (record_message_wrapper_safe): Renamed to ...
6770 (record_full_message_wrapper_safe): ... this. Updated all users.
6771 (record_gdb_operation_disable): Renamed to ...
6772 (record_full_gdb_operation_disable): ... this. Updated all users.
6773 (record_hw_watchpoint): Renamed to ...
6774 (record_full_hw_watchpoint): ... this. Updated all users.
6775 (record_exec_insn): Renamed to ...
6776 (record_full_exec_insn): ... this. Updated all users.
6777 (record_restore): Renamed to ...
6778 (record_full_restore): ... this. Updated all users.
6779 (record_async_inferior_event_token): Renamed to ...
6780 (record_full_async_inferior_event_token): ... this.
6781 Updated all users.
6782 (record_async_inferior_event_handler): Renamed to ...
6783 (record_full_async_inferior_event_handler): ... this.
6784 Updated all users.
6785 (record_core_open_1): Renamed to ...
6786 (record_full_core_open_1): ... this. Updated all users.
6787 (record_open_1): Renamed to ...
6788 (record_full_open_1): ... this. Updated all users.
6789 (record_open): Renamed to ...
6790 (record_full_open): ... this. Updated all users.
6791 (record_close): Renamed to ...
6792 (record_full_close): ... this. Updated all users.
6793 (record_resume_step): Renamed to ...
6794 (record_full_resume_step): ... this. Updated all users.
6795 (record_resumed): Renamed to ...
6796 (record_full_resumed): ... this. Updated all users.
6797 (record_execution_dir): Renamed to ...
6798 (record_full_execution_dir): ... this. Updated all users.
6799 (record_resume): Renamed to ...
6800 (record_full_resume): ... this. Updated all users.
6801 (record_get_sig): Renamed to ...
6802 (record_full_get_sig): ... this. Updated all users.
6803 (record_sig_handler): Renamed to ...
6804 (record_full_sig_handler): ... this. Updated all users.
6805 (record_wait_cleanups): Renamed to ...
6806 (record_full_wait_cleanups): ... this. Updated all users.
6807 (record_wait_1): Renamed to ...
6808 (record_full_wait_1): ... this. Updated all users.
6809 (record_wait): Renamed to ...
6810 (record_full_wait): ... this. Updated all users.
6811 (record_stopped_by_watchpoint): Renamed to ...
6812 (record_full_stopped_by_watchpoint): ... this. Updated all users.
6813 (record_disconnect): Renamed to ...
6814 (record_full_disconnect): ... this. Updated all users.
6815 (record_detach): Renamed to ...
6816 (record_full_detach): ... this. Updated all users.
6817 (record_mourn_inferior): Renamed to ...
6818 (record_full_mourn_inferior): ... this. Updated all users.
6819 (record_kill): Renamed to ...
6820 (record_full_kill): ... this. Updated all users.
6821 (record_stopped_data_address): Renamed to ...
6822 (record_full_stopped_data_address): ... this. Updated all users.
6823 (record_registers_change): Renamed to ...
6824 (record_full_registers_change): ... this. Updated all users.
6825 (record_store_registers): Renamed to ...
6826 (record_full_store_registers): ... this. Updated all users.
6827 (record_xfer_partial): Renamed to ...
6828 (record_full_xfer_partial): ... this. Updated all users.
6829 (record_breakpoint): Renamed to ...
6830 (record_full_breakpoint): ... this. Updated all users.
6831 (record_breakpoint_p): Renamed to ...
6832 (record_full_breakpoint_p): ... this. Updated all users.
6833 (record_breakpoints): Renamed to ...
6834 (record_full_breakpoints): ... this. Updated all users.
6835 (record_sync_record_breakpoints): Renamed to ...
6836 (record_full_sync_record_breakpoints): ... this.
6837 Updated all users.
6838 (record_init_record_breakpoints): Renamed to ...
6839 (record_full_init_record_breakpoints): ... this.
6840 Updated all users.
6841 (record_insert_breakpoint): Renamed to ...
6842 (record_full_insert_breakpoint): ... this. Updated all users.
6843 (record_remove_breakpoint): Renamed to ...
6844 (record_full_remove_breakpoint): ... this. Updated all users.
6845 (record_can_execute_reverse): Renamed to ...
6846 (record_full_can_execute_reverse): ... this. Updated all users.
6847 (record_get_bookmark): Renamed to ...
6848 (record_full_get_bookmark): ... this. Updated all users.
6849 (record_goto_bookmark): Renamed to ...
6850 (record_full_goto_bookmark): ... this. Updated all users.
6851 (record_async): Renamed to ...
6852 (record_full_async): ... this. Updated all users.
6853 (record_can_async_p): Renamed to ...
6854 (record_full_can_async_p): ... this. Updated all users.
6855 (record_is_async_p): Renamed to ...
6856 (record_full_is_async_p): ... this. Updated all users.
6857 (record_execution_direction): Renamed to ...
6858 (record_full_execution_direction): ... this. Updated all users.
6859 (record_info): Renamed to ...
6860 (record_full_info): ... this. Updated all users.
6861 (record_delete): Renamed to ...
6862 (record_full_delete): ... this. Updated all users.
6863 (record_is_replaying): Renamed to ...
6864 (record_full_is_replaying): ... this. Updated all users.
6865 (record_goto_entry): Renamed to ...
6866 (record_full_goto_entry): ... this. Updated all users.
6867 (record_goto_begin): Renamed to ...
6868 (record_full_goto_begin): ... this. Updated all users.
6869 (record_goto_end): Renamed to ...
6870 (record_full_goto_end): ... this. Updated all users.
6871 (record_goto): Renamed to ...
6872 (record_full_goto): ... this. Updated all users.
6873 (init_record_ops): Renamed to ...
6874 (init_record_full_ops): ... this. Updated all users.
6875 (record_core_resume): Renamed to ...
6876 (record_full_core_resume): ... this. Updated all users.
6877 (record_core_kill): Renamed to ...
6878 (record_full_core_kill): ... this. Updated all users.
6879 (record_core_fetch_registers): Renamed to ...
6880 (record_full_core_fetch_registers): ... this. Updated all users.
6881 (record_core_prepare_to_store): Renamed to ...
6882 (record_full_core_prepare_to_store): ... this. Updated all users.
6883 (record_core_store_registers): Renamed to ...
6884 (record_full_core_store_registers): ... this. Updated all users.
6885 (record_core_xfer_partial): Renamed to ...
6886 (record_full_core_xfer_partial): ... this. Updated all users.
6887 (record_core_insert_breakpoint): Renamed to ...
6888 (record_full_core_insert_breakpoint): ... this. Updated all users.
6889 (record_core_remove_breakpoint): Renamed to ...
6890 (record_full_core_remove_breakpoint): ... this. Updated all users.
6891 (record_core_has_execution): Renamed to ...
6892 (record_full_core_has_execution): ... this. Updated all users.
6893 (init_record_core_ops): Renamed to ...
6894 (init_record_full_core_ops): ... this. Updated all users.
6895 (cmd_record_restore): Renamed to ...
6896 (cmd_record_full_restore): ... this. Updated all users.
6897 (record_save_cleanups): Renamed to ...
6898 (record_full_save_cleanups): ... this. Updated all users.
6899 (cmd_record_start): Renamed to ...
6900 (cmd_record_full_start): ... this. Updated all users.
6901 (set_record_insn_max_num): Renamed to ...
6902 (set_record_full_insn_max_num): ... this. Updated all users.
6903 (set_record_command): Renamed to ...
6904 (set_record_full_command): ... this. Updated all users.
6905 (show_record_command): Renamed to ...
6906 (show_record_full_command): ... this. Updated all users.
6907 (_initialize_record): Renamed to ...
6908 (_initialize_record_full): ... this. Updated all users.
6909
d02ed0bb
MM
69102013-03-11 Markus Metzger <[email protected]>
6911
6912 * record.h: Split into this and ...
6913 * record-full.h: ... this.
6914 * record.c: Split into this and ...
6915 * record-full.c: ... this.
6916 * target.h (target_ops): Add new fields to_info_record,
6917 to_save_record, to_delete_record, to_record_is_replaying,
6918 to_goto_record_begin, to_goto_record_end, to_goto_record.
6919 (target_info_record): New.
6920 (target_save_record): New.
6921 (target_supports_delete_record): New.
6922 (target_delete_record): New.
6923 (target_record_is_replaying): New.
6924 (target_goto_record_begin): New.
6925 (target_goto_record_end): New.
6926 (target_goto_record): New.
6927 * target.c (target_info_record): New.
6928 (target_save_record): New.
6929 (target_supports_delete_record): New.
6930 (target_delete_record): New.
6931 (target_record_is_replaying): New.
6932 (target_goto_record_begin): New.
6933 (target_goto_record_end): New.
6934 (target_goto_record): New.
6935 * record.h: Declare struct cmd_list_element.
6936 (record_cmdlist): New declaration.
6937 (set_record_cmdlist): New declaration.
6938 (show_record_cmdlist): New declaration.
6939 (info_record_cmdlist): New declaration.
6940 (cmd_record_goto): New declaration.
6941 * record.c: Remove unnecessary includes.
6942 Include inferior.h.
6943 (cmd_record_goto): Remove declaration.
6944 (record_cmdlist): Now extern. Initialize.
6945 (set_record_cmdlist): Now extern. Initialize.
6946 (show_record_cmdlist): Now extern. Initialize.
6947 (info_record_cmdlist): Now extern. Initialize.
6948 (find_record_target): New.
6949 (require_record_target): New.
6950 (cmd_record_start): Update.
6951 (cmd_record_delete): Remove target-specific code.
6952 Call target_delete_record.
6953 (cmd_record_stop): Unpush any record target.
6954 (set_record_insn_max_num): Move to record-full.c
6955 (set_record_command): Add comment.
6956 (show_record_command): Add comment.
6957 (info_record_command): Update comment.
6958 Remove target-specific code.
6959 Call the record target's to_info_record.
6960 (cmd_record_start): New.
6961 (cmd_record_goto): Now extern.
6962 Remove target-specific code.
6963 Call target_goto_begin, target_goto_end, or target_goto.
6964 (_initialize_record): Move record target ops initialization to
6965 record-full.c.
6966 Change "record" command help text.
6967 Move "record restore", "record set", and "record show" commands to
6968 record-full.c.
6969 * Makefile.in (SFILES): Add record-full.c.
6970 (HFILES_NO_SRCDIR): Add record-full.h.
6971 (COMMON_OBS): Add record-full.o.
6972 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6973 * arm-tdep.c: Include record-full.h.
6974 * i386-linux-tdep.c: Include record-full.h instead of record.h.
6975 * i386-tdep.c: Include record-full.h.
6976 * infrun.c: Include record-full.h.
6977 * linux-record.c: Include record-full.h.
6978 * moxie-tdep.c: Include record-full.h.
6979 * record-full.c: Include record-full.h.
6980 Change module comment.
6981 (set_record_full_cmdlist): New.
6982 (show_record_full_cmdlist): New.
6983 (record_full_cmdlist): New.
6984 (record_goto_insn): New declaration.
6985 (record_save): New declaration.
6986 (record_check_insn_num): Change query string.
6987 (record_info): New.
6988 (record_delete): New.
6989 (record_is_replaying): New.
6990 (record_goto_entry): New.
6991 (record_goto_begin): New.
6992 (record_goto_end): New.
6993 (record_goto): New.
6994 (init_record_ops): Update.
6995 (init_record_core_ops): Update.
6996 (cmd_record_save): Rename to record_save. Remove target and arg checks.
6997 (cmd_record_start): New.
6998 (set_record_insn_max_num): Moved from record.c
6999 (set_record_full_command): New.
7000 (show_record_full_command): New.
7001 (_initialize_record_full): New.
7002
b48d48eb
MM
70032013-03-11 Markus Metzger <[email protected]>
7004
7005 * target.h (add_deprecated_target_alias): New.
7006 * target.c (add_deprecated_target_alias): New.
7007
a950d57c
MM
70082013-03-11 Markus Metzger <[email protected]>
7009
7010 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7011 and signal.h.
7012 (linux_supports_btrace): Add kernel and
7013 cpuid check.
7014 (kernel_supports_btrace): New function.
7015 (cpu_supports_btrace): New function.
7016 (intel_supports_btrace): New function.
7017
9accd112
MM
70182013-03-11 Markus Metzger <[email protected]>
7019
7020 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7021 * remote.c: Include btrace.h.
7022 (struct btrace_target_info): New struct.
7023 (remote_supports_btrace): New function.
7024 (send_Qbtrace): New function.
7025 (remote_enable_btrace): New function.
7026 (remote_disable_btrace): New function.
7027 (remote_teardown_btrace): New function.
7028 (remote_read_btrace): New function.
7029 (init_remote_ops): Add btrace ops.
7030 (enum <unnamed>): Add btrace packets.
7031 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7032 (_initialize_remote): Add packet configuration for branch tracing.
7033
c12a2917
MM
70342013-03-11 Markus Metzger <[email protected]>
7035
7036 * features/btrace.dtd: New file.
7037 * Makefile.in (XMLFILES): Add btrace.dtd.
7038 * btrace.h (parse_xml_btrace): New declaration.
7039 * btrace.c: Include xml-support.h.
7040 (parse_xml_btrace): New function.
7041 (parse_xml_btrace_block): New function.
7042 (block_attributes): New struct.
7043 (btrace_attributes): New struct.
7044 (btrace_children): New struct.
7045 (btrace_elements): New struct.
7046
3e3aea48
MM
70472013-03-11 Markus Metzger <[email protected]>
7048
7049 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7050 (amd64_linux_enable_btrace): New.
7051 (amd64_linux_disable_btrace): New.
7052 (amd64_linux_teardown_btrace): New.
7053 (_initialize_amd64_linux_nat): Initialize btrace ops.
7054 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7055 (i386_linux_enable_btrace): New.
7056 (i386_linux_disable_btrace): New.
7057 (i386_linux_teardown_btrace): New.
7058 (_initialize_i386_linux_nat): Initialize btrace ops.
7059 * config/i386/linux.mh: Add linux-btrace.o.
7060 * config/i386/linux64.mh: Add linux-btrace.o.
7061
7c97f91e
MM
70622013-03-11 Markus Metzger <[email protected]>
7063
7064 * common/linux_btrace.h: New file.
7065 * common/linux_btrace.c: New file.
7066 * Makefile.in (SFILES): Add btrace.c.
7067 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7068 (COMMON_OBS): Add btrace.o.
7069 (linux-btrace.o): New rule.
7070
1999790b 70712013-03-11 Markus Metzger <[email protected]>
02d27625
MM
7072
7073 * target.h: Include btrace.h.
7074 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7075 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7076 * target.c (target_supports_btrace): New function.
7077 (target_enable_btrace): New function.
7078 (target_disable_btrace): New function.
7079 (target_teardown_btrace): New function.
7080 (target_read_btrace): New function.
7081 * btrace.h: New file.
7082 * btrace.c: New file.
7083 * Makefile.in: Add btrace.c.
7084 * gdbthread.h: Include btrace.h.
7085 (struct thread_info): Add btrace field.
7086 * thread.c: Include btrace.h.
7087 (clear_thread_inferior_resources): Call target_teardown_btrace.
7088 * common/btrace-common.h: New file.
7089
61a31a67
JK
70902013-03-10 Jan Kratochvil <[email protected]>
7091
7092 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7093 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7094 kill_status to outer block.
7095
05c56a9d
JK
70962013-03-10 Jan Kratochvil <[email protected]>
7097
7098 Fix entry-values if the callee called a noreturn function.
7099 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7100 get_frame_address_in_block. Add new comment.
7101
9112db09
JK
71022013-03-10 Jan Kratochvil <[email protected]>
7103
7104 Fix entry-values in C++ across CUs.
7105 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7106 lookup_minimal_symbol. Add a comment.
7107 * dwarf2read.c
7108 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7109 DW_AT_linkage_name.
7110
9b67fcec
YQ
71112013-03-08 Yao Qi <[email protected]>
7112
7113 * tracepoint.c (_initialize_tracepoint): Indent the code.
7114
6221be90
PA
71152013-03-08 Pedro Alves <[email protected]>
7116
7117 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7118 (parse_find_args, find_command): Change type of pattern buffer
7119 locals to 'gdb_byte *'.
7120
be9a119c 71212013-03-08 Stan Shebs <[email protected]>
f6f899bf
HAQ
7122 Hafiz Abid Qadeer <[email protected]>
7123
7124 * NEWS: Mention set and show trace-buffer-size commands.
7125 Mention new packet.
7126 * target.h (struct target_ops): New method
7127 to_set_trace_buffer_size.
7128 (target_set_trace_buffer_size): New macro.
7129 * target.c (update_current_target): Set up new method.
7130 * tracepoint.c (trace_buffer_size): New global.
7131 (start_tracing): Send it to the target.
7132 (set_trace_buffer_size): New function.
7133 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7134 * remote.c (remote_set_trace_buffer_size): New function.
7135 (_initialize_remote): Use it.
7136 (QTBuffer:size) New remote command.
7137 (PACKET_QTBuffer_size): New enum.
7138 (remote_protocol_features): Add an entry for
7139 PACKET_QTBuffer_size.
7140
7da3ab79
TT
71412013-03-08 Tom Tromey <[email protected]>
7142
7143 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7144 variable.
7145
0c1f71e7
PA
71462013-03-07 Pedro Alves <[email protected]>
7147
7148 * target.c (target_read_stralloc, target_fileio_read_alloc):
7149 *Cast pointer to 'gdb_byte *' in target call.
7150
c8af03a2
PA
71512013-03-07 Pedro Alves <[email protected]>
7152
7153 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7154 call.
7155
529480d0
KS
71562013-03-07 Keith Seitz <[email protected]>
7157
7158 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7159 (trace_pass_command): Likewise.
7160 * cli/cli-cmds.c: Include cli/cli-utils.h.
7161 (source_command): Use skip-spaces.
7162 (disassemble_command): Likewise.
7163 * findcmd.c: Include cli/cli-utils.h.
7164 (parse_find_args): Use skip_spaces.
7165 * go32-nat.c: Include cli/cli-utils.h.
7166 (go32_sldt): Use skip_spaces.
7167 (go32_sgdt): Likewise.
7168 (go32_sidt): Likewise.
7169 (go32_pde): Likewise.
7170 (go32_pte): Likewise.
7171 (go32_pte_for_address): Likewise.
7172 * infcmd.c: Include cli/cli-utils.h.
7173 (registers_info): Use skip_spaces.
7174 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7175 (linux_info_proc): Likewise.
7176 * linux-thread-db.c: Include cli/cli-utils.h.
7177 (info_auto_load_libthread_db): Use skip_spaces_const.
7178 * m32r-rom.c: Include cli/cli-utils.h.
7179 (m32r_upload_command): Use skip_spaces.
7180 * maint.c: Include cli/cli-utils.h.
7181 (maintenance_translate_address): Use skip_spaces.
7182 * mi/mi-parse.c: Include cli/cli-utils.h.
7183 (mi_parse_argv): Use skip_spaces.
7184 (mi_parse): Likewise.
7185 * minsyms.c: Include cli/cli-utils.h.
7186 (msymbol_hash_iw): Use skip_spaces_const.
7187 * objc-lang.c: Include cli/cli-utils.h.
7188 (parse_selector): Use skip_spaces.
7189 (parse_method): Likewise.
7190 * python/python.c: Include cli/cli-utils.h.
7191 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7192 (python_command)[HAVE_PYTHON]: Likewise.
7193 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7194 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7195 (m32r_load): Use skip_spaces.
7196 * serial.c: Include cli/cli-utils.h.
7197 (serial_open): Use skip_spaces_const.
7198 * stack.c: Include cli/cli-utils.h.
7199 (parse_frame_specification_1): Use skip_spaces_const.
7200 * symfile.c: Include cli/cli-utils.h.
7201 (set_ext_lang_command): Use skip_spaces.
7202 * symtab.c: Include cli/cli-utils.h.
7203 (rbreak_command): Use skip_spaces.
7204 * thread.c (thread_name_command): Use skip_spaces.
7205 * tracepoint.c (validate_actionline): Use skip_spaces.
7206 (encode_actions_1): Likewise.
7207 (trace_find_range_command): Likewise.
7208 (trace_find_outside_command): Likewise.
7209 (trace_dump_actions): Likewise.
7210
ac91cd70
PA
72112013-03-07 Pedro Alves <[email protected]>
7212
7213 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7214 * expprint.c (print_subexp_standard): Likewise.
7215 * utils.c (host_char_to_target): Likewise.
7216 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7217 * varobj.c (value_get_print_value): Change type of local to char*.
7218 Cast it gdb_byte * in call to language printer.
7219
2898e560
PA
72202013-03-07 Pedro Alves <[email protected]>
7221
7222 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7223 gdb_byte *'.
7224 (make_wchar_iterator): Remove cast to char*.
7225 (wchar_iterate): Change type of local.
7226
a09b4448
PA
72272013-03-07 Pedro Alves <[email protected]>
7228
7229 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7230 for 'regcache->register_status'.
7231
20ced3e4
PA
72322013-03-07 Pedro Alves <[email protected]>
7233
c2d6a675 7234 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
7235 int.
7236
fe106009
PA
72372013-03-07 Pedro Alves <[email protected]>
7238
7239 * stap-probe.c (handle_stap_probe): Add cast to char*.
7240
8ac2c12b
PA
72412013-03-07 Pedro Alves <[email protected]>
7242
7243 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7244 RECORD_MSGRCV>: Pass a signed variable to
7245 regcache_raw_read_signed, instead of an unsigned one.
7246
99f0a309
PA
72472013-03-07 Pedro Alves <[email protected]>
7248
7249 * remote-notif.c (notif_debug): Change type to int.
7250 * remote-notif.h (notif_debug): Likewise.
7251
964b8317
PA
72522013-03-07 Pedro Alves <[email protected]>
7253
7254 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7255
f0cc8ad4
PA
72562013-03-07 Pedro Alves <[email protected]>
7257
7258 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7259 * remote.h (hex2bin, bin2hex): ... here.
7260 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7261
77dec115
EZ
72622013-03-07 Eli Zaretskii <[email protected]>
7263
7264 * utils.c (initialize_utils): Improve doc strings of "set/show
7265 width", "set/show height", and "set/show pagination".
7266
741d92cf
KS
72672013-03-06 Keith Seitz <[email protected]>
7268
7269 * ax-gdb.c (gen_printf): Make FORMAT const.
7270 * ax-gdb.h (gen_printf): Likewise.
7271 * ax-general.c (ax_string): Make STR const.
7272 * ax.h (ax_string): Likewise.
7273
7b6c814e
DE
72742013-03-06 Doug Evans <[email protected]>
7275
7276 * elfread.c (elf_symfile_read): Move debugging printf to more
7277 logical location.
7278
634334ab
PA
72792013-03-06 Pedro Alves <[email protected]>
7280
7281 * python/py-utils.c (target_string_to_unicode): Delete function.
7282 * python/python-internal.h (target_string_to_unicode): Delete
7283 declaration.
7284
e482a1a7
PM
72852013-03-06 Pierre Muller <[email protected]>
7286
7287 * linespec.c (get_current_search_block): ARI fix, use (void)
7288 for empty parameter list.
7289
4eeaa230
DE
72902013-03-05 Doug Evans <[email protected]>
7291
7292 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7293 of old ada_lookup_symbol_list. In !full_search case, don't
7294 search superblocks.
7295 (ada_lookup_symbol_list): Delete arg full_search, all callers
7296 updated. Call ada_lookup_symbol_list_worker.
7297 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7298 * ada-lang.h (ada_lookup_symbol_list): Update.
7299 * language.h (language_defn): Update comment for
7300 la_iterate_over_symbols.
7301 * linespec.c (iterate_over_file_blocks): New function.
7302 (iterate_over_all_matching_symtabs): Call it.
7303 (lookup_prefix_sym): Ditto.
7304 (get_current_search_block): New function.
7305 (get_search_block): Delete.
7306 (find_label_symbols): Call get_current_search_block.
7307 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7308 * symtab.c (iterate_over_symbols): Don't search superblocks.
7309
b69b1fb1
YQ
73102013-03-05 Yao Qi <[email protected]>
7311
7312 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7313 parameter VAR's type from "unsigned int" to "int".
7314 * command.h (var_zuinteger_unlimited): Update its comments.
7315 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7316
3c095f49
CV
73172013-03-05 Corinna Vinschen <[email protected]>
7318
7319 * NEWS: Mention new target x86_64-*-cygwin*.
7320
b5b0b0af
CV
73212013-03-05 Corinna Vinschen <[email protected]>
7322
7323 * configure.host: Add x86_64-*-cygwin* as host.
7324 * configure.tgt: Add x86_64-*-cygwin* as target.
7325 * config/i386/cygwin64.mh: New file.
7326
f6f99966
JK
73272013-03-04 Jan Kratochvil <[email protected]>
7328
7329 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7330
33f448b1
JK
73312013-03-04 Jan Kratochvil <[email protected]>
7332
7333 * linespec.c (struct linespec_canonical_name): New.
7334 (struct linespec_state): Change canonical_names type to it.
7335 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7336 xrealloc element size. Initialize the different CANONICAL fields.
7337 (canonical_to_fullform): New.
7338 (filter_results): Use it. Add variables canonical, fullform and
7339 cleanup.
7340 (struct decode_line_2_item, decode_line_2_compare_items): New.
7341 (decode_line_2): Remove variables iter and item_names, add variables
7342 items and items_count. Modify the code for these new variables.
7343
feb14725
CV
73442013-03-04 Corinna Vinschen <[email protected]>
7345
7346 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7347 calling do_cleanup.
7348
e83b17ba
HZ
73492013-03-04 Luis Machado <[email protected]>
7350
7351 * tracepoint.c (build_traceframe_info): Add code for byte order.
7352
a2d13a0d
KB
73532013-03-02 Kevin Buettner <[email protected]>
7354
8dddcae8
KB
7355 * v850-tdep.c: (v850e2_register_name): Revise system register
7356 names to match current V850E2M architecture specifications.
7357 Update register number enum comments too.
f5aee5ee 7358
d79e58d8
JW
73592013-03-01 Jiong Wang <[email protected]>
7360 Pedro Alves <[email protected]>
7361
7362 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7363 to END_ADDR.
7364 (tilegx_skip_prologue): Limit prologue analysis to section end.
7365
c4be5165
JK
73662013-03-01 Jan Kratochvil <[email protected]>
7367
7368 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7369 use it.
7370
e362b510
PA
73712013-03-01 Pedro Alves <[email protected]>
7372
7373 Use gdb_byte for bytes from the program being debugged.
7374
7375 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7376 Change type of local 'buf' to gdb_byte.
7377 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7378 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7379 * cris-tdep.c (cris_sigcontext_addr)
7380 (cris_sigtramp_frame_unwind_cache): Likewise.
7381 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7382 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7383 Likewise.
7384 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7385 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7386 (hppa32_hpux_search_dummy_call_sequence)
7387 (hppa_hpux_supply_save_state): Likewise.
7388 * hppa-linux-tdep.c (insns_match_pattern)
7389 (hppa_linux_find_global_pointer): Likewise.
7390 * hppa-tdep.c (hppa_in_function_epilogue_p)
7391 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7392 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7393 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7394 (i386fbsd_collect_uthread): Likewise.
7395 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7396 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7397 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7398 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7399 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7400 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7401 (ia64_libunwind_frame_prev_register)
7402 (ia64_libunwind_sigtramp_frame_this_id)
7403 (ia64_find_global_pointer_from_dynamic_section)
7404 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7405 (ia64_unwind_pc): Likewise.
7406 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7407 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7408 (m68hc11_extract_return_value): Likewise.
7409 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7410 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7411 (mep_get_insn, mep_push_dummy_call): Likewise.
7412 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7413 (mips_linux_in_dynsym_stub): Likewise.
7414 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7415 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7416 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7417 to gdb_byte.
7418 * remote-mips.c (mips_set_register): Likewise.
7419 * remote-sim.c (gdbsim_fetch_register): Likewise.
7420 * score-tdep.c (score7_fetch_inst): Change type of parameter
7421 'memblock' and local 'buf' to gdb_byte.
7422 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7423 Change type of local 'buf' to gdb_byte. Adjust.
7424 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7425 to gdb_byte**.
7426 (score7_analyze_prologue): Change type of 'memblock' and
7427 'memblock_ptr' locals to gdb_byte*.
7428 * sh64-tdep.c (sh64_extract_return_value)
7429 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7430 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7431 * solib-pa64.c (pa64_solib_create_inferior_hook)
7432 (pa64_open_symbol_file_object): Remove local 'buf'.
7433 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7434 (som_open_symbol_file_object): Likewise.
7435 * solib-spu.c (spu_current_sos): Likewise.
7436 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7437 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7438 (spu_store_registers): Likewise.
7439 * target.c (debug_print_register): Likewise.
7440 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7441 * xstormy16-tdep.c (xstormy16_store_return_value)
7442 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7443 (xstormy16_find_jmp_table_entry): Likewise.
7444
75cc61ca 74452013-03-01 Jiong Wang <[email protected]>
61d8bd0e
JW
7446
7447 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7448 (tilegx_gdbarch_init): Install it.
7449
ddb08e9c
TT
74502013-02-28 Tom Tromey <[email protected]>
7451
7452 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7453 PyLong_Check.
7454
62d7fb51
DE
74552013-02-28 Doug Evans <[email protected]>
7456
7457 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7458 * python/python.c (gdbpy_find_pc_line): Ditto.
7459
c4a9e8b4
TT
74602013-02-28 Tom Tromey <[email protected]>
7461
7462 * contrib/excheck.py: New file.
7463 * contrib/exsummary.py: New file.
7464 * contrib/gcc-with-excheck: New file.
7465
7f6a5dde
TT
74662013-02-28 Tom Tromey <[email protected]>
7467
7468 * python/python.c (gdbpy_print_stack): Call begin_line and
7469 fprintf_filtered inside TRY_CATCH.
7470
9e974e55
TT
74712013-02-28 Tom Tromey <[email protected]>
7472
7473 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7474 inside TRY_CATCH.
7475
dd5fa3e7
TT
74762013-02-28 Tom Tromey <[email protected]>
7477
7478 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7479 frame_object_to_frame_info inside TRY_CATCH.
7480
86a3263f
TT
74812013-02-28 Tom Tromey <[email protected]>
7482
7483 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7484 TRY_CATCH.
7485
81b52a3a
TT
74862013-02-28 Tom Tromey <[email protected]>
7487
7488 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7489
d50a0ce2
CV
74902013-02-27 Corinna Vinschen <[email protected]>
7491
7492 * windows-nat.c: Throughout, fix format strings and casts of
7493 printf-like functions to avoid type related warnings on all
7494 platforms.
7495 (handle_output_debug_string): Fetch context information address
7496 from debug string using string_to_core_addr.
7497
e1f58301
JW
74982013-02-27 Jiong Wang <[email protected]>
7499
7500 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7501 * regformats/reg-tilegx32.dat: New.
7502
4fcd89fc
JW
75032013-02-27 Jiong Wang <[email protected]>
7504
7505 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7506
748d24e6
JW
75072013-02-27 Jiong Wang <[email protected]>
7508
7509 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7510
6c8e944d
YQ
75112013-02-27 Yao Qi <[email protected]>
7512 Pedro Alves <[email protected]>
7513
7514 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
7515 pc/tp/range/outside, look for the next trace frame instead of
7516 always starting from frame 0.
6c8e944d 7517
acd7db30
AG
75182013-02-26 Anthony Green <[email protected]>
7519
7520 * configure.tgt: Add support for moxie-*-rtems* target.
7521
025e6dce
PA
75222013-02-25 Pedro Alves <[email protected]>
7523
7524 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7525 warning text.
7526
ca9c94ef
MR
75272013-02-24 Maciej W. Rozycki <[email protected]>
7528
7529 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7530 if $fp is used as the virtual frame pointer.
7531
24c274a1
AM
75322013-02-23 Alan Modra <[email protected]>
7533
7534 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7535 symbol size.
7536 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7537 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7538 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7539 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7540
bfada189
JK
75412013-02-22 Jan Kratochvil <[email protected]>
7542
7543 Code cleanup.
7544 * elfread.c (build_id_bfd_get): Make the return type const.
7545 (build_id_verify): Make the check parameter const.
7546 (build_id_to_debug_filename): Make the build_id parameter and variable
7547 data const.
7548 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7549
c0355132
AM
75502013-02-21 Alan Modra <[email protected]>
7551
7552 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7553
9f44fbc0
SCR
75542013-02-20 Siva Chandra Reddy <[email protected]>
7555
7556 Add a new method 'disassemble' to gdb.Architecture class.
7557 * python/py-arch.c (archpy_disassmble): Implementation of the
7558 new method gdb.Architecture.disassemble.
7559 (arch_object_methods): Add entry for the new method.
7560
b74ea3eb
JW
75612013-02-20 Jiong Wang <[email protected]>
7562
7563 * MAINTAINERS (Write After Approval): Add myself to the list.
7564
61a672f1
PA
75652013-02-19 Pedro Alves <[email protected]>
7566
7567 Garbage collect 'struct monitor_ops'::load_routine.
7568
7569 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7570 * monitor.c (monitor_load): No longer call
7571 current_monitor->load_routine.
7572 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7573 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7574 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7575
40e397df
PA
75762013-02-19 Pedro Alves <[email protected]>
7577
7578 PR gdb/15161
7579
7580 Harmonize with generic_load.
7581
7582 * monitor.c: Include "readline/readline.h".
7583 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7584 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7585 long/strtol for the 'load_offset' local. Error out if no argument
7586 is given or if too many arguments are given. Tilde expand the
7587 passed in file name.
7588
f698ca8e
KT
75892013-02-19 Kai Tietz <[email protected]>
7590
7591 PR gdb/15161
7592 * symfile.c (load_section_data): Change type of load_offset
7593 to CORE_ADDR.
7594 (generic_load): User strtoulst instead of strtoul for conversion
7595 of load_offset.
7596
3361b059
WL
75972013-02-19 Jiong Wang <[email protected]>
7598
7599 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7600 for return address, "lr" register, saved on stack.
7601 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7602 after we invoke tilegx_analyze_prologue.
7603
3e9d5130
WL
76042013-02-19 Jiong Wang <[email protected]>
7605
bb1bcd86
WL
7606 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7607
3361b059 76082013-02-19 Jiong Wang <[email protected]>
bb1bcd86 7609
b74ea3eb 7610 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 7611
4aaf2503
WL
76122013-02-19 Jiong Wang <[email protected]>
7613
b74ea3eb 7614 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
7615 (tilegx_write_pc): New function.
7616 (tilegx_cannot_reference_register): Return zero if REGNO
7617 is TILEGX_FAULTNUM_REGNUM.
7618 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7619 (tilegx_register_name): Add handling of "faultnum" register.
7620 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7621 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7622 handling of TILEGX_FAULTNUM_REGNUM.
7623 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7624
bc23a956
WL
76252013-02-19 Jiong Wang <[email protected]>
7626
7627 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 7628 should be aligned to 64bit.
bc23a956 7629
42f45f1a
KT
76302013-02-19 Kai Tietz <[email protected]>
7631
7632 * windows-nat.c (windows_xfer_memory): Fix debug-output
7633 for LLP64.
7634
6ce4c112
LL
76352013-02-19 Lei Liu <[email protected]>
7636
7637 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7638 Don't check DSP register number if HAVE_DSP is not set.
7639
30e8ee25
AM
76402013-02-19 Alan Modra <[email protected]>
7641
7642 * elfread.c (struct build_id): Delete. Use struct elf_build_id
7643 throughout file instead.
7644 (build_id_bfd_get): Update to use new elf_tdata build_id field.
7645 Don't xmalloc return value.
7646 (build_id_verify): Similarly. Don't xfree.
7647 (build_id_to_debug_filename): Update.
7648 (find_separate_debug_file_by_buildid): Update, don't xfree.
7649
4c9ad8c2
TT
76502013-02-18 Tom Tromey <[email protected]>
7651
7652 PR gdb/15102:
7653 * dwarf2read.c (read_subrange_type): Use result of
7654 'check_typedef'.
7655
983dc440
YQ
76562013-02-16 Yuanhui Zhang <[email protected]>
7657
7658 * frame.c: Remove one extra white space after #include
7659 directive.
7660
7fb2b84a
JK
76612013-02-15 Jan Kratochvil <[email protected]>
7662
7663 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7664
edceb2a9
JK
76652013-02-15 Jan Kratochvil <[email protected]>
7666
7667 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7668 and dir commands into an if block.
7669
e81b7af8
TT
76702013-02-15 Sanimir Agovic <[email protected]>
7671
7672 * python/py-breakpoint (struct pybp_code): Use int instead of
7673 enum type_code.
7674
f5911ea1
HAQ
76752013-02-15 Pedro Alves <[email protected]>
7676 Hafiz Abid Qadeer <[email protected]>
7677
7678 * NEWS: Mention new field "trace-file".
7679 * tracepoint.c (trace_status_mi): Output "trace-file" field.
7680 (tfile_open): Record the trace file's filename in the trace
7681 status.
7682 (tfile_files_info): Mention the name of the trace file.
7683 Check the "filename" field explicitely.
7684 (trace_status_command): Explicitely check "filename" field.
7685 (trace_find_command): Ditto.
7686 (trace_find_pc_command): Ditto.
7687 (trace_find_tracepoint_command): Ditto.
7688 (trace_find_line_command): Ditto.
7689 (trace_find_range_command): Ditto.
7690 (trace_find_outside_command): Ditto.
7691 * tracepoint.h (struct trace_status) <from_file>: Rename it
7692 to "filename" and make it hold the trace file's filename
7693 instead of a boolean.
7694 * remote.c (remote_get_trace_status): Initialize "filename"
7695 field with NULL instead of 0.
7696
796cb314
YQ
76972013-02-15 Yao Qi <[email protected]>
7698
7699 * remote.c: Fix a typo.
7700
42e79b1d
PM
77012013-02-14 Pierre Muller <[email protected]>
7702
7703 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7704
baea0dae
PA
77052013-02-14 Pedro Alves <[email protected]>
7706
7707 * utils.c (savestring): Don't #undef it. Move function to
7708 common/common-utils.c.
7709 * common/common-utils.c: Include gdb_string.h.
7710 (savestring): Move here from utils.c.
7711 * common/common-utils.h (savestring): Declare.
7712
57c3b6ed
PA
77132013-02-14 Pedro Alves <[email protected]>
7714
7715 * utils.c (savestring): Rename parameter 'size' to 'len'.
7716
d6c44983
YZ
77172013-02-14 Pedro Alves <[email protected]>
7718 Yufeng Zhang <[email protected]>
7719
7720 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
7721 (aarch64_inferior_data, struct aarch64_inferior_data):
7722 Delete.
7723 (struct aarch64_process_info): New.
7724 (aarch64_process_list): New global.
7725 (aarch64_find_process_pid, aarch64_add_process)
7726 (aarch64_process_info_get): New functions.
7727 (aarch64_inferior_data_get): Delete.
7728 (aarch64_process_info_get): New function.
7729 (aarch64_forget_process): New function.
7730 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
7731 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
7732 aarch64_get_debug_reg_state.
7733 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
7734 instead of linux_nat_iterate_watchpoint_lwps.
7735 (aarch64_linux_new_fork): New function.
7736 (aarch64_linux_child_post_startup_inferior): Use
7737 aarch64_forget_process instead of aarch64_init_debug_reg_state.
7738 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
7739 (aarch64_linux_remove_hw_breakpoint)
7740 (aarch64_handle_aligned_watchpoint)
7741 (aarch64_handle_unaligned_watchpoint)
7742 (aarch64_linux_insert_watchpoint)
7743 (aarch64_linux_remove_watchpoint)
7744 (aarch64_linux_stopped_data_address): Adjust to pass the current
7745 process id to aarch64_debug_reg_state.
7746 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
7747 linux_nat_new_fork hook, and aarch64_forget_process as
7748 linux_nat_forget_process hook; remove the call to
7749 register_inferior_data_with_cleanup.
7750
4819b3f8
PA
77512013-02-14 Pedro Alves <[email protected]>
7752
7753 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
7754 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
7755 lval_memory.
7756
1773c82c
HAQ
77572013-02-14 Pedro Alves <[email protected]>
7758 Hafiz Abid Qadeer <[email protected]>
7759
7760 * tracepoint.h (validate_trace_state_variable_name): Declare.
7761 * tracepoint.c (validate_trace_state_variable_name): New.
7762 (trace_variable_command): Parse the trace state variable's name
7763 without using parse_expression. Do several validations.
7764 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
7765 trace state variable's name with parse_expression. Validate it.
7766
53778a97
YQ
77672013-02-14 Yao Qi <[email protected]>
7768
7769 * infcmd.c (breakpoint_proceeded): Remove it.
7770
7b3ae3a6
YQ
77712013-02-14 Yao Qi <[email protected]>
7772
7773 * tracepoint.c (end_actions_pseudocommand): Make it static.
7774 (while_stepping_pseudocommand): Likewise.
7775 * tracepoint.h (end_actions_pseudocommand): Remove the
7776 declaration.
7777 (while_stepping_pseudocommand): Likewise.
7778
64580925
YQ
77792013-02-14 Yao Qi <[email protected]>
7780
7781 * cli/cli-decode.c (help_cmd): Remove the declaration of
7782 "cmdlist".
7783 (help_all): Likewise.
7784
26cb8b7c
PA
77852013-02-13 Pedro Alves <[email protected]>
7786
7787 * amd64-linux-nat.c (update_debug_registers_callback):
7788 Update comment.
7789 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7790 iterate_over_lwps.
7791 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
7792 i386_debug_reg_state.
7793 (amd64_linux_new_fork): New function.
7794 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
7795 linux_nat_new_fork hook, and i386_forget_process as
7796 linux_nat_forget_process hook.
7797 * i386-linux-nat.c (update_debug_registers_callback):
7798 Update comment.
a8256ea1 7799 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
7800 iterate_over_lwps.
7801 (i386_linux_prepare_to_resume): Pass the lwp's pid to
7802 i386_debug_reg_state.
7803 (i386_linux_new_fork): New function.
7804 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
7805 linux_nat_new_fork hook, and i386_forget_process as
7806 linux_nat_forget_process hook.
7807 * i386-nat.c (i386_init_dregs): Delete.
7808 (i386_inferior_data, struct i386_inferior_data):
7809 Delete.
7810 (struct i386_process_info): New.
7811 (i386_process_list): New global.
7812 (i386_find_process_pid, i386_add_process, i386_process_info_get):
7813 New functions.
7814 (i386_inferior_data_get): Delete.
7815 (i386_process_info_get): New function.
7816 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
7817 (i386_forget_process): New function.
7818 (i386_cleanup_dregs): Rewrite.
7819 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
7820 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7821 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7822 (i386_remove_hw_breakpoint): Adjust to pass the current process id
7823 to i386_debug_reg_state.
7824 (i386_use_watchpoints): Don't register inferior data.
7825 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
7826 adjust comment.
7827 (i386_forget_process): Declare.
7828 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
7829 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
7830 New static globals.
7831 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
7832 (add_initial_lwp): New, factored out from ...
7833 (add_lwp): ... this. Don't check the number of lwps before
7834 calling linux_nat_new_thread.
7835 (linux_nat_iterate_watchpoint_lwps): Delete.
7836 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7837 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7838 forks and vforks.
7839 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7840 initial lwp.
7841 (linux_nat_kill, linux_nat_mourn_inferior): Call
7842 linux_nat_forget_process.
7843 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7844 (linux_nat_forget_process): New functions.
7845 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7846 type.
7847 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7848 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7849 types.
7850 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7851 (linux_nat_forget_process): New declarations.
7852
7853 * amd64fbsd-nat.c (super_mourn_inferior): New global.
7854 (amd64fbsd_mourn_inferior): New function.
7855 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7856 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7857
5befea72
MS
78582013-02-13 Marcus Shawcroft <[email protected]>
7859
55015247
YQ
7860 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7861 Adding _().
5befea72 7862
1d3ffd6b
MS
78632013-02-13 Marcus Shawcroft <[email protected]>
7864
7865 * aarch64-linux-nat.c (debug_reg_change_callback)
7866 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7867 %s and phex().
7868
6eb04473
MS
78692013-02-13 Marcus Shawcroft <[email protected]>
7870
7871 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7872 with LONGEST.
7873
a016fc87
HAQ
78742013-02-13 Pedro Alves <[email protected]>
7875 Hafiz Abid Qadeer <[email protected]>
7876
7877 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7878
e234dfaf
TT
78792013-02-12 Tom Tromey <[email protected]>
7880
7881 PR symtab/11464:
7882 * c-exp.y (lex_one_token): Initialize other fields of yylval on
7883 NAME return.
7884 (classify_inner_name): Remove 'first_name' argument, add
7885 'context'. Remove unused variable.
7886 (yylex): Explicitly maintain the context type. Exit loop earlier
7887 if NAME result is seen.
7888
0b1afbb3
PA
78892013-02-12 Pedro Alves <[email protected]>
7890
7891 * amd64-darwin-tdep.c: Add (C) after Copyright.
7892 * cli/cli-cmds.h: Ditto.
7893 * cli/cli-decode.c: Ditto.
7894 * cli/cli-decode.h: Ditto.
7895 * cli/cli-dump.c: Ditto.
7896 * cli/cli-dump.h: Ditto.
7897 * cli/cli-interp.c: Ditto.
7898 * cli/cli-logging.c: Ditto.
7899 * cli/cli-script.c: Ditto.
7900 * cli/cli-script.h: Ditto.
7901 * cli/cli-setshow.c: Ditto.
7902 * cli/cli-setshow.h: Ditto.
7903 * cli/cli-utils.c: Ditto.
7904 * cli/cli-utils.h: Ditto.
7905 * config/alpha/nm-osf3.h: Ditto.
7906 * config/djgpp/djconfig.sh: Ditto.
7907 * config/i386/nm-fbsd.h: Ditto.
7908 * config/i386/nm-i386gnu.h: Ditto.
7909 * config/nm-linux.h: Ditto.
7910 * config/nm-nto.h: Ditto.
7911 * config/rs6000/nm-rs6000.h: Ditto.
7912 * config/sparc/nm-sol2.h: Ditto.
7913 * darwin-nat-info.c: Ditto.
7914 * dfp.c: Ditto.
7915 * dfp.h: Ditto.
7916 * gdb-demangle.h: Ditto.
7917 * i386-darwin-nat.c: Ditto.
7918 * i386-darwin-tdep.c: Ditto.
7919 * linux-fork.h: Ditto.
7920 * m32c-tdep.c: Ditto.
7921 * microblaze-linux-tdep.c: Ditto.
7922 * microblaze-rom.c: Ditto.
7923 * microblaze-tdep.c: Ditto.
7924 * microblaze-tdep.h: Ditto.
7925 * mips-linux-tdep.h: Ditto.
7926 * ppc-ravenscar-thread.c: Ditto.
7927 * ppc-ravenscar-thread.h: Ditto.
7928 * prologue-value.c: Ditto.
7929 * prologue-value.h: Ditto.
7930 * ravenscar-thread.c: Ditto.
7931 * ravenscar-thread.h: Ditto.
7932 * sparc-ravenscar-thread.c: Ditto.
7933 * sparc-ravenscar-thread.h: Ditto.
7934 * tilegx-linux-tdep.c: Ditto.
7935 * unwind_stop_reasons.def: Ditto.
7936 * windows-nat.h: Ditto.
7937 * xtensa-linux-tdep.c: Ditto.
7938 * xtensa-xtregs.c: Ditto.
7939 * regformats/regdat.sh: Ditto.
7940 * regformats/regdef.h: Ditto.
7941
6c01dd94
PA
79422013-02-12 Pedro Alves <[email protected]>
7943
7944 * break-catch-sig.c: Update copyright years.
7945
b65a2bd9
SCR
79462013-02-11 Siva Chandra Reddy <[email protected]>
7947
7948 Add support for a destructor for ui_out data and use it to
7949 provide a ui_out destructor.
7950 * ui-out.h: Declare the new ui_out destructor.
7951 (ui_out_impl): Add a field for data destructor in ui_out_impl.
7952 * ui-out.c (default_data_destroy): Add a default data destructor
7953 which does nothing.
7954 (default_ui_out_impl): Set the new data_destroy field to
7955 default_data_destroy
7956 (uo_data_destroy): Local function which invokes the data
7957 destructor if present.
7958 (clear_table): Local function which clears the table data of a
7959 ui_out object.
7960 (ui_out_destroy): Public function which frees a ui_out object.
7961 (ui_out_table_end): Use the new clear_table function.
7962 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7963 NULL.
7964 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7965 to NULL.
7966
c2792f5a
DE
79672013-02-11 Doug Evans <[email protected]>
7968
7969 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7970 (printf_decfloat): New function. Broken out from ui_printf.
7971 Remove unnecessary code to shift the entire format string down.
7972 (printf_pointer): New function.
7973 (ui_printf): Code to print C strings, wide C strings, decfloats,
7974 and pointers moved to separate functions.
7975
d9e98382
SDJ
79762013-02-11 Sergio Durigan Junior <[email protected]>
7977
7978 * valops.c (value_assign): Handling bitfield offset in
7979 `lval_internalvar_component' case.
7980
4ff3ce77
DE
79812013-02-08 Doug Evans <[email protected]>
7982
7983 * common/format.c (parse_format_string): Fix whitespace.
7984
901900c4
MGD
79852013-02-08 Matthew Gretton-Dann <[email protected]>
7986
7987 * stack.c (return_command): Work around uninitialized variable
7988 warning.
7989
b5dbc8d4
YZ
79902013-02-08 Yufeng Zhang <[email protected]>
7991
7992 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7993 number of the registers from 36 to 34.
7994
51d66578
MS
79952013-02-08 Marcus Shawcroft <[email protected]>
7996
7997 * NEWS: Mention new AArch64 native and target support.
7998
176b1c95
MS
79992013-02-08 Marcus Shawcroft <[email protected]>
8000
8001 * MAINTAINERS (Write After Approval): Add myself.
8002
9d19df75
MS
80032013-02-08 Jim MacArthur <[email protected]>
8004 Marcus Shawcroft <[email protected]>
8005 Nigel Stephens <[email protected]>
8006 Yufeng Zhang <[email protected]>
8007
8008 * aarch64-linux-nat.c: New file.
8009 * config/aarch64/linux.mh: New file.
8010 * configure.host: Add AArch64.
8011 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8012
7e1e0340
DE
80132013-02-07 Doug Evans <[email protected]>
8014
8015 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8016 disassemble command.
8017
45e25a36
MS
80182013-02-07 Marcus Shawcroft <[email protected]>
8019
8020 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8021 set_gdbarch_fetch_tls_load_module_address.
8022
bbfdfe1c
DM
80232013-02-06 David S. Miller <[email protected]>
8024
8025 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8026 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8027 * value.c (struct_return_convention): New function.
8028 (using_struct_return): Implement in terms of struct_return_convention.
8029 * value.h (struct_return_convention): Declare.
8030 * stack.c (return_command): Allow successful overriding of the return
8031 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8032
bc9abe4a
TT
80332013-02-06 Tom Tromey <[email protected]>
8034
8035 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8036 outside of TRY_CATCH.
8037
134a2066
YQ
80382013-02-06 Yao Qi <[email protected]>
8039
8040 * mi/mi-interp.c: Include "tracepoint.h".
8041 (mi_tsv_modified): Declare.
8042 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8043 (mi_interpreter_init): Call observer_attach_tsv_modified.
8044 (mi_tsv_modified): New.
8045 (mi_tsv_created, mi_tsv_deleted): Update.
8046 * tracepoint.c (trace_variable_command): Call
8047 observer_notify_tsv_modified if the initial value of tsv is
8048 changed.
8049 (delete_trace_state_variable): Call
8050 observer_notify_tsv_deleted earlier.
8051 (trace_variable_command): Caller update.
8052 (create_tsv_from_upload): Likewise.
8053 * observer.sh: Declare "struct trace_state_variable".
8054
8055 * NEWS: Mention the new MI notification "=tsv-modified".
8056
59be2b6a
DE
80572013-02-05 Doug Evans <[email protected]>
8058
8059 * completer.c (location_completer): Fix typo in comment.
8060
d30113d4
JK
80612013-02-05 Jan Kratochvil <[email protected]>
8062
8063 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8064 ADDRESS sorted.
8065
14ac654f
MS
80662013-02-05 Marcus Shawcroft <[email protected]>
8067
8068 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8069 Refactor if statement to avoid trailing || operator.
8070
543bf33d
AT
80712013-02-05 Andreas Tobler <[email protected]>
8072
8073 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8074
dc18f110
AT
80752013-02-04 Andreas Tobler <[email protected]>
8076
8077 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8078 * configure.host: Add powerpc*-*-freebsd* target.
8079 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8080 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8081 * config/powerpc/fbsd.mh: New file.
8082
b3ac9c77
SDJ
80832013-02-04 Sergio Durigan Junior <[email protected]>
8084 Denys Vlasenko <[email protected]>
8085 Pedro Alves <[email protected]>
8086
8087 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8088 (struct elf_internal_linux_prpsinfo): Forward declare.
8089 * gdbarch.h, gdbarch.c: Regenerate.
8090 * linux-tdep.c: Include `cli/cli-utils.h'.
8091 (linux_fill_prpsinfo): New function.
8092 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8093 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8094 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8095 depending on gdbarch pointer bitness.
8096 * ppc-linux-tdep.c: Include elf-bfd.h.
8097 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8098 on 32-bit.
8099
176eb98c
MS
81002013-02-04 Jim MacArthur <[email protected]>
8101 Marcus Shawcroft <[email protected]>
8102 Nigel Stephens <[email protected]>
8103 Yufeng Zhang <[email protected]>
8104
8105 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8106
cf0dbd6f
MS
81072013-02-04 Jim MacArthur <[email protected]>
8108 Marcus Shawcroft <[email protected]>
8109 Nigel Stephens <[email protected]>
8110 Yufeng Zhang <[email protected]>
8111
8112 * aarch64-newlib-tdep.c: New file.
8113 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8114 aarch64*-*-elf.
8115 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8116 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8117 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8118 * osabi.c (gdb_osabi_names): Add "Newlib".
8119
1ae3db19
MS
81202013-02-04 Jim MacArthur <[email protected]>
8121 Marcus Shawcroft <[email protected]>
8122 Nigel Stephens <[email protected]>
8123 Yufeng Zhang <[email protected]>
8124
8125 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8126 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8127 * aarch64-linux-tdep.c: New file.
8128 * aarch64-linux-tdep.h: New file.
8129 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8130 * configure.tgt: Add aarch64-none-linux-gnu.
8131
07b287a0
MS
81322013-02-04 Jim MacArthur <[email protected]>
8133 Marcus Shawcroft <[email protected]>
8134 Nigel Stephens <[email protected]>
8135 Yufeng Zhang <[email protected]>
8136
8137 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8138 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8139 (ALLDEPFILES): Add aarch64-tdep.c.
8140 * aarch64-tdep.c: New file.
8141 * aarch64-tdep.h: New file.
8142 * configure.tgt: Add AArch64.
8143 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8144 (aarch64-expedite): New definition.
8145 * features/aarch64-core.xml: New file.
8146 * features/aarch64-fpu.xml: New file.
8147 * features/aarch64-without-fpu.c: New file (generated).
8148 * features/aarch64-without-fpu.xml: New file.
8149 * features/aarch64.c: New file (generated).
8150 * features/aarch64.xml: New file.
8151 * regformats/aarch64-without-fpu.dat: New file (generated).
8152 * regformats/aarch64.dat: New file (generated).
8153
0f1b18ab
JK
81542013-02-03 Jan Kratochvil <[email protected]>
8155
8156 * contrib/expect-read1.c: New file.
8157 * contrib/expect-read1.sh: New file.
8158
233d95b5
JK
81592013-02-03 Jan Kratochvil <[email protected]>
8160
8161 * dwarf2read.c (file_file_name): New function with code from
8162 file_full_name.
8163 (file_full_name): Move most of the code to file_file_name.
8164 (macro_start_file): Rename variable full_name to file_name and use
8165 file_file_name for it. Add comp_dir parameter to new_macro_table.
8166 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8167 macro_source_file->filename access by macro_source_fullname call.
8168 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8169 caller.
8170 * macrotab.c (struct macro_table): New field comp_dir.
8171 (macro_include): New variables link_fullname and source_fullname.
8172 Replace any macro_source_file->filename access by macro_source_fullname
8173 call.
8174 (macro_lookup_inclusion): Remove the partial filenames checking code.
8175 (check_for_redefinition): New variables source_fullname and
8176 found_key_fullname. Replace any macro_source_file->filename access by
8177 macro_source_fullname call.
8178 (macro_undef): New variables source_fullname and key_fullname. Replace
8179 any macro_source_file->filename access by macro_source_fullname call.
8180 (macro_lookup_definition): New variables retval and source_fullname.
8181 Replace any macro_source_file->filename access by macro_source_fullname
8182 call.
8183 (foreach_macro): New variable key_fullname. Replace any
8184 macro_source_file->filename access by macro_source_fullname call.
8185 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8186 macro_source_file->filename access by macro_source_fullname call.
8187 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8188 (macro_source_fullname): New function.
8189 * macrotab.h (struct macro_source_file): Extent the filename field
8190 comment.
8191 (new_macro_table): New parameter comp_dir, add a comment for it.
8192 (macro_source_fullname): new declaration.
8193
da235a7c
JK
81942013-02-03 Jan Kratochvil <[email protected]>
8195
8196 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8197 this_real_name to outer block. Use it also for
8198 compare_filenames_for_search.
8199 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8200 with dw2_get_real_path for file_matcher, considering also
8201 BASENAMES_MAY_DIFFER.
8202 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8203
fbd9ab74
JK
82042013-02-03 Jan Kratochvil <[email protected]>
8205
8206 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8207 to the file_matcher parameter. Pass 0 to it.
8208 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8209 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8210 NULL psymtab_to_fullname result.
8211 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8212 an expected filename instead.
8213 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8214 file_matcher parameter. Call also psymtab_to_fullname, after newly
8215 considering BASENAMES_MAY_DIFFER.
8216 * source.c (rewrite_source_path): Remove static.
8217 * source.h (rewrite_source_path): New declaration.
8218 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8219 the expand_symtabs_matching field. Comment it.
8220 * symtab.c (file_matches): New function comment. Add parameter
8221 basenames, implement it.
8222 (search_symbols_file_matches): Add basenames parameter. Update the
8223 file_matches caller.
8224 (search_symbols): Match FILES also against symtab_to_fullname.
8225 Optimize it for BASENAMES_MAY_DIFFER.
8226
56d397a3
JK
82272013-02-03 Jan Kratochvil <[email protected]>
8228
8229 * source.c (print_source_lines_base): Print for TUI also "fullname".
8230 * tui/tui-data.c (init_content_element): Change tui_locator_element
8231 field to full_name.
8232 * tui/tui-data.h (struct tui_locator_element): Likewise.
8233 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8234 tui_update_locator_filename calls to tui_update_locator_fullname.
8235 Replace symtab->filename refererence by symtab_to_fullname call.
8236 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8237 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8238 field to full_name. Replace symtab->filename refererence by
8239 symtab_to_fullname call.
8240 (tui_show_symtab_source): Rename parameter to fullname. Change
8241 tui_locator_element field to full_name.
8242 * tui/tui-stack.c: Include source.h.
8243 (tui_set_locator_filename): Rename the declaration to ...
8244 (tui_set_locator_fullname): ... here. Rename its parameter to
8245 fullname, updates its comment.
8246 (tui_set_locator_info): Rename its parameter to fullname.
8247 (tui_set_locator_filename): Rename the definition to ...
8248 (tui_set_locator_fullname): ... here. Rename its parameter to
8249 fullname, updates its comment. Change tui_locator_element field to
8250 full_name.
8251 (tui_set_locator_info): Rename its parameter to fullname.
8252 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8253 (tui_update_locator_filename): Rename to ...
8254 (tui_update_locator_fullname): ... here. Rename callee to
8255 tui_set_locator_fullname.
8256 (tui_show_frame_info): Replace symtab->filename refererence by
8257 symtab_to_fullname call.
8258 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8259 (tui_update_locator_fullname): ... here.
8260 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8261 tui_update_locator_fullname. Replace symtab->filename refererence by
8262 symtab_to_fullname call.
8263 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8264 Rename the callee to tui_update_locator_fullname.
8265 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8266
05cba821
JK
82672013-02-03 Jan Kratochvil <[email protected]>
8268
8269 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8270 by symtab_to_filename_for_display calls.
8271 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8272 (clear_command): New variable sal_fullname, initialize it. Replace
8273 compare_filenames_for_search by filename_cmp with sal_fullname.
8274 (say_where, update_static_tracepoint): Replace symtab->filename
8275 refererences by symtab_to_filename_for_display calls.
8276 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8277 Likewise.
8278 * dwarf2read.c: Include source.h.
8279 (fixup_go_packaging): Replace symtab->filename refererences by
8280 symtab_to_filename_for_display calls.
8281 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8282 Replace symtab->filename refererences by symtab_to_filename_for_display
8283 calls.
8284 (create_sals_line_offset, convert_linespec_to_sals): New variable
8285 fullname, initialize it, replace symtab->filename reference by the
8286 variable.
8287 * linux-fork.c: Include source.h.
8288 (info_checkpoints_command): Replace symtab->filename refererences by
8289 symtab_to_filename_for_display calls.
8290 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8291 by symtab_to_filename_for_display calls.
8292 * mdebugread.c: Include source.h.
8293 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8294 symtab_to_filename_for_display calls.
8295 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8296 (mi_cmd_file_list_exec_source_files): Likewise.
8297 * printcmd.c: Include source.h.
8298 (build_address_symbolic): Replace symtab->filename refererences by
8299 symtab_to_filename_for_display calls.
8300 * psymtab.c (partial_map_symtabs_matching_filename)
8301 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8302 with psymtab_to_fullname.
8303 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8304 by symtab_to_filename_for_display calls.
8305 (stpy_get_filename): New variable filename, initialize it, use instead
8306 of symtab->filename refererences.
8307 (salpy_str): Make variable filename const char *. Replace
8308 symtab->filename refererences by symtab_to_filename_for_display calls.
8309 * skip.c: Include source.h and filenames.h.
8310 (skip_file_command): Remove const from the symtab variable. Replace
8311 symtab->filename refererences by symtab_to_fullname call.
8312 (function_name_is_marked_for_skip): New variables searched_for_fullname
8313 and fullname. Use them to search also with symtab's fullname.
8314 * source.c (find_source_lines): Replace symtab->filename refererences
8315 by symtab_to_filename_for_display calls.
8316 (print_source_lines_base): New variable filename, use it instead of
8317 symtab->filename. Replace symtab->filename refererences by
8318 symtab_to_filename_for_display calls.
8319 (line_info, forward_search_command): Replace symtab->filename
8320 refererences by symtab_to_filename_for_display calls.
8321 (reverse_search_command): Replace symtab->filename refererences by
8322 symtab_to_filename_for_display calls. New variable filename for it.
8323 * stack.c (frame_info): Likewise.
8324 * symmisc.c: Include source.h.
8325 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8326 (maintenance_info_symtabs): Replace symtab->filename refererences by
8327 symtab_to_filename_for_display calls.
8328 * symtab.c (iterate_over_some_symtabs): Call
8329 compare_filenames_for_search also with symtab_to_fullname.
8330 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8331 symtab->filename refererences by symtab_to_filename_for_display calls.
8332 (find_line_symtab): Replace symtab->filename refererences by
8333 symtab_to_filename_for_display calls.
8334 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8335 (print_symbol_info): Make the last parameter const char *. New
8336 variable s_filename. Use it in the function.
8337 (symtab_symbol_info): Make the last_filename variable const char *.
8338 Replace symtab->filename refererences by symtab_to_filename_for_display
8339 calls.
8340 (rbreak_command): New variable fullname. Use it. Replace
8341 symtab->filename refererence by symtab_to_filename_for_display call.
8342 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8343 (print_one_static_tracepoint_marker): Replace symtab->filename
8344 refererences by symtab_to_filename_for_display calls.
8345 * tui/tui-source.c (tui_set_source_content): New variables filename and
8346 s_filename. Replace symtab->filename refererences by this variable.
8347 Replace other symtab->filename refererences by
8348 symtab_to_filename_for_display calls.
8349
1b56eb55
JK
83502013-02-03 Eldar Gaynetdinov <[email protected]>
8351 Jan Kratochvil <[email protected]>
8352
8353 Add a new variable that controls a way in which filenames are
8354 displayed.
8355 * NEWS (set filename-display): New entry.
8356 * source.c (filename_display_basename, filename_display_relative)
8357 (filename_display_absolute, filename_display_kind_names)
8358 (filename_display_string, show_filename_display_string)
8359 (symtab_to_filename_for_display): New.
8360 (_initialize_source): Added initialization of 'filename-display'
8361 variable.
8362 * source.h (symtab_to_filename_for_display): Added declaration.
8363 * stack.c (print_frame): Added new variable and calling of a new
8364 function and condition with this variable. Changed third argument of
8365 calling of a function.
8366
aa079c93
JK
83672013-02-03 Jan Kratochvil <[email protected]>
8368
8369 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8370 Rename field reference filename to fullname.
8371 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8372 fullname. New comment for it.
8373 * tui/tui-source.c (tui_set_source_content): Rename field reference
8374 filename to fullname. Initialize field by symtab_to_fullname now.
8375 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8376 reference filename to fullname. Use symtab_to_fullname during
8377 comparison.
8378
652a8996
JK
83792013-02-03 Jan Kratochvil <[email protected]>
8380
8381 Code cleanup.
8382 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8383 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8384 filename to fullname. Rename variable this_name to this_fullname.
8385 Lowercase FILENAME_CMP call.
8386 (dw2_find_symbol_file): New comment for the returned string.
8387 (dwarf2_gdb_index_functions): Rename the function to
8388 dw2_expand_symtabs_with_fullname.
8389 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8390 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8391 fullname.
8392 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8393 * symfile.h (struct quick_symbol_functions): Rename field
8394 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8395 parameter filename to fullname. Document returned string meaning for
8396 find_symbol_file.
8397 * symtab.c (find_line_symtab): Rename the called function to
8398 expand_symtabs_with_fullname.
8399
af529f8f
JK
84002013-02-03 Jan Kratochvil <[email protected]>
8401
8402 Code cleanup.
8403 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8404 call of filename_cmp with compare_filenames_for_search.
8405 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8406 is_abs, unify the call of FILENAME_CMP with
8407 compare_filenames_for_search. New gdb_asserts for real_path and name.
8408 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8409 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8410 * symfile.h (struct quick_symbol_functions): Extend the comment for
8411 map_symtabs_matching_filename.
8412 * symtab.c (compare_filenames_for_search): Remove the function comment
8413 relative path requirement. Handle absolute filenames, with a comment.
8414 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8415 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8416 real_path and name. Unify the call of compare_filenames_for_search
8417 with FILENAME_CMP.
8418 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8419
2f202fde
JK
84202013-02-03 Jan Kratochvil <[email protected]>
8421
8422 Code cleanup.
8423 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8424 source_file references by symtab field references. Remove variables
8425 sal and fullname.
8426 (momentary_breakpoint_from_master, add_location_to_breakpoint):
8427 (clear_command, say_where): Replace bp_location field source_file
8428 references by symtab field references.
8429 (bp_location_dtor): Remove the source_file reference.
8430 (update_static_tracepoint): Replace bp_location field source_file
8431 references by symtab field references.
8432 (breakpoint_free_objfile): New function.
8433 * breakpoint.h (struct bp_location): Extend the comment for line_number.
8434 Replace the field source_file by field symtab, extend its comment.
8435 (breakpoint_free_objfile): New declaration.
8436 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8437 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8438 field source_file references by symtab field references.
8439
f5b95b50
JK
84402013-02-03 Jan Kratochvil <[email protected]>
8441
8442 Replace xfullpath calls by gdb_realpath calls.
8443 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8444 function comment.
8445 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8446 Remove it from the iterate_over_some_symtabs call.
8447 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8448 Remove it from the dw2_map_expand_apply calls, remove a block handling
8449 it.
8450 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8451 Remove it from the iterate_over_some_symtabs call.
8452 (partial_map_symtabs_matching_filename): Remove parameter full_path.
8453 Remove it from the partial_map_expand_apply calls, remove a block
8454 handling it. Drop gdb_realpath call and cleanups from the real_path
8455 handling.
8456 * source.c (openp): Drop the comment part about xfullpath. Replace
8457 xfullpath calls by gdb_realpath calls.
8458 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8459 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8460 from method map_symtabs_matching_filename and its comment.
8461 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8462 gdb_realpath call.
8463 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8464 remove it also from the function comment, remove a block handling it.
8465 Drop gdb_realpath call and cleanups from the real_path handling.
8466 (iterate_over_symtabs): Drop variable full_path and its use.
8467 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8468 * utils.c (xfullpath): Remove.
8469 * utils.h (xfullpath): Remove.
8470
d78489bf
AT
84712013-02-01 Andreas Tobler <[email protected]>
8472
8473 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8474 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8475 (ALLDEPFILES): Add ppc64-tdep.c.
8476 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8477 ppc64-tdep.o to gdb_target_obs.
8478 * ppc64-tdep.h: New file.
8479 * ppc64-tdep.c: New file.
8480 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8481 ppc-linux-tdep.c to here.
8482 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8483 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8484 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8485 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8486 from ppc-linux-tdep.c to here.
8487 (ppc64_convert_from_func_ptr_addr): Rename from
8488 ppc64_linux_convert_from_func_ptr_addr to
8489 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8490 here.
8491 * rs6000-tdep.c:
8492 (read_insn): Move from ppc-linux-tdep.c to here.
8493 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8494 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8495 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8496 Removed above functions.
8497 (ppc_linux_init_abi): Adjust.
8498
8db60374
AR
84992013-02-01 Aleksandar Ristovski <[email protected]>
8500
8501 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8502
f2e5f4ce
AR
85032013-02-01 Aleksandar Ristovski <[email protected]>
8504
8505 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8506
c1f7d745
PA
85072013-02-01 Pedro Alves <[email protected]>
8508
8509 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8510 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8511
8a92335b
JK
85122013-02-01 Jan Kratochvil <[email protected]>
8513
8514 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8515 files with no separate debug info.
8516 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8517 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8518 only for files with no separate debug info.
8519
8eacb197
TT
85202013-01-31 Tom Tromey <[email protected]>
8521
8522 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8523 change type.
8524 (struct jit_program_space_data): Rename from jit_inferior_data.
8525 Update comments.
8526 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8527 Change return type. Attach data to program space.
8528 (jit_program_space_data_cleanup): Rename from
8529 jit_inferior_data_cleanup; change argument type.
8530 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8531 change type.
8532 (jit_register_code): Update.
8533 (jit_update_inferior_cache): Remove.
8534 (jit_breakpoint_deleted): Get jit data from the location's program
8535 space.
8536 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8537 'ps_data', change type.
8538 (jit_inferior_init, jit_breakpoint_re_set_internal)
8539 (jit_event_handler): Update.
8540 (free_objfile_data): Get data from objfile's program space.
8541 (_initialize_jit): Update.
8542
f25c0135
TT
85432013-01-31 Tom Tromey <[email protected]>
8544
8545 PR gdb/13987:
8546 * jit.c (struct jit_inferior_data) <cached_code_address,
8547 jit_breakpoint>: New fields.
8548 (jit_breakpoint_re_set_internal): Fix logging. Only create
8549 breakpoint if cached address has changed.
8550 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8551 functions.
8552 (_initialize_jit): Register breakpoint deleted observer.
8553
974a734b
AR
85542013-01-31 Aleksandar Ristovski <[email protected]>
8555
8556 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8557 (save_infcall_suspend_state): Ifdef out unused inf.
8558 (restore_infcall_suspend_state): Ifdef out unused inf.
8559 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8560 (jit_frame_sniffer): Remove unused inf_data.
8561
df54f8eb
AR
85622013-01-31 Aleksandar Ristovski <[email protected]>
8563
8564 * c-exp.y (classify_inner_name): Remove unused type.
8565 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8566 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8567 need_escape.
8568 (c_get_string): Remove unused kind.
8569 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8570
5799c0b9
AR
85712013-01-31 Aleksandar Ristovski <[email protected]>
8572
8573 * charset.c (intermediate_encoding): Remove unused i.
8574 * completer.c (signal_completer): Remove unused i.
8575 * continuations.c (discard_my_continuations_1): Remove unused
8576 continuation_ptr.
8577 * corelow.c (core_close): Remove unuseD name.
8578 (get_core_siginfo): Remove unused pid.
8579 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8580 i, cps.
8581 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8582 (loclist_describe_location): Remove unused first.
8583 * event-top.c (command_line_handler): Remove unused got_eof.
8584 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8585 (resize_section_table): Remove unused old_value.
8586 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8587 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8588 * i386-tdep.c (i386_process_record): Remove unused rex.
8589 * infcmd.c (get_return_value): Remove unused uiout.
8590 * jv-lang.c (type_from_class): Remove unused is_array.
8591 * jv-valprint.c (java_val_print): Remove unused i.
8592 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8593 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8594 * m2-typeprint.c (m2_print_type): Remove unused code.
8595 * macroexp.c (get_character_constant): Remove unused body_start.
8596 (macro_stringify): Remove unused result.
8597 * objc-lang.c (find_methods): Remove unused gdbarch.
8598 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8599 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8600 * stack.c (print_frame_args): Remove unused summary.
8601 * thread.c (thread_apply_command): Remove unused p.
8602 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8603 * valops.c (search_struct_method): Remove unused skip.
8604 * valprint.c (generic_val_print): Remove unused byte_order.
8605 * varobj.c (varobj_update): Remove unused changed.
8606 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8607 (alias_command): Remove unused c.
8608 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8609 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8610 format.
8611 (mi_cmd_data_write_memory): Remove unused word_format.
8612 (mi_cmd_data_write_memory_bytes): Remove unused r.
8613 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8614 p_start, p_end.
8615 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8616 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8617 line_width.
8618
c656bca5
AR
86192013-01-31 Aleksandar Ristovski <[email protected]>
8620
8621 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8622 * symtab.c (iterate_over_symtabs): Remove unused s.
8623 (find_pc_sect_symtab): Remove unused pspAce.
8624 (find_pc_sect_line): Remove unused alt_symtab.
8625 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8626 (completion_list_add_name): Remove unused newsize.
8627
7078baeb
TT
86282013-01-31 Tom Tromey <[email protected]>
8629
8630 PR c++/14998:
8631 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8632 TYPE_CODE_FUNC.
8633
c2e8b827
AR
86342013-01-31 Aleksandar Ristovski <[email protected]>
8635
8636 * target.c (target_read_string): Remove unused origlen.
8637
0e43993a
AR
86382013-01-31 Aleksandar Ristovski <[email protected]>
8639
8640 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8641 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8642 * ax-general.c (ax_print): Remove unused is_float.
8643 * blockframe.c (block_innermost_frame): Remove unused start, end.
8644 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8645
765a97ab
AR
86462013-01-31 Aleksandar Ristovski <[email protected]>
8647
8648 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8649 (svr4_read_so_list): Remove unused lmo.
8650 * solib-target.c (solib_target_relocate_section_addresses): Remove
8651 unused flags.
8652
a99dad3d
TT
86532013-01-30 Tom Tromey <[email protected]>
8654
8655 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8656
3bff1ecd
TT
86572013-01-30 Tom Tromey <[email protected]>
8658
8659 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8660 * utils.c (gnu_debuglink_crc32): Remove.
8661 * utils.h (gnu_debuglink_crc32): Don't declare.
8662
7d455152
TT
86632013-01-30 Tom Tromey <[email protected]>
8664
8665 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8666 (read_structure_type, read_enumeration_type): Remove cast.
8667
abee88f2
TT
86682013-01-30 Tom Tromey <[email protected]>
8669
8670 * dwarf2read.c (read_namespace_type): Remove cast.
8671 (read_typedef): Likewise.
8672
8d9878a4
TT
86732013-01-29 Tom Tromey <[email protected]>
8674
8675 * dwarf2read.c (free_dwo_file): Remove assert.
8676
a543d2a9
TT
86772013-01-29 Tom Tromey <[email protected]>
8678
8679 * value.c (deprecated_set_value_modifiable): Remove.
8680 * value.h (deprecated_set_value_modifiable): Remove.
8681
bed911e5
DE
86822013-01-28 Doug Evans <[email protected]>
8683
8684 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8685 to addresses from dwo files.
8686
28c64fc2
SCR
86872013-01-25 Siva Chandra Reddy <[email protected]>
8688
8689 * valops.c (find_overload_match): Remove unused argument 'lax'.
8690 * value.h: Remove unused argument 'lax' from the declaration of
8691 find_overload_match.
8692 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8693 to find_overload_match.
8694 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8695 argument to find_overload_match.
8696
4d4ec4e5
TT
86972013-01-25 Tom Tromey <[email protected]>
8698
8699 * dwarf2read.c (processing_has_namespace_info): Remove.
8700 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8701 (process_die, read_func_scope, dwarf2_start_symtab)
8702 (new_symbol_full): Update.
8703
195a3f6c
TT
87042013-01-25 Tom Tromey <[email protected]>
8705
8706 * cp-namespace.c (cp_set_block_scope): Remove.
8707 * cp-support.h (cp_set_block_scope): Remove.
8708 * dbxread.c: Include block.h.
8709 (cp_set_block_scope): New function.
8710 (process_one_symbol): Update.
8711 * dwarf2read.c (read_func_scope): Use block_set_scope.
8712
8ba0730a
PA
87132013-01-25 Pedro Alves <[email protected]>
8714
8715 * remote.c (add_current_inferior_and_thread): Tweak comment.
8716
12aaed36
TT
87172013-01-25 Tom Tromey <[email protected]>
8718
8719 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8720 (cp_add_using_directive): Add 'copy_names' argument.
8721 * cp-support.h (cp_add_using_directive): Update.
8722 (struct using_direct) <import_src, import_dest, alias,
8723 declaration>: Now const.
8724 * dwarf2read.c (read_import_statement): Use obconcat.
8725 Don't copy names passed to cp_add_using_directive.
8726
7fc75ca7
TT
87272013-01-25 Tom Tromey <[email protected]>
8728
8729 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
8730
3405876a
PA
87312013-01-25 Pedro Alves <[email protected]>
8732
8733 * remote.c (stop_reply_extract_thread): New.
8734 (add_current_inferior_and_thread): New parameter 'wait_status'.
8735 Handle it.
8736 (remote_start_remote): Pass wait status to
8737 add_current_inferior_and_thread.
8738 (extended_remote_run): Update comment.
8739 (extended_remote_create_inferior_1): Pass wait status to
8740 add_current_inferior_and_thread.
8741
8954db33
AB
87422013-01-25 Andrew Burgess <[email protected]>
8743 Ulrich Weigand <[email protected]>
8744
8745 * valarith.c (value_vector_widen): New function for replicating a
8746 scalar into a vector.
8747 (value_binop): Use value_vector_widen to widen scalar to vector
8748 rather than casting, this better matches gcc C behaviour.
8749 * valops.c (value_casst): Update logic for casting between vector
8750 types, and for casting from scalar to vector, try to match gcc C
8751 behaviour.
8752 * value.h (value_vector_widen): Declare.
8753 * opencl-lang.c (opencl_value_cast): New opencl specific casting
8754 function, handle special case for casting scalar to vector.
8755 (opencl_relop): Use opencl_value_cast.
8756 (evaluate_subexp_opencl): Use opencl_value_cast instead of
8757 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
8758 in order to use opencl_value_cast.
8759
843b20dc
YQ
87602013-01-25 Yao Qi <[email protected]>
8761
8762 * event-loop.c: Include "queue.h".
8763 (gdb_event_p): New typedef.
8764 (DECLARE_QUEUE_P): Use.
8765 (DEFINE_QUEUE_P): Use.
8766 (async_queue_event): Remove.
8767 (gdb_event_xfree): New.
8768 (initialize_event_loop): New.
8769 (process_event): Use QUEUE macros.
8770 (event_queue): Remove.
8771 (gdb_wait_for_event): Caller update.
8772 (check_async_event_handlers): Likewise.
8773 (poll_timers): Likewise.
8774 * event-loop.h (initialize_event_loop): Declare.
8775 * event-loop.c (gdb_event_xfree): New.
8776 * top.c (gdb_init): Call initialize_event_loop.
8777
20ad8856
YQ
87782013-01-25 Yao Qi <[email protected]>
8779
8780 * event-loop.c (async_queue_event): Remove one parameter
8781 'position'. Remove code handling 'position' == TAIL.
8782 (gdb_wait_for_event): Caller update.
8783 (check_async_event_handlers): Caller update.
8784 (poll_timers): Caller update.
8785 * event-loop.h (enum queue_position): Remove.
8786
3bbbe775
MK
87872013-01-25 Maxim Kuvyrkov <[email protected]>
8788
8789 * MAINTAINERS: Update my email.
8790
a87d9ac4
YQ
87912013-01-25 Yao Qi <[email protected]>
8792
8793 * main.c (print_gdb_help): Remove "--epoch" from the help
8794 message.
8795
2077afdd
TD
87962013-01-24 Ulrich Weigand  <[email protected]>
8797
8798 * symtab.c (skip_prologue_using_sal): Consider a file
8799 change the same as an increased line number
8800
63da4037
TD
88012013-01-24 Tiago Stürmer Daitx  <[email protected]>
8802
30e8ee25 8803 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 8804
45e6c716
TT
88052013-01-24 Tom Tromey <[email protected]>
8806
8807 * ada-lang.h (ada_decode_symbol): Make return type const.
8808 * ada-lang.c (ada_decode_symbol): Likewise.
8809
b1ae631a
DE
88102013-01-23 Doug Evans <[email protected]>
8811
8812 * linespec.c (find_linespec_symbols): Make static.
8813
55a78401
SDJ
88142013-01-23 Tiago Stürmer Daitx <[email protected]>
8815
8816 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
8817 type on float conversion for complex type.
8818
bea883fd
SCR
88192013-01-23 Siva Chandra Reddy <[email protected]>
8820
8821 Add a new class gdb.Architecture which exposes GDB's
8822 internal representation of architecture via GDB Python API.
8823 * Makefile.in: Add entries corresponding to the new file
8824 python/py-arch.c.
8825 * NEWS (Python Scripting): Add entries for the new class
8826 gdb.Architecture and the new method gdb.Frame.architecture.
8827 * python/py-arch.c: Implement gdb.Architecture class.
8828 * python/py-frame.c (frapy_arch): Implement the method
8829 gdb.Frame.architecture().
8830 (frame_object_methods): Add 'architecture' to the method table.
8831 * python/python-internal.h: Add declarations of new utility
8832 functions.
8833 * python/python.c (_initialize_python): Initialize
8834 gdb.Architecture class.
8835
796a7ff8
DE
88362013-01-23 Doug Evans <[email protected]>
8837
8838 Work around binutils/15021.
8839 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8840 type_unit_group out of union s. All uses updated.
8841 (read_index_from_section): Watch for index version 8.
8842 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8843 an imported symtab.
8844 (write_psymtabs_to_index): Increment version number to 8.
8845
0928e93d
PA
88462013-01-22 Pedro Alves <[email protected]>
8847
8848 * annotate.c (breakpoint_changed): Skip if breakpoint is not
8849 user-visible.
8850
9c97429f
PA
88512013-01-22 Pedro Alves <[email protected]>
8852
8853 * annotate.c (annotate_breakpoints_changed): Rename to ...
8854 (annotate_breakpoints_invalid): ... this. Make static.
8855 (breakpoint_changed): Adjust.
8856 (_initialize_annotate): Always install the observers. Install a
8857 "breakpoint_created" observer.
8858 * annotate.h (annotate_breakpoints_changed): Delete declaration.
8859 * breakpoint.c (set_breakpoint_condition)
8860 (breakpoint_set_commands, do_map_commands_command)
8861 (init_raw_breakpoint, clear_command, set_ignore_count)
8862 (enable_breakpoint_disp): No longer call
8863 annotate_breakpoints_changed.
8864
bd00c694
PA
88652013-01-22 Pedro Alves <[email protected]>
8866
8867 * annotate.c: Include "inferior.h".
8868 (frames_invalid_emitted)
8869 (breakpoints_invalid_emitted): New globals.
8870 (async_background_execution_p): New function.
8871 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8872 emitting the annotation if it has already been emitted.
8873 (annotate_display_prompt): New function.
8874 * annotate.h (annotate_display_prompt): New declaration.
8875 * event-top.c: Include annotate.h.
8876 (display_gdb_prompt): Call annotate_display_prompt.
8877
187d10dd
PA
88782013-01-22 Pedro Alves <[email protected]>
8879
8880 * annotate.c (ignore_count_changed): Delete.
8881 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8882 (annotate_ignore_count_change): Delete.
8883 (annotate_stopped): Don't emit a delayed breakpoints-changed
8884 annotation.
8885 * annotate.h (annotate_ignore_count_change): Delete.
8886 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8887 annotate_ignore_count_change.
8888
d84cf7eb
TT
88892013-01-22 Tom Tromey <[email protected]>
8890
8891 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8892 require_rvalue for a register location.
8893
8f1d5693
MK
88942013-01-21 Marc Khouzam <[email protected]>
8895
8896 * breakpoint.c (print_one_breakpoint_location): Add MI
8897 field 'thread-groups' when printing a breakpoint.
8898 (output_thread_groups): New function.
8899
aa6199c6
SCR
89002013-01-21 Siva Chandra Reddy <[email protected]>
8901
8902 * python/lib/gdb/commands/explore.py
8903 (CompoundExplorer.explore_expr): Correct the name of a method
8904 being invoked.
8905 (ExploreTypeCommand.invoke): Add a missing 'return'.
8906
d2afef13
TT
89072013-01-21 Tom Tromey <[email protected]>
8908
8909 * gdb_obstack.h (obconcat): Move declaration here, from...
8910 * symfile.h (obconcat): ... here.
8911 * gdb_obstack.c: New file.
8912 (obconcat): Move from...
8913 * symfile.c (obconcat): ... here.
8914 * Makefile.in (SFILES): Add gdb_obstack.c.
8915 (COMMON_OBS): Add gdb_obstack.o.
8916
10f0c4bb
TT
89172013-01-21 Tom Tromey <[email protected]>
8918
8919 * symfile.h (obsavestring): Don't declare.
8920 * symfile.c (obsavestring): Remove.
8921 * ada-exp.y: Use obstack_copy0, not obsavestring.
8922 * ada-lang.c: Use obstack_copy0, not obsavestring.
8923 * coffread.c: Use obstack_copy0, not obsavestring.
8924 * cp-namespace.c: Use obstack_copy0, not obsavestring.
8925 * dbxread.c: Use obstack_copy0, not obsavestring.
8926 * dwarf2read.c: Use obstack_copy0, not obsavestring.
8927 * jit.c: Use obstack_copy0, not obsavestring.
8928 * mdebugread.c: Use obstack_copy0, not obsavestring.
8929 * psymtab.c: Use obstack_copy0, not obsavestring.
8930 * stabsread.c: Use obstack_copy0, not obsavestring.
8931 * xcoffread.c: Use obstack_copy0, not obsavestring.
8932
86f62fd7
TT
89332013-01-21 Tom Tromey <[email protected]>
8934
8935 * dwarf2read.c (fixup_go_packaging): Save package name
8936 on objfile obstack.
8937 * gdbtypes.c (init_type): Don't copy name.
8938
15d034d0
TT
89392013-01-21 Tom Tromey <[email protected]>
8940
8941 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8942 const.
8943 (struct attribute) <u.str>: Now const.
8944 (struct fnfieldlist) <name>: Now const.
8945 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8946 (partial_die_parent_scope): Make return type const.
8947 (partial_die_full_name, add_partial_symbol): Update.
8948 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8949 'name' const.
8950 (find_file_and_directory): Make 'name' and 'comp_dir' const.
8951 (read_file_scope, read_func_scope, dwarf2_add_field)
8952 (dwarf2_add_member_fn, read_structure_type)
8953 (process_enumeration_scope, read_array_type, read_module_type)
8954 (read_base_type, read_subrange_type): Update.
8955 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8956 (new_symbol_full, guess_full_die_structure_name): Update.
8957 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
8958 (dwarf2_name): Return const type.
8959 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8960 const.
8961
748e18ae
TT
89622013-01-21 Tom Tromey <[email protected]>
8963
8964 * gdbtypes.c (init_type): Make 'name' const.
8965 * gdbtypes.h (init_type): Update.
8966
46212e0b
TT
89672013-01-21 Tom Tromey <[email protected]>
8968
8969 * buildsym.c (patch_subfile_names): Use set_last_source_file.
8970 (start_symtab): Make 'name' and 'dirname' const. Use
8971 set_last_source_file.
8972 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8973 (last_source_file): Define. Now static.
8974 (set_last_source_file, get_last_source_file): New functions.
8975 * buildsym.h (last_source_file): Don't declare.
8976 (start_symtab): Update.
8977 (set_last_source_file, get_last_source_file): Declare.
8978 * coffread.c (complete_symtab): Use set_last_source_file.
8979 (coff_end_symtab): Likewise.
8980 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8981 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8982 set_last_source_file.
8983 (process_one_symbol): Use get_last_source_file.
8984 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8985 (psymtab_to_symtab_1): Use get_last_source_file.
8986 * xcoffread.c (process_linenos): Use get_last_source_file.
8987 (complete_symtab): Use set_last_source_file.
8988 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8989 (scan_xcoff_symtab): Use set_last_source_file.
8990
9d2ceabe
TT
89912013-01-21 Tom Tromey <[email protected]>
8992
8993 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8994 (symbol_set_names): Remove casts. Handle field const-ness.
8995
cfc594ee
TT
89962013-01-21 Tom Tromey <[email protected]>
8997
8998 * dwarf2read.c (new_symbol_full): Remove cast.
8999 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9000 * symtab.h (symbol_set_demangled_name): Update.
9001
5484b13a
TT
90022013-01-21 Tom Tromey <[email protected]>
9003
9004 * main.c (captured_main): Call bfd_init.
9005
1605ef26
TT
90062013-01-21 Tom Tromey <[email protected]>
9007
9008 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9009 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9010 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9011 * NEWS: Update.
9012
3b74cdc3
JK
90132013-01-21 Jan Kratochvil <[email protected]>
9014
9015 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9016
5a352474
JK
90172013-01-21 Jan Kratochvil <[email protected]>
9018
9019 Fix gdb.fortran/common-block.exp crash in PIE mode.
9020 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9021 LOC_COMMON_BLOCK.
9022 * f-valprint.c (info_common_command_for_block): Expect
9023 LOC_COMMON_BLOCK in gdb_assert.
9024 * symtab.h (struct general_symbol_info): Update comment for the
9025 common_block member.
9026 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9027 (enum address_class): New member LOC_COMMON_BLOCK.
9028
c60797fd
DB
90292013-01-18 David Blaikie <[email protected]>
9030
9031 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 9032
46f35228
TT
90332013-01-18 Tom Tromey <[email protected]>
9034
9035 PR c++/14999:
9036 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9037 Call require_rvalue.
9038
257e7a09
YQ
90392013-01-18 Yao Qi <[email protected]>
9040
9041 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9042 (dbx_read_symtab): New declaration.
9043 (dbx_psymtab_to_symtab): Delete.
9044 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9045 Rename parameter PST to SELF. Exchanged two parameters.
9046 (start_psymtab): Caller update.
9047 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9048 (dwarf2_read_symtab): New declaration.
9049 (dwarf2_psymtab_to_symtab): Delete.
9050 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9051 Rename parameter PST to SELF. Exchanged two parameters.
9052 (create_partial_symtab): Caller update.
9053 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9054 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9055 Rename parameter PST to SELF. Exchanged two parameters.
9056 (parse_partial_symbols, new_psymtab): Caller update.
9057 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9058 two parameters.
9059 * psymtab.c (psymtab_to_symtab): Caller update.
9060 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9061 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9062 Rename parameter PST to SELF. Exchanged two parameters.
9063 (xcoff_start_psymtab): Caller update.
9064
0de5618e
YQ
90652013-01-18 Yao Qi <[email protected]>
9066
9067 * infrun.c (proceed): Rename local variable 'oneproc' to
9068 'force_step'.
9069
5c04624b
DE
90702013-01-17 Doug Evans <[email protected]>
9071
848e3e78
DE
9072 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9073 (dw2_build_type_unit_groups): Delete. All uses updated.
9074
5c04624b
DE
9075 * symtab.h (struct symbol_search): Add comment.
9076
d84fca2c
JK
90772013-01-17 Jan Kratochvil <[email protected]>
9078
9079 * symtab.c (compare_filenames_for_search): New comment for
9080 HAS_DRIVE_SPEC.
9081
6108433d
TT
90822013-01-17 Tom Tromey <[email protected]>
9083
9084 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9085
c89ffd86
JK
90862013-01-17 Jan Kratochvil <[email protected]>
9087
9088 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9089 initialize it by existing make_cleanup. Call new do_cleanups.
9090
db2b2972
TT
90912013-01-17 Tom Tromey <[email protected]>
9092
9093 * cp-abi.c (cp_abi_completer): New function.
9094 (_initialize_cp_abi): Set completer for "set cp-abi".
9095
be7d37a2
TT
90962013-01-17 Tom Tromey <[email protected]>
9097
9098 * mem-break.c: Remove obsolete comment.
9099 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9100
c9fb1240
SD
91012012-01-17 Sanjoy Das <[email protected]>
9102
9103 * jit.c (jit_reader_load_command): Interpret the jit reader name
9104 as an absolute path if it begins with a forward slash.
9105
db334a01
SD
91062012-01-17 Sanjoy Das <[email protected]>
9107
9108 PR gdb/14550
9109
9110 * jit.c (finalize_symtab): Ensure that only the global block has a
9111 NULL superblock.
9112
7d928dac
PA
91132013-01-17 Pedro Alves <[email protected]>
9114
9115 * acinclude.m4: Include ../config/plugins.m4,
9116 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9117 * Makefile.in (aclocal_m4_deps): Update.
9118 * aclocal.m4: Renegerate.
9119
fb8cf7c5
DE
91202013-01-16 Doug Evans <[email protected]>
9121
9122 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9123
ab04a2af
TT
91242013-01-16 Pedro Alves <[email protected]>
9125 Tom Tromey <[email protected]>
9126
9127 PR cli/7221:
9128 * NEWS: Add "catch signal".
9129 * breakpoint.c (base_breakpoint_ops): No longer static.
9130 (bpstat_explains_signal): New function.
9131 (init_catchpoint): No longer static.
9132 (base_breakpoint_explains_signal): New function.
9133 (base_breakpoint_ops): Initialize new field.
9134 * breakpoint.h (enum bpstat_signal_value): New.
9135 (struct breakpoint_ops) <explains_signal>: New field.
9136 (bpstat_explains_signal): Remove macro, declare as function.
9137 (base_breakpoint_ops, init_catchpoint): Declare.
9138 * break-catch-sig.c: New file.
9139 * inferior.h (signal_catch_update): Declare.
9140 * infrun.c (signal_catch): New global.
9141 (handle_syscall_event): Update for change to
9142 bpstat_explains_signal.
9143 (handle_inferior_event): Likewise. Always handle random signals
9144 via bpstats.
9145 (signal_cache_update): Check signal_catch.
9146 (signal_catch_update): New function.
9147 (_initialize_infrun): Initialize signal_catch.
9148 * Makefile.in (SFILES): Add break-catch-sig.c.
9149 (COMMON_OBS): Add break-catch-sig.o.
9150
8ac3646f
TT
91512013-01-16 Tom Tromey <[email protected]>
9152
9153 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9154 (print_one_catch_solib, print_one_catch_syscall)
9155 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9156 "catch-type".
9157
5a18e302
YQ
91582013-01-16 Yao Qi <[email protected]>
9159
9160 * printcmd.c (current_display_number): Make it static.
9161
3f01d0d0
YQ
91622013-01-16 Yao Qi <[email protected]>
9163
9164 * infcmd.c (step_once): Don't check '!single_inst' as it was
9165 checked before.
9166
1ed59174
JK
91672013-01-15 Jan Kratochvil <[email protected]>
9168
9169 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9170
44478ab3
TT
91712013-01-14 Tom Tromey <[email protected]>
9172
9173 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9174 set command.
9175 * command.h (add_setshow_string_noescape_cmd): Update.
9176 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9177 (complete_set_gnutarget): New function.
9178 (_initialize_core): Set the "set gnutarget" completer.
9179
06d66ee9
TT
91802013-01-14 Tom Tromey <[email protected]>
9181
9182 PR symtab/14442:
9183 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9184 (c_type_print_modifier): Likewise.
9185 * dwarf2read.c (read_tag_restrict_type): New function.
9186 (read_type_die_1): Handle DW_TAG_restrict_type.
9187 * gdbtypes.c (make_restrict_type): New function.
9188 (recursive_dump_type): Handle TYPE_RESTRICT.
9189 * gdbtypes.h (enum type_flag_values): Renumber.
9190 (enum type_instance_flag_value): Add
9191 TYPE_INSTANCE_FLAG_RESTRICT.
9192 (TYPE_RESTRICT): New macro.
9193 (make_restrict_type): Declare.
9194
c9bf0622
TT
91952013-01-14 Tom Tromey <[email protected]>
9196
9197 PR symtab/14931:
9198 * psymtab.c (struct psymtab_state): New.
9199 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9200 functions.
9201 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9202 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9203
44d594fd
PA
92042013-01-14 Richard Sharman <[email protected]>
9205 Pedro Alves <[email protected]>
9206
9207 PR remote/14786
9208
9209 * remote.c (remote_threads_info): Make a copy of the reply from
9210 qfThreadInfo and use that instead of rs->buf.
9211
442e4d9c
YQ
92122013-01-14 Yao Qi <[email protected]>
9213
9214 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9215 (dbx_psymtab_to_symtab): Likewise.
9216 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9217 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9218 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9219
5b12a61c
JK
92202013-01-13 Jan Kratochvil <[email protected]>
9221
9222 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9223 make_cleanup_restore_current_language. Call set_language. Move
9224 OLD_CHAIN and INNER_CHAIN cleanups.
9225 * utils.c (do_restore_current_language)
9226 (make_cleanup_restore_current_language): New functions.
9227 * utils.h (make_cleanup_restore_current_language): New declaration.
9228
f0a4b570
JK
92292013-01-13 Jan Kratochvil <[email protected]>
9230
9231 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9232 non-existing files.
9233
57b3c00c
JK
9234 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9235 non-existing files if FILENAME is already absolute.
9236
daefa854
JK
92372013-01-11 Jan Kratochvil <[email protected]>
9238
9239 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9240 fputs_filtered. Append trailing newline.
9241
ca9c6ee2
YQ
92422013-01-11 Yao Qi <[email protected]>
9243 Stan Shebs <[email protected]>
9244
9245 * psymtab.c (init_psymbol_list): Clarify the comment.
9246
f28045c2
YQ
92472013-01-11 Yao Qi <[email protected]>
9248
9249 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9250 (update_dprintf_command_list): Assert that 'printf_line' is
9251 non-null. Remove condition check.
9252
da5132d3
JK
92532013-01-10 Jan Kratochvil <[email protected]>
9254
9255 Code cleanup.
9256 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9257 type const char *.
9258 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9259 const char *.
9260 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9261
843e694d
AG
92622013-01-09 Anthony Green <[email protected]>
9263
9264 * cp-abi.c (cplus_print_vtable): Don't return value from void
9265 function.
9266 * ada-lang.c (re_set_catch_assert): Ditto.
9267
da51c347
DE
92682013-01-09 Doug Evans <[email protected]>
9269
9270 * symfile.h (quick_symbol_functions): Delete member
9271 pre_expand_symtabs_matching. All uses removed.
9272 * dwarf2read.c (dw2_lookup_symbol): Implement.
9273 (dw2_do_expand_symtabs_matching): Delete.
9274 (dw2_pre_expand_symtabs_matching): Delete.
9275 (struct dw2_symtab_iterator): New type.
9276 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9277 (dw2_expand_symtabs_for_function): Rewrite.
9278 (dwarf2_gdb_index_functions): Update.
9279 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9280 (psym_functions): Update.
9281
b2259038
TT
92822013-01-09 Tom Tromey <[email protected]>
9283
9284 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9285 * configure: Rebuild.
9286 * configure.ac: Add somread.o to the build if BFD has SOM
9287 support.
9288 * somread.c: Include som/aout.h, not syms.h.
9289 (som_symtab_read): Use som_external_symbol_dictionary_record.
9290 Unpack records manually.
9291 (_initialize_somread): Declare.
9292
bdad4180
MF
92932012-01-08 Mike Frysinger <[email protected]>
9294
9295 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9296 Cast return_address to 64bits.
9297
03cdf680
HZ
92982013-01-08 Hui Zhu <[email protected]>
9299
9300 * printcmd.c: Remove define of function output_command.
9301 * tracepoint.c: Remove extern of function output_command.
9302 * valprint.h: (output_command): New extern.
9303
8a808554
TT
93042013-01-07 Tom Tromey <[email protected]>
9305
9306 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9307 Remove.
9308 (objc_language_defn): Use c_printchar, c_printstr,
9309 c_emit_char.
9310
e93a8774
TT
93112013-01-07 Tom Tromey <[email protected]>
9312
9313 PR cli/7719:
9314 * NEWS: Update.
9315 * ada-valprint.c (printstr, print_field_values): Remove
9316 "inspect_it" code.
9317 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9318 code.
9319 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9320 code.
9321 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9322 * main.c (captured_main): Remove "epoch" argument.
9323 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9324 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9325 * p-valprint.c (pascal_object_print_value_fields): Remove
9326 "inspect_it" code.
9327 * printcmd.c (print_command_1): Remove 'inspect' argument.
9328 (print_command, call_command): Update.
9329 (inspect_command): Remove.
9330 (_initialize_printcmd): Make "inspect" an alias for "print".
9331 * top.c (epoch_interface): Remove.
9332 * top.h (epoch_interface): Remove.
9333 * valprint.c (user_print_options): Update.
9334 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9335 * valprint.h (struct value_print_options) <inspect_it>: Remove
9336 field.
9337
93382013-01-04 Tom Tromey <[email protected]>
9339
9340 * valprint.h (read_string): Add 'extern'.
9341
b967eb24
JB
93422013-01-07 Joel Brobecker <[email protected]>
9343
9344 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9345 used to decide whether to define darwin_read_dyld_info or not.
9346
78a8b30e
PM
93472013-01-03 Pierre Muller <[email protected]>
9348
9349 * main.c (relocate_gdb_directory): Avoid calling stat function
9350 if DIR is empty.
9351
50da2f25
YQ
93522013-01-03 Yao Qi <[email protected]>
9353
9354 * psymtab.c (fixup_psymbol_section): Update declaration.
9355 (fixup_psymbol_section): Remove code returning value.
9356
e7e8980f
YQ
93572013-01-03 Yao Qi <[email protected]>
9358
9359 * symtab.h: Remove some out of date comments.
9360 (enum exception_event_kind): Move it ...
9361 * breakpoint.c: ... here.
9362
569283d4
MF
93632013-01-02 Iain Sandoe <[email protected]>
9364
9f9d9a96 9365 PR gdb/14405
569283d4
MF
9366 * darwin-nat.c (darwin_read_dyld_info): Only build if
9367 TASK_DYLD_INFO_COUNT is defined.
9368 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9369 TASK_DYLD_INFO_COUNT is defined.
9370
2e36fbea
TT
93712013-01-02 Tom Tromey <[email protected]>
9372
9373 * symfile.h (struct ecoff_debug_hack): Remove.
9374 * objfiles.c: Don't include mdebugread.h.
9375
4f05add4
TT
93762013-01-02 Tom Tromey <[email protected]>
9377
9378 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9379 * configure.ac: Check for Mach-O support in BFD. Update
9380 CONFIG_OBS.
9381 * configure: Rebuild.
9382
def63ff0
TT
93832013-01-02 Tom Tromey <[email protected]>
9384
9385 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9386 * configure.ac: Use GDB_AC_CHECK_BFD.
9387 * configure: Rebuild.
9388
60c5dd93
MK
93892013-01-01 Maxim Kuvyrkov <[email protected]>
9390
9391 * MAINTAINERS: Update my email.
9392
6e58437e
JB
93932013-01-01 Joel Brobecker <[email protected]>
9394
9395 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9396
627fe805
JB
93972013-01-01 Joel Brobecker <[email protected]>
9398
9399 * rs6000-nat.c (bss_data_overlap): New function.
9400 (vmap_symtab): Use it to adjust the .bss section's offset.
9401
28e7fd62
JB
94022013-01-01 Joel Brobecker <[email protected]>
9403
9404 Update year range in copyright notice of all files.
9405
e93a8774 94062013-01-01, 13 Joel Brobecker <[email protected]>
b9786c74
JB
9407
9408 * top.c (print_gdb_version): Update copyright year.
9409
72b20e9c 9410For older changes see ChangeLog-2012.
c906108c
SS
9411\f
9412Local Variables:
9413mode: change-log
9414left-margin: 8
9415fill-column: 74
9416version-control: never
57da7796 9417coding: utf-8
c906108c 9418End:
This page took 4.418882 seconds and 4 git commands to generate.