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