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