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