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