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