d66611b5cfa951d161008386390c4d69c6d1dc5c
[external/binutils.git] / gdb / ChangeLog
1 2008-03-13  Joel Brobecker  <brobecker@adacore.com>
2
3         * README: Update GDB version number to 6.7.90.
4
5 2008-03-12  Pedro Alves  <pedro@codesourcery.com>
6
7         * thread.c (add_thread): Use printf_unfiltered to print.
8
9 2008-03-12  Joel Brobecker  <brobecker@gnat.com>
10
11         * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
12         that is true only on x86-solaris and x86_64-solaris.
13         * procfs.c: Likewise. Move procfs_find_LDT_entry up together
14         with proc_get_LDT_entry.
15
16 2008-03-10  Matt Rice  <ratmice@gmail.com>
17
18         * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
19
20 2008-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
21
22         * frame.c (reinit_frame_cache): Only annotate if frames were
23         previously valid.
24
25 2008-03-04  Greg Law  <glaw@undo-software.com>
26
27         * regcache.c (registers_changed): Call reinit_frame_cache.
28
29 2008-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
30
31         * amd64-tdep.c (amd64_classify): Add support for decimal float
32         types.
33         * i386-tdep.c (i386_return_value): Make 128-bit decimal float
34         use the struct return convention.
35
36 2008-02-29  Joel Brobecker  <brobecker@adacore.com>
37
38         GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
39         * version.in: Bump version to 6.7.90.20080226-cvs.
40
41 2008-02-26  Nick Roberts  <nickrob@snap.net.nz>
42
43         * breakpoint.c (print_one_breakpoint_location): Revert Enb field
44         to old format.  Discard breakpoint address if shared library is
45         unloaded.
46         (breakpoint_1): Adjust formatting of table header accordingly.
47
48 2008-02-25  Vladimir Prus  <vladimir@codesourcery.com>
49
50        * remote.c (remote_get_threadlist): If the response
51        is empty, don't try to parse it.
52
53 2008-02-23  Vladimir Prus  <vladimir@codesourcery.com>
54
55         Unbreak 'target async'.
56         * serial.c (serial_async): Set the
57         handler function before enabling async
58         mode.
59
60 2008-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
61
62         * solib-svr4.c (enable_break): Convert r_brk to a code address.
63
64 2008-02-21  Pedro Alves  <pedro@codesourcery.com>
65
66         * remote.c (extended_remote_attach_1): Set attach_flag.
67         (extended_remote_create_inferior_1): Clear attach_flag.
68
69 2008-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
70
71         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
72         r_brk_offset.
73         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
74         * solib-svr4.c (solib_svr4_r_brk): New.
75         (open_symbol_file_object, svr4_current_sos): Always check the
76         debug base.
77         (svr4_fetch_objfile_link_map): Do not set debug_base.
78         (enable_break): Use r_brk if it is set.
79         (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
80         (svr4_lp64_fetch_link_map_offsets): Likewise.
81         * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
82
83 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
84             Mark Kettenis  <kettenis@gnu.org>
85
86         * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
87         trad_frame_saved_reg.
88         (trad-frame.h): New include. 
89
90         (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
91         instead of frame_obstack_zalloc. 
92         (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
93
94         * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. 
95
96 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
97
98         * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
99         from disassemble_info instead of gdbarch_byte_order.
100
101         * mips-tdep.c (gdb_print_insn_mips): Likewise.
102         * arm-tdep.c (gdb_print_insn_arm): Likewise.
103
104 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
105
106         * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
107         gdbarch as parameter.
108
109         * gdbarch.{c,h}: Regenerate.
110
111         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
112         parameter.
113         * mem-break.c (default_memory_insert_breakpoint)
114         (default_memory_remove_breakpoint): Likewise.
115         * target.h (default_memory_remove_breakpoint)
116         (default_memory_insert_breakpoint): Likewise.
117
118         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
119         parameter. Replace current_gdbarch by gdbarch.
120         * m32r-tdep.c (m32r_memory_insert_breakpoint)
121         (m32r_memory_remove_breakpoint): Likewise.
122
123 2008-02-19  Daniel Jacobowitz  <dan@codesourcery.com>
124
125         * MAINTAINERS: Add Vladimir Prus as MI maintainer.
126
127 2008-02-19  Joel Brobecker  <brobecker@adacore.com>
128
129         * NEWS: Add entry describing Add support improvements.
130
131 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
132
133         * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
134         M68K_FP0_REGNUM.
135
136 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
137
138         * sentinel-frame.c (sentinel_frame_prev_register): Do not call
139         register_offset_hack anymore.
140
141         * regcache.{c,h} (register_offset_hack): Remove.
142
143 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
144
145         * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
146
147         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
148         current_gdbarch by gdbarch.
149         (hppa64_hpux_find_global_pointer): Likewise.
150         * hppa-tdep.c (hppa_find_global_pointer): Likewise.
151         (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
152         find_global_pointer.
153
154         * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
155         parameter.
156         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
157
158         * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
159         of gdbarch_num_regs.
160
161         * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
162         replace current_gdbarch by gdbarch.     
163         (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
164
165 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
166
167         * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
168         and replace current_gdbarch by gdbarch.
169
170         (store_register): Update call for exec_one_dummy_insn.
171         (fetch_register, store_register): Update call of regmap.
172
173         * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
174         parameter and replace current_gdbarch by gdbarch.
175         
176         (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
177         the current architecture. Update call for getregs_supplies and
178         getfpregs_supplies.
179         (ppcnbsd_fetch_inferior_registers): Likewise.
180
181         * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and 
182         replace current_gdbarch by gdbarch.
183         (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
184         get_regcache_arch to get at the current architecture. Update call for
185         getfpregs_supplies.
186
187 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
188
189         * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
190         variables. 
191
192 2008-02-15  Markus Deuling  <deuling@de.ibm.com>
193
194         * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
195
196 2008-02-14  Vladimir Prus  <vladimir@codesourcery.com>
197
198         * NEWS: Mention pending breakpints in MI.
199         
200 2008-02-14  Markus Deuling  <deuling@de.ibm.com>
201
202         * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
203
204 2008-02-13  Markus Deuling  <deuling@de.ibm.com>
205
206         Add script to build and test GDB using enable-targets=all.
207
208         * gdb_buildall.sh: New file.
209
210 2008-02-11  Maxim Grigoriev  <maxim2405@gmail.com>
211
212         * NEWS (New native configurations): Xtensa GNU/Linux.
213         (New targets): Xtensa GNU/Linux.
214         * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
215         xtensa-linux-tdep.o
216         (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
217         (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
218         * configure.tgt (xtensa*-*-linux*): New entry.
219         * xtensa-config.c (xtensa_tdep): New variable.
220         (xtensa_config_byte_order, xtensa_config_tdep): Removed.
221         (rmap): Change format based on new macro XTREG.
222         (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
223         * xtensa-linux-nat.c: New.
224         * xtensa-linux-tdep.c: New.
225         * xtensa-xtregs.c: New.
226         * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
227         (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
228         (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
229         (xtensa_register_t): New field coprocessor.
230         (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
231         * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
232         (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
233         Update to handle privileged registers.
234         (xtensa_supply_gregset) Remove exccause and excvaddr registers.
235         (xtensa_push_dummy_call): Set windowstart register correctly.
236         (call0_analyze_prologue): Initialize xtensa_default_isa.
237         (xtensa_derive_tdep): New.
238         (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
239         xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
240         Call xtensa_derive_tdep().
241         * config/xtensa/linux.mh: New.
242         * regformats/reg-xtensa.dat: New.
243
244 2008-02-09  Aleksandar Ristovski  <aristovski@qnx.com>  (tiny change)
245
246         * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
247         (filenames.h): New include.
248         * Makefile.in (corelow.o): Add dependency for filenames.h.
249
250 2008-02-08  Doug Evans  <dje@google.com>
251
252         * source.c (find_and_open_source): Always rewrite absolute filenames.
253
254 2008-02-07  Doug Evans  <dje@google.com>
255
256         * breakpoint.c: #include "hashtab.h".
257         (ambiguous_names_p): New fn.
258         (update_breakpoint_locations): When restoring bp enable status, don't
259         compare function names if any functions have same name.
260         * Makefile.in (breakpoint.o): Add hashtab.h dependency.
261
262 2008-02-07  Joel Brobecker  <brobecker@adacore.com>
263
264         * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
265         instead of just a VEC*. Update use of SV.
266         (ada_make_symbol_completion_list): Update symbol_completion_add calls.
267
268 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
269
270         * NEWS: Put all new commands since gdb-6.7 together.
271
272 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
273
274         * ada-lang.c: #include "vec.h".
275         (struct string_vector, new_string_vector, string_vector_append):
276         Delete.
277         (char_ptr): New typedef.
278         (DEF_VEC_P (char_ptr)): New VEC type.
279         (symbol_completion_add): Update profile to take the new VEC type
280         instead of the old string_vector structure. Update code accordingly.
281         (ada_make_symbol_completion_list): Use the new VEC type instead of
282         the old string_vector structure, and update the code accordingly.
283         * Makefile.in (ada-lang.o): Add dependency on vec.h.
284
285 2008-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
286
287         * p-exp.y: Set current_type in missing places.
288         (leftdiv_is_integer): New static variable.
289         Typecast right operand of BINOP_DIV to long_double if both operands
290         are integers.
291
292 2008-02-06  Maciej W. Rozycki  <macro@mips.com>
293
294         * remote-mips.c (set_breakpoint): Rename to...
295         (mips_set_breakpoint): ... this.
296         (clear_breakpoint): Rename to...
297         (mips_clear_breakpoint): ... this.
298         (common_breakpoint): Rename to...
299         (mips_common_breakpoint): ... this.
300         (check_lsi_error): Rename to...
301         (mips_check_lsi_error): ... this.
302
303 2007-02-05  Joel Brobecker  <brobecker@adacore.com>
304
305         * language.h (struct language_defn): Add new field
306         la_make_symbol_completion_list.
307         * symtab.c (default_make_symbol_completion_list): Renames
308         make_symbol_completion_list.
309         (make_symbol_completion_list): New function.
310         * symtab.h (default_make_symbol_completion_list): Add declaration.
311         * langauge.c (unknown_language): Set la_make_symbol_completion_list.
312         (auto_language, local_language): Likewise.
313         * objc-lang.c (objc_language_defn): Likewise.
314         * scm-lang.c (scm_language_defn): Likewise.
315         * m2-lang.c (m2_language_defn): Likewise.
316         * f-lang.c (f_language_defn): Likewise.
317         * jv-lang.c (java_language_defn): Likewise.
318         * p-lang.c (pascal_language_defn): Likewise.
319         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
320         (minimal_language_defn): Likewise.
321         * ada-lang.c (struct string_vector): New structure.
322         (new_string_vector, string_vector_append, ada_unqualified_name)
323         (add_angle_brackets, symbol_completion_match, symbol_completion_add)
324         (ada_make_symbol_completion_list): New functions.
325         (ada_language_defn): Set la_make_symbol_completion_list.
326         * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
327         this function is static.
328
329 2008-02-05  Kevin Buettner  <kevinb@redhat.com>
330
331         * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
332         to account for call site optimizations.
333
334 2008-02-05  Andrzej Zaborowski  <balrogg@gmail.com>
335
336         * tracepoint.c (read_actions): Handle end-of-text indicator
337         in action list properly.  (Committed by Jim Blandy)
338
339 2008-02-05  Jim Blandy  <jimb@red-bean.com>
340
341         * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
342         pseudoregister, not an internal error.
343         Reported by: Andrzej Zaborowski
344
345 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
346
347         * varobj.c (c_value_of_variable): Use xstrdup.
348
349 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
350
351         Update stored rendition of varobj value when format changes.
352         * varobj.c (varobj_set_display_format): Recomputed
353         print_value.
354         (c_value_of_variable): Return print_value.
355
356 2008-02-03  Doug Evans  <dje@google.com>
357
358         * eval.c (evaluate_subexp_standard): Fix type of result of mixed
359         integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
360         * valops.c (value_one): New function.
361         * value.h (value_one): Declare.
362
363         Fix argument promotion for binary arithmetic ops for C.
364         * valarith.c (unop_result_type): New fn.
365         (binop_result_type): New fn.
366         (value_binop): Move result type computation to binop_result_type.
367         (value_pos, value_neg, value_complement): Move result type
368         computation to unop_result_type.
369
370         PR 2384
371         * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
372         Return basetype, fieldno if found.  All callers updated.
373         Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
374         objfile.
375         * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
376         * symfile.h (fill_in_vptr_fieldno): Delete.
377
378 2008-02-02  Doug Evans  <dje@google.com>
379
380         * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
381
382         * typeprint.c (*): Whitespace cleanup.
383
384 2008-02-02  Mark Kettenis  <kettenis@gnu.org>
385             Luis Machado  <luisgpm@br.ibm.com>
386             Thiago Jung Bauermann  <bauerman@br.ibm.com>        
387
388         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
389         don't fit into registerson the stack the way GCC does.
390
391 2008-02-01  Joel Brobecker  <brobecker@adacore.com>
392
393         * symtab.c (symbol_set_names): Do not add an entry in the demangling
394         hash table for Ada symbols. Just store the linkage name as is,
395         and leave the demangled_name as NULL.
396
397 2007-02-01  Joel Brobecker  <brobecker@adacore.com>
398
399         * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
400         in the global scope.
401         (new_symbol): Likewise.
402
403 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
404         
405         * breakpoint.c (break_command_1): Return void.
406         (break_command_really): Return void.  Rethrow
407         exceptions instead of returning.
408         (gdb_breakpoint): Remove the error_message parameter.
409         Return void.  Rename to set_breakpoint.
410         * gdb.h (gdb_breakpoint): Rename and move to...
411         * breakpoint.h (set_breakpoint): ...here.
412         * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
413         event hooks even if exception is thrown.  Adjust to
414         gdb_breakpoint interface changes.
415         
416
417 2008-02-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
418
419         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
420         float in both first and second word in the doubleword, to support
421         old and new ABIs.
422
423 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
424
425         Properly rethrow exception.  This fixes errors
426         about non-existent functions for -break-insert.
427         * breakpoint.c (break_command_really): Use throw_exception
428         for rethrowing.  If rethrowing, don't print the exception.
429
430 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
431
432         * NEWS: Mention Decimal Floating Point support.
433
434 2008-01-31  Joel Brobecker  <brobecker@adacore.com>
435
436         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
437         value type to builtin_type_void_func_ptr.
438
439 2008-01-31  Andreas Krebbel  <krebbel1@de.ibm.com>
440
441         * s390-tdep.c (is_float_singleton, is_float_like,
442         alignment_of, s390_return_value): Make checks for
443         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
444
445 2008-01-31  Luis Machado  <luisgpm@br.ibm.com>
446             Thiago Jung Bauermann  <bauerman@br.ibm.com>
447
448         * infcmd.c (default_print_registers_info): Also print hex
449         raw contents for TYPE_CODE_DECFLOAT registers.
450         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
451         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
452         (rs6000_register_name): Add support for DFP pseudo-registers.
453         (rs6000_pseudo_register_type): Likewise.
454         rs6000_pseudo_register_reggroup_p): Likewise.
455         (ppc_pseudo_register_read): New function.
456         (ppc_pseudo_register_write): Likewise.
457         (rs6000_pseudo_register_read): Likewise.
458         (rs6000_pseudo_register_write): Likewise.
459         (e500_pseudo_register_read): Move checks to
460         rs6000_pseudo_register_read.
461         (e500_pseudo_register_write): Move checks to
462         rs6000_pseudo_register_write.
463         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
464         rs6000_pseudo_register_read and rs6000_pseudo_register_write
465         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
466         num_pseudo_regs to account for DFP pseudo regs.
467
468 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
469
470         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
471         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
472         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
473         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
474         e500_pseudo_register_read, e500_pseudo_register_write): Use
475         IS_SPE_PSEUDOREG macro.
476         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
477         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
478         Remove initialization of tdep->ppc_ev31_regnum.
479
480 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
481
482         * printcmd.c (print_formatted): Handle references as for unformatted
483         prints.
484
485 2008-01-30  Joel Brobecker  <brobecker@adacore.com>
486
487         * eval.c (evaluate_subexp_standard): Add handling of user
488         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
489
490 2008-01-30  Pierre Muller  <muller@ics.u-strasbg.fr>
491
492         * eval.c (evaluate_subexp_standard): Support
493         BINOP_INTDIV opcode.
494
495 2008-01-30  Paul N. Hilfinger  <hilfinger@adacore.com>
496
497         * valarith.c (value_binop): Add floating-point BINOP_MIN and
498         BINOP_MAX cases.
499         For BINOP_EXP, use length and signedness of left operand only for
500         result, as for shifts.
501         For integral operands to BINOP_EXP, use new integer_pow and
502         uinteger_pow functions so as to get full range of results.
503         (integer_pow): New function.
504         (uinteger_pow): New function.
505
506 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
507
508         Use vector for varobj_list_children interface.
509         * gdb/varobj.c (varobj_list_children): Return vector
510         of varobjs.
511         * gdb/varobj.h (varobj_list_children): Adjust
512         prototype.
513         (varobj_p): Declare.  Declare vector thereof.
514         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
515         for varobj_list_children change.
516         * Makefile.in (varobj_h): Update dependencies.
517
518 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
519
520         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
521         TYPE_CODE_DECFLOAT arguments.
522         (ppc64_sysv_abi_push_dummy_call) Likewise.
523         (get_decimal_float_return_value): New function.
524         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
525         values by calling get_decimal_float_return_value.
526         (ppc64_sysv_abi_return_value): Likewise.
527
528 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
529
530         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
531         for preprocessor macro information.  Formatting changes.
532
533 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
534
535         * remote.c (struct remote_state): Add cached_wait_status.
536         (remote_exec_file): New variable.
537         (PACKET_vAttach, PACKET_vRun): New constants.
538         (extended_remote_restart): Do not query for status.
539         (struct start_remote_args): New.
540         (remote_start_remote): Take it as a second argument.  Check
541         whether the target is running.  Issue an error for non-running
542         non-extended targets.  Cache the wait status.  Set inferior_ptid
543         here.
544         (remote_open_1): Prompt to disconnect non-running targets.  Make
545         sure the target is marked running.  Do not set inferior_ptid here.
546         Update call to remote_start_remote.  Do not call remote_check_symbols
547         if the target is not running.
548         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
549         argument.  Handle a non-running target.
550         (remote_detach): Use it.
551         (extended_remote_detach): New.
552         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
553         (extended_remote_attach_1, extended_remote_attach)
554         (extended_async_remote_attach): New.
555         (remote_vcont_resume): Remove unused variable.
556         (remote_wait, remote_async_wait): Use any cached wait status.
557         (putpkt_binary, getpkt): Clear any cached wait status.
558         (extended_remoute_mourn_1): New.
559         (extended_remote_mourn): Use it.
560         (extended_async_remote_mourn, extended_remote_run): New.
561         (extended_remote_create_inferior_1): New.
562         (extended_remote_create_inferior): Use it.
563         (extended_remote_async_create_inferior): Likewise.
564         (remote_xfer_partial): Skip for non-executing targets.
565         (init_extended_remote_ops): Set to_detach and to_attach.
566         (init_extended_async_remote_ops): Likewise.  Use
567         extended_async_remote_mourn.
568         (_initialize_remote): Register vAttach, vRun, and
569         set remote exec-file.
570         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
571
572 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
573
574         * Makefile.in (symfile.o): Update.
575         * NEWS: Mention exec tracing support.
576         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
577         exec events.
578         * infcmd.c (kill_if_already_running, detach_command)
579         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
580         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
581         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
582         targets.  Apply the sysroot path to the loaded executable.  Use
583         no_shared_libraries.
584         * linux-nat.c (linux_child_follow_fork): Print fork following
585         messages if verbose.
586         (kill_wait_callback): Kill again before waiting a second time.
587         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
588         no_shared_libraries.
589
590 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
591
592         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
593
594 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
595
596         * nto-tdep.h: Remove #include "defs.h".
597         * nto-tdep.c: Add #include "defs.h".
598         * Makefile.in (nto_tdep_h): Update dependencies.
599         (nto-tdep.o): Likewise.
600
601 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
602
603         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
604         and use it.
605         (proceed, start_remote): Update call to wait_for_inferior.
606         * inferior.h (wait_for_inferior): Update declaration.
607         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
608         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
609         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
610         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
611
612 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
613
614         * varobj (adjust_value_for_child_access): Added checking for 
615         returned value from gdb_value_ind.
616         (c_describe_child): Likewise.
617         (cplus_describe_child): Fixed a typo.
618
619 2008-01-29  Jim Blandy  <jimb@red-bean.com>
620
621         * MAINTAINERS: Update my info.
622
623 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
624
625         Use multiple locations for hardware watchpoints.
626         This eliminates the need to traverse value chain, doing
627         various checks, in three different places.
628
629         * breakpoint.h (struct bp_location): New fields
630         lengths and watchpoint_type.
631         (struct breakpoint): Remove the val_chain field.
632         * breakpoint.c (is_hardware_watchpoint): New.
633         (free_valchain): Remove.
634         (update_watchpoint): New.
635         (insert_bp_location): For hardware watchpoint, just
636         directly insert it.
637         (insert_breakpoints): Call update_watchpoint_locations
638         on all watchpoints.  If we have failed to insert
639         any location of a hardware watchpoint, remove all inserted
640         locations.
641         (remove_breakpoint): For hardware watchpoints, directly
642         remove location.
643         (watchpoints_triggered): Iterate over locations.
644         (bpstat_stop_status): Use only first location of
645         a resource watchpoint.
646         (delete_breakpoint): Don't call free_valchain.
647         (print_one_breakpoint): Don't print all
648         locations for watchpoints.
649         (breakpoint_re_set_one): Use update_watchpoint for
650         watchpoints.
651
652 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
653
654         Don't reset watchpoint block on solib load.
655
656         * breakpoint.c (insert_bp_location): For watchpoints,
657         recompute condition.
658         (breakpoint_re_set_one): Instead of recomputing value
659         and condition for watchpoints, just reset value and
660         let insert_breakpoints/insert_bp_location recompute it.
661         Don't do anything about disabled watchpoint.
662
663 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
664
665         * valarith.c (value_binop): Handle unsigned integer
666         division by zero.
667
668 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
669
670         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
671         instruction pattern that appears frequently in position
672         independent code.  Fix bug in code which looks for "fmov" and
673         backtracks if no "fmov" is found.
674
675 2008-01-28  Doug Evans  <dje@google.com>
676
677         * dbxread.c (read_dbx_symtab): Fix indentation.
678         Reformat comments to 80 columns.
679         Move local var def closer to only use.
680
681 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
682
683         * fork-child.c (SHELL_FILE): Remove #ifndef.
684         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
685
686 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
687
688         * i386-tdep.c (i386_skip_noop): New function.
689         (i386_analyze_prologue): Call i386_skip_noop function.
690
691 2008-01-24  Michael Snyder  <msnyder@specifix.com>
692
693         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
694         * win32-nat.c (win32_xfer_partial): Ditto.
695         * target.c (default_xfer_partial): Minor whitespace adjustment.
696
697 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
698
699         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
700         strip bit 1 even if pc doesn't point to thumb code.
701
702 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
703
704         * remote.c (remote_wait): Handle SIGINT between packets.
705         (remote_async_wait): Likewise.
706
707 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
708             Chris Demetriou  <cgd@google.com>
709
710         * thread.c (add_thread_silent): Renamed
711         from add_thread.
712         (print_thread_events): New variable definition.
713         (show_print_thread_events): New function.
714         (_initialize_thread): Add "set print thread-events" and
715         "show print thread-events" commands.
716         (add_thread): Announce new thread.
717         * gdbthread.h (add_thread_silent): Declare.
718         (print_thread_events): New variable declaration.
719         * inf-ttrace.c (inf_ttrace_wait): Don't
720         inform about new thread, as add_thread is always
721         called too, and will take care of that.
722         * infrun.c (handle_inferior_event): Likewise.
723         * procfs.c (procfs_wait): Likewise.
724         * remote.c (remote_currthread): Likewise.
725         * sol-thread.c (sol_thread_wait): Likewise.
726         * win32-nat.c (get_win32_debug_event): Likewise.
727         * linux-thread-db.c (attach_thread): Likewise.
728         Remove the verbose parameter.
729         (check_event): Make detach_thread be verbose
730         only if print_thread_events is set.
731         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
732         about new thread.  This is called only from
733         linux-thread-db.c:attach_thread, which will take care.
734         Remove the verbose parameter.
735         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
736
737 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
738
739         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
740
741 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
742
743         * breakpoint.c (break_command_really): New parameter
744         ignore_count.
745         (break_command_1): Pass 0 as
746         ignore_count to break_command_really.
747         (gdb_breakpoint): Pass ignore_count to
748         break_command_really.
749
750 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
751
752         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
753         sigcontext struct via pointer.
754         (struct sigframe comment): Update to show new field `psc'.
755
756 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
757
758         * infrun.c (handle_inferior_event): If
759         we failed to remove breakpoints, error,
760         don't try to increment PC by hand.
761
762 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
763
764         Add NetBSD/hppa target and host support.
765
766         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
767         (hppabsd_gregset): Move to ...
768         (hppabsd_regset_from_core_section): Rename
769         hppaobsd_regset_from_core_section and move to ...
770         (hppabsd_find_global_pointer): Update comment.
771         (hppabsd_init_abi): Make global. Do not register
772         hppabsd_regset_from_core_section.
773         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
774         move to ...
775         (_initialize_hppabsd_tdep): Move to ...
776         * hppaobsd-tdep.c: ... here. New file.
777         * hppnbsd-tdep.c: New file.
778         * hppnbsd-nat.c: New file.
779         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
780         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
781         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
782         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
783         * configure.host (hppa*-*-netbsd*): New entry.
784         * configure.tgt (hppa*-*-netbsd*): New entry.
785         (hppa*-*-openbsd*): Update.
786         * NEWS (New native configuration): Mention NetBSD/hppa.
787         (New targets): Mention NetBSD/hppa.
788
789 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
790
791         * gdbarch.sh (function_list): Add new property bits_big_endian to
792         gdbarch structure.
793         * gdbarch.{c,h}: Regenerate.
794
795         * value.c (struct value): Replace BITS_BIG_ENDIAN by
796         gdbarch_bits_big_endian (comment).
797         (unpack_field_as_long, modify_field): Likewise.
798         * value.h: Likewise (comment).
799         * valops.c (value_slice): Likewise.
800         * valarith.c (value_subscript, value_bit_index): Likewise.
801         * gdbtypes.h (field): Likewise (comment).
802         * eval.c (evaluate_subexp_standard): Likewise.
803         * dwarf2read.c (dwarf2_add_field): Likewise.
804         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
805         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
806         
807         * defs.h (BITS_BIG_ENDIAN): Remove.
808
809 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
810
811         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
812         function calls.
813         * m2-exp.y (yylex): Likewise.
814         * objc-exp.y (yylex): Likewise.
815
816         * defs.h (DEPRECATED_STREQN): Remove.
817
818 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
819
820         * MAINTAINERS: Update my email address.
821
822 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
823
824         * README: Mention gdbserver/README.
825
826 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
827
828         * valarith.c (value_binop): Handle BINOP_INTDIV
829         for unsigned and signed integers.
830
831 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
832
833         * s390-tdep.c (s390_gdbarch_init): Set default long double
834         type to 128-bit IEEE quad.
835
836 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
837
838         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
839
840 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
841
842         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
843
844         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
845         * value.c: All callers changed.
846
847 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
848
849         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
850         DEPRECATED_STREQ by its expression.
851         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
852         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
853         (scan_xcoff_symtab): Likewise.
854         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
855         * f-lang.c (find_common_for_function): Likewise.
856         * objc-exp.y (parse_number): Likewise.
857
858         * defs.h (DEPRECATED_STREQ): Remove.
859
860 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
861
862         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
863         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
864         get_frame_arch to get at the current_architecture. Update AM33_MODE
865         call.
866         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
867         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
868         architecture.
869         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
870
871 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
872
873         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
874         parameter.
875         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
876
877         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
878         current_gdbarch by gdbarch. Update caller.
879
880         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
881         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
882         the current architecture. Update calls of
883         amd64_native_gregset_supplies_p.
884         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
885         (amd64bsd_store_inferior_registers): Likewise.
886
887 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
888
889         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
890         Replace current_gdbarch by gdbarch. Update caller.
891
892 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
893
894         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
895         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
896         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
897         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
898         (stabsect_build_psymtabs): Fix indentation.
899
900 2008-01-15  Michael Snyder  <msnyder@specifix.com>
901
902         * corelow.c (core_xfer_partial): Comment, cut/paste error.
903
904 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
905
906         * win32-nat.c (win32_create_inferior): Restore code calling
907         CloseHandle on ProcessInformation structure.
908
909 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
910
911         * configure.ac: Check for void * as 3 argument of ptrace.
912         * configure: regenerate.
913
914 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
915
916         * alpha-tdep.c (alpha_heuristic_proc_start)
917         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
918         current_gdbarch by gdbarch.
919
920         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
921         current architecture by frame_info. Update alpha_heuristic_proc_start 
922         call.
923
924         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
925         get_frame_arch to get at the current architecture by frame_info. Update
926         alpha_sigtramp_register_address call.
927
928         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
929         current_gdbarch by gdbarch. Update caller.
930         (convert_to_extended, convert_from_extended): Add endianess parameter
931         for comparison. Update caller.
932         (arm_extract_return_value, arm_store_return_value): Use
933         get_regcache_arch to get at the current architecture.
934
935         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
936         current_gdbarch by gdbarch. Update caller.
937         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
938         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
939
940         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
941         gdbarch as parameter. Update caller.    
942         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
943         current_gdbarch by gdbarch. Update caller.
944
945         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
946         update caller. Replace current_gdbarch by gdbarch.
947
948         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
949         the current architecture. Replace current_gdbarch by gdbarch.
950         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
951         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
952         expression. Add gdbarch as parameter and replace current_gdbarch with
953         it. Update caller.
954         (M6811_TDEP): Remove.
955         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
956         architecture.
957         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
958         current_gdbarch by gdbarch. Update caller.
959
960         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
961         update caller.
962         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
963         by gdbarch.
964
965         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
966         caller. Relace current_gdbarch by gdbarch.
967         (altivec_register_p, spe_register_p): Likewise.
968         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
969         parameter.
970         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
971         altivec_register_p and spe_register_p.
972
973         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
974         caller. Replace current_gdbarch by gdbarch.
975         (score_analyze_prologue): use get_frame_arch to get at the current
976         architecture.   
977
978         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
979         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
980         current_gdbarch by gdbarch. Update caller.
981         (sparc_frame_cache): Use get_frame_arch to get at the current
982         architecture.
983         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
984         sparc_analyze_prologue.
985
986         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
987         parameter.
988
989 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
990
991         * exec.c: #include "arch-utils.h"
992          (print_section_info): Use gdbarch_from_bfd to get at the
993         current architecture. Replace current_gdbarch. Fix indention. Replace
994         deprecated_print_address_numeric by paddress.
995         * Makefile.in (exec.o) Add dependency to arch-utils.h.
996
997         * valprint.c (val_print_string): Replace 
998         deprecated_print_address_numeric.
999         * tracepoint.c (trace_mention, scope_info): Likewise.
1000         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1001         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1002         (maintenance_check_symtabs): Likewise.
1003         * symfile.c (list_overlays_command): Likewise.
1004         * stack.c (frame_info, print_block_frame_labels): Likewise.
1005         * printcmd.c (print_address, print_address_demangle)
1006         (address_info): Likewise.
1007         * corefile.c (memory_error): Likewise.
1008         * infcmd.c (jump_command): Likewise.
1009         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1010         (mention, delete_breakpoint): Likewise.
1011         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1012         * dwarf2read.c (dump_die): Likewise.
1013         * ada-valprint.c (ada_val_print_1): Likewise.
1014         * f-valprint.c (f_val_print): Likewise.
1015         * linux-fork.c (info_forks_command): Likewise.  
1016         * m32r-com.c (m32r_load_section, m32r_load)
1017         (m32r_upload_command): Likewise.
1018
1019         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1020
1021 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
1022
1023         * gdbarch.sh (skip_prologue): Add gdbarch
1024         as parameter.
1025         * gdbarch.{c,h}: Regenerate.
1026
1027         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1028         * amd64-tdep.c (amd64_skip_prologue): Likewise.
1029         * avr-tdep.c (avr_skip_prologue): Likewise.
1030         * cris-tdep.c (cris_skip_prologue): Likewise.
1031         * frv-tdep.c (frv_skip_prologue): Likewise.
1032         * h8300-tdep.c (h8300_skip_prologue): Likewise.
1033         * hppa-tdep.c (hppa_skip_prologue): Likewise.
1034         * i386-tdep.c (i386_skip_prologue): Likewise.
1035         * ia64-tdep.c (ia64_skip_prologue): Likewise.
1036         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1037         * m32r-tdep.c (m32r_skip_prologue): Likewise.
1038         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1039         * m68k-tdep.c (m68k_skip_prologue): Likewise.
1040         * m88k-tdep.c (m88k_skip_prologue): Likewise.
1041         * mep-tdep.c (mep_skip_prologue): Likewise.
1042         * mips-tdep.c (mips_skip_prologue): Likewise.
1043         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1044         * mt-tdep.c (mt_skip_prologue): Likewise.
1045         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1046         * score-tdep.c (score_skip_prologue): Likewise.
1047         * sh64-tdep.c (sh64_skip_prologue): Likewise.
1048         * sh-tdep.c (sh_skip_prologue): Likewise.
1049         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1050         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1051         * spu-tdep.c (spu_skip_prologue): Likewise.
1052         * v850-tdep.c (v850_skip_prologue): Likewise.
1053         * vax-tdep.c (vax_skip_prologue): Likewise.
1054         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1055         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1056
1057         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1058         current_gdbarch by gdbarch.
1059         * m32c-tdep.c (m32c_skip_prologue): Likewise.
1060         * s390-tdep.c (s390_skip_prologue): Likewise.
1061
1062 2008-01-10  Doug Evans  <dje@google.com>
1063
1064         * defs.h (struct continuation_arg): Fix typo in comment.
1065         * target.c (target_translate_tls_address): Fix comment spelling error.
1066
1067 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1068
1069         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1070         (DOUBLEST_SCAN_FORMAT): Likewise.
1071         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1072         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1073         * c-exp.y (parse_number): Likewise.
1074         * jv-exp.y (parse_number): Likewise.
1075         * objc-exp.y (parse_number): Likewise.
1076         * p-exp.y (parse_number): Likewise.
1077
1078 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
1079
1080         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1081         (check_typedef): Likewise.
1082
1083 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
1084
1085         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1086         seen_double_big_d, treat the new H, D, and DD modifiers as length
1087         modifiers.
1088
1089 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
1090
1091         * dwarf2read.c (read_enumeration_type): Add comment.
1092
1093 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1094
1095         * config.in: Regenerate.
1096
1097 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
1098
1099         * ada-lang.c (ada_convert_actual): Renames convert_actual.
1100         Make non-static.
1101         (ada_convert_actuals): Delete.
1102         * ada-lang.h (ada_convert_actual): Add declaration.
1103         (ada_convert_actuals): Remove declaration.
1104         * infcall.c: #include "ada-lang.h".
1105         (value_arg_coerce): Add new parameter sp.  Update function
1106         documetnation.  Add handling of Ada function call parameters.
1107         * Makefile.in (infcall.o): Update dependencies.
1108
1109 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
1110
1111         * ada-lang.c (ensure_lval): Fix value lval kind.
1112         (convert_actual): Add handling for arguments passed by reference.
1113
1114 2008-01-08  Doug Evans  <dje@google.com>
1115
1116         * dbxread.c (read_dbx_symtab): Fix indentation.
1117
1118 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1119
1120         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1121         (valarith.o): Depend on dfp.h.
1122         (valops.o): Likewise.
1123         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1124         (set_decnumber_context): New function.
1125         (decimal_check_errors): Likewise.
1126         (decimal_from_number): Likewise.
1127         (decimal_to_number): Likewise.
1128         (decimal_from_string): Use set_decnumber_context and
1129         decimal_check_errors.
1130         (decimal_from_integral): New function.
1131         (decimal_from_floating): Likewise.
1132         (decimal_to_double): Likewise.
1133         (promote_decimal): Likewise.
1134         (decimal_binop): Likewise.
1135         (decimal_is_zero): Likewise.
1136         (decimal_compare): Likewise.
1137         (decimal_convert): Likewise.
1138         * dfp.h (decimal_from_integral): New prototype.
1139         (decimal_from_floating): Likewise.
1140         (decimal_to_double): Likewise.
1141         (decimal_binop): Likewise.
1142         (decimal_is_zero): Likewise.
1143         (decimal_compare): Likewise.
1144         (decimal_convert): Likewise.
1145         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1146         call to value_from_decfloat.
1147         * valarith.c: Include dfp.h.
1148         (value_args_as_decimal): New function.
1149         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1150         (value_logical_not): Likewise.
1151         (value_equal): Likewise.
1152         (value_less): Likewise.
1153         (value_pos): Likewise.
1154         (value_neg): Formatting fix.
1155         * valops.c: Include dfp.h.
1156         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1157         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1158         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1159         (value_from_decfloat): Remove expect_type argument.
1160         * value.h (value_from_decfloat): Update prototype.
1161
1162 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
1163
1164         Ignore change in name of dynamic linker during
1165         execution on Solaris.  This also unbreaks pending breakpoints.
1166
1167         * solist.h (struct target_so_ops): New field same.
1168         * solib-svr4.c (svr4_same): New.
1169         (_initialize_svr4_solib): Register svr4_same.
1170         * solib.c (update_solib_list): Use ops->same, if available.
1171
1172 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
1173
1174         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1175         when using MS-DOS paths.
1176
1177 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
1178
1179         * NEWS: Mention --pid and --core command line behaviour changes.
1180
1181 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
1182
1183         * main.c (captured_main): Remove 'count' varible and the
1184         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
1185         --pid options were issued simultaneously.  If an explicit pid
1186         option was passed, don't fallback to core file.  Detect extra
1187         arguments better in the presence of explicit pid or core
1188         arguments.
1189
1190 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
1191
1192         * ada-lang.c (ada_which_variant_applies): Correctly compute
1193         the value of the discriminant when the variant record is packed.
1194
1195 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
1196
1197         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1198         that are used to differentiate homonyms.
1199
1200 2008-01-04  Jerome Guitton  <guitton@adacore.com>
1201
1202         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1203         when the type is an anonymous pointer type.
1204         (ada_check_typedef): Avoid a seg fault when the type is null.
1205         * ada-typeprint.c (print_array_type): Add support for pointer
1206         to packed arrays.
1207
1208 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
1209
1210         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1211
1212 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
1213
1214         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1215         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1216
1217 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
1218
1219         * ada-exp.y (chop_separator): New function.
1220         (write_selectors): Rewrite to re-use chop_separator.
1221         (ada_nget_field_index, get_symbol_field_type): New functions.
1222         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1223         expressions.
1224
1225 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1226
1227         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1228         of SYMBOL_VALUE when working with function symbols.
1229
1230 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
1231
1232         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1233         expressions.  These expressions do not need to be rewriten.
1234
1235 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
1236
1237         * dwarf2read.c (read_enumeration_type): Flag type as stub if
1238         the given die is a declaration.
1239
1240 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
1241
1242         * ada-lang.c (ada_array_bound_from_type): Make non-static.
1243         Handle properly the case when the index type is an enumerated type.
1244         Do not return the subtype of the bounds type, just return the
1245         bounds type directly - this is not needed and is more consistent
1246         with what we do for arrays when no XA parallel type exists.
1247
1248 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
1249
1250         * ada-lang.c (static_unwrap_type): Add forward declaration.
1251         (template_to_static_fixed_type): Fields of dynamic types sometimes
1252         also need to be unwrapped. Take this into account.
1253         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1254         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1255         * ada-typeprint.c (ada_print_type): Get the typename from
1256         the original type, not the base type. 
1257
1258 2008-01-03  Jerome Guitton  <guitton@adacore.com>
1259
1260         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1261         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): 
1262         Update calls to ada_to_fixed_type.
1263         (ada_template_to_fixed_record_type_1): Ditto, but without looking
1264         for the tag.
1265         (ada_to_fixed_type): Add check_tag parameter; do not look for
1266         tag if null.  When looking for a tag, use a fixed record type.
1267         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1268         * ada-valprint.c (printable_val_type, ada_value_print): Update
1269         calls to ada_to_fixed_type.
1270
1271 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
1272
1273         * doublest.c (convert_floatformat_to_doublest): Call 
1274         floatformat_to_doublest instead of floatformat_to_double and use
1275         DOUBLEST variables.
1276         (convert_doublest_to_floatformat): Call floatformat_from_doublest
1277         instead of floatformat_from_double and use DOUBLEST variables.
1278
1279 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
1280
1281         * MAINTAINERS (Write After Approval): Add self.
1282
1283 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
1284
1285         * symfile.c (set_initial_language): Make non-static.
1286         * symfile.h (set_initial_language): Add declaration.
1287         * language.c: #include "symfile.h".
1288         (set_language): Call set_initial_language if the frame language
1289         could not be determined.
1290
1291 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
1292
1293         * eval.c (evaluate_subexp_for_address): Provide frame address to
1294         locate_var_value only if it will be needed.
1295
1296 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1297
1298         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1299
1300 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
1301
1302         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1303         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1304         This is needed to make sure that any other treatment applied
1305         to the resulting value does not fail for spurious reason,
1306         such as trying to take the address of this value.
1307
1308 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
1309
1310         * ada-lang.c (ada_value_equal): Dereference reference types when
1311         comparing arrays.
1312  
1313 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
1314
1315         Updated copyright notices for most files.
1316
1317 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
1318
1319         * win32-nat.c (psapi_module_handle): Remove static.
1320         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
1321         return first module found if base_address is zero.  Don't initialize
1322         psapi function pointers here.  Convert to cygwin paths when
1323         appropriate.
1324         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1325         executable name.  Use get_module_name when that fails or when
1326         !__CYGWIN__.
1327         (_initialize_psapi): New function.  Initialize psapi stuff before it is
1328         needed or issue a warning if it is not found.  Move psapi_module_handle
1329         here.
1330
1331 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1332
1333         * ada-lang.c (ada_remove_trailing_digits): New function.
1334         (ada_remove_po_subprogram_suffix): New function.
1335         (ada_decode): Improve. Move the description of the algorithm
1336         directly inside the code, instead of in the function global
1337         description.
1338
1339 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1340
1341         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1342         and always print the dereferenced value.
1343
1344 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1345
1346         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1347         of the case where the first argument is a reference.
1348         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1349
1350 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1351
1352         Implement support for Ada interface types.
1353
1354         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1355         (ada_is_ignored_field): Ignore fields that are a dispatch table
1356         of a tagged type.
1357
1358 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1359
1360         * top.c (print_gdb_version): Update copyright year.
1361
1362 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
1363
1364         * ChangeLog-2007: New ChangeLog rotation.
1365         * ChangeLog: Reset for 2008.
1366         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1367         ChangeLog-2007.
1368
1369 For older changes see ChangeLog-2007.
1370 \f
1371 Local Variables:
1372 mode: change-log
1373 left-margin: 8
1374 fill-column: 74
1375 version-control: never
1376 coding: utf-8
1377 End: