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