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