* amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
[external/binutils.git] / gdb / ChangeLog
1 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
2
3         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
4         parameter.
5         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6
7         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8         current_gdbarch by gdbarch. Update caller.
9
10         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
11         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
12         the current architecture. Update calls of
13         amd64_native_gregset_supplies_p.
14         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
15         (amd64bsd_store_inferior_registers): Likewise.
16
17 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
18
19         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
20         Replace current_gdbarch by gdbarch. Update caller.
21
22 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
23
24         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
25         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
26         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
27         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
28         (stabsect_build_psymtabs): Fix indentation.
29
30 2008-01-15  Michael Snyder  <msnyder@specifix.com>
31
32         * corelow.c (core_xfer_partial): Comment, cut/paste error.
33
34 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
35
36         * win32-nat.c (win32_create_inferior): Restore code calling
37         CloseHandle on ProcessInformation structure.
38
39 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
40
41         * configure.ac: Check for void * as 3 argument of ptrace.
42         * configure: regenerate.
43
44 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
45
46         * alpha-tdep.c (alpha_heuristic_proc_start)
47         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
48         current_gdbarch by gdbarch.
49
50         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
51         current architecture by frame_info. Update alpha_heuristic_proc_start 
52         call.
53
54         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
55         get_frame_arch to get at the current architecture by frame_info. Update
56         alpha_sigtramp_register_address call.
57
58         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
59         current_gdbarch by gdbarch. Update caller.
60         (convert_to_extended, convert_from_extended): Add endianess parameter
61         for comparison. Update caller.
62         (arm_extract_return_value, arm_store_return_value): Use
63         get_regcache_arch to get at the current architecture.
64
65         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
66         current_gdbarch by gdbarch. Update caller.
67         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
68         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
69
70         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
71         gdbarch as parameter. Update caller.    
72         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
73         current_gdbarch by gdbarch. Update caller.
74
75         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
76         update caller. Replace current_gdbarch by gdbarch.
77
78         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
79         the current architecture. Replace current_gdbarch by gdbarch.
80         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
81         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
82         expression. Add gdbarch as parameter and replace current_gdbarch with
83         it. Update caller.
84         (M6811_TDEP): Remove.
85         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
86         architecture.
87         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
88         current_gdbarch by gdbarch. Update caller.
89
90         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
91         update caller.
92         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
93         by gdbarch.
94
95         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
96         caller. Relace current_gdbarch by gdbarch.
97         (altivec_register_p, spe_register_p): Likewise.
98         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
99         parameter.
100         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
101         altivec_register_p and spe_register_p.
102
103         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
104         caller. Replace current_gdbarch by gdbarch.
105         (score_analyze_prologue): use get_frame_arch to get at the current
106         architecture.   
107
108         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
109         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
110         current_gdbarch by gdbarch. Update caller.
111         (sparc_frame_cache): Use get_frame_arch to get at the current
112         architecture.
113         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
114         sparc_analyze_prologue.
115
116         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
117         parameter.
118
119 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
120
121         * exec.c: #include "arch-utils.h"
122          (print_section_info): Use gdbarch_from_bfd to get at the
123         current architecture. Replace current_gdbarch. Fix indention. Replace
124         deprecated_print_address_numeric by paddress.
125         * Makefile.in (exec.o) Add dependency to arch-utils.h.
126
127         * valprint.c (val_print_string): Replace 
128         deprecated_print_address_numeric.
129         * tracepoint.c (trace_mention, scope_info): Likewise.
130         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
131         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
132         (maintenance_check_symtabs): Likewise.
133         * symfile.c (list_overlays_command): Likewise.
134         * stack.c (frame_info, print_block_frame_labels): Likewise.
135         * printcmd.c (print_address, print_address_demangle)
136         (address_info): Likewise.
137         * corefile.c (memory_error): Likewise.
138         * infcmd.c (jump_command): Likewise.
139         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
140         (mention, delete_breakpoint): Likewise.
141         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
142         * dwarf2read.c (dump_die): Likewise.
143         * ada-valprint.c (ada_val_print_1): Likewise.
144         * f-valprint.c (f_val_print): Likewise.
145         * linux-fork.c (info_forks_command): Likewise.  
146         * m32r-com.c (m32r_load_section, m32r_load)
147         (m32r_upload_command): Likewise.
148
149         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
150
151 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
152
153         * gdbarch.sh (skip_prologue): Add gdbarch
154         as parameter.
155         * gdbarch.{c,h}: Regenerate.
156
157         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
158         * amd64-tdep.c (amd64_skip_prologue): Likewise.
159         * avr-tdep.c (avr_skip_prologue): Likewise.
160         * cris-tdep.c (cris_skip_prologue): Likewise.
161         * frv-tdep.c (frv_skip_prologue): Likewise.
162         * h8300-tdep.c (h8300_skip_prologue): Likewise.
163         * hppa-tdep.c (hppa_skip_prologue): Likewise.
164         * i386-tdep.c (i386_skip_prologue): Likewise.
165         * ia64-tdep.c (ia64_skip_prologue): Likewise.
166         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
167         * m32r-tdep.c (m32r_skip_prologue): Likewise.
168         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
169         * m68k-tdep.c (m68k_skip_prologue): Likewise.
170         * m88k-tdep.c (m88k_skip_prologue): Likewise.
171         * mep-tdep.c (mep_skip_prologue): Likewise.
172         * mips-tdep.c (mips_skip_prologue): Likewise.
173         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
174         * mt-tdep.c (mt_skip_prologue): Likewise.
175         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
176         * score-tdep.c (score_skip_prologue): Likewise.
177         * sh64-tdep.c (sh64_skip_prologue): Likewise.
178         * sh-tdep.c (sh_skip_prologue): Likewise.
179         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
180         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
181         * spu-tdep.c (spu_skip_prologue): Likewise.
182         * v850-tdep.c (v850_skip_prologue): Likewise.
183         * vax-tdep.c (vax_skip_prologue): Likewise.
184         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
185         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
186
187         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
188         current_gdbarch by gdbarch.
189         * m32c-tdep.c (m32c_skip_prologue): Likewise.
190         * s390-tdep.c (s390_skip_prologue): Likewise.
191
192 2008-01-10  Doug Evans  <dje@google.com>
193
194         * defs.h (struct continuation_arg): Fix typo in comment.
195         * target.c (target_translate_tls_address): Fix comment spelling error.
196
197 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
198
199         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
200         (DOUBLEST_SCAN_FORMAT): Likewise.
201         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
202         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
203         * c-exp.y (parse_number): Likewise.
204         * jv-exp.y (parse_number): Likewise.
205         * objc-exp.y (parse_number): Likewise.
206         * p-exp.y (parse_number): Likewise.
207
208 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
209
210         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
211         (check_typedef): Likewise.
212
213 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
214
215         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
216         seen_double_big_d, treat the new H, D, and DD modifiers as length
217         modifiers.
218
219 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
220
221         * dwarf2read.c (read_enumeration_type): Add comment.
222
223 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
224
225         * config.in: Regenerate.
226
227 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
228
229         * ada-lang.c (ada_convert_actual): Renames convert_actual.
230         Make non-static.
231         (ada_convert_actuals): Delete.
232         * ada-lang.h (ada_convert_actual): Add declaration.
233         (ada_convert_actuals): Remove declaration.
234         * infcall.c: #include "ada-lang.h".
235         (value_arg_coerce): Add new parameter sp.  Update function
236         documetnation.  Add handling of Ada function call parameters.
237         * Makefile.in (infcall.o): Update dependencies.
238
239 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
240
241         * ada-lang.c (ensure_lval): Fix value lval kind.
242         (convert_actual): Add handling for arguments passed by reference.
243
244 2008-01-08  Doug Evans  <dje@google.com>
245
246         * dbxread.c (read_dbx_symtab): Fix indentation.
247
248 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
249
250         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
251         (valarith.o): Depend on dfp.h.
252         (valops.o): Likewise.
253         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
254         (set_decnumber_context): New function.
255         (decimal_check_errors): Likewise.
256         (decimal_from_number): Likewise.
257         (decimal_to_number): Likewise.
258         (decimal_from_string): Use set_decnumber_context and
259         decimal_check_errors.
260         (decimal_from_integral): New function.
261         (decimal_from_floating): Likewise.
262         (decimal_to_double): Likewise.
263         (promote_decimal): Likewise.
264         (decimal_binop): Likewise.
265         (decimal_is_zero): Likewise.
266         (decimal_compare): Likewise.
267         (decimal_convert): Likewise.
268         * dfp.h (decimal_from_integral): New prototype.
269         (decimal_from_floating): Likewise.
270         (decimal_to_double): Likewise.
271         (decimal_binop): Likewise.
272         (decimal_is_zero): Likewise.
273         (decimal_compare): Likewise.
274         (decimal_convert): Likewise.
275         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
276         call to value_from_decfloat.
277         * valarith.c: Include dfp.h.
278         (value_args_as_decimal): New function.
279         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
280         (value_logical_not): Likewise.
281         (value_equal): Likewise.
282         (value_less): Likewise.
283         (value_pos): Likewise.
284         (value_neg): Formatting fix.
285         * valops.c: Include dfp.h.
286         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
287         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
288         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
289         (value_from_decfloat): Remove expect_type argument.
290         * value.h (value_from_decfloat): Update prototype.
291
292 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
293
294         Ignore change in name of dynamic linker during
295         execution on Solaris.  This also unbreaks pending breakpoints.
296
297         * solist.h (struct target_so_ops): New field same.
298         * solib-svr4.c (svr4_same): New.
299         (_initialize_svr4_solib): Register svr4_same.
300         * solib.c (update_solib_list): Use ops->same, if available.
301
302 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
303
304         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
305         when using MS-DOS paths.
306
307 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
308
309         * NEWS: Mention --pid and --core command line behaviour changes.
310
311 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
312
313         * main.c (captured_main): Remove 'count' varible and the
314         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
315         --pid options were issued simultaneously.  If an explicit pid
316         option was passed, don't fallback to core file.  Detect extra
317         arguments better in the presence of explicit pid or core
318         arguments.
319
320 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
321
322         * ada-lang.c (ada_which_variant_applies): Correctly compute
323         the value of the discriminant when the variant record is packed.
324
325 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
326
327         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
328         that are used to differentiate homonyms.
329
330 2008-01-04  Jerome Guitton  <guitton@adacore.com>
331
332         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
333         when the type is an anonymous pointer type.
334         (ada_check_typedef): Avoid a seg fault when the type is null.
335         * ada-typeprint.c (print_array_type): Add support for pointer
336         to packed arrays.
337
338 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
339
340         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
341
342 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
343
344         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
345         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
346
347 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
348
349         * ada-exp.y (chop_separator): New function.
350         (write_selectors): Rewrite to re-use chop_separator.
351         (ada_nget_field_index, get_symbol_field_type): New functions.
352         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
353         expressions.
354
355 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
356
357         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
358         of SYMBOL_VALUE when working with function symbols.
359
360 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
361
362         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
363         expressions.  These expressions do not need to be rewriten.
364
365 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
366
367         * dwarf2read.c (read_enumeration_type): Flag type as stub if
368         the given die is a declaration.
369
370 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
371
372         * ada-lang.c (ada_array_bound_from_type): Make non-static.
373         Handle properly the case when the index type is an enumerated type.
374         Do not return the subtype of the bounds type, just return the
375         bounds type directly - this is not needed and is more consistent
376         with what we do for arrays when no XA parallel type exists.
377
378 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
379
380         * ada-lang.c (static_unwrap_type): Add forward declaration.
381         (template_to_static_fixed_type): Fields of dynamic types sometimes
382         also need to be unwrapped. Take this into account.
383         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
384         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
385         * ada-typeprint.c (ada_print_type): Get the typename from
386         the original type, not the base type. 
387
388 2008-01-03  Jerome Guitton  <guitton@adacore.com>
389
390         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
391         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): 
392         Update calls to ada_to_fixed_type.
393         (ada_template_to_fixed_record_type_1): Ditto, but without looking
394         for the tag.
395         (ada_to_fixed_type): Add check_tag parameter; do not look for
396         tag if null.  When looking for a tag, use a fixed record type.
397         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
398         * ada-valprint.c (printable_val_type, ada_value_print): Update
399         calls to ada_to_fixed_type.
400
401 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
402
403         * doublest.c (convert_floatformat_to_doublest): Call 
404         floatformat_to_doublest instead of floatformat_to_double and use
405         DOUBLEST variables.
406         (convert_doublest_to_floatformat): Call floatformat_from_doublest
407         instead of floatformat_from_double and use DOUBLEST variables.
408
409 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
410
411         * MAINTAINERS (Write After Approval): Add self.
412
413 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
414
415         * symfile.c (set_initial_language): Make non-static.
416         * symfile.h (set_initial_language): Add declaration.
417         * language.c: #include "symfile.h".
418         (set_language): Call set_initial_language if the frame language
419         could not be determined.
420
421 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
422
423         * eval.c (evaluate_subexp_for_address): Provide frame address to
424         locate_var_value only if it will be needed.
425
426 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
427
428         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
429
430 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
431
432         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
433         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
434         This is needed to make sure that any other treatment applied
435         to the resulting value does not fail for spurious reason,
436         such as trying to take the address of this value.
437
438 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
439
440         * ada-lang.c (ada_value_equal): Dereference reference types when
441         comparing arrays.
442  
443 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
444
445         Updated copyright notices for most files.
446
447 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
448
449         * win32-nat.c (psapi_module_handle): Remove static.
450         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
451         return first module found if base_address is zero.  Don't initialize
452         psapi function pointers here.  Convert to cygwin paths when
453         appropriate.
454         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
455         executable name.  Use get_module_name when that fails or when
456         !__CYGWIN__.
457         (_initialize_psapi): New function.  Initialize psapi stuff before it is
458         needed or issue a warning if it is not found.  Move psapi_module_handle
459         here.
460
461 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
462
463         * ada-lang.c (ada_remove_trailing_digits): New function.
464         (ada_remove_po_subprogram_suffix): New function.
465         (ada_decode): Improve. Move the description of the algorithm
466         directly inside the code, instead of in the function global
467         description.
468
469 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
470
471         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
472         and always print the dereferenced value.
473
474 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
475
476         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
477         of the case where the first argument is a reference.
478         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
479
480 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
481
482         Implement support for Ada interface types.
483
484         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
485         (ada_is_ignored_field): Ignore fields that are a dispatch table
486         of a tagged type.
487
488 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
489
490         * top.c (print_gdb_version): Update copyright year.
491
492 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
493
494         * ChangeLog-2007: New ChangeLog rotation.
495         * ChangeLog: Reset for 2008.
496         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
497         ChangeLog-2007.
498
499 For older changes see ChangeLog-2007.
500 \f
501 Local Variables:
502 mode: change-log
503 left-margin: 8
504 fill-column: 74
505 version-control: never
506 coding: utf-8
507 End: