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