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