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