gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4 * configure: Regenerate.
5 * config.in: Regenerate.
6 * utils.c: Include sys/resource.h.
7 (dump_core, can_dump_core): New.
8 (internal_vproblem): Update the comment. Check can_dump_core while
9 setting dump_core_p. Replace two abort calls by dump_core calls.
10
11 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
12 Eli Zaretskii <eliz@gnu.org>
13
14 * NEWS: Document the PIE support.
15
16 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
17
18 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
19 (check_is_pie_binary, _initialize_linux_tdep): Remove.
20
21 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
22
23 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
24 Replace exec_entry_point call by bfd_get_start_address.
25
26 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
27
28 Support Valgrind attachments broken by the PIE support.
29 * auxv.c: Include gdbcore.h.
30 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
31 parameters ops, object and annex. Remove their assertions.
32 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
33 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
34 (memory_xfer_auxv): ... here.
35 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
36 memory_xfer_auxv.
37 * procfs.c (procfs_xfer_partial): Likewise.
38 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
39 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
40 (svr4_solib_create_inferior_hook): Conditionalize the
41 svr4_relocate_main_executable call.
42
43 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
46 target_section. Find SECT in current_target_sections, gdb_assert it.
47 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
48 New variable abfd.
49 * symtab.c (lookup_objfile_from_block): Return the binary file instead
50 of separate debug info file.
51
52 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 Support PIEs with no symfile_objfile.
55 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
56 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
57
58 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
61 code part to ...
62 (svr4_static_exec_displacement): ... a new function.
63 (svr4_exec_displacement): New function.
64 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
65 new_offsets using alloca now. Remove variable old_chain and changed.
66 Call objfile_relocate unconditionally now.
67
68 2010-01-14 Doug Evans <dje@google.com>
69
70 * gdbtypes.c (arch_flags_type): Fix comment.
71 * gdbtypes.h (arch_composite_type): Fix comment.
72
73 2009-01-14 Tristan Gingold <gingold@adacore.com>
74
75 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
76 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
77 to symbol_file_add_from_bfd. Add OSO as separate objfile.
78 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
79 macho_add_oso_symfile.
80 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
81
82 2010-01-14 Joel Brobecker <brobecker@adacore.com>
83
84 Tru64: Dead threads are never deleted.
85 * dec-thread.c (dec_thread_ptid_is_alive): New function.
86 (dec_thread_count_gdb_threads): Fix counter increment.
87 (dec_thread_add_gdb_thread): Fix *listp increment.
88 (resync_thread_list): Fix bug in deletion of dead threads that
89 caused all threads to be deleted, instead of just the dead ones.
90
91 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
92
93 PR python/10705
94
95 * python/python-internal.h: Add lazy_string_object_type
96 definition.
97 (create_lazy_string_object, gdbpy_initialize_lazy_string)
98 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
99 * python/py-value.c (valpy_lazy_string): New function.
100 (convert_value_from_python): Add lazy string conversion.
101 * python/py-prettyprint.c (pretty_print_one_value): Check if
102 return is also a lazy string.
103 (print_string_repr): Add lazy string printing branch.
104 (print_children): Likewise.
105 * python/py-lazy-string.c: New file. Implement lazy strings.
106 * python/python.c (_initialize_python): Call
107 gdbpy_initialize_lazy_string.
108 * varobj.c (value_get_print_value): Add lazy string printing
109 branch. Account for encoding.
110 * c-lang.c (c_printstr): Account for new encoding argument. If
111 encoding is NULL, find encoding suited for type, otherwise use
112 user encoding.
113 * language.h (language_defn): Add encoding argument.
114 (LA_PRINT_STRING): Likewise.
115 * language.c (unk_lang_printstr): Update to reflect new encoding
116 argument to language_defn.
117 * ada-lang.h (ada_printstr): Likewise.
118 * c-lang.h (c_printstr): Likewise.
119 * p-lang.h (pascal_printstr);
120 * f-lang.c (f_printstr): Likewise.
121 * m2-lang.c (m2_printstr): Likewise.
122 * objc-lang.c (objc_printstr): Likewise.
123 * p-lang.c (pascal_printstr): Likewise.
124 * scm-lang.c (scm_printstr): Likewise.
125 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
126 encoding argument.
127 * ada-valprint.c (ada_printstr): Likewise.
128 * f-valprint.c (f_val_print): Likewise
129 * m2-valprint.c (m2_val_print): Likewise.
130 * p-valprint.c (pascal_val_print): Likewise.
131 * expprint.c (print_subexp_standard): Likewise.
132 * valprint.c (val_print_string): Likewise.
133 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
134 (SUBDIR_PYTHON_SRCS): Likewise.
135 (py-lazy-string.o): New rule.
136
137
138 2010-01-13 Doug Evans <dje@google.com>
139
140 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
141 uninitialized" warning from gcc on local `tree'.
142
143 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
144
145 Implement core awareness.
146
147 * bcache.c (compare_ints): Remove
148 (print_percentage): Use compare_positive_ints.
149 * defs.h (compare_positive_ints): Declare.
150 * linux-nat.h (struct lin_lwp): New field core.
151 (linux_nat_core_of_thread_1): Declare.
152 * linux-nat.c (add_lwp): Init the 'core' field.
153 (linux_nat_wait_1): Record the core.
154 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
155 (linux_nat_add_target): Register the above.
156 * linux-thread-db.c (update_thread_core): New.
157 (thread_db_find_new_threads): Update core information for
158 every thread.
159 * remote.c (struct private_thread_info): New.
160 (free_private_thread_info, demand_private_info): New.
161 (PACKET_qXfer_threads, use_osdata_threads): New.
162 (struct thread_item, threads_parsing_context
163 (start_thread, end_thread, thread_attributes)
164 (thread_children, threads_children, threads_elements): New.
165 (remote_threads_info): Try qXfer:threads before anything
166 else.
167 (remote_protocol_packets): Register qXfer:threads.
168 (remote_open_1): Init use_osdata_threads.
169 (struct stop_reply): New field 'core'.
170 (remote_parse_stop_reply): Parse core number.
171 (process_stop_reply): Record core number.
172 (remote_xfer_partial): Handle qXfer:threads.
173 (remote_core_of_thread): New.
174 (init_remote_ops): Register remote_core_of_thread.
175 (_initialize_remote): Register qXfer:read.
176 * target.c (target_core_of_thread): New
177 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
178 (struct target_ops): New field to_core_of_threads.
179 (target_core_of_thread): Declare.
180 * gdbthread.h (struct thread_info): New field private_dtor.
181 * thread.c (print_thread_info): Report the core.
182 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
183 * utils.c (compare_positive_ints): New.
184 * features/threads.dtd: New.
185 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
186 * mi/mi-main.c (struct collect_cores_data, collect_cores)
187 (do_nothing, free_vector_of_osdata_items)
188 (splay_tree_int_comparator, free_splay_tree): New.
189 (print_one_inferior_data): Implemented printing of selected
190 inferiors. Collect and print cores.
191 (output_cores): New.
192 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
193 thread groups together with --available.
194
195 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
196
197 * configure: Regenerate (for _STRUCTURED_PROC).
198
199 2010-01-12 Joel Brobecker <brobecker@adacore.com>
200
201 Delete dead function.
202 * ada-lang.c (extract_string): Delete. No longer used.
203
204 2010-01-12 Joel Brobecker <brobecker@adacore.com>
205
206 Fix -Wunused warning in dec-thread.c.
207 * dec-thread.c (dec_thread_count_gdb_threads)
208 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
209
210 2010-01-12 Joel Brobecker <brobecker@adacore.com>
211
212 * ada-valprint.c (ada_print_floating): Remove trailing space.
213
214 2010-01-12 Joel Brobecker <brobecker@adacore.com>
215
216 Add support for DW_AT_GNAT_descriptive_type.
217 * gdbtypes.h (enum type_specific_kind): New enum.
218 (struct main_type) [type_specific_field]: New component.
219 [type_specific]: Add new component "gnat_stuff".
220 (struct gnat_aux_type): New type.
221 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
222 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
223 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
224 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
225 (TYPE_SPECIFIC_FIELD): New macros.
226 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
227 type does not hold any cplus-specific data.
228 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
229 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
230 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
231 cplus-specific data.
232 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
233 Set new component TYPE_SPECIFIC_FIELD (type).
234 (gnat_aux_default): New constant.
235 (allocate_gnat_aux_type): New function.
236 (init_type): Add initialization the type-specific stuff for
237 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
238 (print_gnat_stuff): New function.
239 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
240 specific data. Adjust code that prints the contents of the
241 type-specific union using the TYPE_SPECIFIC_FIELD value.
242 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
243 the type cplus stuff for Ada types.
244 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
245 Error out if these routines are called with an Ada type.
246 (read_structure_type, read_array_type, read_subrange_type):
247 Add call to set_descriptive_type.
248 (set_die_type): Initialize the gnat-specific data if necessary.
249 (need_gnat_info, die_descriptive_type, set_descriptive_type):
250 New functions.
251 * ada-lang.c (decode_constrained_packed_array_type): Use
252 decode_constrained_packed_array_type instead of doing a standard
253 lookup to locate a parallel type.
254 (find_parallel_type_by_descriptive_type): New function.
255 (ada_find_parallel_type_with_name): New function.
256 (ada_find_parallel_type): Reimplement using
257 ada_find_parallel_type_with_name.
258 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
259 to check if type has a cplus stuff.
260 * linespec.c (total_number_of_methods): Likewise.
261 * mdebugread.c (new_type): Likewise.
262
263 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
264
265 * NEWS: Document the 0b binary number prefix parsing.
266
267 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
268
269 * objfiles.c (objfile_relocate1): Change the return type to int.
270 Describe the new return value. Return non-zero if data changed.
271 (objfile_relocate): New variable changed. Set it. Call
272 breakpoint_re_set depending on CHANGED.
273
274 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 Implement binary numbers parsing.
277 * c-exp.y (parse_number): New case 'b' and 'B'.
278
279 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
280 Tristan Gingold <gingold@adacore.com>
281
282 * solib.c (info_sharedlibrary_command): Replace
283 objfile_has_partial_symbols and objfile_has_full_symbols calls by
284 objfile_has_symbols.
285
286 2010-01-10 Joel Brobecker <brobecker@adacore.com>
287
288 * NEWS: Document the improvements made to the mips-irix port.
289
290 2010-01-09 Joel Brobecker <brobecker@adacore.com>
291
292 Fix the documentation of valprint.c:value_print.
293 * valprint.c (value_print): Update the function description to
294 mention that the syntax of the output follows the current_language,
295 not necessarily C.
296
297 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
298
299 Fix displacement of separate debug info files.
300 * objfiles.c (objfile_relocate): Rename to ...
301 (objfile_relocate1): ... here and make it static. Extend the comment.
302 (objfile_relocate): New function.
303 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
304 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
305 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
306 allocated using alloca.
307 * symfile.c (copy_section_addr_info): Remove.
308 (build_section_addr_info_from_objfile): Make it global. New variables
309 addr_bit and mask, use them.
310 * symfile.h (build_section_addr_info_from_objfile): New prototype.
311 (copy_section_addr_info): Remove.
312
313 2010-01-09 Joel Brobecker <brobecker@adacore.com>
314
315 Signal unwinder for mips-irix N32.
316 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
317 tramp-frame.h.
318 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
319 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
320 (SIGCONTEXT_LO_OFF): New macros.
321 (mips_irix_n32_tramp_frame_init): New function.
322 (mips_irix_n32_tramp_frame): New static constant.
323 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
324
325 2010-01-09 Joel Brobecker <brobecker@adacore.com>
326
327 Breakpoint in shared library does not work on mips-irix.
328 * procfs.c: #include "observer.h".
329 (procfs_inferior_created): New function, moving here the code
330 which unsets the syssgi syscall-exit notifications.
331 (procfs_create_inferior): Remove the code which unsets the syssgi
332 syscall-exit notifications. It is too early to do this here.
333 (_initialize_procfs): Attach the procfs_inferior_created observer.
334
335 2010-01-09 Joel Brobecker <brobecker@adacore.com>
336
337 Wrong return convention for arrays (mips-irix).
338 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
339 128 bits or smaller are returned the same way as structs
340 and unions of the the same size.
341
342 2010-01-09 Joel Brobecker <brobecker@adacore.com>
343
344 Cannot set the PC on mips-irix.
345 * irix5-nat.c (fill_gregset): Check regno against the raw PC
346 register number, no the cooked one.
347
348 2010-01-09 Joel Brobecker <brobecker@adacore.com>
349
350 Error while loading core file on mips-irix.
351 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
352 if debugging from a core file.
353
354 2010-01-09 Joel Brobecker <brobecker@adacore.com>
355
356 GDB hangs when attaching to process on mips-irix.
357 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
358 attaching to a process.
359
360 2010-01-09 Joel Brobecker <brobecker@adacore.com>
361
362 Use the correct breakpoint instruction on mips-irix.
363 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
364 containing the correct breakpoint instruction to use on mips-irix.
365 Use it when the osabi is GDB_OSABI_IRIX.
366
367 2010-01-09 Joel Brobecker <brobecker@adacore.com>
368
369 -Wunused warning in procfs.c (mips-irix only).
370 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
371 throughout instead of using praddset and prdelset respectively.
372
373 2010-01-09 Joel Brobecker <brobecker@adacore.com>
374
375 GDB crash while stepping into function.
376 * infrun.c (handle_inferior_event): Refetch the current frame
377 after handling what.main_action, in case that pointer became
378 dangling.
379
380 2010-01-09 Joel Brobecker <brobecker@adacore.com>
381
382 Fix build failure of solaris-hosted cross debuggers.
383 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
384
385 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
386
387 Fix build failure on sparc-solaris.
388 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
389
390 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 Move some symfile code into subroutines.
393 * symfile.h (relative_addr_info_to_section_offsets)
394 (addr_info_make_relative): New prototypes.
395 * symfile.c (default_symfile_offsets): Move a part to ...
396 (relative_addr_info_to_section_offsets): ... this new function.
397 (default_symfile_offsets): Call it.
398 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
399 this part to ...
400 (addr_info_make_relative): ... this new function.
401
402 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 Add from_tty to solib_create_inferior_hook.
405 * infcmd.c (post_create_inferior): Move solib_add after
406 solib_create_inferior_hook. Pass from_tty to
407 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
408 0 from_tty and comment why.
409 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
410 * linux-nat.c (linux_child_follow_fork): Likewise.
411 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
412 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
413 from_tty.
414 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
415 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
416 * solib-null.c (null_solib_create_inferior_hook): Likewise.
417 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
418 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
419 * solib-som.c (som_solib_create_inferior_hook): Likewise.
420 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
421 Pass it to svr4_so_ops.solib_create_inferior_hook.
422 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
423 from_tty.
424 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
425 solib_add.
426 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
427 enable_break.
428 * solib-target.c (solib_target_solib_create_inferior_hook): New
429 parameter from_tty.
430 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
431 it to ops->solib_create_inferior_hook.
432 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
433 Move solib_add after solib_create_inferior_hook, call it now with
434 from_tty as 0. New comment there.
435 * solib.h (solib_create_inferior_hook): New parameter from_tty.
436 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
437 Likewise.
438
439 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
440
441 Fix multiexec race.
442 * infrun.c (handle_inferior_event): Use get_thread_regcache
443 with events ptid, not get_current_regcache.
444
445 2009-01-08 Joel Brobecker <brobecker@adacore.com>
446
447 GDB crash with empty executable name (MinGW).
448 * source.c (openp): Add assert that parameter string is not NULL.
449 if parameter string is an empty string, then return with a failure
450 immediately.
451
452 2009-01-08 Joel Brobecker <brobecker@adacore.com>
453
454 Get rid of support for VAX Floats.
455 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
456 (ada_vax_float_print_function): Delete.
457 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
458 (ada_vax_float_print_function): Delete.
459 * ada-typeprint.c (print_vax_floating_point_type): Delete.
460 (ada_print_type): Remove support for VAX floats.
461 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
462
463 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 * stabsread.c (read_args): Handle zero arguments.
466
467 2009-01-08 Joel Brobecker <brobecker@adacore.com>
468
469 Cannot find in-tree libiconv.a after reconfigure.
470 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
471 that we can use, then cache the path to this archive.
472 * configure: Regenerate.
473
474 2010-01-07 Stan Shebs <stan@codesourcery.com>
475
476 Make tracepoint operations go through target vector.
477 * target.h (enum trace_find_type): New enum.
478 (struct target_ops): New fields to_trace_init,
479 to_download_tracepoint, to_download_trace_state_variable,
480 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
481 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
482 to_set_disconnected_tracing.
483 (target_trace_init): New macro.
484 (target_download_tracepoint): New macro.
485 (target_download_trace_state_variable): New macro.
486 (target_trace_start): New macro.
487 (target_trace_set_readonly_regions): New macro.
488 (target_get_trace_status): New macro.
489 (target_trace_stop): New macro.
490 (target_trace_find): New macro.
491 (target_get_trace_state_variable_value): New macro.
492 (target_set_disconnected_tracing): New macro.
493 * target.c (update_current_target): Inherit and set defaults for
494 tracepoint operations.
495 * tracepoint.c (default_collect): Make globally visible.
496 (target_is_remote): Remove, along with all calls.
497 (tvariables_info): Call target_get_trace_state_variable_value.
498 (remote_set_transparent_ranges): Remove.
499 (trace_start_command): Call target_trace_init,
500 target_download_tracepoint, etc.
501 (download_tracepoint): Remove.
502 (trace_stop_command): Simplify.
503 (stop_tracing): Call target_trace_stop.
504 (get_trace_status): Call target_get_trace_status.
505 (trace_status_command): Add case for targets that cannot trace.
506 (finish_tfind_command): Change to take numerical arguments, call
507 target_trace_find.
508 (trace_find_command): Update call to finish_tfind_command.
509 (trace_find_pc_command): Ditto.
510 (trace_find_tracepoint_command): Ditto.
511 (trace_find_line_command): Ditto.
512 (trace_find_range_command): Ditto.
513 (trace_find_outside_command): Ditto.
514 (set_disconnected_tracing_value): Call
515 target_set_disconnected_tracing.
516 * remote.c: Add protocol encoding bits from tracepoint.c.
517 (trace_error): Move from tracepoint.c.
518 (remote_get_noisy_reply): Ditto.
519 (free_actions_list_cleanup_wrapper): Ditto.
520 (free_actions_list): Ditto.
521 (remote_trace_init): New function.
522 (remote_download_tracepoint): New function.
523 (remote_download_trace_state_variable): New function.
524 (remote_trace_set_readonly_regions): New function.
525 (remote_trace_start): New function.
526 (remote_get_trace_status): New function.
527 (remote_trace_stop): New function.
528 (remote_trace_find): New function.
529 (remote_download_trace_state_variable): New function.
530 (remote_set_disconnected_tracing): New function.
531 (init_remote_ops): Add tracepoint operations.
532
533 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
534
535 2010-01-07 Tristan Gingold <gingold@adacore.com>
536
537 * symfile.c (build_section_addr_info_from_objfile): New function.
538 (symbol_file_add_separate): Don't use offsets from objfile but
539 built an addr info.
540
541 2010-01-06 Stan Shebs <stan@codesourcery.com>
542
543 Support disconnected tracing.
544 * infcmd.c (detach_command): Ask whether to stop tracing.
545 * cli/cli-cmds.c (quit_command): Ditto.
546 * breakpoint.h (struct breakpoint): New field number_on_target.
547 * breakpoint.c (create_tracepoint_from_upload): New function.
548 (get_tracepoint_by_number_on_target): New function.
549 * remote.c (struct remote): New field disconnected_tracing.
550 (remote_disconnected_tracing_feature): New function.
551 (remote_protocol_features): Add DisconnectedTracing.
552 (struct uploaded_tp): New struct.
553 (uploaded_tps): New global.
554 (get_uploaded_tp): New function.
555 (find_matching_tracepoint): New function.
556 (remote_get_tracing_state): New function.
557 (remote_start_remote): Call it.
558 * tracepoint.c (disconnected_tracing): New global.
559 (trace_start_command): Initialize number_on_target.
560 (stop_tracing): New function, split out from...
561 (trace_stop_command): Call stop_tracing.
562 (get_trace_status): New function, split out from...
563 (trace_status_command): Call get_trace_status, add info on
564 disconnection behavior.
565 (disconnect_or_stop_tracing): New function.
566 (finish_tfind_command): Translate from number on target.
567 (trace_find_tracepoint_command): Translate to number on target.
568 (send_disconnected_tracing_value): New function.
569 (set_disconnected_tracing): New function.
570 (_initialize_tracepoint): Add disconnected-tracing variable.
571 * NEWS: Mention disconnected tracing.
572
573 2010-01-06 Tristan Gingold <gingold@adacore.com>
574
575 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
576 parameter to main_objfile. Iterate on all separate debug objfiles.
577 * symfile.h (symbol_file_add_separate)
578 (find_separate_debug_file_by_debuglink): Remove parameter names.
579 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
580 (reread_symbols): Use free_objfile_separate_debug.
581 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
582 Adjust comment.
583 (objfile_separate_debug_iterate, add_separate_debug_objfile)
584 (free_objfile_separate_debug): New prototypes.
585 * objfiles.c (objfile_separate_debug_iterate): New function.
586 (add_separate_debug_objfile, free_objfile_separate_debug): New
587 functions.
588 (free_objfile): Use free_objfile_separate_debug. Adjust for
589 multiple separate debug objfile.
590 (objfile_has_symbols): Adjust comment. Iterate on all separate
591 debug objfiles.
592 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
593 debug objfile.
594 (lookup_minimal_symbol_text): Ditto.
595 (lookup_minimal_symbol_by_pc_name): Ditto.
596 (lookup_minimal_symbol_solib_trampoline): Ditto.
597 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
598 debug objfiles.
599
600 2010-01-05 Stan Shebs <stan@codesourcery.com>
601
602 Add fast tracepoints.
603 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
604 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
605 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
606 * breakpoint.c (tracepoint_type): New function.
607 (ALL_TRACEPOINTS): Use it.
608 (should_be_inserted): Ditto.
609 (bpstat_check_location): Ditto.
610 (print_one_breakpoint_location): Ditto.
611 (user_settable_breakpoint): Ditto.
612 (set_breakpoint_location_function): Ditto.
613 (disable_breakpoints_in_shlibs): Ditto.
614 (delete_trace_command): Ditto.
615 (print_it_typical): Add bp_fast_tracepoint case.
616 (bpstat_what): Ditto.
617 (print_one_breakpoint_location): Ditto.
618 (allocate_bp_location): Ditto.
619 (mention): Ditto.
620 (breakpoint_re_set_one): Ditto.
621 (disable_command): Ditto.
622 (enable_command): Ditto.
623 (check_fast_tracepoint_sals): New function.
624 (break_command_really): Call it.
625 (ftrace_command): New function.
626 (_initialize_breakpoint): Add ftrace command.
627 * gdbarch.sh (fast_tracepoint_valid_at): New.
628 * gdbarch.h, gdbarch.c: Regenerate.
629 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
630 (i386_gdbarch_init): Use it.
631 * remote.c (struct remote_state): New field fast_tracepoints.
632 (PACKET_FastTracepoints): New packet config type.
633 (remote_fast_tracepoint_feature): New function.
634 (remote_protocol_features): Add FastTracepoints.
635 (remote_supports_fast_tracepoints): New function.
636 (_initialize_remote): Add FastTracepoints.
637 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
638 * NEWS: Mention fast tracepoints.
639
640 2010-01-06 Joel Brobecker <brobecker@adacore.com>
641
642 * gdb-gdb.py: New file.
643
644 2010-01-05 Michael Snyder <msnyder@vmware.com>
645
646 * infrun.c (handle_inferior_event): Fix typo in comment.
647
648 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
649
650 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
651
652 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
653
654 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
655 and s390x-linux64.
656 (s390-linux32-expedite): Define.
657 (s390-linux64-expedite): Define.
658 (s390x-linux64-expedite): Define.
659 * features/s390-acr.xml: New file.
660 * features/s390-fpr.xml: New file.
661 * features/s390-core32.xml: New file.
662 * features/s390-core64.xml: New file.
663 * features/s390x-core64.xml: New file.
664 * features/s390-linux32.xml: New file.
665 * features/s390-linux64.xml: New file.
666 * features/s390x-linux64.xml: New file.
667 * features/s390-linux32.c: New generated file.
668 * features/s390-linux64.c: New generated file.
669 * features/s390x-linux64.c: New generated file.
670
671 * regformats/s390-linux32.dat: New generated file.
672 * regformats/s390-linux64.dat: New generated file.
673 * regformats/s390x-linux64.dat: New generated file.
674 * regformats/reg-s390.dat: Remove.
675 * regformats/reg-s390x.dat: Remove.
676
677 * s390-nat.c: Include "auxv.h" and <elf.h>.
678 (HWCAP_S390_HIGH_GPRS): Define if undefined.
679 (s390_target_wordsize): New function.
680 (s390_auxv_parse): Likewise.
681 (s390_get_hwcap): Likewise.
682 (s390_read_description): Likewise.
683 (_initialize_s390_nat): Install s390_auxv_parse and
684 s390_read_description.
685
686 * s390-tdep.c: Include "features/s390-linux32.c",
687 "features/s390-linux64.c", and "features/s390x-linux64.c".
688 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
689 (s390_register_call_saved): New function.
690 (s390_register_name): Remove.
691 (s390_register_type): Remove.
692 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
693 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
694 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
695 (s390_pseudo_register_name): New function.
696 (s390_pseudo_register_type): New function.
697 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
698 Handle full GPR pesudos and varying pseudo register numbers.
699 (s390_pseudo_register_write): Likewise
700 (s390x_pseudo_register_read): Remove.
701 (s390x_pseudo_register_write): Likewise.
702 (s390_register_group): Remove.
703 (s390_pseudo_register_group): New function.
704 (s390_regmap_gregset): Add GPR upper halves.
705 (s390x_regmap_gregset): Likewise.
706 (s390_regmap_fpregset): Likewise.
707 (s390_regmap_upper): New global variable.
708 (s390_upper_regset): New global variable.
709 (s390_upper_regset_sections): New global variable.
710 (s390_regset_from_core_section): Handle GPR upper halves.
711 (s390_core_read_description): New function.
712 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
713 register information. Handle varying pseudo register numbers.
714 (s390_backchain_frame_unwind_cache): Likewise.
715 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
716 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
717 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
718 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
719 Handle varying pseudo register numbers.
720 (s390_unwind_pc): Handle varying pseudo register numbers.
721 (s390_dwarf2_prev_register): New function.
722 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
723 register information. Handle varying pseudo register numbers.
724 Install s390_dwarf2_prev_register to unwind full GPRs.
725 (s390_gdbarch_init): Handle target descriptions. Assign varying
726 pseudo register numbers. Install s390_adjust_frame_regnum.
727 (_initialize_s390_tdep): Initialize target descriptions.
728
729 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
730 (S390_NUM_REGS): Redefine to include upper half registers.
731 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
732 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
733 (tdesc_s390_linux32): Add declaration.
734 (tdesc_s390_linux64): Likewise.
735 (tdesc_s390x_linux64): Likewise.
736
737 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
738
739 * regset.h (struct core_regset_section): Add HUMAN_NAME.
740 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
741 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
742 (ppc_linux_vmx_regset_sections): Likewise.
743 (ppc_linux_fp_regset_sections): Likewise.
744
745 * corelow.c (get_core_register_section): Constify arguments.
746 (get_core_registers): Use gdbarch_core_regset_sections instead
747 of hard-coded platform-specific register section names.
748
749 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
750
751 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
752 a register, assume the least-significant part is used.
753 (write_pieced_value): Likewise.
754
755 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
756
757 * printcmd.c: Include "arch-utils.h".
758 (do_one_display): Re-parse expression if current architecture changed.
759
760 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
761 Joel Brobecker <brobecker@adacore.com>
762
763 * gdbtypes.c (check_typedef): New comment on type length.
764 * value.c (allocate_value_lazy): Remove the unused atype variable. New
765 comment on type length.
766 (value_primitive_field): Keep the original TYPE value, new comment.
767
768 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
771 p_start. Change != comparisons to > and < comparisons.
772
773 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
774
775 * cli/cli-script.c (process_next_line): Check P2 overrun.
776
777 2009-01-01 Joel Brobecker <brobecker@adacore.com>
778
779 Update the copyright hearder to add year 2010 for most GDB files.
780
781 2009-01-01 Joel Brobecker <brobecker@adacore.com>
782
783 Fix build failure in inf-ptrace.c.
784 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
785
786 2010-01-01 Joel Brobecker <brobecker@adacore.com>
787
788 * top.c (print_gdb_version): Update copyright year.
789
790 2010-01-01 Joel Brobecker <brobecker@adacore.com>
791
792 Fix break *FUN'address thread NUM.
793 * ada-lex.l (task): Expand rule to also match the thread keyword.
794
795 2010-01-01 Joel Brobecker <brobecker@adacore.com>
796
797 Fix break *FUN'address task NUM.
798 * ada-lex.l (task): New rule.
799 * ada-lang.c (valid_task_id): Make sure the Ada task list has
800 been built before using it.
801
802 For older changes see ChangeLog-2009.
803 \f
804 Local Variables:
805 mode: change-log
806 left-margin: 8
807 fill-column: 74
808 version-control: never
809 coding: utf-8
810 End: