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