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