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