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