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