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