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