OSDN Git Service

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