* ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2008-02-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2
3         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4         float in both first and second word in the doubleword, to support
5         old and new ABIs.
6
7 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
8
9         Properly rethrow exception.  This fixes errors
10         about non-existent functions for -break-insert.
11         * breakpoint.c (break_command_really): Use throw_exception
12         for rethrowing.  If rethrowing, don't print the exception.
13
14 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
15
16         * NEWS: Mention Decimal Floating Point support.
17
18 2008-01-31  Joel Brobecker  <brobecker@adacore.com>
19
20         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
21         value type to builtin_type_void_func_ptr.
22
23 2008-01-31  Andreas Krebbel  <krebbel1@de.ibm.com>
24
25         * s390-tdep.c (is_float_singleton, is_float_like,
26         alignment_of, s390_return_value): Make checks for
27         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
28
29 2008-01-31  Luis Machado  <luisgpm@br.ibm.com>
30             Thiago Jung Bauermann  <bauerman@br.ibm.com>
31
32         * infcmd.c (default_print_registers_info): Also print hex
33         raw contents for TYPE_CODE_DECFLOAT registers.
34         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
35         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
36         (rs6000_register_name): Add support for DFP pseudo-registers.
37         (rs6000_pseudo_register_type): Likewise.
38         rs6000_pseudo_register_reggroup_p): Likewise.
39         (ppc_pseudo_register_read): New function.
40         (ppc_pseudo_register_write): Likewise.
41         (rs6000_pseudo_register_read): Likewise.
42         (rs6000_pseudo_register_write): Likewise.
43         (e500_pseudo_register_read): Move checks to
44         rs6000_pseudo_register_read.
45         (e500_pseudo_register_write): Move checks to
46         rs6000_pseudo_register_write.
47         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
48         rs6000_pseudo_register_read and rs6000_pseudo_register_write
49         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
50         num_pseudo_regs to account for DFP pseudo regs.
51
52 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
53
54         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
55         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
56         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
57         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
58         e500_pseudo_register_read, e500_pseudo_register_write): Use
59         IS_SPE_PSEUDOREG macro.
60         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
61         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
62         Remove initialization of tdep->ppc_ev31_regnum.
63
64 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
65
66         * printcmd.c (print_formatted): Handle references as for unformatted
67         prints.
68
69 2008-01-30  Joel Brobecker  <brobecker@adacore.com>
70
71         * eval.c (evaluate_subexp_standard): Add handling of user
72         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
73
74 2008-01-30  Pierre Muller  <muller@ics.u-strasbg.fr>
75
76         * eval.c (evaluate_subexp_standard): Support
77         BINOP_INTDIV opcode.
78
79 2008-01-30  Paul N. Hilfinger  <hilfinger@adacore.com>
80
81         * valarith.c (value_binop): Add floating-point BINOP_MIN and
82         BINOP_MAX cases.
83         For BINOP_EXP, use length and signedness of left operand only for
84         result, as for shifts.
85         For integral operands to BINOP_EXP, use new integer_pow and
86         uinteger_pow functions so as to get full range of results.
87         (integer_pow): New function.
88         (uinteger_pow): New function.
89
90 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
91
92         Use vector for varobj_list_children interface.
93         * gdb/varobj.c (varobj_list_children): Return vector
94         of varobjs.
95         * gdb/varobj.h (varobj_list_children): Adjust
96         prototype.
97         (varobj_p): Declare.  Declare vector thereof.
98         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
99         for varobj_list_children change.
100         * Makefile.in (varobj_h): Update dependencies.
101
102 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
103
104         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
105         TYPE_CODE_DECFLOAT arguments.
106         (ppc64_sysv_abi_push_dummy_call) Likewise.
107         (get_decimal_float_return_value): New function.
108         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
109         values by calling get_decimal_float_return_value.
110         (ppc64_sysv_abi_return_value): Likewise.
111
112 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
113
114         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
115         for preprocessor macro information.  Formatting changes.
116
117 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
118
119         * remote.c (struct remote_state): Add cached_wait_status.
120         (remote_exec_file): New variable.
121         (PACKET_vAttach, PACKET_vRun): New constants.
122         (extended_remote_restart): Do not query for status.
123         (struct start_remote_args): New.
124         (remote_start_remote): Take it as a second argument.  Check
125         whether the target is running.  Issue an error for non-running
126         non-extended targets.  Cache the wait status.  Set inferior_ptid
127         here.
128         (remote_open_1): Prompt to disconnect non-running targets.  Make
129         sure the target is marked running.  Do not set inferior_ptid here.
130         Update call to remote_start_remote.  Do not call remote_check_symbols
131         if the target is not running.
132         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
133         argument.  Handle a non-running target.
134         (remote_detach): Use it.
135         (extended_remote_detach): New.
136         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
137         (extended_remote_attach_1, extended_remote_attach)
138         (extended_async_remote_attach): New.
139         (remote_vcont_resume): Remove unused variable.
140         (remote_wait, remote_async_wait): Use any cached wait status.
141         (putpkt_binary, getpkt): Clear any cached wait status.
142         (extended_remoute_mourn_1): New.
143         (extended_remote_mourn): Use it.
144         (extended_async_remote_mourn, extended_remote_run): New.
145         (extended_remote_create_inferior_1): New.
146         (extended_remote_create_inferior): Use it.
147         (extended_remote_async_create_inferior): Likewise.
148         (remote_xfer_partial): Skip for non-executing targets.
149         (init_extended_remote_ops): Set to_detach and to_attach.
150         (init_extended_async_remote_ops): Likewise.  Use
151         extended_async_remote_mourn.
152         (_initialize_remote): Register vAttach, vRun, and
153         set remote exec-file.
154         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
155
156 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
157
158         * Makefile.in (symfile.o): Update.
159         * NEWS: Mention exec tracing support.
160         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
161         exec events.
162         * infcmd.c (kill_if_already_running, detach_command)
163         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
164         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
165         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
166         targets.  Apply the sysroot path to the loaded executable.  Use
167         no_shared_libraries.
168         * linux-nat.c (linux_child_follow_fork): Print fork following
169         messages if verbose.
170         (kill_wait_callback): Kill again before waiting a second time.
171         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
172         no_shared_libraries.
173
174 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
175
176         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
177
178 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
179
180         * nto-tdep.h: Remove #include "defs.h".
181         * nto-tdep.c: Add #include "defs.h".
182         * Makefile.in (nto_tdep_h): Update dependencies.
183         (nto-tdep.o): Likewise.
184
185 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
186
187         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
188         and use it.
189         (proceed, start_remote): Update call to wait_for_inferior.
190         * inferior.h (wait_for_inferior): Update declaration.
191         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
192         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
193         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
194         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
195
196 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
197
198         * varobj (adjust_value_for_child_access): Added checking for 
199         returned value from gdb_value_ind.
200         (c_describe_child): Likewise.
201         (cplus_describe_child): Fixed a typo.
202
203 2008-01-29  Jim Blandy  <jimb@red-bean.com>
204
205         * MAINTAINERS: Update my info.
206
207 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
208
209         Use multiple locations for hardware watchpoints.
210         This eliminates the need to traverse value chain, doing
211         various checks, in three different places.
212
213         * breakpoint.h (struct bp_location): New fields
214         lengths and watchpoint_type.
215         (struct breakpoint): Remove the val_chain field.
216         * breakpoint.c (is_hardware_watchpoint): New.
217         (free_valchain): Remove.
218         (update_watchpoint): New.
219         (insert_bp_location): For hardware watchpoint, just
220         directly insert it.
221         (insert_breakpoints): Call update_watchpoint_locations
222         on all watchpoints.  If we have failed to insert
223         any location of a hardware watchpoint, remove all inserted
224         locations.
225         (remove_breakpoint): For hardware watchpoints, directly
226         remove location.
227         (watchpoints_triggered): Iterate over locations.
228         (bpstat_stop_status): Use only first location of
229         a resource watchpoint.
230         (delete_breakpoint): Don't call free_valchain.
231         (print_one_breakpoint): Don't print all
232         locations for watchpoints.
233         (breakpoint_re_set_one): Use update_watchpoint for
234         watchpoints.
235
236 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
237
238         Don't reset watchpoint block on solib load.
239
240         * breakpoint.c (insert_bp_location): For watchpoints,
241         recompute condition.
242         (breakpoint_re_set_one): Instead of recomputing value
243         and condition for watchpoints, just reset value and
244         let insert_breakpoints/insert_bp_location recompute it.
245         Don't do anything about disabled watchpoint.
246
247 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
248
249         * valarith.c (value_binop): Handle unsigned integer
250         division by zero.
251
252 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
253
254         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
255         instruction pattern that appears frequently in position
256         independent code.  Fix bug in code which looks for "fmov" and
257         backtracks if no "fmov" is found.
258
259 2008-01-28  Doug Evans  <dje@google.com>
260
261         * dbxread.c (read_dbx_symtab): Fix indentation.
262         Reformat comments to 80 columns.
263         Move local var def closer to only use.
264
265 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
266
267         * fork-child.c (SHELL_FILE): Remove #ifndef.
268         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
269
270 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
271
272         * i386-tdep.c (i386_skip_noop): New function.
273         (i386_analyze_prologue): Call i386_skip_noop function.
274
275 2008-01-24  Michael Snyder  <msnyder@specifix.com>
276
277         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
278         * win32-nat.c (win32_xfer_partial): Ditto.
279         * target.c (default_xfer_partial): Minor whitespace adjustment.
280
281 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
282
283         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
284         strip bit 1 even if pc doesn't point to thumb code.
285
286 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
287
288         * remote.c (remote_wait): Handle SIGINT between packets.
289         (remote_async_wait): Likewise.
290
291 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
292             Chris Demetriou  <cgd@google.com>
293
294         * thread.c (add_thread_silent): Renamed
295         from add_thread.
296         (print_thread_events): New variable definition.
297         (show_print_thread_events): New function.
298         (_initialize_thread): Add "set print thread-events" and
299         "show print thread-events" commands.
300         (add_thread): Announce new thread.
301         * gdbthread.h (add_thread_silent): Declare.
302         (print_thread_events): New variable declaration.
303         * inf-ttrace.c (inf_ttrace_wait): Don't
304         inform about new thread, as add_thread is always
305         called too, and will take care of that.
306         * infrun.c (handle_inferior_event): Likewise.
307         * procfs.c (procfs_wait): Likewise.
308         * remote.c (remote_currthread): Likewise.
309         * sol-thread.c (sol_thread_wait): Likewise.
310         * win32-nat.c (get_win32_debug_event): Likewise.
311         * linux-thread-db.c (attach_thread): Likewise.
312         Remove the verbose parameter.
313         (check_event): Make detach_thread be verbose
314         only if print_thread_events is set.
315         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
316         about new thread.  This is called only from
317         linux-thread-db.c:attach_thread, which will take care.
318         Remove the verbose parameter.
319         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
320
321 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
322
323         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
324
325 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
326
327         * breakpoint.c (break_command_really): New parameter
328         ignore_count.
329         (break_command_1): Pass 0 as
330         ignore_count to break_command_really.
331         (gdb_breakpoint): Pass ignore_count to
332         break_command_really.
333
334 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
335
336         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
337         sigcontext struct via pointer.
338         (struct sigframe comment): Update to show new field `psc'.
339
340 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
341
342         * infrun.c (handle_inferior_event): If
343         we failed to remove breakpoints, error,
344         don't try to increment PC by hand.
345
346 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
347
348         Add NetBSD/hppa target and host support.
349
350         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
351         (hppabsd_gregset): Move to ...
352         (hppabsd_regset_from_core_section): Rename
353         hppaobsd_regset_from_core_section and move to ...
354         (hppabsd_find_global_pointer): Update comment.
355         (hppabsd_init_abi): Make global. Do not register
356         hppabsd_regset_from_core_section.
357         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
358         move to ...
359         (_initialize_hppabsd_tdep): Move to ...
360         * hppaobsd-tdep.c: ... here. New file.
361         * hppnbsd-tdep.c: New file.
362         * hppnbsd-nat.c: New file.
363         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
364         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
365         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
366         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
367         * configure.host (hppa*-*-netbsd*): New entry.
368         * configure.tgt (hppa*-*-netbsd*): New entry.
369         (hppa*-*-openbsd*): Update.
370         * NEWS (New native configuration): Mention NetBSD/hppa.
371         (New targets): Mention NetBSD/hppa.
372
373 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
374
375         * gdbarch.sh (function_list): Add new property bits_big_endian to
376         gdbarch structure.
377         * gdbarch.{c,h}: Regenerate.
378
379         * value.c (struct value): Replace BITS_BIG_ENDIAN by
380         gdbarch_bits_big_endian (comment).
381         (unpack_field_as_long, modify_field): Likewise.
382         * value.h: Likewise (comment).
383         * valops.c (value_slice): Likewise.
384         * valarith.c (value_subscript, value_bit_index): Likewise.
385         * gdbtypes.h (field): Likewise (comment).
386         * eval.c (evaluate_subexp_standard): Likewise.
387         * dwarf2read.c (dwarf2_add_field): Likewise.
388         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
389         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
390         
391         * defs.h (BITS_BIG_ENDIAN): Remove.
392
393 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
394
395         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
396         function calls.
397         * m2-exp.y (yylex): Likewise.
398         * objc-exp.y (yylex): Likewise.
399
400         * defs.h (DEPRECATED_STREQN): Remove.
401
402 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
403
404         * MAINTAINERS: Update my email address.
405
406 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
407
408         * README: Mention gdbserver/README.
409
410 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
411
412         * valarith.c (value_binop): Handle BINOP_INTDIV
413         for unsigned and signed integers.
414
415 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
416
417         * s390-tdep.c (s390_gdbarch_init): Set default long double
418         type to 128-bit IEEE quad.
419
420 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
421
422         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
423
424 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
425
426         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
427
428         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
429         * value.c: All callers changed.
430
431 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
432
433         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
434         DEPRECATED_STREQ by its expression.
435         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
436         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
437         (scan_xcoff_symtab): Likewise.
438         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
439         * f-lang.c (find_common_for_function): Likewise.
440         * objc-exp.y (parse_number): Likewise.
441
442         * defs.h (DEPRECATED_STREQ): Remove.
443
444 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
445
446         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
447         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
448         get_frame_arch to get at the current_architecture. Update AM33_MODE
449         call.
450         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
451         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
452         architecture.
453         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
454
455 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
456
457         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
458         parameter.
459         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
460
461         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
462         current_gdbarch by gdbarch. Update caller.
463
464         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
465         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
466         the current architecture. Update calls of
467         amd64_native_gregset_supplies_p.
468         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
469         (amd64bsd_store_inferior_registers): Likewise.
470
471 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
472
473         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
474         Replace current_gdbarch by gdbarch. Update caller.
475
476 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
477
478         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
479         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
480         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
481         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
482         (stabsect_build_psymtabs): Fix indentation.
483
484 2008-01-15  Michael Snyder  <msnyder@specifix.com>
485
486         * corelow.c (core_xfer_partial): Comment, cut/paste error.
487
488 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
489
490         * win32-nat.c (win32_create_inferior): Restore code calling
491         CloseHandle on ProcessInformation structure.
492
493 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
494
495         * configure.ac: Check for void * as 3 argument of ptrace.
496         * configure: regenerate.
497
498 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
499
500         * alpha-tdep.c (alpha_heuristic_proc_start)
501         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
502         current_gdbarch by gdbarch.
503
504         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
505         current architecture by frame_info. Update alpha_heuristic_proc_start 
506         call.
507
508         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
509         get_frame_arch to get at the current architecture by frame_info. Update
510         alpha_sigtramp_register_address call.
511
512         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
513         current_gdbarch by gdbarch. Update caller.
514         (convert_to_extended, convert_from_extended): Add endianess parameter
515         for comparison. Update caller.
516         (arm_extract_return_value, arm_store_return_value): Use
517         get_regcache_arch to get at the current architecture.
518
519         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
520         current_gdbarch by gdbarch. Update caller.
521         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
522         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
523
524         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
525         gdbarch as parameter. Update caller.    
526         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
527         current_gdbarch by gdbarch. Update caller.
528
529         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
530         update caller. Replace current_gdbarch by gdbarch.
531
532         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
533         the current architecture. Replace current_gdbarch by gdbarch.
534         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
535         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
536         expression. Add gdbarch as parameter and replace current_gdbarch with
537         it. Update caller.
538         (M6811_TDEP): Remove.
539         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
540         architecture.
541         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
542         current_gdbarch by gdbarch. Update caller.
543
544         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
545         update caller.
546         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
547         by gdbarch.
548
549         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
550         caller. Relace current_gdbarch by gdbarch.
551         (altivec_register_p, spe_register_p): Likewise.
552         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
553         parameter.
554         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
555         altivec_register_p and spe_register_p.
556
557         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
558         caller. Replace current_gdbarch by gdbarch.
559         (score_analyze_prologue): use get_frame_arch to get at the current
560         architecture.   
561
562         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
563         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
564         current_gdbarch by gdbarch. Update caller.
565         (sparc_frame_cache): Use get_frame_arch to get at the current
566         architecture.
567         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
568         sparc_analyze_prologue.
569
570         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
571         parameter.
572
573 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
574
575         * exec.c: #include "arch-utils.h"
576          (print_section_info): Use gdbarch_from_bfd to get at the
577         current architecture. Replace current_gdbarch. Fix indention. Replace
578         deprecated_print_address_numeric by paddress.
579         * Makefile.in (exec.o) Add dependency to arch-utils.h.
580
581         * valprint.c (val_print_string): Replace 
582         deprecated_print_address_numeric.
583         * tracepoint.c (trace_mention, scope_info): Likewise.
584         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
585         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
586         (maintenance_check_symtabs): Likewise.
587         * symfile.c (list_overlays_command): Likewise.
588         * stack.c (frame_info, print_block_frame_labels): Likewise.
589         * printcmd.c (print_address, print_address_demangle)
590         (address_info): Likewise.
591         * corefile.c (memory_error): Likewise.
592         * infcmd.c (jump_command): Likewise.
593         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
594         (mention, delete_breakpoint): Likewise.
595         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
596         * dwarf2read.c (dump_die): Likewise.
597         * ada-valprint.c (ada_val_print_1): Likewise.
598         * f-valprint.c (f_val_print): Likewise.
599         * linux-fork.c (info_forks_command): Likewise.  
600         * m32r-com.c (m32r_load_section, m32r_load)
601         (m32r_upload_command): Likewise.
602
603         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
604
605 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
606
607         * gdbarch.sh (skip_prologue): Add gdbarch
608         as parameter.
609         * gdbarch.{c,h}: Regenerate.
610
611         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
612         * amd64-tdep.c (amd64_skip_prologue): Likewise.
613         * avr-tdep.c (avr_skip_prologue): Likewise.
614         * cris-tdep.c (cris_skip_prologue): Likewise.
615         * frv-tdep.c (frv_skip_prologue): Likewise.
616         * h8300-tdep.c (h8300_skip_prologue): Likewise.
617         * hppa-tdep.c (hppa_skip_prologue): Likewise.
618         * i386-tdep.c (i386_skip_prologue): Likewise.
619         * ia64-tdep.c (ia64_skip_prologue): Likewise.
620         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
621         * m32r-tdep.c (m32r_skip_prologue): Likewise.
622         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
623         * m68k-tdep.c (m68k_skip_prologue): Likewise.
624         * m88k-tdep.c (m88k_skip_prologue): Likewise.
625         * mep-tdep.c (mep_skip_prologue): Likewise.
626         * mips-tdep.c (mips_skip_prologue): Likewise.
627         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
628         * mt-tdep.c (mt_skip_prologue): Likewise.
629         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
630         * score-tdep.c (score_skip_prologue): Likewise.
631         * sh64-tdep.c (sh64_skip_prologue): Likewise.
632         * sh-tdep.c (sh_skip_prologue): Likewise.
633         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
634         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
635         * spu-tdep.c (spu_skip_prologue): Likewise.
636         * v850-tdep.c (v850_skip_prologue): Likewise.
637         * vax-tdep.c (vax_skip_prologue): Likewise.
638         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
639         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
640
641         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
642         current_gdbarch by gdbarch.
643         * m32c-tdep.c (m32c_skip_prologue): Likewise.
644         * s390-tdep.c (s390_skip_prologue): Likewise.
645
646 2008-01-10  Doug Evans  <dje@google.com>
647
648         * defs.h (struct continuation_arg): Fix typo in comment.
649         * target.c (target_translate_tls_address): Fix comment spelling error.
650
651 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
652
653         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
654         (DOUBLEST_SCAN_FORMAT): Likewise.
655         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
656         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
657         * c-exp.y (parse_number): Likewise.
658         * jv-exp.y (parse_number): Likewise.
659         * objc-exp.y (parse_number): Likewise.
660         * p-exp.y (parse_number): Likewise.
661
662 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
663
664         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
665         (check_typedef): Likewise.
666
667 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
668
669         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
670         seen_double_big_d, treat the new H, D, and DD modifiers as length
671         modifiers.
672
673 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
674
675         * dwarf2read.c (read_enumeration_type): Add comment.
676
677 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
678
679         * config.in: Regenerate.
680
681 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
682
683         * ada-lang.c (ada_convert_actual): Renames convert_actual.
684         Make non-static.
685         (ada_convert_actuals): Delete.
686         * ada-lang.h (ada_convert_actual): Add declaration.
687         (ada_convert_actuals): Remove declaration.
688         * infcall.c: #include "ada-lang.h".
689         (value_arg_coerce): Add new parameter sp.  Update function
690         documetnation.  Add handling of Ada function call parameters.
691         * Makefile.in (infcall.o): Update dependencies.
692
693 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
694
695         * ada-lang.c (ensure_lval): Fix value lval kind.
696         (convert_actual): Add handling for arguments passed by reference.
697
698 2008-01-08  Doug Evans  <dje@google.com>
699
700         * dbxread.c (read_dbx_symtab): Fix indentation.
701
702 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
703
704         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
705         (valarith.o): Depend on dfp.h.
706         (valops.o): Likewise.
707         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
708         (set_decnumber_context): New function.
709         (decimal_check_errors): Likewise.
710         (decimal_from_number): Likewise.
711         (decimal_to_number): Likewise.
712         (decimal_from_string): Use set_decnumber_context and
713         decimal_check_errors.
714         (decimal_from_integral): New function.
715         (decimal_from_floating): Likewise.
716         (decimal_to_double): Likewise.
717         (promote_decimal): Likewise.
718         (decimal_binop): Likewise.
719         (decimal_is_zero): Likewise.
720         (decimal_compare): Likewise.
721         (decimal_convert): Likewise.
722         * dfp.h (decimal_from_integral): New prototype.
723         (decimal_from_floating): Likewise.
724         (decimal_to_double): Likewise.
725         (decimal_binop): Likewise.
726         (decimal_is_zero): Likewise.
727         (decimal_compare): Likewise.
728         (decimal_convert): Likewise.
729         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
730         call to value_from_decfloat.
731         * valarith.c: Include dfp.h.
732         (value_args_as_decimal): New function.
733         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
734         (value_logical_not): Likewise.
735         (value_equal): Likewise.
736         (value_less): Likewise.
737         (value_pos): Likewise.
738         (value_neg): Formatting fix.
739         * valops.c: Include dfp.h.
740         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
741         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
742         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
743         (value_from_decfloat): Remove expect_type argument.
744         * value.h (value_from_decfloat): Update prototype.
745
746 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
747
748         Ignore change in name of dynamic linker during
749         execution on Solaris.  This also unbreaks pending breakpoints.
750
751         * solist.h (struct target_so_ops): New field same.
752         * solib-svr4.c (svr4_same): New.
753         (_initialize_svr4_solib): Register svr4_same.
754         * solib.c (update_solib_list): Use ops->same, if available.
755
756 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
757
758         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
759         when using MS-DOS paths.
760
761 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
762
763         * NEWS: Mention --pid and --core command line behaviour changes.
764
765 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
766
767         * main.c (captured_main): Remove 'count' varible and the
768         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
769         --pid options were issued simultaneously.  If an explicit pid
770         option was passed, don't fallback to core file.  Detect extra
771         arguments better in the presence of explicit pid or core
772         arguments.
773
774 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
775
776         * ada-lang.c (ada_which_variant_applies): Correctly compute
777         the value of the discriminant when the variant record is packed.
778
779 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
780
781         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
782         that are used to differentiate homonyms.
783
784 2008-01-04  Jerome Guitton  <guitton@adacore.com>
785
786         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
787         when the type is an anonymous pointer type.
788         (ada_check_typedef): Avoid a seg fault when the type is null.
789         * ada-typeprint.c (print_array_type): Add support for pointer
790         to packed arrays.
791
792 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
793
794         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
795
796 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
797
798         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
799         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
800
801 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
802
803         * ada-exp.y (chop_separator): New function.
804         (write_selectors): Rewrite to re-use chop_separator.
805         (ada_nget_field_index, get_symbol_field_type): New functions.
806         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
807         expressions.
808
809 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
810
811         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
812         of SYMBOL_VALUE when working with function symbols.
813
814 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
815
816         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
817         expressions.  These expressions do not need to be rewriten.
818
819 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
820
821         * dwarf2read.c (read_enumeration_type): Flag type as stub if
822         the given die is a declaration.
823
824 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
825
826         * ada-lang.c (ada_array_bound_from_type): Make non-static.
827         Handle properly the case when the index type is an enumerated type.
828         Do not return the subtype of the bounds type, just return the
829         bounds type directly - this is not needed and is more consistent
830         with what we do for arrays when no XA parallel type exists.
831
832 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
833
834         * ada-lang.c (static_unwrap_type): Add forward declaration.
835         (template_to_static_fixed_type): Fields of dynamic types sometimes
836         also need to be unwrapped. Take this into account.
837         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
838         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
839         * ada-typeprint.c (ada_print_type): Get the typename from
840         the original type, not the base type. 
841
842 2008-01-03  Jerome Guitton  <guitton@adacore.com>
843
844         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
845         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): 
846         Update calls to ada_to_fixed_type.
847         (ada_template_to_fixed_record_type_1): Ditto, but without looking
848         for the tag.
849         (ada_to_fixed_type): Add check_tag parameter; do not look for
850         tag if null.  When looking for a tag, use a fixed record type.
851         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
852         * ada-valprint.c (printable_val_type, ada_value_print): Update
853         calls to ada_to_fixed_type.
854
855 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
856
857         * doublest.c (convert_floatformat_to_doublest): Call 
858         floatformat_to_doublest instead of floatformat_to_double and use
859         DOUBLEST variables.
860         (convert_doublest_to_floatformat): Call floatformat_from_doublest
861         instead of floatformat_from_double and use DOUBLEST variables.
862
863 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
864
865         * MAINTAINERS (Write After Approval): Add self.
866
867 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
868
869         * symfile.c (set_initial_language): Make non-static.
870         * symfile.h (set_initial_language): Add declaration.
871         * language.c: #include "symfile.h".
872         (set_language): Call set_initial_language if the frame language
873         could not be determined.
874
875 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
876
877         * eval.c (evaluate_subexp_for_address): Provide frame address to
878         locate_var_value only if it will be needed.
879
880 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
881
882         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
883
884 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
885
886         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
887         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
888         This is needed to make sure that any other treatment applied
889         to the resulting value does not fail for spurious reason,
890         such as trying to take the address of this value.
891
892 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
893
894         * ada-lang.c (ada_value_equal): Dereference reference types when
895         comparing arrays.
896  
897 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
898
899         Updated copyright notices for most files.
900
901 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
902
903         * win32-nat.c (psapi_module_handle): Remove static.
904         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
905         return first module found if base_address is zero.  Don't initialize
906         psapi function pointers here.  Convert to cygwin paths when
907         appropriate.
908         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
909         executable name.  Use get_module_name when that fails or when
910         !__CYGWIN__.
911         (_initialize_psapi): New function.  Initialize psapi stuff before it is
912         needed or issue a warning if it is not found.  Move psapi_module_handle
913         here.
914
915 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
916
917         * ada-lang.c (ada_remove_trailing_digits): New function.
918         (ada_remove_po_subprogram_suffix): New function.
919         (ada_decode): Improve. Move the description of the algorithm
920         directly inside the code, instead of in the function global
921         description.
922
923 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
924
925         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
926         and always print the dereferenced value.
927
928 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
929
930         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
931         of the case where the first argument is a reference.
932         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
933
934 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
935
936         Implement support for Ada interface types.
937
938         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
939         (ada_is_ignored_field): Ignore fields that are a dispatch table
940         of a tagged type.
941
942 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
943
944         * top.c (print_gdb_version): Update copyright year.
945
946 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
947
948         * ChangeLog-2007: New ChangeLog rotation.
949         * ChangeLog: Reset for 2008.
950         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
951         ChangeLog-2007.
952
953 For older changes see ChangeLog-2007.
954 \f
955 Local Variables:
956 mode: change-log
957 left-margin: 8
958 fill-column: 74
959 version-control: never
960 coding: utf-8
961 End: