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