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