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