]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
611c83ae
PA
12008-05-04 Pedro Alves <pedro@codesourcery.com>
2
3 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
4 and bp_longjmp_resume breakpoints.
5 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
6 meaningful.
7 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
8 breakpoints. Create bp_longjmp breakpoints as momentary
9 breakpoints.
10 (enable_longjmp_breakpoint): Delete.
11 (set_longjmp_breakpoint): New.
12 (disable_longjmp_breakpoint): Delete.
13 (delete_longjmp_breakpoint): New.
14 (set_longjmp_resume_breakpoint): Delete.
15 (set_momentary_breakpoint_at_pc): New.
16 (breakpoint_re_set_one): Don't delete bp_longjmp and
17 bp_longjmp_resume breakpoints.
18 (breakpoint_re_set): Don't create longjmp and longjmp-resume
19 breakpoints.
20
21 * infrun.c (step_resume_breakpoint): Add comment.
22 (struct execution_control_state): Delete handling_longjmp member.
23 (init_execution_control_state). Don't clear handling_longjmp.
24 (context_switch): Don't context switch handling_longjmp.
25 (handle_inferior_event): If handling a bp_longjmp breakpoint,
26 create a bp_longjmp_resume breakpoint, and set it as current
27 step_resume_breakpoint, then step over the longjmp breakpoint. If
28 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
29 breakpoint, delete the longjmp-resume breakpoint, and stop
30 stepping.
31 (currently_stepping): Remove handling_longjmp from expression.
32 (insert_step_resume_breakpoint_at_sal): Update comment.
33 (insert_longjmp_resume_breakpoint): New.
34
35 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
36 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
37 declarations.
38 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
39 (set_longjmp_resume_breakpoint): Delete declaration.
40
41 * gdbthread.h (save_infrun_state): Remove handling_longjmp
42 parameter.
43 (load_infrun_state): Delete *handling_longjmp parameter.
44 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
45 Update body.
46 (load_infrun_state): Delete *handling_longjmp parameter. Update
47 body.
48
49 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
50 (delete_longjmp_breakpoint_cleanup): New.
51 (step_1): Call set_longjmp_breakpoint instead of
52 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
53 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
54 (step_1_continuation): Pass thread id in the continuation args to
55 step_once.
56 (step_once): Add thread parameter. Pass thread id the the
57 continuation.
58
85cbf3d3
JK
592008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
60
61 Set CU BASE_ADDRESS already from partial DIEs.
62 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
63 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
64 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
65 from these variables if it was still unset.
66
ff013f42
JK
67 * Makefile.in: Update dependencies.
68 * dwarf2read.c: Include "addrmap.h"
69 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
70 (dwarf2_ranges_read): New prototype.
71 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
72 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
73 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
74 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
75 comment for it. Add the found ranges to RANGES_PST. New variable
76 BASEADDR, initialize it the common way.
77 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
78 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
79 HAS_RANGES_OFFSET for the later processing.
80 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
81 * symtab.c: Include "addrmap.h"
82 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
83 Move the psymtab locator into ...
84 (find_pc_sect_psymtab_closer): ... a new function.
85
a7f1256d
UW
862008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
87
88 * arch-utils.c (gdbarch_update_p): Use default values for
89 info.abfd and info.target_desc if they are NULL.
90 (gdbarch_from_bfd): Remove assertion.
91 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
92 using the current target description.
93 (gdbarch_info_fill): Do not use default values for info->abfd
94 and info->target_desc.
95
b2de52bb
JK
962008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
97
98 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
99
515630c5
UW
1002008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
101
102 * inferior.h (read_pc_pid, write_pc_pid): Remove.
103 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
104
105 * regcache.c (read_pc_pid): Remove, replace by ...
106 (regcache_read_pc): ... this function.
107 (write_pc_pid): Remove, replace by ...
108 (regcache_write_pc): ... this function.
109 (read_pc, write_pc): Update.
110
111 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
112 write_pc_pid by regcache_read_pc and regcache_write_pc.
113 (displaced_step_fixup): Likewise.
114 (resume): Likewise. Use regcache arch instead of current_gdbarch.
115 (prepare_to_proceed): Likewise.
116 (proceed): Likewise.
117 (adjust_pc_after_break): Likewise.
118 (handle_inferior_event): Likewise.
119
120 * linux-nat.c (cancel_breakpoint): Likewise.
121 * linux-thread-db.c (check_event): Likewise.
122 * aix-thread.c (aix_thread_wait): Likewise.
123 * tracepoint.c (trace_dump_command): Likewise.
124
ebd3bcc1
JK
1252008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
128 SYMBOL_LOCATION_BATON.
129
c47ffbe3
VP
1302008-05-04 Vladimir Prus <vladimir@codesourcery.com>
131
f78bff48
VP
132 * target.h (struct target_ops): New field to_auxv_parse.
133 * auxv.c (default_auxv_parse): New, renamed from previous
134 target_auxv_parse.
135 (target_auxv_parse): Try to call target method. Fallback to
136 default_auxv_parse if not found.
137 * procfs.c (procfs_auxv_parse): New.
138 (init_procfs_ops): On Solaris, in 64-bit mode, install
139 procfs_auxv_parse.
c47ffbe3 140
35076fa0
AN
1412008-05-03 Adam Nemet <anemet@caviumnetworks.com>
142
143 * symfile.c (add_symbol_file_command): Use paddress rather than
144 hex_string to print the address.
145
5b197912
UW
1462008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
147
148 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
149 return the null frame ID to terminate the backtrace.
150
4a7622d1
UW
1512008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
152
153 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
154 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
155 (SIG_FRAME_PC_OFFSET): Likewise.
156 (SIG_FRAME_LR_OFFSET): Likewise.
157 (SIG_FRAME_FP_OFFSET): Likewise.
158 (rs6000_push_dummy_call): Likewise.
159 (rs6000_return_value): Likewise.
160 (rs6000_convert_from_func_ptr_addr): Likewise.
161 (branch_dest, rs6000_software_single_step): Likewise.
162 (deal_with_atomic_sequence): Rename to ...
163 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
164 Do not call branch_dest; inline required parts of that function.
165 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
166 with SYMBOL_LINKAGE_NAME.
167 (struct reg, regsize): Delete.
168 (read_memory_addr): Delete; inline into callers.
169 (rs6000_skip_prologue): Move after skip_prologue.
170 (skip_prologue): Remove prototype.
171 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
172 initialization as if this variable were true. Do not install
173 ppc64_sysv_abi_adjust_breakpoint_address.
174
175 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
176 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
177 and "breakpoint.h".
178 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
179 (SIG_FRAME_PC_OFFSET): Likewise.
180 (SIG_FRAME_LR_OFFSET): Likewise.
181 (SIG_FRAME_FP_OFFSET): Likewise.
182 (rs6000_push_dummy_call): Likewise.
183 (rs6000_return_value): Likewise.
184 (rs6000_convert_from_func_ptr_addr): Likewise.
185 (branch_dest, rs6000_software_single_step): Likewise. Replace
186 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
187 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
188 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
189 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
190 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
191
192 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
193 (AIX_TEXT_SEGMENT_BASE): New macro.
194 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
195 by AIX_TEXT_SEGMENT_BASE.
196
197 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
198 (struct gdbarch_tdep): Remove text_segment_base member.
199 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
200 ppc64_sysv_abi_adjust_breakpoint_address.
201
202 * Makefile.in (rs6000-tdep.o): Update dependencies.
203 (rs6000-aix-tdep.o): Likewise.
204
938f5214
TJB
2052008-05-03 Luis Machado <luisgpm@br.ibm.com>
206 Thiago Jung Bauermann <bauerman@br.ibm.com>
207
208 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
209 * doublest.c (convert_typed_floating): Fix typo in comment.
210 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
211 * frame-unwind.h (frame_sniffer_ftype): Likewise.
212 * frame.c (frame_unwind_address_in_block): Likewise.
213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
214 * symtab.h (struct symbol): Likewise.
215 * tramp-frame.h (struct trad_frame_cache): Likewise.
216 * value.c (allocate_repeat_value): Likewise.
217
0b02b92d
UW
2182008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
219
220 * infrun.c (handle_inferior_event): Do not insert breakpoints at
221 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
222
d705c43c
PA
2232008-05-03 Pedro Alves <pedro@codesourcery.com>
224
225 * parse.c (parse_exp_in_context): Don't override
226 expression_context_pc if get_selected_block returned a valid
227 block.
228
d6350901
DJ
2292008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
230
231 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
232 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
233 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
234 Delete.
235 * c-typeprint.c (c_type_print_base): Delete handling of template
236 instantiations.
237 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
238 (METHOD_PTR_TO_VOFFSET): Delete.
239 * defs.h (QUIT_FIXME): Delete.
240 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
241 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
242 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
243 ninstantiations, and instantiations.
244 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
245 (TYPE_FN_FIELD_INLINED): Delete.
246 * srec.h (SREC_BINARY): Delete.
247 * symtab.c (symbol_init_demangled_name): Delete.
248 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
249 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
250 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
251 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
252 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
253 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
254 * target.h (enum thread_control_capabilities): Delete tc_switch.
255 (target_can_switch_threads): Delete.
256
30510692
DJ
2572008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * Makefile.in (objfiles.o): Update.
260 * exec.c (exec_set_section_address): Support p->addr != 0.
261 * objfiles.c (objfile_relocate): Update exec_ops section
262 addresses.
263 * symfile.c (place_section): Move exec_set_section_address call...
264 (default_symfile_offsets): ...to here.
265
7284e1be
UW
2662008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
267
268 * Makefile.in (ppc_linux_tdep_h): New macro.
269 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
270 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
271 (powerpc_e500l_c): Likewise.
272 (ppc-linux-nat.o): Update dependencies.
273 (ppc-linux-tdep.o): Update dependencies.
274 (rs6000-tdep.o): Update dependencies.
275
276 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
277 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
278 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
279 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
280 (tdesc_powerpc_e500): Remove.
281
282 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
283 and "features/rs6000/powerpc-altivec64.c".
284 (ppc_supply_reg, ppc_collect_reg): Make global.
285 (variants): Use tdesc_powerpc_32 for "powerpc" and
286 tdesc_powerpc_altivec64 for "powerpc64".
287 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
288
289 * ppc-linux-tdep.h: New file.
290
291 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
292 Include "features/rs6000/powerpc-32l.c".
293 Include "features/rs6000/powerpc-altivec32l.c".
294 Include "features/rs6000/powerpc-64l.c".
295 Include "features/rs6000/powerpc-altivec64l.c".
296 Include "features/rs6000/powerpc-e500l.c".
297 (ppc_linux_supply_gregset): New function.
298 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
299 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
300 (ppc64_linux_gregset): Likewise.
301 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
302 (ppc_linux_trap_reg_p): New function.
303 (ppc_linux_write_pc): New function.
304 (ppc_linux_core_read_description): New function.
305 (ppc_linux_init_abi): Install ppc_linux_write_pc and
306 ppc_linux_core_read_description. Install orig_r3 and trap
307 registers if present in the target description.
308 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
309
310 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
311 (PT_ORIG_R3, PT_TRAP): Define if necessary.
312 (ppc_register_u_addr): Handle orig_r3 and trap registers.
313 (fetch_ppc_registers): Likewise.
314 (store_ppc_registers): Likewise.
315 (store_register): Likewise.
316 (ppc_linux_read_description): Check whether AltiVec is supported.
317 Check whether inferior is 32-bit or 64-bit. Return the appropriate
318 Linux target description.
319
320 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
321 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
322 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
323 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
324 rs6000/powerpc-e500. Update -expedite variables accordingly.
325
326 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
327 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
328 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
329 * features/rs6000/powerpc-e500.c: Regenerate.
330 * features/rs6000/powerpc-32.c: Regenerate.
331 * features/rs6000/powerpc-64.c: Regenerate.
332
333 * features/rs6000/power-linux.xml: New file.
334 * features/rs6000/power64-linux.xml: New file.
335 * features/rs6000/powerpc-32l.xml: New file.
336 * features/rs6000/powerpc-altivec32l.xml: New file.
337 * features/rs6000/powerpc-64l.xml: New file.
338 * features/rs6000/powerpc-altivec64l.xml: New file.
339 * features/rs6000/powerpc-e500l.xml: New file.
340 * features/rs6000/powerpc-32l.c: New (generated) file.
341 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
342 * features/rs6000/powerpc-64l.c: New (generated) file.
343 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
344 * features/rs6000/powerpc-e500l.xml: New (generated) file.
345
346 * regformats/reg-ppc.dat: Remove.
347 * regformats/reg-ppc64.dat: Remove.
348 * regformats/rs6000/powerpc-32.dat: Remove.
349 * regformats/rs6000/powerpc-64.dat: Remove.
350 * regformats/rs6000/powerpc-e500.dat: Remove.
351 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
352 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
353 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
354 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
355 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
356
063bfe2e
VP
3572008-05-03 Pedro Alves <pedro@codesourcery.com>
358
359 * thread.c (delete_thread): Call observer_notify_thread_exit.
360 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
361 thread_exit observer.
362 (mi_thread_exit): New.
363
f132ba9d
TJB
3642008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
365
366 * breakpoint.c (create_exception_catchpoint): Remove prototype
367 for already deleted function.
368 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
369 * frame.h (show_stack_frame): Remove prototype.
370 * stack.c (show_stack_frame): Remove empty, unused function.
371 * source.c (symtab_to_fullname, print_source_lines): Small fix
372 in comment.
373 * value.c (show_values): Update comments to mention "show values"
374 command instead of "info history".
375
bccdca4a
UW
3762008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
377
378 * linespec.c: Include "target.h".
379 (minsym_found): Handle minimal symbols pointing to function
380 descriptors. Use find_function_start_pc.
381 * minsyms.c (msymbol_objfile): New function.
382 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
383 to function descriptors.
384 * symtab.c (fixup_section): Only use minimal symbol at the same
385 address to determine section of a symbol.
386 (find_function_start_pc): New function.
387 (find_function_start_sal): Use it.
388 * symtab.h (msymbol_objfile): Add prototype.
389 (find_function_start_pc): Likewise.
390 * value.c: Include "objfiles.h".
391 (value_fn_field): Handle minimal symbols pointing to function
392 descriptors.
393 * Makefile.in (linespec.o): Update dependencies.
394 (value.o): Likewise.
395
de4d072f
JB
3962008-05-02 Joel Brobecker <brobecker@adacore.com>
397
398 * ada-lang.c (unwrap_value): Handle the case where the "F" field
399 inside a PAD type is a bitfield.
400
93d4208d
UW
4012008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
402
403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
404 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
405 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
406 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
407 Allow typedefs when checking for function pointer arguments.
408 Right-align small structs passed on the stack.
409 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
410 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
411 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
412
60c5725c
DJ
4132008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * Makefile.in (arm-tdep.o): Update.
416 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
417 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
418 (arm_pc_is_thumb): Use mapping symbols.
419 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
420 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
421 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
422 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
423 * gdbarch.sh: Add record_special_symbol.
424 * gdbarch.c, gdbarch.h: Regenerated.
425 * objfiles.c (struct objfile_data): Add cleanup member.
426 (register_objfile_data_with_cleanup): New function, from
427 register_objfile_data.
428 (register_objfile_data): Use it.
429 (objfile_free_data): Call clear_objfile_data.
430 (clear_objfile_data): Call cleanup functions.
431 * objfiles.h (register_objfile_data_with_cleanup): Declare.
432
574dffa2
DJ
4332008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
434
435 * objfiles.c (init_entry_point_info): Handle shared libraries.
436
2c404490
DJ
4372008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
438
439 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
440 lowest_pc.
441
237fc4c9
PA
4422008-05-02 Jim Blandy <jimb@codesourcery.com>
443 Pedro Alves <pedro@codesourcery.com>
444
445 Implement displaced stepping.
446
447 * gdbarch.sh (max_insn_length): New 'variable'.
448 (displaced_step_copy, displaced_step_fixup)
449 (displaced_step_free_closure, displaced_step_location): New
450 functions.
451 (struct displaced_step_closure): Add forward declaration.
452 * gdbarch.c, gdbarch.h: Regenerated.
453
454 * arch-utils.c: #include "objfiles.h".
455 (simple_displaced_step_copy_insn)
456 (simple_displaced_step_free_closure)
457 (displaced_step_at_entry_point): New functions.
458 * arch-utils.h (simple_displaced_step_copy_insn)
459 (simple_displaced_step_free_closure)
460 (displaced_step_at_entry_point): New prototypes.
461
462 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
463 (I386_MAX_MATCHED_INSN_LEN): ... this.
464 (i386_absolute_jmp_p, i386_absolute_call_p)
465 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
466 (i386_displaced_step_fixup): New functions.
467 (struct i386_insn, i386_match_insn): Update.
468 (i386_gdbarch_init): Set gdbarch_max_insn_length.
469 * i386-tdep.h (I386_MAX_INSN_LEN): New.
470 (i386_displaced_step_fixup): New prototype.
471 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
472 Register gdbarch_displaced_step_copy,
473 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
474 and gdbarch_displaced_step_location functions.
475
476 * infrun.c (debug_displaced): New variable.
477 (show_debug_displaced): New function.
478 (struct displaced_step_request): New struct.
479 (displaced_step_request_queue, displaced_step_ptid)
480 (displaced_step_gdbarch, displaced_step_closure)
481 (displaced_step_original, displaced_step_copy)
482 (displaced_step_saved_copy, can_use_displaced_stepping): New
483 variables.
484 (show_can_use_displaced_stepping, use_displaced_stepping)
485 (displaced_step_clear, cleanup_displaced_step_closure)
486 (displaced_step_dump_bytes, displaced_step_prepare)
487 (displaced_step_clear_cleanup, write_memory_ptid)
488 (displaced_step_fixup): New functions.
489 (resume): Call displaced_step_prepare.
490 (proceed): Call read_pc once, and remember the value. If using
491 displaced stepping, don't remove breakpoints.
492 (handle_inferior_event): Call displaced_step_fixup. Add some
493 debugging output. When we try to step over a breakpoint, but get
494 a signal to deliver to the thread instead, ensure the step-resume
495 breakpoint is actually inserted. If a thread hop is needed, and
496 displaced stepping is enabled, don't remove breakpoints.
497 (init_wait_for_inferior): Call displaced_step_clear.
498 (_initialize_infrun): Add "set debug displaced" command. Add
499 "maint set can-use-displaced-stepping" command. Clear
500 displaced_step_ptid.
501 * inferior.h (debug_displaced): Declare variable.
502 (displaced_step_dump_bytes): Declare function.
503
504 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
505 dependencies.
506
0428b8f5
DJ
5072008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
508
509 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
510 (arm_force_mode_string, arm_show_fallback_mode)
511 (arm_show_force_mode): New.
512 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
513 arm_frame_is_thumb.
514 (_initialize_arm_tdep): Add "set arm fallback-mode"
515 and "set arm force-mode".
516 * NEWS: Document new commands.
517
d01a8610
AS
5182008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
519
520 * main.h (batch_silent): Declare.
521 * event-top.c: Include main.h.
522 (gdb_setup_readline): Remove extern batch_silent declaration.
523 * infrun.c (normal_stop): Don't print source location when running in
524 --batch-silent mode.
525 * Makefile.in (event-top.o): Add main.h dependency.
526
5009afc5
AS
5272008-05-02 Andreas Schwab <schwab@suse.de>
528
529 * target.h (struct target_ops): Add
530 to_watchpoint_addr_within_range.
531 (target_watchpoint_addr_within_range): New function.
532 * target.c (update_current_target): Inherit
533 to_watchpoint_addr_within_range, defaulting to
534 default_watchpoint_addr_within_range.
535 (default_watchpoint_addr_within_range): New function.
536 (debug_to_watchpoint_addr_within_range): New function.
537 (setup_target_debug): Set to_watchpoint_addr_within_range.
538 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
539 New function.
540 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
541 * breakpoint.c (watchpoints_triggered): Use
542 target_watchpoint_addr_within_range.
543
a15c5c83
PA
5442008-05-01 Pedro Alves <pedro@codesourcery.com>
545
546 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
547 (i[34567]86-*-dicos*, x86_64-*-dicos*):
548 Set gdb_osabi to GDB_OSABI_DICOS.
549
550 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
551 * osabi.c (gdb_osabi_name): Add "DICOS".
552
553 * i386-dicos-tdep.c: New file.
554
555 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
556 (ALLDEPFILES): Add i386-dicos-tdep.c.
557 (i386-dicos-tdep.o): New rule.
558
728c8f58
PA
5592008-05-01 Pedro Alves <pedro@codesourcery.com>
560
561 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
562 and register the fork's PTID as a thread.
563
604133b5
AR
5642008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
565
566 PR gdb/1665
567 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
568 assign its value to the breakpoint created.
569 (create_breakpoints): Add breakpoint_ops argument and pass it
570 to create_breakpoint call.
571 (break_command_really): Add breakpoint_ops argument and pass/assign
572 appropriately.
573 (break_command_1): Pass NULL as ops argument.
574 (set_breakpoint): Pass NULL as ops argument.
575 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
576 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
577 catch and throw catchpoints.
5009afc5 578
1cded358
AR
5792008-05-01 Aleksandar Riswtovski <aristovski@qnx.com>
580
581 PR gdb/2343
582 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
583 translate signal numeric value from the target to GDB's enum
584 target_signal.
585 * gdbarch.c, gdbarch.h: Regenerated.
586 * gdbarch.sh: Added two new functions target_signal_from_host and
587 target_signal_to_host.
588 * target.h (default_target_signal_from_host,
589 default_target_signal_to_host): New functions - declarations.
590 * signals/signals.c (struct gdbarch): New declaration.
591 (default_target_signal_to_host, default_target_signal_from_host): New
592 functions.
593
b39cc962
DJ
5942008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
595
596 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
597 * arm-tdep.c (arm_frame_is_thumb): New.
598 (arm_pc_is_thumb): Clarify comment.
599 (thumb_analyze_prologue): Remove PC special case.
600 (thumb_scan_prologue): Take a block_addr argument. Use it for
601 find_pc_partial_function. Remove unused variables.
602 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
603 for find_pc_partial_function. Remove PC special case.
604 (arm_prologue_prev_register): Add special handling for PC and CPSR.
605 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
606 (arm_get_next_pc): Use arm_frame_is_thumb.
607 (arm_write_pc): Use CPSR_T instead of 0x20.
608 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
609 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
610 (CPSR_T): Define.
611 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
612 DWARF2_FRAME_REG_FN.
613 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
614 DWARF2_FRAME_REG_FN.
615 (struct dwarf2_frame_state_reg): Add FN to loc union.
616
944f08ab
JB
6172008-05-01 Nick Roberts <nickrob@snap.net.nz>
618
619 * exec.c (print_section_info): Add missing '\n'.
620
cfc01461
VP
6212008-05-01 Vladimir Prus <vladimir@codesourcery.com>
622
623 * thread.c (add_thread): Move observer call to ...
624 (add_thread_silent): ... here.
625
1af5d7ce
UW
6262008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
627
628 * rs6000-tdep.c: Update for unwinder changes.
629 * ppcobsd-tdep.c: Likewise.
630
f089c433
UW
6312008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
632
633 * s390-tdep.c: Update for unwinder changes.
634
8d998b8f
UW
6352008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
636
637 * spu-tdep.c: Update for unwinder changes.
638
5366653e
DJ
6392008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
640
641 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
642 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
643 sparc64-linux-tdep.c: Update for unwinder changes.
644
b8a22b94
DJ
6452008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
646
647 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
648 for unwinder changes.
649 * mips-tdep.c: Likewise.
650 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
651 raw one.
652
a262aec2
DJ
6532008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
654
655 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
656 unwinder changes.
657
10458914
DJ
6582008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
659
660 Update i386 and amd64 ports for unwinder changes.
661
662 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
663 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
664 (amd64_frame_unwind): Use default_frame_sniffer.
665 (amd64_frame_sniffer): Delete.
666 (amd64_sigtramp_frame_cache): Expect this_frame.
667 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
668 (amd64_sigtramp_frame_sniffer): Update signature.
669 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
670 (amd64_frame_base_address): Expect this_frame.
671 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
672 this_frame.
673 (amd64_init_abi): Use set_gdbarch_dummy_id and
674 frame_unwind_append_unwinder.
675 * i386-tdep.c (i386_frame_cache): Expect this_frame.
676 (i386_frame_this_id, i386_frame_prev_register): Update signature.
677 (i386_frame_unwind): Use default_frame_sniffer.
678 (i386_frame_sniffer): Delete.
679 (i386_sigtramp_frame_cache): Expect this_frame.
680 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
681 (i386_sigtramp_frame_sniffer): Update signature.
682 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
683 (i386_frame_base_address): Update signature.
684 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
685 (i386_push_dummy_call): Update comment.
686 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
687 Expect this_frame.
688 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
689 and frame_unwind_append_unwinder.
690 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
691 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
692 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
693 i386nbsd-tdep.c: Update for unwinder changes.
694
25492ce3
DJ
6952008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
696
697 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
698 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
699 this_frame.
700 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
701 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
702 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
703 signature.
704 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
705 this_frame.
706 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
707 Update signature.
708 * tramp-frame.h (struct tramp_frame): Update signature of init.
709 * Makefile.in (trad-frame.o): Update.
710
4a4e5149
DJ
7112008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
712
713 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
714 (execute_stack_op): Put this_frame in the baton.
715 (execute_cfa_program): Take this_frame.
716 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
717 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
718 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
719 (dwarf2_frame_this_id): Adjust to work on this_frame.
720 (dwarf2_signal_frame_this_id): Delete.
721 (dwarf2_frame_prev_register): Update signature. Use new frame
722 unwind methods.
723 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
724 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
725 dwarf2_frame_sniffer.
726 (dwarf2_append_unwinders): New.
727 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
728 this_frame.
729 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
730 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
731 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
732 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
733 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
734 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
735 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
736 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
737 (dwarf2_append_unwinders): Declare.
738 (dwarf2_frame_base_sniffer): Update declaration.
739 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
740 this_frame.
741
669fac23
DJ
7422008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
743
744 Convert frame unwinders to use the current frame and
745 "struct value".
746
747 * frame.c (frame_debug): Make global.
748 (get_frame_id): Pass this frame to unwinder routines.
749 (frame_pc_unwind): Remove unused unwind->prev_pc support.
750 (do_frame_register_read): Do not discard the return value of
751 frame_register_read.
752 (frame_register_unwind): Remove debug messages. Use
753 frame_unwind_register_value.
754 (frame_unwind_register_value, get_frame_register_value): New
755 functions.
756 (create_new_frame, get_frame_base_address, get_frame_locals_address)
757 (get_frame_args_address, get_frame_type): Pass this frame to
758 unwinder routines.
759 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
760 functions.
761 * frame.h: Update comments.
762 (frame_debug, frame_unwind_register_value, get_frame_register_value)
763 (frame_prepare_for_sniffer): Declare.
764 * frame-unwind.h: Update comments and parameter names.
765 (default_frame_sniffer): Declare.
766 (frame_prev_register_ftype): Return a struct value *.
767 (struct frame_unwind): Remove prev_pc member.
768 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
769 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
770 (frame_unwind_got_register, frame_unwind_got_memory)
771 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
772 * frame-base.h: Update comments and parameter names.
773 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
774 if necessary. Add debugging output.
775 * sentinel-frame.c (sentinel_frame_prev_register)
776 (sentinel_frame_this_id): Update for new signature.
777 (sentinel_frame_prev_pc): Delete.
778 (sentinel_frame_unwinder): Remove prev_pc.
779 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
780 prev_pc.
781 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
782 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
783 (frame_unwind_append_sniffer): Delete.
784 (frame_unwind_append_unwinder): New function.
785 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
786 from unwinders. Use frame_prepare_for_sniffer.
787 (default_frame_sniffer, frame_unwind_got_optimized)
788 (frame_unwind_got_register, frame_unwind_got_memory)
789 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
790 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
791 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
792 signature.
793 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
794 * gdbarch.c, gdbarch.c: Regenerated.
795 * frame-base.c (default_frame_base_address)
796 (default_frame_locals_address, default_frame_args_address): Update
797 for new signature.
798 (frame_base_find_by_frame): Pass this frame to unwinder routines.
799 * infcall.c (call_function_by_hand): Update comments.
800 * Makefile.in (frame-unwind.o): Update dependencies.
801
9214ee5f
DJ
8022008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
803
804 * ada-lang.c (ada_value_primitive_packed_val): Only check
805 value_lazy for memory lvals.
806 * findvar.c (value_of_register_lazy): New function.
807 (locate_var_value): Only check value_lazy for memory lvals.
808 * valarith.c (value_subscripted_rvalue): Likewise.
809 * valops.c (value_fetch_lazy): Handle both memory and register
810 lvals.
811 (search_struct_field, value_slice): Only check value_lazy for memory
812 lvals.
813 * value.c (struct value): Update comment for lazy.
814 (value_primitive_field): Only check value_lazy for memory lvals.
815 * value.h (value_lazy): Update comment.
816 (value_of_register_lazy): Declare.
817
939643d7
DJ
8182008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
819
820 * corefile.c (reopen_exec_file): Close any open files.
821
1de34ab7
JB
8222008-04-29 Joel Brobecker <brobecker@adacore.com>
823
824 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
825 show_memory_breakpoints to 1 while reading the instruction bundle.
826
ea42b34a
JB
8272008-04-29 Joel Brobecker <brobecker@adacore.com>
828
829 * gdbarch.sh: Document the return_value method. Explain that
830 the FUNCTYPE parameter might be NULL.
831 * gdbarch.h: Regenerated.
832 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
833 type when calling using_struct_return, as this is unnecessary
834 on this target.
835
a0fe373c
JB
8362008-04-28 Joel Brobecker <brobecker@adacore.com>
837
838 * terminal.h (create_tty_session): Fix return type.
839
c6446539
VP
8402008-04-26 Vladimir Prus <vladimir@codesourcery.com>
841
842 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
843
2f069f6f
JB
8442008-04-26 Joel Brobecker <brobecker@adacore.com>
845
846 * breakpoint.c (condition_command, commands_from_control_command)
847 (break_command_really): Minor reformatting.
848
93b5768b
PA
8492008-04-25 Pedro Alves <pedro@codesourcery.com>
850
851 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
852
436675d3
PA
8532008-04-25 Pedro Alves <pedro@codesourcery.com>
854
855 * amd64-tdep.c (amd64_get_longjmp_target): New.
856 (amd64_init_abi): Register amd64_get_longjmp_target as
857 gdbarch_get_longjmp_target callback.
858 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
859
78b6a731
PA
8602008-04-25 Pedro Alves <pedro@codesourcery.com>
861
862 * breakpoint.h (enum bpstat_what_main_action): Delete
863 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
864
865 * breakpoint.c (clrs): Delete.
866 (bpstat_what): Update table.
867
868 * infrun.c (handle_inferior_event): Remove
869 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
870
9e22b03a
VP
8712008-04-24 Vladimir Prus <vladimir@codesourcery.com>
872
873 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
874 Adjust all prototypes using mi_cmd_args_ftype to use
875 mi_cmd_argv_ftype.
876 (struct mi_cmd): Remove the args_func field.
877 * mi/mi-cmds.c: Don't provide value for the args_func field.
878 * mi/mi-main.c (mi_execute_async_cli_command)
879 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
880 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
881 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
882 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
883 (mi_cmd_target_download): Adjust.
884 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
885 (mi_cmd_execute): Do not check for args_func.
886 (mi_execute_async_cli_command): Adjust.
887 * mi/mi-parse.c: Don't check for args_func.
888
721c02de 8892008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
890
891 * breakpoint.c (bpstat_check_location)
892 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
893 New, extracted from bpstat_stop_status.
894 (bpstat_stop_status): Use the above.
895
8962008-04-24 Vladimir Prus <vladimir@codesourcery.com>
897
721c02de
VP
898 * mi/mi-main.c (last_async_command): Rename to current_token.
899 (previous_async_command): Remove.
900 (mi_cmd_gdb_exit): Adjust.
901 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
902 (mi_cmd_target_select): Adjust.
903 (mi_cmd_execute): Don't set previous_async_command. Free token
904 here even in async mode.
905 (mi_execute_async_cli_command): Adjust.
906 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
907 token.
908 (mi_load_progress): Adjust.
909
f13468d9
VP
9102008-04-24 Vladimir Prus <vladimir@codesourcery.com>
911
912 * infcmd.c (step_1_continuation): Always disable longjmp
913 breakpoint if we're not going to do another step.
914
f107f563
VP
9152008-04-24 Vladimir Prus <vladimir@codesourcery.com>
916
917 exec_cleanup murder.
918 * breakpoint.c (until_break_command_continuation): Add
919 the 'error' parameter. Directly delete the breakoint as
920 opposed to running cleanups.
921 (until_break_command): Install continuation only
922 after starting the target. Don't use exec cleanups,
923 use ordinary cleanups. Discard cleanups is successfully
924 started the target in async mode.
925 (make_cleanup_delete_breakpoint): Remove.
926 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
927 declaration.
928 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
929 declarations.
930 (struct continations): Add the 'error' parameter to the
931 continuation_hook field.
932 (add_continuation, do_all_continuations)
933 (add_intermediate_continuation)
934 (do_all_intermediate_continuations): Add the 'error' parameter.
935 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
936 * inf-loop.c (inferior_event_handler): Instead of calling
937 discard_all_continuations, use do_all_continuations with 1 as
938 'error' parameter. Pass 0 as 'error' parameter in existing uses
939 of discard_all_continuations.
940 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
941 cleanups.
942 (step_once): Install continuation only after resuming the target.
943 (step_1_continuation): Disable longjmp breakpoint on error.
944 (finish_command_continuation): Add the error parameter. Delete
945 the finish breakpoint directly, do not use cleanups.
946 (finish_command): Do not use exec_cleanups. Always setup
947 continuation. For sync case, immediately run them.
948 (attach_command_continuation): Add the error parameter.
949 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
950 remove step_resume_breakpoint -- adjust delete it directly.
951 * interps.c (interp_set): Adjust call to do_all_continations.
952 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
953 do exec cleanups.
954 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
955 cleanups.
956 (mi_cmd_execute): Do not use exec_cleanup.
957 (mi_execute_async_cli_command): Simplify the string concatenation
958 logic. Do no use exec cleanup.
959 (mi_exec_async_cli_cmd_continuation): New parameter error.
960 Free last_async_command.
961 * top.c (command_line_handler_continuation): New parameter error.
962 * utils.c (exec_cleanup_chain, make_exec_cleanup)
963 (do_exec_cleanups): Remove.
964 (add_continuation, do_all_continations)
965 (add_intermediate_continuation)
966 (do_all_intermediate_continuations): New parameter error.
967
74960c60
VP
9682008-04-24 Vladimir Prus <vladimir@codesourcery.com>
969
970 * breakpoint.h (bp_location_p): New typedef.
971 Register a vector of bp_location_p.
972 * breakpoint.c (always_inserted_mode)
973 (show_always_inserted_mode): New.
974 (unlink_locations_from_global_list): Remove.
975 (update_global_location_list)
976 (update_global_location_list_nothrow): New.
977 (update_watchpoint): Don't free locations.
978 (should_insert_location): New.
979 (insert_bp_location): Use should_insert_location.
980 (insert_breakpoint_locations): Copied from
981 insert_breakpoints.
982 (insert_breakpoint): Use insert_breakpoint_locations.
983 (bpstat_stop_status): Call update_global_location_list
984 when disabling breakpoint.
985 (allocate_bp_location): Don't add to bp_location_chain.
986 (set_raw_breakpoint)
987 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
988 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
989 (enable_overlay_breakpoints, disable_overlay_breakpoints)
990 (set_longjmp_resume_breakpoint)
991 (enable_watchpoints_after_interactive_call_stop)
992 (disable_watchpoints_before_interactive_call_start)
993 (create_internal_breakpoint)
994 (create_fork_vfork_event_catchpoint)
995 (create_exec_event_catchpoint, set_momentary_breakpoint)
996 (create_breakpoints, break_command_1, watch_command_1)
997 (create_exception_catchpoint)
998 (handle_gnu_v3_exceptions)
999 (disable_breakpoint, breakpoint_re_set_one)
1000 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1001 (create_ada_exception_breakpoint): : Don't call check_duplicates.
1002 Call update_global_location_list.
1003 (delete_breakpoint): Don't remove locations and don't
1004 try to reinsert them. Call update_global_location_list.
1005 (update_breakpoint_locations): Likewise.
1006 (restore_always_inserted_mode): New.
1007 (update_breakpoints_after_exec): Temporary disable
1008 always inserted mode.
1009 * Makefile.in: Update dependencies.
1010
1011 * infrun.c (proceed): Remove breakpoints while stepping
1012 over breakpoint.
1013 (handle_inferior_event): Don't remove or insert
1014 breakpoints.
1015 * linux-fork.c (checkpoint_command): Remove breakpoints
1016 before fork and insert after.
1017 (linux_fork_context): Remove breakpoints before switch
1018 and insert after.
1019 * target.c (target_disconnect, target_detach): Remove
1020 breakpoints from target.
1021
1022
d24317b4
VP
10232008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1024
1025 * breakpoint.c (print_one_breakpoint_location): In MI
1026 mode, report the location string the breakpoint was
1027 originally created with.
1028
ee967b5f
MG
10292008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
1030
1031 * Makefile.in (xtensa-tdep.o): Update dependencies.
1032 * configure.tgt (xtensa*): Update dependencies.
1033 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
1034 Local variable areg renamed to arreg.
1035 (areg_number): New function.
1036 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1037 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
1038 replaced by arreg_number.
1039 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
1040 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
1041 (xtensa_scan_prologue): New function.
1042 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
1043 when ENTRY instraction hasn't been executed yet. Get the frame pointer
1044 value based on prologue analysis. Fix the bugs preventing WS and
1045 AR4-AR7/A11 registers from getting right values for intermediate frames,
1046 whose registers have been already spilled.
1047 (xtensa_frame_prev_register): Fix WS register value. Use are_number
1048 and arreg_number appropriately.
1049 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1050 svr4_ilp32_fetch_link_map_offsets.
1051
09d71d23
AS
10522008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
1053
1054 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
1055 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
1056
fdc59709
PB
10572008-04-23 Paolo Bonzini <bonzini@gnu.org>
1058
1059 * acinclude.m4: Add override.m4.
1060 * configure: Regenerate.
1061
0bcd0149
JK
10622008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1063
1064 * ada-lang.c (get_selections): Variable PROMPT made non-const and
1065 initialized with a trailing space now. Use PROMPT_ARG of
1066 COMMAND_LINE_INPUT instead of printing it ourselves.
1067
88d8a8e0
JB
10682008-04-22 Joel Brobecker <brobecker@adacore.com>
1069
1070 * NEWS: Document support for 64-bit core file.
1071
c055b101
CV
10722008-04-22 Corinna Vinschen <vinschen@redhat.com>
1073
1074 * NEWS: Add information on calling convention and new SH CLI options.
1075
1076 * sh-tdep.c (sh_cc_gcc): New static string.
1077 (sh_cc_renesas): Ditto.
1078 (sh_cc_enum): New static string array.
1079 (sh_active_calling_convention): New static string pointer denoting
1080 active user chosen ABI.
1081 (sh_is_renesas_calling_convention): New function to return function
1082 specific ABI, or user choice if necessary.
1083 (sh_use_struct_convention): Rename first argument and turn around its
1084 meaning. Check for renesas ABI and return accordingly.
1085 (sh_use_struct_convention_nofpu): New function.
1086 (sh_next_flt_argreg): Get function type as third parameter. Check
1087 for renesas ABI and choose floating registers accordingly.
1088 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
1089 struct return slot accordingly.
1090 (sh_push_dummy_call_nofpu): Ditto.
1091 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
1092 Evaluate ABI and give to sh_use_struct_convention_nofpu.
1093 (sh_return_value_fpu): Evaluate ABI and give to
1094 sh_use_struct_convention.
1095 (show_sh_command): New function.
1096 (set_sh_command): Ditto.
1097 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
1098 CLI command.
1099
1100 * gdbarch.sh (return_value): Add func_type argument.
1101 * gdbarch.c: Regenerate.
1102 * gdbarch.h: Ditto.
1103 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
1104 val_type so as not to collide with value_type function. Call
1105 using_struct_return with additional function type argument.
1106 * infcall.c (call_function_by_hand): Call using_struct_return and
1107 gdbarch_return_value with additional function type argument.
1108 * infcmd.c (print_return_value): Take addition func_type argument.
1109 Call gdbarch_return_value with additional function type argument.
1110 (finish_command_continuation): Call print_return_value with additional
1111 function type argument.
1112 (finish_command): Ditto.
1113 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
1114 additional function type argument.
1115 * stack.c (return_command): Call using_struct_return and
1116 gdbarch_return_value with additional function type argument.
1117 * value.c (using_struct_return): Take additional function type argument.
1118 * value.h (using_struct_return): Accommodate declaration.
1119 * alpha-tdep.c (alpha_return_value): Add func_type argument.
1120 * amd64-tdep.c (amd64_return_value): Ditto.
1121 * arm-tdep.c (arm_return_value): Ditto.
1122 * avr-tdep.c (avr_return_value): Ditto.
1123 * cris-tdep.c (cris_return_value): Ditto.
1124 * frv-tdep.c (frv_return_value): Ditto.
1125 * h8300-tdep.c (h8300_return_value): Ditto.
1126 (h8300h_return_value): Ditto.
1127 * hppa-tdep.c (hppa32_return_value): Ditto.
1128 (hppa64_return_value): Ditto.
1129 * i386-tdep.c (i386_return_value): Ditto.
1130 * ia64-tdep.c (ia64_return_value): Ditto.
1131 * iq2000-tdep.c (iq2000_return_value): Ditto.
1132 * m32c-tdep.c (m32c_return_value): Ditto.
1133 * m32r-tdep.c (m32r_return_value): Ditto.
1134 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
1135 * m68k-tdep.c (m68k_return_value): Ditto.
1136 (m68k_svr4_return_value): Ditto.
1137 * m88k-tdep.c (m88k_return_value): Ditto.
1138 * mep-tdep.c (mep_return_value): Ditto.
1139 * mips-tdep.c (mips_eabi_return_value): Ditto.
1140 (mips_n32n64_return_value): Ditto.
1141 (mips_o32_return_value): Ditto.
1142 (mips_o64_return_value): Ditto.
1143 * mn10300-tdep.c (mn10300_return_value): Ditto.
1144 * mt-tdep.c (mt_return_value): Ditto.
1145 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
1146 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
1147 (ppc_sysv_abi_broken_return_value): Ditto.
1148 (ppc64_sysv_abi_return_value): Ditto.
1149 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1150 (ppc_sysv_abi_broken_return_value): Ditto.
1151 (ppc64_sysv_abi_return_value): Ditto.
1152 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1153 * rs6000-tdep.c (rs6000_return_value): Ditto.
1154 * s390-tdep.c (s390_return_value): Ditto.
1155 * score-tdep.c (score_return_value): Ditto.
1156 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1157 (sh_return_value_fpu): Ditto.
1158 * sh64-tdep.c (sh64_return_value): Ditto.
1159 * sparc-tdep.c (sparc32_return_value): Ditto.
1160 * sparc64-tdep.c (sparc64_return_value): Ditto.
1161 * spu-tdep.c (spu_return_value): Ditto.
1162 * v850-tdep.c (v850_return_value): Ditto.
1163 * vax-tdep.c (vax_return_value): Ditto.
1164 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1165 * xtensa-tdep.c (xtensa_return_value): Ditto.
1166
1167 * gdbtypes.h (struct type): Add calling_convention member.
1168 * dwarf2read.c (read_subroutine_type): Add calling convention read
1169 from DW_AT_calling_convention attribute to function type.
1170
9eec4d1e
MD
11712008-04-22 Markus Deuling <deuling@de.ibm.com>
1172
1173 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1174 multi_f77_subscript to support values from registers.
1175 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1176 * value.h (value_subscripted_rvalue): Add prototype.
1177
1178 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1179 Fix output.
1180 * f-valprint.c (f_val_print): Likewise.
1181
ef72380d
CS
11822008-04-21 Craig Silverstein <csilvers@google.com>
1183
1184 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1185 !HAVE_ZLIB_H case.
1186
ff8e85c3
PA
11872008-04-21 Pedro Alves <pedro@codesourcery.com>
1188
1189 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1190 section is not a code section.
1191
31fffb02
CS
11922008-04-19 Craig Silverstein <csilvers@google.com>
1193
1194 * NEWS: Add information on compressed debug sections.
1195
8e91f023
VP
11962008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1197
1198 * mi/mi-cmd-var.c (varobj_update_one): Print new
1199 value for variable objects that changed type.
1200
603ba1de
VP
12012008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1202
1203 * varobj.c (varobj_invalidate): Don't touch floating
1204 varobjs.
1205
7fc830e2
MK
12062008-04-19 Mark Kettenis <kettenis@gnu.org>
1207
1208 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1209 (multiple_symbols_cancel): Remove extra const.
1210 * symtab.h: Likewise.
1211
bcbf8b68
NR
12122008-04-19 Nick Roberts <nickrob@snap.net.nz>
1213
1214 * interps.c (top_level_interpreter): Rename static variable...
1215 (top_level_interpreter_ptr): ...to this.
1216 (top_level_interpreter): New function.
1217
1218 * interps.h: New extern for top_level_interpreter.
1219
1220 * linespec.c: Include interps.h and mi/mi-cmds.h.
1221 (decode_line_2): When using MI, always set all breakpoints in menu.
1222
1223 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1224
31fffb02 12252008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
1226
1227 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1228 * config.in, configure: Regenerate.
1229 * dwarf2read.c: Include zlib.h if present.
1230 Modified *_SECTION macros.
1231 (section_is_p): New.
1232 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1233 (dwarf2_resize_section): New.
1234 to determine whether a given section has a given name.
1235 (zlib_decompress_section): New.
1236 (dwarf2_read_section): Read the compressed section if present
1237 in the binary.
1238 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 1239
a03b3a97
TJB
12402008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1241
1242 * defs.h (exec_set_section_offsets): Remove prototype.
1243 * exec.c (exec_set_section_offsets): Remove function.
1244
9e386756
JB
12452008-04-18 Joel Brobecker <brobecker@adacore.com>
1246
1247 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1248 in the search for the matching symbol.
1249
2ec93238
MK
12502008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1251
1252 * breakpoint.c (update_watchpoint): Always reparse
1253 condition.
1254
e9bbd7c5
JB
12552008-04-17 Joel Brobecker <brobecker@adacore.com>
1256
1257 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1258 the breakpoint address only once.
1259
475bbd17
JB
12602008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1261
1262 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1263 rather than a hard-coded architecture, for xcoff executables.
1264
86991504
DE
12652008-04-17 Doug Evans <dje@google.com>
1266
4584e32e
DE
1267 * buildsym.c (watch_main_source_file_lossage): New fn.
1268 (end_symtab): Call it.
1269
86991504
DE
1270 * source.c (find_and_open_source): Add some comments clarifying
1271 handling of FULLNAME argument. Make static. Remove pointless
1272 xstrdup/xfree.
1273
0a320680
PA
12742008-04-17 Pedro Alves <pedro@codesourcery.com>
1275
1276 * inf-loop.c (inferior_event_handler): Also run the intermediate
1277 continuations in the INF_EXEC_COMPLETE case.
1278
700b53b1
TT
12792008-04-16 Tom Tromey <tromey@redhat.com>
1280
1281 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1282 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1283 * cli/cli-decode.c (set_cmd_async_ok): New function.
1284 (get_cmd_async_ok): New function.
1285 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1286 "show" as async-ok.
1287 * top.c (execute_command): Use get_cmd_async_ok.
1288 * infcmd.c: Include cli/cli-decode.h.
1289 (_initialize_infcmd): Mark "interrupt" as async-ok.
1290 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1291
dacec2a8
DJ
12922008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1293
1294 PR gdb/2445
1295 * exec.c: Correct "arch-utils.h" include.
1296
2cec12e5
AR
12972008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
1298
1299 PR gdb/2424
1300 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1301 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1302 * breakpoint.c (bpdisp_texst): New function. The function takes over
1303 the role of bpstats static array in print_one_breakpoint_location.
1304 (print_it_typical): Print "Temporary breakpoint" instead
1305 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1306 protocols, print disp field.
1307 (print_one_breakpoint_location): Removed bpdisps static definition.
1308 Call new bpstat_text function to get value for 'disp' field.
1309 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1310
4d7b71aa
DJ
13112008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1312
1313 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1314 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1315 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1316 * gnulib/Makefile.in: Regenerate.
1317
aa11fd3f
DJ
13182008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1319
1320 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1321 (defs_h): Use $(GNULIB_H).
1322 (all-lib): Depend on gnulib/Makefile.
1323 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1324 * config.in, gnulib/Makefile.in: Regenerated.
1325
e28b3332
DJ
13262008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1327
1328 * Makefile.in (LIBGNU, INCGNU): Define.
1329 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1330 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1331 (CLEANDIRS): New.
1332 ($(LIBGNU), all-lib): New rules.
1333 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1334 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1335 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1336 * gnulib: New directory, from gnulib-tool.
1337 * configure, aclocal.m4: Regenerated.
1338
e3bc4218
DJ
13392008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1340
1341 * linux-thread-db.c (have_threads_callback): Check thread->private.
1342
fcacd99f
VP
13432008-04-13 Nick Roberts <nickrob@snap.net.nz>
1344 Vladimir Prus <vladimir@codesourcery.com>
1345
1346 Fix @-varobjs.
1347 * varobj.c (value_of_root): Update the expression for
1348 floating varobjs.
1349 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1350 report that.
1351
de051565
MK
13522008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1353
1354 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1355 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1356 (mi_cmd_var_set_format): Use new mi_parse_format.
1357 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1358 format.
1359 * Makefile.in (mi-cmd-var.o): Update dependencies.
1360
1361 * varobj.h (varobj_get_formatted_value): Declare.
1362 * varobj.c (my_value_of_variable): Added format parameter.
1363 (cplus_value_of_variable): Likewise.
1364 (java_value_of_variable): Likewise.
1365 (c_value_of_variable): Likewise. Evaluate expression based
1366 on format parameter.
1367 (struct language_specific): Add format parameter to function member
1368 *value_of_variable.
1369 (varobj_get_formatted_value): New.
1370 (varobj_get_value): Added format parameter to method call.
1371
56953f80
JB
13722008-04-08 Joel Brobecker <brobecker@adacore.com>
1373
1374 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1375 instance flags of the undefined type before calling replace_type.
1376
e4e33b9e
VP
13772008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1378
1379 * target.h (enum strata): Remove the download_stratum.
1380
92b5c263
DE
13812008-04-07 Doug Evans <dje@google.com>
1382
1383 * buildsym.h (last_source_file): Add dwarf info to comment.
1384 (last_source_start_addr): Ditto.
1385
effa26a9
PA
13862008-04-07 Pedro Alves <pedro@codesourcery.com>
1387
1388 * alphanbsd-tdep.c: Include "target.h".
1389 * mn10300-tdep.c: Include "target.h".
1390 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1391
2b2d9e11
VP
13922008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1393
1394 Fix breakpoint condition that use member variables.
1395 * valops.c (check_field): Remove.
1396 (check_field_in): Rename to check_field.
1397 (value_of_this): Use la_name_of_this.
1398 * value.h (check_field): Adjust prototype.
1399
1400 * language.h (la_value_of_this): Rename to la_name_of_this.
1401 * language.c (unknown_language_defn): Specify "this" for
1402 name_of_this.
1403 (auto_language_defn): Likewise.
1404 (local_language_defn): Likewise.
1405 * ada-lang.c (ada_language_defn): Adjust comment.
1406 * c-lang.c (c_language_defn): Adjust comment.
1407 (cplus_language_defn): Specify "this" for name_of_this.
1408 (asm_language_defn): Adjust comment.
1409 (minimal_language_defn): Adjust comment.
1410 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1411 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1412 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1413 * objc-lang.c (objc_language_defn): Specify "self" for
1414 name_of_this.
1415 * p-lang.c (pascal_language_defn): Specify "this" for
1416 name_of_this.
1417 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1418
1419 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1420 proper scope, and check for field in type of "this", without
1421 trying to create a value.
1422
a13e061a
PA
14232008-04-04 Pedro Alves <pedro@codesourcery.com>
1424
1425 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1426 (mi_error_message): Delete declaration.
1427 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1428 returning MI_CMD_ERROR.
1429 * mi/mi-main.c (mi_error_message): Delete.
1430 (mi_cmd_exec_interrupt):
1431 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1432 (mi_cmd_thread_info): Call error instead of returning
1433 MI_CMD_ERROR.
1434 (mi_cmd_data_list_register_values): Call error instead of
1435 returning MI_CMD_ERROR. Adapt to new get_register interface.
1436 (get_register): Change return typo to void. Call error instead of
1437 returning MI_CMD_ERROR.
1438 (mi_cmd_data_write_register_values): Call error instead of
1439 returning MI_CMD_ERROR.
1440 (mi_cmd_list_features): Return MI_CMD_DONE.
1441 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1442 (mi_execute_command): Always print exceptions with -error.
1443
aad4b048
JB
14442008-04-04 Joel Brobecker <brobecker@adacore.com>
1445
1446 * NEWS: Mention new commands set/show multiple-symbols.
1447
717d2f5a
JB
14482008-04-03 Joel Brobecker <brobecker@adacore.com>
1449
1450 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1451 (multiple_symbols_cancel): New constants.
1452 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1453 (multiple_symbols_select_mode): New function.
1454 (_initialize_symtab): Add new set/show multiple-symbols commands.
1455 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1456 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1457 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1458 setting.
1459 * linespec.c (decode_line_2): Likewise.
1460
f73634e5
DE
14612008-04-03 Doug Evans <dje@sebabeach.org>
1462
1463 * symtab.h (enum free_code): Delete free_contents, unused.
1464 * symmisc.c (free_symtab_block): Delete.
1465 (free_symtab, case free_code): Delete.
1466
6af87b03
AR
14672008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1468
1469 * valops.c (value_cast_structs): New function. Cast related
1470 STRUCT types up/down and return cast value. The body of this
1471 function comes mostly from value_cast_pointers.
1472 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1473 to value_cast_structs. Now value_cast_pointers needs only create
1474 appropriate reference after using value_cast_structs for actual
1475 casting.
1476 (value_cast): Handle references.
1477
61ad90e1
MK
14782008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1479
1480 * MAINTAINERS: Added myself to section Write After Approval.
1481
b7d038ae
DJ
14822008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1483
1484 * ia64-tdep.c (examine_prologue): Correct array access.
1485
14862008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
1487
1488 * cp-support.c (first_component_command): Return if no arguments.
1489
df3ac606
CD
14902008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1491
1492 * ser-mingw.c (ser_windows_open): Open requested name.
1493
ca933485
AR
14942008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1495
1496 * MAINTAINERS: Added myself.
1497
5f667f2d
PA
14982008-03-28 Pedro Alves <pedro@codesourcery.com>
1499
1500 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1501 parameter. If it is NULL, don't call error.
1502 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1503 `do_mesg' parameter to find_default_run_target. If no target was
1504 found, return 0.
1505
e741f4d4
DJ
15062008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1507
1508 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1509 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1510 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1511 Delete.
1512 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1513
f66d8205 15142008-03-27 Joel Brobecker <brobecker@adacore.com>
1515
1516 GDB 6.8 released.
1517
221c031f
UW
15182008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1519
1520 * features/Makefile (%.dat): Set xmltarget to the base filename
1521 of the XML source, without subdirectory.
1522 * regformats/rs6000/powerpc-32.dat: Regenerate.
1523 * regformats/rs6000/powerpc-64.dat: Regenerate.
1524 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1525
40c58d95
MD
15262008-03-27 Markus Deuling <deuling@de.ibm.com>
1527
1528 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1529 objfile arch.
1530
bb1ec7d2
NR
15312008-03-27 Nick Roberts <nickrob@snap.net.nz>
1532
1533 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1534 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1535
5e2b427d
UW
15362008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1537
1538 * objfiles.h (struct objfile): New GDBARCH member.
1539 (get_objfile_arch): Add prototype.
1540 * objfiles.c: Include "arch-utils.h".
1541 (allocate_objfile): Look up gdbarch associated with bfd.
1542 (get_objfile_arch): New function.
1543 * Makefile (objfiles.o): Update dependencies.
1544
1545 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1546 by objfile arch.
1547 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1548 by frame arch.
1549 (locexpr_describe_location): Replace current_gdbarch by
1550 objfile arch.
1551 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1552 (dwarf2_add_field): Likewise.
1553 (read_tag_pointer_type): Likewise.
1554 (read_base_type): Likewise.
1555 (new_symbol): Likewise.
1556
1557 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1558 (decode_base_type, decode_function_type): Likewise.
1559 (coff_read_struct_type, coff_read_enum_type): Likewise.
1560 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1561 (decode_base_type): Likewise.
1562 (coff_read_enum_type): Likewise.
1563 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1564 (coff_read_enum_type): Likewise.
1565
1566 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1567 (end_psymtab): Likewise.
1568 (process_one_symbol): Likewise.
1569
1570 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1571 (parse_procedure): Likewise.
1572 (parse_partial_symbols): Likewise.
1573
1574 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1575
1576 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1577 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1578 built-in types.
1579 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1580 static range_index_type by built-in type.
1581 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1582 (read_enum_type): Likewise.
1583
1584 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1585 objfile arch.
1586
5a413362
VP
15872008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1588
1589 * varobj.h (varobj_floating_p): Declare.
1590 * varobj.c (varobj_floating_p): New.
1591 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1592 '@' as the name, update all floating varobjs.
1593
a5defcdc
VP
15942008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1595
1596 * varobj.c (struct varobj_root): Rename use_selected_frame to
1597 floating, and clarify the meaning.
1598 (varobj_create, varobj_update, new_root_variable): Adjust.
1599 (value_of_root): Don't use type_changed as in variable,
1600 adjust comment.
1601 (c_value_of_root): Adjust.
5a413362 1602
403fe197
PA
16032008-03-25 Pedro Alves <pedro@codesourcery.com>
1604
1605 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1606 gdb's thread list.
1607 (linux_nat_wait): Add main lwp to gdb's thread list.
1608 * linux-thread-db.c (find_new_threads_callback): Also attach to
1609 already listed threads which thread_db didn't know about yet.
1610
710151dd
PA
16112008-03-25 Pedro Alves <pedro@codesourcery.com>
1612
1613 * linux-nat.c (drain_queued_events): Fix comment typo.
1614 (linux_nat_attach): In async mode, don't rely on storing a pending
1615 status. Instead place the wait status on the pipe.
1616 (linux_nat_resume): Remove unreacheable shortcut code in async
1617 mode.
1618 (stop_wait_callback): In async mode, don't store pending status.
1619 Instead, cancel breakpoints or resend the signal appropriatelly.
1620 (cancel_breakpoint): New, refactored from
1621 cancel_breakpoints_callback.
1622 (cancel_breakpoints_callback): Call cancel_breakpoint.
1623 (pipe_to_local_event_queue): Remove special token processing.
1624 (linux_nat_wait): Issue an internal error if a pending status is
1625 found in async mode.
1626
807bddf3
DJ
16272008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1628
1629 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1630
c5b48eac
VP
16312008-03-24 Nick Roberts <nickrob@snap.net.nz>
1632 Vladimir Prus <vladimir@codesourcery.com>
1633
1634 * varobj.c (struct varobj_root): New component thread_id.
1635 (varobj_get_thread_id, check_scope): New functions.
1636 (c_value_of_root): Use check_scope. Switch to the
1637 proper thread if necessary.
1638
1639 * varobj.h (varobj_get_thread_id): New extern.
1640
1641 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1642
12f4afab
DJ
16432008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1644
1645 PR gdb/544
1646 * top.c: Revert 2008-03-21 changes.
1647
6208b47d
VP
16482008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1649
1650 * thread.c (make_cleanup_restore_current_thread): Make it
1651 globally visible.
1652 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1653 * varobj.c (varobj_update): Don't save/restore frame.
1654 (c_value_of_root): Save/restore thread and frame here,
1655 using make_cleanup_restore_current_thread.
1656 * Makefile.in: Update dependecies.
1657
44a67aa7
VP
16582008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1659
1660 * varobj.c (struct varobj_root): Clarify
1661 comment on the frame field.
1662 (varobj_create): Don't set frame if we have no
1663 block.
1664
b562a0cb
DJ
16652008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1666
1667 PR gdb/544
1668 Suggested by Jan Kratochvil:
1669 * top.c (gdb_rl_operate_and_get_next_completion): Call
1670 rl_redisplay_function.
1671 (gdb_rl_redisplay): New.
1672 (init_main): Set rl_redisplay_function.
1673
ed1bd5f5
JB
16742008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1675
1676 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1677 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1678 (store_regs_kernel_thread): Likewise.
1679
b84876c2
PA
16802008-03-21 Pedro Alves <pedro@codesourcery.com>
1681
1682 Linux native async support.
1683
1684 * target.h (struct target_ops): Delete to_async_mask_value and add
1685 to_async_mask.
1686 (target_is_async_p, target_async): Formatting.
1687 (target_async_mask_value): Delete.
1688 (target_async_mask): Delete function declaration, and add new
1689 target macro with the same name.
1690
1691 * target.c (update_current_target): Replace to_async_mask_value by
1692 to_async_mask. Default to_async_mask to return_one.
1693 (target_async_mask): Delete.
1694 (find_default_can_async_p, find_default_is_async_p): New.
1695 (init_dummy_target): register find_default_can_async_p and
1696 find_default_is_async_p on the dummy target.
1697
1698 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1699 (debug_linux_nat_async): New global.
1700 (show_debug_linux_nat_async): New function.
1701 (linux_nat_async_enabled, linux_nat_async_mask_value)
1702 (linux_nat_event_pipe, linux_nat_num_queued_events)
1703 (linux_nat_async_events_enabled): New globals.
1704 (struct waitpid_result): New struct.
1705 (waitpid_queue): New global.
1706 (queued_waitpid, push_waitpid, drain_queued_events): New.
1707 (my_waitpid): Call queued_waitpid.
1708 (linux_child_follow_fork): Disable async events during the call.
1709 (blocked_mask): Delete.
1710 (sync_sigchld_action, async_sigchld_action): New globals.
1711 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1712 async mode, block events during the call.
1713 (linux_nat_create_inferior): New.
1714 (linux_nat_attach): In sync mode, restore the mask states. In
1715 async mode, wake the event loop immediatelly.
1716 (detach_callback): Drain all queued events of the lwp we're
1717 detaching from.
1718 (linux_nat_detach): Block async mode, and drain events of the main
1719 process.
1720 (linux_nat_resume): If in async mode, mask async events during the
1721 call. If short circuiting, force event loop to wake up. If
1722 resuming, set target_executing, and register target events in the
1723 event loop.
1724 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1725 (linux_nat_wait): In async mode, block events during the call.
1726 Only enable/disable passing SIGINT to the inferior in sync mode.
1727 Get events from local waitpid queue. If no interesting events was
1728 found, return to events loop. Reregister target events in the
1729 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1730 (linux_nat_kill): Disable events on entry.
1731 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1732 here. Detach async mode from the event loop if there are no more
1733 forks available, otherwise leave it on.
1734 (sigchld_handler): Assure this is called only in sync mode.
1735 (linux_async_permitted, linux_async_permitted_1): New globals.
1736 (set_maintenance_linux_async_permitted)
1737 (show_maintenance_linux_async_permitted): New functions.
1738 (linux_nat_is_async_p, linux_nat_can_async_p)
1739 (linux_nat_async_mask): New.
1740 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1741 (get_pending_events, async_sigchld_handler): New.
1742 (linux_nat_async_events): New.
1743 (async_terminal_is_ours): New global.
1744 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1745 (async_client_callback, async_client_context): New.
1746 (linux_nat_async_file_handler, linux_nat_async)
1747 (linux_nat_disable_async, linux_nat_enable_async): New.
1748 (linux_nat_add_target): Register linux_nat_create_inferior,
1749 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1750 linux_nat_async_mask, linux_nat_terminal_inferior and
1751 linux_nat_terminal_ours.
1752 (_initialize_linux_nat): Remove local action variable, and update
1753 code that used it to use sync_sigchld_action. Add new
1754 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1755 set/show command in the maintenance class. Add new "linux-async"
1756 maintenance set/show command. Block SIGCHLD by default. Setup
1757 async_sichld_action, and sync_sigchld_action. Install the default
1758 async mode.
1759 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1760 the cancel signals.
1761
1762 * linux-thread-db.c (re_check_for_thread_db): New.
1763 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1764 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1765 (thread_db_async_mask): New.
1766 (init_thread_db_ops): Register thread_db_can_async_p,
1767 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1768
1769 * remote.c (remote_async_mask_value): New.
1770 (remote_return_zero): New.
1771 (init_remote_ops): Register remote_return_zero as callbacks of
1772 to_can_async_p and to_is_async_p.
1773 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1774 use remote_async_mask_value.
1775 (remote_async_mask): New.
1776 (init_remote_async_ops): Remove to_async_mask_value setting and
1777 register remote_async_mask as to_async_mask callback in
1778 remote_async_ops.
1779
1780 * Makefile.in (linux-nat.o): Update.
1781
17faa917
DJ
17822008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1783
1784 * gdbthread.h (add_thread_with_info): New.
1785 * linux-thread-db.c: Add some documentation.
1786 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1787 (struct private_thread_info): Remove th_valid and ti_valid.
1788 Replace ti with tid.
1789 (thread_get_info_callback): Do not add TID to the new ptid. Do
1790 not cache th or ti.
1791 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1792 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1793 new PTID.
1794 (attach_thread): Handle an already-existing thread. Use
1795 add_thread_with_info. Cache the th and tid.
1796 (detach_thread): Verify that private was set. Remove verbose
1797 argument and printing. Update caller.
1798 (thread_db_detach): Do not adjust inferior_ptid.
1799 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1800 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1801 (thread_db_wait): Do not use lwp_from_thread.
1802 (thread_db_pid_to_str): Use the cached TID.
1803 (thread_db_extra_thread_info): Check that private is set.
1804 (same_ptid_callback): Delete.
1805 (thread_db_get_thread_local_address): Do not use it or check
1806 is_thread. Check that private is set. Assume that the thread
1807 handle is already cached.
1808 (init_thread_db_ops): Remove to_resume and to_kill.
1809 * thread.c (add_thread_with_info): New.
1810 (add_thread): Use it.
1811 * linux-nat.c (find_thread_from_lwp): Delete.
1812 (exit_lwp): Do not use it. Check print_thread_events. Print before
1813 deleting the thread.
1814 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1815 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1816 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1817 printf_unfiltered for thread exits.
1818 * procfs.c (procfs_wait): Likewise.
1819
6214f497
DJ
18202008-03-21 Chris Demetriou <cgd@google.com>
1821
1822 * symtab.c (rbreak_command): Quote symbol name before passing
1823 it to break_command.
1824
63092375
DJ
18252008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1826
1827 * eval.c (evaluate_subexp_for_address): Clarify error message.
1828 Use value_must_coerce_to_target.
1829 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1830 * valops.c (value_assign): Call value_coerce_to_target when
1831 assigning to anything but internalvars. Leave GDB-side arrays
1832 as arrays when assigning to internalvars.
1833 (value_must_coerce_to_target, value_coerce_to_target): New.
1834 (value_coerce_array, value_addr): Call value_coerce_to_target.
1835 (value_array): Create the array in GDB's memory instead of
1836 the inferior's.
1837 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1838 Declare.
1839
b21991b0
DJ
18402008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1841
1842 * top.c (quit_confirm): Warn that we will kill the program.
1843
49a834f9
PA
18442008-03-19 Pedro Alves <pedro@codesourcery.com>
1845
1846 * inflow.c (terminal_ours_1): Guard access to
1847 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1848
ae0d2f24
UW
18492008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1850 Jim Blandy <jimb@codesourcery.com>
1851 Daniel Jacobowitz <drow@false.org>
1852
1853 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1854 (dwarf2_read_address): Update prototype.
1855
1856 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1857 (signed_address_type): Likewise.
1858 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1859 (execute_stack_op): Update calls to unsigned_address_type,
1860 signed_address_type and dwarf2_read_address. Fix implementation
1861 of DW_OP_deref_size.
1862
1863 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1864 (dwarf2_per_cu_addr_size): Likewise.
1865 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1866 (struct dwarf2_loclist_baton): Likewise.
1867
1868 * dwarf2loc.c (find_location_expression): Update calls to
1869 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1870 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1871 (locexpr_describe_location): Likewise.
1872 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1873 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1874 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1875 to dwarf2_per_cu_addr_size (per_cu).
1876 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1877 (loclist_read_variable): Likewise.
1878 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1879
1880 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1881 instead of baton->objfile.
1882 (dwarf2_per_cu_obfile): New function.
1883 (dwarf2_per_cu_addr_size): Likewise.
1884
1885 * dwarf2-frame.c (struct comp_unit): Move higher.
1886 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1887 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1888 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1889 parameter by using fde->eh_frame_p. Use read_encoded_value
1890 to implement DW_CFA_set_loc.
1891 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1892 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1893 execute_stack_op and execute_cfa_program.
1894 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1895 (size_of_encoded_value): Remove.
1896 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1897 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1898 (add_cie): Set cie->unit backlink.
1899 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1900 read_encoded_value.
1901 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1902
1c8201d1
MD
19032008-03-17 Markus Deuling <deuling@de.ibm.com>
1904
1905 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1906 gdbarch_bfd_arch_info.
1907
46bba1ef
JB
19082008-03-17 Joel Brobecker <brobecker@adacore.com>
1909
1910 * aix-thread.c (pdc_read_regs): Minor reformatting.
1911
0bcd3e20
VP
19122008-03-17 Vladimir Prus <vladimir@codesourcery.com>
1913
1914 * thread.c (print_thread_info): Don't insist
1915 on having current thread if there are no
1916 threads at all.
1917
9356cf8d
PA
19182008-03-17 Pedro Alves <pedro@codesourcery.com>
1919
1920 * infcmd.c (attach_command_post_wait)
1921 (attach_command_continuation): New.
1922 (attach_command): Support background async execution, and async
1923 execution in synchronous mode.
1924
5c3ce3f7
DJ
19252008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1926
1927 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1928 * symmisc.c (dump_symtab_1): Likewise.
1929 * wrapper.c (gdb_value_struct_elt): Likewise.
1930
fa2c6a57
PA
19312008-03-17 Pedro Alves <pedro@codesourcery.com>
1932
1933 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1934
02f3fc28
PA
19352008-03-17 Pedro Alves <pedro@codesourcery.com>
1936
1937 * linux-nat.c (linux_nat_filter_event): New, refactored from
1938 linux_nat_wait.
1939 (linux_nat_wait): Call linux_nat_filter_event.
1940
2f77b315
UW
19412008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
1942
1943 * top.c (execute_command): Fix uninitialized variable error.
1944
f01be29b
NH
19452008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1946
1947 * Makefile.in (amd64nbsd-nat.o): New dependency.
1948 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1949 (_initialize_amd64nbsd_nat): Update target vector to use
1950 nbsd_pid_to_exec_file.
1951 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1952
6cf32704
VP
19532008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1954
1955 Remove ignoring leading exec events code.
1956 * fork-child.c (startup_inferior): Do not set
1957 inferior_ignoring_leading_exec_events.
1958 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1959 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1960 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1961 (handle_inferior_event): Remove code for ignoring leading exec
1962 events.
1963 * target.c (update_current_target): Do not inherit, or default,
1964 to_reported_exec_events_per_exec_call.
1965 (debug_to_reported_exec_events_per_exec_call): Remove.
1966 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1967 * target.h (target_reported_exec_events_per_exec_call): Remove.
1968 (struct target): Remove the to_reported_exec_events_per_exec_call
1969 field.
1970
8e8901c5
VP
19712008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1972
1973 Implement -thread-info.
1974 * gdbthread.h (print_thread_info): Declare.
1975
1976 * thread.c (print_thread_info): New, extracted
1977 from info_threads_command and adjusted to
1978 work for CLI and MI.
1979 (info_threads_command): Use print_thread_info.
1980 * Makefile.in: Update dependencies.
1981
1982 * mi/mi-cmds.c (mi_cmds): Specify a handler
1983 for -thread-info.
1984 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1985 * mi/mi-main.c (mi_cmd_thread_info): New.
1986 (mi_cmd_list_features): Include 'thread-info'.
1987
7d1e6fb8
KB
19882008-03-14 Kevin Buettner <kevinb@redhat.com>
1989
1990 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1991 to decide whether to match instruction patterns using "sw" and "sd".
1992
89113898
PA
19932008-03-14 Pedro Alves <pedro@codesourcery.com>
1994
1995 * infcmd.c (jump_command): Postpone disabling stdin until after
1996 the possible query.
1997
64a0ac84
PA
19982008-03-14 Pedro Alves <pedro@codesourcery.com>
1999
2000 * inflow.c (gdb_getpgrp): New.
2001 (gdb_has_a_terminal): Use get_getpgrp.
2002 (terminal_ours_1): If attach_flag is set, don't refetch
2003 inferior_process_group.
2004
1fddbabb
PA
20052008-03-14 Pedro Alves <pedro@codesourcery.com>
2006
2007 * features/library-list.dtd: Allow "section" elements as children
2008 of "library". Add "section" element and describe its attributes.
2009
2010 * solib-target.c (struct lm_info): Add section_bases member.
2011 (library_list_start_segment): Error out if seen a section element.
2012 (library_list_start_section): New.
2013 (library_list_end_library): New.
2014 (solib_target_free_library_list): Free section_bases.
2015 (section_attributes): New.
2016 (library_children): Make "segment" optional. Add "section" child.
2017 (library_list_children): Register library_list_end_library.
2018 (solib_target_relocate_section_addresses): Handle section bases.
2019
2020 * NEWS: Mention new qXfer:libraries:read section offsets support.
2021
712af3be
VP
20222008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2023
2024 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
2025 (make_exec_error_cleanup): Remove declarations.
2026 * utils.c (exec_error_cleanup_chain): Remove.
2027 (do_exec_error_cleanups, discard_exec_error_cleanups)
2028 (make_exec_error_cleanup): Remove.
2029 * event-loop.c (start_event_loop): Adjust call to
2030 async_enable_stdin.
2031 * event-top.c (async_enable_stdin): Remove the paramater dummy.
2032 (async_disable_stdin): Don't register async_enable_stdin via
2033 cleanup.
2034 * inf-loop.c (inferior_event_handler): Don't
2035 call do_exec_error_cleanups. Call async_enable_stdin instead.
2036 * event-loop.c (start_event_loop): Adjust call to
2037 async_enable_stdin.
2038 * tui/tui-interp.c (tui_command_loop): Adjust call to
2039 async_enable_stdin.
2040
32c1e744
VP
20412008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2042
2043 Async mode fixes.
2044 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
2045 * breakpoint.c (bpstat_do_actions): In async mode,
2046 don't jump to top expecting stop_bpstat to be already
2047 updated.
2048 * event-loop.c (start_event_loop): Call async_enable_stdin
2049 on exception.
2050 * event-top.c (async_enable_stdin): Do nothing if sync_execution
2051 is not set.
2052 (command_handler): Do not setup continuation here.
2053 (command_line_handler_continuation): Move to...
2054 * top.c (command_line_handler_continuation): ... here.
2055 (execute_command): In async mode, register continuation.
2056 Don't check frame's language in running in async mode.
2057 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
2058 * inf-loop.c (complete_execution): Inline into...
2059 (inferior_event_handler): ... here. Clear target_executing before
2060 doing any cleanups. Don't try to show prompt if the target was
2061 resumed.
2062 * infcmd.c (signal_command): Add support for async mode.
2063 (finish_command): Only add continuation if the target was
2064 successfully resumed.
2065 * remote.c (init_async_opts): Register to_get_thread_local_address
2066 handler.
2067 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
2068 with sync_execution.
2069 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
2070 on exception.
2071
c04ea773
DJ
20722008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2073
2074 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
2075 * exec.c (exec_bfd_mtime): Define.
2076 (exec_close): Clear it.
2077 (exec_file_attach): Set it.
2078 * gdbcore.h (exec_bfd_mtime): Declare.
2079 * source.c (find_source_lines): Do not use bfd_get_mtime.
2080
952dc227
VP
20812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2082
2083 * top.c (simplified_command_loop): Remove.
2084
4cf46804
VP
20852008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2086
2087 Remove unused remote.c hooks.
2088 * remote.c (deprecated_target_resume_hook)
2089 (deprecated_target_wait_loop_hook): Remove.
2090 (remote_resume): Do not call deprecated_target_resume_hook.
2091 (remote_wait): Do not call deprecated_target_wait_loop_hook.
2092 (remote_async_wait): Likewise.
2093
683f2885
VP
20942008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2095
2096 Implement MI notification for new threads.
2097 * doc/observer.texi (new_thread): Document.
2098 * observer.sh: Forward declare struct thread_info.
2099 * thread.c (add_thread): Notify observer.
2100
2101 * interps.h (interp_init_ftype): New parameter
2102 top_level.
2103 (interp_set): Likewise.
2104 (top_level_interpreter_data): Declare.
2105 * interps.c (interp_set): New parameter top_level.
2106 Pass it to interpreter's init function. Remember
2107 top level interpreter.
2108 (interpreter_exec_cmd): Adjust.
2109 (top_level_interpreter_data): New.
2110 * main.c (captured_main): Pass 1 for top_level
2111 parameter of interp_set.
2112 * cli/cli-interp.c (cli_interpreter_init): New
2113 parameter top_level.
2114 * tui/tui-interp.c (tui_init): New parameter top_level.
2115
2116 * mi/mi-interp.c (mi_new_thread): New.
2117 (mi_interpreter_init): If top level, register
2118 observer for new threads.
2119
2120 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
2121
ff9b3928
PA
21222008-03-14 Pedro Alves <pedro@codesourcery.com>
2123
2124 * top.c (execute_command): Disable break and stop
2125 commands in async mode.
2126
b18392ef
PA
21272008-03-14 Pedro Alves <pedro@codesourcery.com>
2128
2129 revert:
2130 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2131 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2132 Call target_stop in the INF_QUIT_REQ case.
2133 * Makefile.in (inf-loop.o): Update.
2134
0aca9f07
PA
21352008-03-14 Pedro Alves <pedro@codesourcery.com>
2136
2137 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2138 Call target_stop in the INF_QUIT_REQ case.
2139 * Makefile.in (inf-loop.o): Update.
2140
0b4e556c
PA
21412008-03-14 Pedro Alves <pedro@codesourcery.com>
2142
2143 * top.c (execute_command): Enable break, info and interrupt
2144 commands in async mode.
2145
8defab1a
DJ
21462008-03-13 Vladimir Prus <vladimir@codesourcery.com>
2147 Daniel Jacobowitz <dan@codesourcery.com>
2148
2149 * breakpoint.h (breakpoint_restore_shadows): New
2150 declaration.
2151 * breakpoint.c (breakpoint_restore_shadows): New.
2152 (read_memory_nobpt): Delete.
2153 * gdbcore.h (read_memory_nobpt): Delete declaration.
2154 * target.c (memory_xfer_partial): Call
2155 breakpoint_restore_shadows.
2156 (restore_show_memory_breakpoints)
2157 (make_show_memory_beakpoints_cleanup): New.
2158 (show_memory_breakpoints): New.
2159 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2160 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2161 Make sure we see memory breakpoints when checking if
2162 breakpoint is still there.
2163 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2164 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2165 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2166 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2167
fd532e2e
PA
21682008-03-12 Pedro Alves <pedro@codesourcery.com>
2169
2170 * thread.c (add_thread): Use printf_unfiltered to print.
2171
f749779f 21722008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
2173
2174 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2175 that is true only on x86-solaris and x86_64-solaris.
2176 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2177 with proc_get_LDT_entry.
2178
21792008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
2180
2181 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2182 * config.in, configure: Regenerate.
2183 * fork-child.c (fork_inferior): Call create_tty_session.
2184 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2185 (create_tty_session): New function.
2186 * terminal.h: Declare create_tty_session.
2187
4fbb74a6
AM
21882008-03-12 Alan Modra <amodra@bigpond.net.au>
2189
2190 PR 5900
2191 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2192 * mipsread.c: Include elf/internal.h.
2193 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2194 to internal range.
2195
20a6ec49
MD
21962008-03-11 Markus Deuling <deuling@de.ibm.com>
2197
2198 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2199 to get at the current architecture and at the target specific vector.
2200 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2201 remove define of I387_ST0_REGNUM.
2202
2203 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2204
2205 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2206 get at the current architecture
2207 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2208 parameter.
2209
2210 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2211 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2212
2213 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2214 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2215 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2216
2217 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2218 at the target specific vector.
2219
2220 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2221 architecture. Use gdbarch_tdep to get at the target specific vector.
2222
2223 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2224 update caller. Use gdbarch_tdep to get at the target specific vector.
2225
2226 (i386_register_to_value: Use get_frame_arch to get at the current
2227 architecture.
2228
2229 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2230 parameter.
2231
2232 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2233 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2234 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2235 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2236
2237 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2238 undef's.
2239
2240 (i387_convert_register_p, i387_register_to_value,
2241 i387_value_to_register): Update call for i386_fp_regnum_p.
2242
2243 * i387-tdep.h: Remove comment.
2244 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2245 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2246 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2247 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2248 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2249
ccd213ac
DJ
22502008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2251
2252 * Makefile.in (fork-child.o): Update.
2253 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2254 argument. Gather all gdbserver features together.
2255 * fork-child.c (exec_wrapper): New variable.
2256 (fork_inferior): Use it.
2257 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2258 (unset_exec_wrapper_command, _initialize_fork_child): New.
2259
22602008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
2261
2262 * source.c (directory_command): Modify the determination of
2263 condition of terminal "from_tty".
2264
22566fbd
DJ
22652008-03-10 Matt Rice <ratmice@gmail.com>
2266
2267 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2268
9971ac47
UW
22692008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2270
2271 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2272 of the data passing to strtoulst function.
2273 (info_spu_signal_command): Likewise.
2274
835670cf
VP
22752008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2276
2277 * mi/mi-interp.c (mi_command_loop): Remove
2278 commented-out code.
2279
be86555c
JB
22802008-03-07 Joel Brobecker <brobecker@adacore.com>
2281
2282 * remote.c (extended_remote_attach_1): Make local variable pid an int
2283 instead of a pid_t.
2284
4d7b2d5b
JB
22852008-03-07 Joel Brobecker <brobecker@adacore.com>
2286
2287 * solib-svr4.c (svr4_same_1): New function, originally extracted
2288 from svr4_same and expanded to handle the sparc64 case.
2289 (svr4_same): Move up and reimplement using svr4_same_1.
2290 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2291
61fed90e
RR
22922008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2293
2294 * MAINTAINERS: Move self to Paper trail.
2295
b803fb0f
DJ
22962008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2297
2298 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2299 * event-loop.c (call_async_signal_handler): New.
2300 * event-loop.h (call_async_signal_handler)
2301 (gdb_call_async_signal_handler): Declare.
2302 (mark_async_signal_handler): Add comments.
2303 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2304 * mingw-hdep.c (sigint_event, sigint_handler): New.
2305 (gdb_select): Use them. Wait for the readline signal handler
2306 to finish.
2307 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2308 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2309 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2310 New.
2311 (remote_fileio_ctrl_c_signal_handler): Use
2312 gdb_call_async_signal_handler.
2313 (initialize_remote_fileio): Initialize sigint_fileio_token.
2314 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2315 not initialize tokens here.
2316 (handle_remote_sigint_twice): Likewise. Reinstall
2317 handle_remote_sigint.
2318 (async_remote_interrupt_twice): Just call interrupt_query.
2319 (cleanup_sigint_signal_handler): Do not delete tokens.
2320 (remote_interrupt, remote_interrupt_twice): Use
2321 gdb_call_async_signal_handler.
2322 (interrupt_query): Reinstall the default signal handler.
2323 (_initialize_remote): Initialize tokens here.
2324
8f4d54ed
JB
23252008-03-04 Joel Brobecker <brobecker@adacore.com>
2326
2327 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2328 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2329 Change the type of the lr register to code_ptr.
2330 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2331 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2332 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2333 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2334 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2335 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2336 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2337
95ece428
JW
23382008-03-03 James E. Wilson <wilson@tuliptree.org>
2339
2340 * MAINTAINERS: Update my email address.
2341
686a5eed
KS
23422008-03-03 Keith Seitz <keiths@redhat.com>
2343
2344 From Dave Murphy <davem@devkitpro.org>:
2345 * configure.ac: Set tcl configdir to win under mingw.
2346 * configure: Regenerate.
2347
fa4727a6
DJ
23482008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2349
2350 * breakpoint.c (fetch_watchpoint_value): New function.
2351 (update_watchpoint): Set and clear val_valid. Use
2352 fetch_watchpoint_value. Handle unreadable values on the
2353 value chain. Correct check for user-requested array watchpoints.
2354 (breakpoint_init_inferior): Clear val_valid.
2355 (watchpoint_value_print): New function.
2356 (print_it_typical): Use it. Do not free or clear old_val. Print
2357 watchpoints even if old_val == NULL.
2358 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2359 becoming readable or unreadable.
2360 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2361 (do_enable_watchpoint): Likewise.
2362 * breakpoint.h (struct breakpoint): Update comment for val. Add
2363 val_valid.
2364 * NEWS: Mention watchpoints on inaccessible memory.
2365
c03374d5
DJ
23662007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2367
2368 * Makefile.in (i386-nat.o): Update.
2369 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2370 i386_use_watchpoints.
2371 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2372 i386_use_watchpoints.
2373 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2374 (i386_stopped_by_watchpoint): Update call.
2375 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2376 * config/i386/nm-i386.h: Conditionalize definitions on
2377 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2378 (i386_use_watchpoints): Declare.
2379 (i386_stopped_data_address): Update.
2380 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2381 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2382
c24d7425 23832008-02-29 Joel Brobecker <brobecker@adacore.com>
2384
2385 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2386 * version.in: Bump version to 6.8.50.20080229-cvs.
2387
a7dfd010
MD
23882008-02-28 Markus Deuling <deuling@de.ibm.com>
2389
2390 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2391 properly.
2392
258c00cc
TT
23932008-02-28 Tom Tromey <tromey@redhat.com>
2394
2395 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2396
8edfe269
DJ
23972008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2398
2399 * infcmd.c (kill_if_already_running): Make static. Use
2400 target_require_runnable.
2401 * target.c (target_require_runnable): New.
2402 * target.h (target_require_runnable): Declare.
2403
0d6ba1b1
DJ
24042008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2405
2406 * frame.c (reinit_frame_cache): Only annotate if frames were
2407 previously valid.
2408
6fe305f7
UW
24092008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2410
2411 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2412 * regformats/reg-ppc64.dat: Likewise.
2413
9b4b61c8
UW
24142008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2415
2416 * features/Makefile (%.dat): Emit xmltarget statement.
2417
2418 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2419 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2420
2421 * regformats/arm-with-iwmmxt.dat: Regenerate.
2422 * regformats/mips64-linux.dat: Regenerate.
2423 * regformats/mips-linux.dat: Regenerate.
2424 * regformats/rs6000/powerpc-32.dat: Regenerate.
2425 * regformats/rs6000/powerpc-64.dat: Regenerate.
2426 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2427
2428 * regformats/reg-arm.dat: Add xmlarch statement.
2429 * regformats/reg-i386.dat: Likewise.
2430 * regformats/reg-i386-linux.dat: Likewise.
2431 * regformats/reg-x86-64-linux.dat: Likewise.
2432 * regformats/reg-spu.dat: Likewise.
2433
20b4711e
DJ
24342008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2435
2436 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2437 an error.
2438
1843f87b
DJ
24392008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2440
2441 * utils.c (debug_timestamp): New.
2442 (vfprintf_unfiltered): Print timestamps if requested.
2443 (show_debug_timestamp): New.
2444 (initialize_utils): Register "set debug timestamp".
2445 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2446
6a048695
JB
24472008-02-27 Joel Brobecker <brobecker@adacore.com>
2448
2449 * breakpoint.c (skip_prologue_sal): New function.
2450 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2451 computed from a line number.
2452
0b998f49
JB
24532008-02-27 Joel Brobecker <brobecker@adacore.com>
2454
2455 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2456 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2457 Set PC register type to "code_ptr".
2458 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2459 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2460 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2461 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2462 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2463 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2464 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2465 Regenerate.
2466
d05b4ac3
UW
24672008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2468
2469 * regformats/regdat.sh: Rename init_registers function in
2470 generated file to init_registers_${name}.
2471
2472 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2473 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2474 * regformats/reg-s390x.dat: Set "name" to s390x.
2475
a5d9d57d
DJ
24762008-02-26 Greg Law <glaw@undo-software.com>
2477
2478 * regcache.c (registers_changed): Call reinit_frame_cache.
2479
e25c958c
DJ
24802008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2481
2482 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2483 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2484 and svr4_fetch_objfile_link_map.
2485 * Makefile.in (sh-linux-tdep.o): Update.
2486
5daa78cc
TJB
24872008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2488
2489 * amd64-tdep.c (amd64_classify): Add support for decimal float
2490 types.
2491 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2492 use the struct return convention.
2493
54e52265
VP
24942008-02-26 Nick Roberts <nickrob@snap.net.nz>
2495
2496 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2497 to old format. Discard breakpoint address if shared library is
2498 unloaded.
2499 (breakpoint_1): Adjust formatting of table header accordingly.
2500
d8f2712d
VP
25012008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2502
2503 * remote.c (remote_get_threadlist): If the response
2504 is empty, don't try to parse it.
2505
05ce04a4
VP
25062008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2507
2508 Unbreak 'target async'.
2509 * serial.c (serial_async): Set the
2510 handler function before enabling async
2511 mode.
2512
b36ec657
DJ
25132008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2514
2515 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2516
df7df359
PA
25172008-02-21 Pedro Alves <pedro@codesourcery.com>
2518
2519 * remote.c (extended_remote_attach_1): Set attach_flag.
2520 (extended_remote_create_inferior_1): Clear attach_flag.
2521
7cd25cfc
DJ
25222008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2523
2524 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2525 r_brk_offset.
2526 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2527 * solib-svr4.c (solib_svr4_r_brk): New.
2528 (open_symbol_file_object, svr4_current_sos): Always check the
2529 debug base.
2530 (svr4_fetch_objfile_link_map): Do not set debug_base.
2531 (enable_break): Use r_brk if it is set.
2532 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2533 (svr4_lp64_fetch_link_map_offsets): Likewise.
2534 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2535
07ea644b
MD
25362008-02-20 Markus Deuling <deuling@de.ibm.com>
2537 Mark Kettenis <kettenis@gnu.org>
2538
2539 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2540 trad_frame_saved_reg.
2541 (trad-frame.h): New include.
2542
2543 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2544 instead of frame_obstack_zalloc.
2545 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2546
2547 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2548
40887e1a
MD
25492008-02-20 Markus Deuling <deuling@de.ibm.com>
2550
2551 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2552 from disassemble_info instead of gdbarch_byte_order.
2553
2554 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2555 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2556
ae4b2284
MD
25572008-02-20 Markus Deuling <deuling@de.ibm.com>
2558
2559 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2560 gdbarch as parameter.
2561
2562 * gdbarch.{c,h}: Regenerate.
2563
2564 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2565 parameter.
2566 * mem-break.c (default_memory_insert_breakpoint)
2567 (default_memory_remove_breakpoint): Likewise.
2568 * target.h (default_memory_remove_breakpoint)
2569 (default_memory_insert_breakpoint): Likewise.
2570
2571 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2572 parameter. Replace current_gdbarch by gdbarch.
2573 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2574 (m32r_memory_remove_breakpoint): Likewise.
2575
d9bf65d5
DJ
25762008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2577
2578 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2579
b93b6ca7
JB
25802008-02-19 Joel Brobecker <brobecker@adacore.com>
2581
2582 * NEWS: Add entry describing Add support improvements.
2583
4ed226fe
MD
25842008-02-18 Markus Deuling <deuling@de.ibm.com>
2585
2586 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2587 M68K_FP0_REGNUM.
2588
caaa79ad
MD
25892008-02-18 Markus Deuling <deuling@de.ibm.com>
2590
2591 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2592 register_offset_hack anymore.
2593
2594 * regcache.{c,h} (register_offset_hack): Remove.
2595
e38c262f
MD
25962008-02-18 Markus Deuling <deuling@de.ibm.com>
2597
2598 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2599
2600 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2601 current_gdbarch by gdbarch.
2602 (hppa64_hpux_find_global_pointer): Likewise.
2603 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2604 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2605 find_global_pointer.
2606
2607 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2608 parameter.
2609 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2610
2611 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2612 of gdbarch_num_regs.
2613
2614 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2615 replace current_gdbarch by gdbarch.
2616 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2617
206988c4
MD
26182008-02-18 Markus Deuling <deuling@de.ibm.com>
2619
2620 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2621 and replace current_gdbarch by gdbarch.
2622
2623 (store_register): Update call for exec_one_dummy_insn.
2624 (fetch_register, store_register): Update call of regmap.
2625
2626 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2627 parameter and replace current_gdbarch by gdbarch.
2628
2629 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2630 the current architecture. Update call for getregs_supplies and
2631 getfpregs_supplies.
2632 (ppcnbsd_fetch_inferior_registers): Likewise.
2633
2634 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2635 replace current_gdbarch by gdbarch.
2636 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2637 get_regcache_arch to get at the current architecture. Update call for
2638 getfpregs_supplies.
2639
f642be6b
MD
26402008-02-18 Markus Deuling <deuling@de.ibm.com>
2641
2642 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2643 variables.
2644
b1f2bf01
MD
26452008-02-15 Markus Deuling <deuling@de.ibm.com>
2646
2647 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2648
ee163bf5
VP
26492008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2650
2651 * NEWS: Mention pending breakpints in MI.
2652
f6fbcbf9
MD
26532008-02-14 Markus Deuling <deuling@de.ibm.com>
2654
2655 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2656
36af4ef6
MD
26572008-02-13 Markus Deuling <deuling@de.ibm.com>
2658
2659 Add script to build and test GDB using enable-targets=all.
2660
2661 * gdb_buildall.sh: New file.
2662
94a0e877
MG
26632008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2664
2665 * NEWS (New native configurations): Xtensa GNU/Linux.
2666 (New targets): Xtensa GNU/Linux.
2667 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2668 xtensa-linux-tdep.o
2669 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2670 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2671 * configure.tgt (xtensa*-*-linux*): New entry.
2672 * xtensa-config.c (xtensa_tdep): New variable.
2673 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2674 (rmap): Change format based on new macro XTREG.
2675 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2676 * xtensa-linux-nat.c: New.
2677 * xtensa-linux-tdep.c: New.
2678 * xtensa-xtregs.c: New.
2679 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2680 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2681 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2682 (xtensa_register_t): New field coprocessor.
2683 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2684 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2685 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2686 Update to handle privileged registers.
2687 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2688 (xtensa_push_dummy_call): Set windowstart register correctly.
2689 (call0_analyze_prologue): Initialize xtensa_default_isa.
2690 (xtensa_derive_tdep): New.
2691 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2692 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2693 Call xtensa_derive_tdep().
2694 * config/xtensa/linux.mh: New.
2695 * regformats/reg-xtensa.dat: New.
2696
b7ee1b0a 26972008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
2698
2699 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2700 (filenames.h): New include.
2701 * Makefile.in (corelow.o): Add dependency for filenames.h.
2702
8da2a1df
DJ
27032008-02-08 Doug Evans <dje@google.com>
2704
2705 * source.c (find_and_open_source): Always rewrite absolute filenames.
2706
776592bf
DE
27072008-02-07 Doug Evans <dje@google.com>
2708
2709 * breakpoint.c: #include "hashtab.h".
2710 (ambiguous_names_p): New fn.
2711 (update_breakpoint_locations): When restoring bp enable status, don't
2712 compare function names if any functions have same name.
2713 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2714
d6565258
JB
27152008-02-07 Joel Brobecker <brobecker@adacore.com>
2716
2717 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2718 instead of just a VEC*. Update use of SV.
2719 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2720
6d53d0af
JB
27212007-02-07 Joel Brobecker <brobecker@adacore.com>
2722
2723 * NEWS: Put all new commands since gdb-6.7 together.
2724
2ba95b9b
JB
27252007-02-07 Joel Brobecker <brobecker@adacore.com>
2726
2727 * ada-lang.c: #include "vec.h".
2728 (struct string_vector, new_string_vector, string_vector_append):
2729 Delete.
2730 (char_ptr): New typedef.
2731 (DEF_VEC_P (char_ptr)): New VEC type.
2732 (symbol_completion_add): Update profile to take the new VEC type
2733 instead of the old string_vector structure. Update code accordingly.
2734 (ada_make_symbol_completion_list): Use the new VEC type instead of
2735 the old string_vector structure, and update the code accordingly.
2736 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2737
4ae0885a
PM
27382008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2739
2740 * p-exp.y: Set current_type in missing places.
2741 (leftdiv_is_integer): New static variable.
2742 Typecast right operand of BINOP_DIV to long_double if both operands
2743 are integers.
2744
06b1d59c
MR
27452008-02-06 Maciej W. Rozycki <macro@mips.com>
2746
2747 * remote-mips.c (set_breakpoint): Rename to...
2748 (mips_set_breakpoint): ... this.
2749 (clear_breakpoint): Rename to...
2750 (mips_clear_breakpoint): ... this.
2751 (common_breakpoint): Rename to...
2752 (mips_common_breakpoint): ... this.
2753 (check_lsi_error): Rename to...
2754 (mips_check_lsi_error): ... this.
2755
41d27058
JB
27562007-02-05 Joel Brobecker <brobecker@adacore.com>
2757
2758 * language.h (struct language_defn): Add new field
2759 la_make_symbol_completion_list.
2760 * symtab.c (default_make_symbol_completion_list): Renames
2761 make_symbol_completion_list.
2762 (make_symbol_completion_list): New function.
2763 * symtab.h (default_make_symbol_completion_list): Add declaration.
2764 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2765 (auto_language, local_language): Likewise.
2766 * objc-lang.c (objc_language_defn): Likewise.
2767 * scm-lang.c (scm_language_defn): Likewise.
2768 * m2-lang.c (m2_language_defn): Likewise.
2769 * f-lang.c (f_language_defn): Likewise.
2770 * jv-lang.c (java_language_defn): Likewise.
2771 * p-lang.c (pascal_language_defn): Likewise.
2772 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2773 (minimal_language_defn): Likewise.
2774 * ada-lang.c (struct string_vector): New structure.
2775 (new_string_vector, string_vector_append, ada_unqualified_name)
2776 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2777 (ada_make_symbol_completion_list): New functions.
2778 (ada_language_defn): Set la_make_symbol_completion_list.
2779 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2780 this function is static.
2781
ee3a2f01
KB
27822008-02-05 Kevin Buettner <kevinb@redhat.com>
2783
2784 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2785 to account for call site optimizations.
2786
d844e34b
JB
27872008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2788
2789 * tracepoint.c (read_actions): Handle end-of-text indicator
2790 in action list properly. (Committed by Jim Blandy)
2791
02e4669d
JB
27922008-02-05 Jim Blandy <jimb@red-bean.com>
2793
2794 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2795 pseudoregister, not an internal error.
85ecb32b 2796 Reported by: Andrzej Zaborowski
02e4669d 2797
c39c8256
VP
27982008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2799
2800 * varobj.c (c_value_of_variable): Use xstrdup.
2801
ae7d22a6
VP
28022008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2803
2804 Update stored rendition of varobj value when format changes.
2805 * varobj.c (varobj_set_display_format): Recomputed
2806 print_value.
2807 (c_value_of_variable): Return print_value.
2808
81fe8080
DE
28092008-02-03 Doug Evans <dje@google.com>
2810
301f0ecf
DE
2811 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2812 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2813 * valops.c (value_one): New function.
2814 * value.h (value_one): Declare.
2815
2816 Fix argument promotion for binary arithmetic ops for C.
2817 * valarith.c (unop_result_type): New fn.
2818 (binop_result_type): New fn.
2819 (value_binop): Move result type computation to binop_result_type.
2820 (value_pos, value_neg, value_complement): Move result type
2821 computation to unop_result_type.
2822
81fe8080
DE
2823 PR 2384
2824 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2825 Return basetype, fieldno if found. All callers updated.
2826 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2827 objfile.
2828 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2829 * symfile.h (fill_in_vptr_fieldno): Delete.
2830
41808ebe
DE
28312008-02-02 Doug Evans <dje@google.com>
2832
f8597ac3
DE
2833 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2834
41808ebe
DE
2835 * typeprint.c (*): Whitespace cleanup.
2836
f964a756
MK
28372008-02-02 Mark Kettenis <kettenis@gnu.org>
2838 Luis Machado <luisgpm@br.ibm.com>
2839 Thiago Jung Bauermann <bauerman@br.ibm.com>
2840
2841 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2842 don't fit into registerson the stack the way GCC does.
2843
b06ead72
JB
28442008-02-01 Joel Brobecker <brobecker@adacore.com>
2845
2846 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2847 hash table for Ada symbols. Just store the linkage name as is,
2848 and leave the demangled_name as NULL.
2849
2cfa0c8d
JB
28502007-02-01 Joel Brobecker <brobecker@adacore.com>
2851
2852 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2853 in the global scope.
2854 (new_symbol): Likewise.
2855
98deb0da
VP
28562008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2857
2858 * breakpoint.c (break_command_1): Return void.
2859 (break_command_really): Return void. Rethrow
2860 exceptions instead of returning.
2861 (gdb_breakpoint): Remove the error_message parameter.
2862 Return void. Rename to set_breakpoint.
2863 * gdb.h (gdb_breakpoint): Rename and move to...
2864 * breakpoint.h (set_breakpoint): ...here.
2865 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2866 event hooks even if exception is thrown. Adjust to
2867 gdb_breakpoint interface changes.
2868
2869
ce0451ad
TJB
28702008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2871
2872 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2873 float in both first and second word in the doubleword, to support
2874 old and new ABIs.
2875
723a2275
VP
28762008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2877
2878 Properly rethrow exception. This fixes errors
2879 about non-existent functions for -break-insert.
2880 * breakpoint.c (break_command_really): Use throw_exception
2881 for rethrowing. If rethrowing, don't print the exception.
2882
d64a946d
TJB
28832008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2884
2885 * NEWS: Mention Decimal Floating Point support.
2886
02b156f5
JB
28872008-01-31 Joel Brobecker <brobecker@adacore.com>
2888
2889 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2890 value type to builtin_type_void_func_ptr.
2891
a16b8bcd
UW
28922008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2893
2894 * s390-tdep.c (is_float_singleton, is_float_like,
2895 alignment_of, s390_return_value): Make checks for
2896 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2897
f949c649
TJB
28982008-01-31 Luis Machado <luisgpm@br.ibm.com>
2899 Thiago Jung Bauermann <bauerman@br.ibm.com>
2900
2901 * infcmd.c (default_print_registers_info): Also print hex
2902 raw contents for TYPE_CODE_DECFLOAT registers.
2903 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2904 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2905 (rs6000_register_name): Add support for DFP pseudo-registers.
2906 (rs6000_pseudo_register_type): Likewise.
2907 rs6000_pseudo_register_reggroup_p): Likewise.
2908 (ppc_pseudo_register_read): New function.
2909 (ppc_pseudo_register_write): Likewise.
2910 (rs6000_pseudo_register_read): Likewise.
2911 (rs6000_pseudo_register_write): Likewise.
2912 (e500_pseudo_register_read): Move checks to
2913 rs6000_pseudo_register_read.
2914 (e500_pseudo_register_write): Move checks to
2915 rs6000_pseudo_register_write.
2916 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2917 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2918 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2919 num_pseudo_regs to account for DFP pseudo regs.
2920
5a9e69ba
TJB
29212008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2922
2923 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2924 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2925 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2926 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2927 e500_pseudo_register_read, e500_pseudo_register_write): Use
2928 IS_SPE_PSEUDOREG macro.
2929 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2930 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2931 Remove initialization of tdep->ppc_ev31_regnum.
2932
4e885b20
JB
29332008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2934
2935 * printcmd.c (print_formatted): Handle references as for unformatted
2936 prints.
2937
80f064a2
JB
29382008-01-30 Joel Brobecker <brobecker@adacore.com>
2939
2940 * eval.c (evaluate_subexp_standard): Add handling of user
2941 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2942
9b3442ee
PM
29432008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
2944
2945 * eval.c (evaluate_subexp_standard): Support
2946 BINOP_INTDIV opcode.
2947
d118ef87
PH
29482008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
2949
2950 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2951 BINOP_MAX cases.
2952 For BINOP_EXP, use length and signedness of left operand only for
2953 result, as for shifts.
2954 For integral operands to BINOP_EXP, use new integer_pow and
2955 uinteger_pow functions so as to get full range of results.
2956 (integer_pow): New function.
2957 (uinteger_pow): New function.
2958
d56d46f5
VP
29592008-01-30 Vladimir Prus <vladimir@codesourcery.com>
2960
2961 Use vector for varobj_list_children interface.
2962 * gdb/varobj.c (varobj_list_children): Return vector
2963 of varobjs.
2964 * gdb/varobj.h (varobj_list_children): Adjust
2965 prototype.
2966 (varobj_p): Declare. Declare vector thereof.
2967 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2968 for varobj_list_children change.
2969 * Makefile.in (varobj_h): Update dependencies.
2970
1300a2f4
TJB
29712008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2972
2973 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2974 TYPE_CODE_DECFLOAT arguments.
2975 (ppc64_sysv_abi_push_dummy_call) Likewise.
2976 (get_decimal_float_return_value): New function.
2977 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2978 values by calling get_decimal_float_return_value.
2979 (ppc64_sysv_abi_return_value): Likewise.
2980
95ef687d
NR
29812008-01-30 Nick Roberts <nickrob@snap.net.nz>
2982
2983 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2984 for preprocessor macro information. Formatting changes.
2985
2d717e4f
DJ
29862008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2987
2988 * remote.c (struct remote_state): Add cached_wait_status.
2989 (remote_exec_file): New variable.
2990 (PACKET_vAttach, PACKET_vRun): New constants.
2991 (extended_remote_restart): Do not query for status.
2992 (struct start_remote_args): New.
2993 (remote_start_remote): Take it as a second argument. Check
2994 whether the target is running. Issue an error for non-running
2995 non-extended targets. Cache the wait status. Set inferior_ptid
2996 here.
2997 (remote_open_1): Prompt to disconnect non-running targets. Make
2998 sure the target is marked running. Do not set inferior_ptid here.
2999 Update call to remote_start_remote. Do not call remote_check_symbols
3000 if the target is not running.
3001 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
3002 argument. Handle a non-running target.
3003 (remote_detach): Use it.
3004 (extended_remote_detach): New.
3005 (remote_disconnect): Fix typo. Use remoute_mourn_1.
3006 (extended_remote_attach_1, extended_remote_attach)
3007 (extended_async_remote_attach): New.
3008 (remote_vcont_resume): Remove unused variable.
3009 (remote_wait, remote_async_wait): Use any cached wait status.
3010 (putpkt_binary, getpkt): Clear any cached wait status.
3011 (extended_remoute_mourn_1): New.
3012 (extended_remote_mourn): Use it.
3013 (extended_async_remote_mourn, extended_remote_run): New.
3014 (extended_remote_create_inferior_1): New.
3015 (extended_remote_create_inferior): Use it.
3016 (extended_remote_async_create_inferior): Likewise.
3017 (remote_xfer_partial): Skip for non-executing targets.
3018 (init_extended_remote_ops): Set to_detach and to_attach.
3019 (init_extended_async_remote_ops): Likewise. Use
3020 extended_async_remote_mourn.
3021 (_initialize_remote): Register vAttach, vRun, and
3022 set remote exec-file.
3023 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
3024
e85a822c
DJ
30252008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3026
3027 * Makefile.in (symfile.o): Update.
3028 * NEWS: Mention exec tracing support.
3029 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
3030 exec events.
3031 * infcmd.c (kill_if_already_running, detach_command)
3032 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
3033 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
3034 (follow_exec): Do not check may_follow_exec. Do not mourn and push
3035 targets. Apply the sysroot path to the loaded executable. Use
3036 no_shared_libraries.
3037 * linux-nat.c (linux_child_follow_fork): Print fork following
3038 messages if verbose.
3039 (kill_wait_callback): Kill again before waiting a second time.
3040 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
3041 no_shared_libraries.
3042
9db13498
JB
30432008-01-29 Joel Brobecker <brobecker@adacore.com>
3044
3045 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
3046
b4d5ed91
JB
30472008-01-29 Joel Brobecker <brobecker@adacore.com>
3048
3049 * nto-tdep.h: Remove #include "defs.h".
3050 * nto-tdep.c: Add #include "defs.h".
3051 * Makefile.in (nto_tdep_h): Update dependencies.
3052 (nto-tdep.o): Likewise.
3053
107313f7 30542008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
3055
3056 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
3057 and use it.
3058 (proceed, start_remote): Update call to wait_for_inferior.
3059 * inferior.h (wait_for_inferior): Update declaration.
3060 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
3061 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
3062 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
3063 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
3064
3f4178d6
DJ
30652008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3066
3067 * varobj (adjust_value_for_child_access): Added checking for
3068 returned value from gdb_value_ind.
3069 (c_describe_child): Likewise.
3070 (cplus_describe_child): Fixed a typo.
3071
5eeba8d4
JB
30722008-01-29 Jim Blandy <jimb@red-bean.com>
3073
3074 * MAINTAINERS: Update my info.
3075
a5606eee
VP
30762008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3077
3078 Use multiple locations for hardware watchpoints.
3079 This eliminates the need to traverse value chain, doing
3080 various checks, in three different places.
3081
3082 * breakpoint.h (struct bp_location): New fields
3083 lengths and watchpoint_type.
3084 (struct breakpoint): Remove the val_chain field.
3085 * breakpoint.c (is_hardware_watchpoint): New.
3086 (free_valchain): Remove.
3087 (update_watchpoint): New.
3088 (insert_bp_location): For hardware watchpoint, just
3089 directly insert it.
3090 (insert_breakpoints): Call update_watchpoint_locations
3091 on all watchpoints. If we have failed to insert
3092 any location of a hardware watchpoint, remove all inserted
3093 locations.
3094 (remove_breakpoint): For hardware watchpoints, directly
3095 remove location.
3096 (watchpoints_triggered): Iterate over locations.
3097 (bpstat_stop_status): Use only first location of
3098 a resource watchpoint.
3099 (delete_breakpoint): Don't call free_valchain.
3100 (print_one_breakpoint): Don't print all
3101 locations for watchpoints.
3102 (breakpoint_re_set_one): Use update_watchpoint for
3103 watchpoints.
3104
0b3de036
VP
31052008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3106
3107 Don't reset watchpoint block on solib load.
3108
3109 * breakpoint.c (insert_bp_location): For watchpoints,
3110 recompute condition.
3111 (breakpoint_re_set_one): Instead of recomputing value
3112 and condition for watchpoints, just reset value and
3113 let insert_breakpoints/insert_bp_location recompute it.
3114 Don't do anything about disabled watchpoint.
3115
c3940723
PM
31162008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
3117
3118 * valarith.c (value_binop): Handle unsigned integer
3119 division by zero.
3120
83845630
KB
31212008-01-28 Kevin Buettner <kevinb@redhat.com>
3122
3123 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
3124 instruction pattern that appears frequently in position
3125 independent code. Fix bug in code which looks for "fmov" and
3126 backtracks if no "fmov" is found.
3127
9ce5d3bb
DE
31282008-01-28 Doug Evans <dje@google.com>
3129
3130 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
3131 Reformat comments to 80 columns.
3132 Move local var def closer to only use.
9ce5d3bb 3133
c78d192c
DJ
31342008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3135
3136 * fork-child.c (SHELL_FILE): Remove #ifndef.
3137 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
3138
e11481da
PM
31392008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
3140
3141 * i386-tdep.c (i386_skip_noop): New function.
3142 (i386_analyze_prologue): Call i386_skip_noop function.
3143
244e85c8
MS
31442008-01-24 Michael Snyder <msnyder@specifix.com>
3145
3146 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
3147 * win32-nat.c (win32_xfer_partial): Ditto.
3148 * target.c (default_xfer_partial): Minor whitespace adjustment.
3149
dd6be234
PA
31502008-01-24 Pedro Alves <pedro@codesourcery.com>
3151
3152 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3153 strip bit 1 even if pc doesn't point to thumb code.
3154
9fa2223d
DJ
31552008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3156
3157 * remote.c (remote_wait): Handle SIGINT between packets.
3158 (remote_async_wait): Likewise.
3159
93815fbf
VP
31602008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3161 Chris Demetriou <cgd@google.com>
3162
3163 * thread.c (add_thread_silent): Renamed
3164 from add_thread.
3165 (print_thread_events): New variable definition.
3166 (show_print_thread_events): New function.
3167 (_initialize_thread): Add "set print thread-events" and
3168 "show print thread-events" commands.
3169 (add_thread): Announce new thread.
3170 * gdbthread.h (add_thread_silent): Declare.
3171 (print_thread_events): New variable declaration.
3172 * inf-ttrace.c (inf_ttrace_wait): Don't
3173 inform about new thread, as add_thread is always
3174 called too, and will take care of that.
3175 * infrun.c (handle_inferior_event): Likewise.
3176 * procfs.c (procfs_wait): Likewise.
3177 * remote.c (remote_currthread): Likewise.
3178 * sol-thread.c (sol_thread_wait): Likewise.
3179 * win32-nat.c (get_win32_debug_event): Likewise.
3180 * linux-thread-db.c (attach_thread): Likewise.
3181 Remove the verbose parameter.
3182 (check_event): Make detach_thread be verbose
3183 only if print_thread_events is set.
3184 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3185 about new thread. This is called only from
3186 linux-thread-db.c:attach_thread, which will take care.
3187 Remove the verbose parameter.
3188 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3189
b4d7c9a6
NR
31902008-01-23 Nick Roberts <nickrob@snap.net.nz>
3191
3192 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3193
60c46647
VP
31942008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3195
3196 * breakpoint.c (break_command_really): New parameter
3197 ignore_count.
3198 (break_command_1): Pass 0 as
3199 ignore_count to break_command_really.
3200 (gdb_breakpoint): Pass ignore_count to
3201 break_command_really.
3202
e84605cd
KB
32032008-01-21 Kevin Buettner <kevinb@redhat.com>
3204
3205 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3206 sigcontext struct via pointer.
3207 (struct sigframe comment): Update to show new field `psc'.
3208
9d9cd7ac
VP
32092008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3210
3211 * infrun.c (handle_inferior_event): If
3212 we failed to remove breakpoints, error,
3213 don't try to increment PC by hand.
3214
af5ca30d
NH
32152008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3216
3217 Add NetBSD/hppa target and host support.
3218
3219 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3220 (hppabsd_gregset): Move to ...
3221 (hppabsd_regset_from_core_section): Rename
3222 hppaobsd_regset_from_core_section and move to ...
3223 (hppabsd_find_global_pointer): Update comment.
3224 (hppabsd_init_abi): Make global. Do not register
3225 hppabsd_regset_from_core_section.
3226 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3227 move to ...
3228 (_initialize_hppabsd_tdep): Move to ...
3229 * hppaobsd-tdep.c: ... here. New file.
3230 * hppnbsd-tdep.c: New file.
3231 * hppnbsd-nat.c: New file.
3232 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3233 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3234 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3235 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3236 * configure.host (hppa*-*-netbsd*): New entry.
3237 * configure.tgt (hppa*-*-netbsd*): New entry.
3238 (hppa*-*-openbsd*): Update.
3239 * NEWS (New native configuration): Mention NetBSD/hppa.
3240 (New targets): Mention NetBSD/hppa.
3241
32c9a795
MD
32422008-01-18 Markus Deuling <deuling@de.ibm.com>
3243
3244 * gdbarch.sh (function_list): Add new property bits_big_endian to
3245 gdbarch structure.
3246 * gdbarch.{c,h}: Regenerate.
3247
3248 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3249 gdbarch_bits_big_endian (comment).
3250 (unpack_field_as_long, modify_field): Likewise.
3251 * value.h: Likewise (comment).
3252 * valops.c (value_slice): Likewise.
3253 * valarith.c (value_subscript, value_bit_index): Likewise.
3254 * gdbtypes.h (field): Likewise (comment).
3255 * eval.c (evaluate_subexp_standard): Likewise.
3256 * dwarf2read.c (dwarf2_add_field): Likewise.
3257 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3258 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3259
3260 * defs.h (BITS_BIG_ENDIAN): Remove.
3261
1e5e79d0
MD
32622008-01-18 Markus Deuling <deuling@de.ibm.com>
3263
3264 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3265 function calls.
3266 * m2-exp.y (yylex): Likewise.
3267 * objc-exp.y (yylex): Likewise.
3268
3269 * defs.h (DEPRECATED_STREQN): Remove.
3270
fabda5a7
L
32712008-01-17 H.J. Lu <hjl.tools@gmail.com>
3272
3273 * MAINTAINERS: Update my email address.
3274
92726479
JB
32752008-01-17 Jim Blandy <jimb@codesourcery.com>
3276
3277 * README: Mention gdbserver/README.
3278
ef80d18e
PM
32792008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3280
3281 * valarith.c (value_binop): Handle BINOP_INTDIV
3282 for unsigned and signed integers.
3283
1de90795
UW
32842008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3285
3286 * s390-tdep.c (s390_gdbarch_init): Set default long double
3287 type to 128-bit IEEE quad.
3288
c70bd6f3
JB
32892008-01-17 Joel Brobecker <brobecker@adacore.com>
3290
3291 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3292
ba759613
MK
32932008-01-16 Mark Kettenis <kettenis@gnu.org>
3294
77d49ac6
MK
3295 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3296
ba759613
MK
3297 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3298 * value.c: All callers changed.
3299
7ecb6532
MD
33002008-01-16 Markus Deuling <deuling@de.ibm.com>
3301
3302 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3303 DEPRECATED_STREQ by its expression.
3304 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3305 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3306 (scan_xcoff_symtab): Likewise.
3307 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3308 * f-lang.c (find_common_for_function): Likewise.
3309 * objc-exp.y (parse_number): Likewise.
3310
3311 * defs.h (DEPRECATED_STREQ): Remove.
3312
d15cf01c
MD
33132008-01-16 Markus Deuling <deuling@de.ibm.com>
3314
3315 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3316 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3317 get_frame_arch to get at the current_architecture. Update AM33_MODE
3318 call.
3319 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3320 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3321 architecture.
3322 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3323
f8028488
MD
33242008-01-16 Markus Deuling <deuling@de.ibm.com>
3325
3326 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3327 parameter.
3328 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3329
3330 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3331 current_gdbarch by gdbarch. Update caller.
3332
3333 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3334 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3335 the current architecture. Update calls of
3336 amd64_native_gregset_supplies_p.
3337 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3338 (amd64bsd_store_inferior_registers): Likewise.
3339
e101270f
MD
33402008-01-16 Markus Deuling <deuling@de.ibm.com>
3341
3342 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3343 Replace current_gdbarch by gdbarch. Update caller.
3344
063e58ba
MD
33452008-01-16 Markus Deuling <deuling@de.ibm.com>
3346
3347 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3348 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3349 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3350 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3351 (stabsect_build_psymtabs): Fix indentation.
3352
662fb31b
MS
33532008-01-15 Michael Snyder <msnyder@specifix.com>
3354
3355 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3356
c1766e7d
PM
33572008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3358
3359 * win32-nat.c (win32_create_inferior): Restore code calling
3360 CloseHandle on ProcessInformation structure.
3361
5ed10e6e
NH
33622008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3363
3364 * configure.ac: Check for void * as 3 argument of ptrace.
3365 * configure: regenerate.
3366
be8626e0
MD
33672008-01-11 Markus Deuling <deuling@de.ibm.com>
3368
3369 * alpha-tdep.c (alpha_heuristic_proc_start)
3370 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3371 current_gdbarch by gdbarch.
3372
3373 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3374 current architecture by frame_info. Update alpha_heuristic_proc_start
3375 call.
3376
3377 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3378 get_frame_arch to get at the current architecture by frame_info. Update
3379 alpha_sigtramp_register_address call.
3380
3381 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3382 current_gdbarch by gdbarch. Update caller.
3383 (convert_to_extended, convert_from_extended): Add endianess parameter
3384 for comparison. Update caller.
3385 (arm_extract_return_value, arm_store_return_value): Use
3386 get_regcache_arch to get at the current architecture.
3387
3388 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3389 current_gdbarch by gdbarch. Update caller.
3390 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3391 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3392
3393 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3394 gdbarch as parameter. Update caller.
3395 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3396 current_gdbarch by gdbarch. Update caller.
3397
3398 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3399 update caller. Replace current_gdbarch by gdbarch.
3400
3401 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3402 the current architecture. Replace current_gdbarch by gdbarch.
3403 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3404 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3405 expression. Add gdbarch as parameter and replace current_gdbarch with
3406 it. Update caller.
3407 (M6811_TDEP): Remove.
3408 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3409 architecture.
3410 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3411 current_gdbarch by gdbarch. Update caller.
3412
3413 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3414 update caller.
3415 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3416 by gdbarch.
3417
3418 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3419 caller. Relace current_gdbarch by gdbarch.
3420 (altivec_register_p, spe_register_p): Likewise.
3421 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3422 parameter.
3423 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3424 altivec_register_p and spe_register_p.
3425
3426 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3427 caller. Replace current_gdbarch by gdbarch.
3428 (score_analyze_prologue): use get_frame_arch to get at the current
3429 architecture.
3430
3431 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3432 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3433 current_gdbarch by gdbarch. Update caller.
3434 (sparc_frame_cache): Use get_frame_arch to get at the current
3435 architecture.
3436 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3437 sparc_analyze_prologue.
3438
3439 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3440 parameter.
3441
ed49a04f
MD
34422008-01-11 Markus Deuling <deuling@de.ibm.com>
3443
3444 * exec.c: #include "arch-utils.h"
3445 (print_section_info): Use gdbarch_from_bfd to get at the
3446 current architecture. Replace current_gdbarch. Fix indention. Replace
3447 deprecated_print_address_numeric by paddress.
3448 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3449
3450 * valprint.c (val_print_string): Replace
3451 deprecated_print_address_numeric.
3452 * tracepoint.c (trace_mention, scope_info): Likewise.
3453 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3454 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3455 (maintenance_check_symtabs): Likewise.
3456 * symfile.c (list_overlays_command): Likewise.
3457 * stack.c (frame_info, print_block_frame_labels): Likewise.
3458 * printcmd.c (print_address, print_address_demangle)
3459 (address_info): Likewise.
3460 * corefile.c (memory_error): Likewise.
3461 * infcmd.c (jump_command): Likewise.
3462 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3463 (mention, delete_breakpoint): Likewise.
3464 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3465 * dwarf2read.c (dump_die): Likewise.
3466 * ada-valprint.c (ada_val_print_1): Likewise.
3467 * f-valprint.c (f_val_print): Likewise.
3468 * linux-fork.c (info_forks_command): Likewise.
3469 * m32r-com.c (m32r_load_section, m32r_load)
3470 (m32r_upload_command): Likewise.
3471
3472 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3473
6093d2eb
MD
34742008-01-11 Markus Deuling <deuling@de.ibm.com>
3475
3476 * gdbarch.sh (skip_prologue): Add gdbarch
3477 as parameter.
3478 * gdbarch.{c,h}: Regenerate.
3479
3480 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3481 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3482 * avr-tdep.c (avr_skip_prologue): Likewise.
3483 * cris-tdep.c (cris_skip_prologue): Likewise.
3484 * frv-tdep.c (frv_skip_prologue): Likewise.
3485 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3486 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3487 * i386-tdep.c (i386_skip_prologue): Likewise.
3488 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3489 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3490 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3491 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3492 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3493 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3494 * mep-tdep.c (mep_skip_prologue): Likewise.
3495 * mips-tdep.c (mips_skip_prologue): Likewise.
3496 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3497 * mt-tdep.c (mt_skip_prologue): Likewise.
3498 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3499 * score-tdep.c (score_skip_prologue): Likewise.
3500 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3501 * sh-tdep.c (sh_skip_prologue): Likewise.
3502 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3503 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3504 * spu-tdep.c (spu_skip_prologue): Likewise.
3505 * v850-tdep.c (v850_skip_prologue): Likewise.
3506 * vax-tdep.c (vax_skip_prologue): Likewise.
3507 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3508 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3509
3510 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3511 current_gdbarch by gdbarch.
3512 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3513 * s390-tdep.c (s390_skip_prologue): Likewise.
3514
72f5cf0e
DE
35152008-01-10 Doug Evans <dje@google.com>
3516
3517 * defs.h (struct continuation_arg): Fix typo in comment.
3518 * target.c (target_translate_tls_address): Fix comment spelling error.
3519
689e4e2d
TJB
35202008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3521
3522 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3523 (DOUBLEST_SCAN_FORMAT): Likewise.
3524 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3525 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3526 * c-exp.y (parse_number): Likewise.
3527 * jv-exp.y (parse_number): Likewise.
3528 * objc-exp.y (parse_number): Likewise.
3529 * p-exp.y (parse_number): Likewise.
3530
ab0d6e0d
JB
35312008-01-09 Joel Brobecker <brobecker@adacore.com>
3532
3533 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3534 (check_typedef): Likewise.
3535
0aea4bf3
LM
35362008-01-09 Luis Machado <luisgpm@br.ibm.com>
3537
3538 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3539 seen_double_big_d, treat the new H, D, and DD modifiers as length
3540 modifiers.
3541
137033e9
JB
35422008-01-08 Joel Brobecker <brobecker@adacore.com>
3543
3544 * dwarf2read.c (read_enumeration_type): Add comment.
3545
dda297ec
TJB
35462008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3547
3548 * config.in: Regenerate.
3549
a93c0eb6
JB
35502008-01-08 Joel Brobecker <brobecker@adacore.com>
3551
3552 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3553 Make non-static.
3554 (ada_convert_actuals): Delete.
3555 * ada-lang.h (ada_convert_actual): Add declaration.
3556 (ada_convert_actuals): Remove declaration.
3557 * infcall.c: #include "ada-lang.h".
3558 (value_arg_coerce): Add new parameter sp. Update function
3559 documetnation. Add handling of Ada function call parameters.
3560 * Makefile.in (infcall.o): Update dependencies.
3561
a84a8a0d
JB
35622008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3563
3564 * ada-lang.c (ensure_lval): Fix value lval kind.
3565 (convert_actual): Add handling for arguments passed by reference.
3566
d7f98cce
DE
35672008-01-08 Doug Evans <dje@google.com>
3568
3569 * dbxread.c (read_dbx_symtab): Fix indentation.
3570
4ef30785
TJB
35712008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3572
3573 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3574 (valarith.o): Depend on dfp.h.
3575 (valops.o): Likewise.
3576 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3577 (set_decnumber_context): New function.
3578 (decimal_check_errors): Likewise.
3579 (decimal_from_number): Likewise.
3580 (decimal_to_number): Likewise.
3581 (decimal_from_string): Use set_decnumber_context and
3582 decimal_check_errors.
3583 (decimal_from_integral): New function.
3584 (decimal_from_floating): Likewise.
3585 (decimal_to_double): Likewise.
3586 (promote_decimal): Likewise.
3587 (decimal_binop): Likewise.
3588 (decimal_is_zero): Likewise.
3589 (decimal_compare): Likewise.
3590 (decimal_convert): Likewise.
3591 * dfp.h (decimal_from_integral): New prototype.
3592 (decimal_from_floating): Likewise.
3593 (decimal_to_double): Likewise.
3594 (decimal_binop): Likewise.
3595 (decimal_is_zero): Likewise.
3596 (decimal_compare): Likewise.
3597 (decimal_convert): Likewise.
3598 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3599 call to value_from_decfloat.
3600 * valarith.c: Include dfp.h.
3601 (value_args_as_decimal): New function.
3602 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3603 (value_logical_not): Likewise.
3604 (value_equal): Likewise.
3605 (value_less): Likewise.
3606 (value_pos): Likewise.
3607 (value_neg): Formatting fix.
3608 * valops.c: Include dfp.h.
3609 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3610 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3611 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3612 (value_from_decfloat): Remove expect_type argument.
3613 * value.h (value_from_decfloat): Update prototype.
3614
a7c02bc8
VP
36152008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3616
3617 Ignore change in name of dynamic linker during
3618 execution on Solaris. This also unbreaks pending breakpoints.
3619
3620 * solist.h (struct target_so_ops): New field same.
3621 * solib-svr4.c (svr4_same): New.
3622 (_initialize_svr4_solib): Register svr4_same.
3623 * solib.c (update_solib_list): Use ops->same, if available.
3624
610dd7f9
CF
36252008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3626
3627 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3628 when using MS-DOS paths.
3629
7a404eba
PA
36302008-01-05 Pedro Alves <pedro@codesourcery.com>
3631
3632 * NEWS: Mention --pid and --core command line behaviour changes.
3633
a4d9b460
PA
36342008-01-05 Pedro Alves <pedro@codesourcery.com>
3635
3636 * main.c (captured_main): Remove 'count' varible and the
3637 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3638 --pid options were issued simultaneously. If an explicit pid
3639 option was passed, don't fallback to core file. Detect extra
3640 arguments better in the presence of explicit pid or core
3641 arguments.
3642
0c281816
JB
36432008-01-05 Joel Brobecker <brobecker@adacore.com>
3644
3645 * ada-lang.c (ada_which_variant_applies): Correctly compute
3646 the value of the discriminant when the variant record is packed.
3647
babe1480
JB
36482008-01-04 Joel Brobecker <brobecker@adacore.com>
3649
3650 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3651 that are used to differentiate homonyms.
3652
727e3d2e
JB
36532008-01-04 Jerome Guitton <guitton@adacore.com>
3654
3655 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3656 when the type is an anonymous pointer type.
3657 (ada_check_typedef): Avoid a seg fault when the type is null.
3658 * ada-typeprint.c (print_array_type): Add support for pointer
3659 to packed arrays.
3660
bb28a9dc
JB
36612008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3662
3663 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3664
6799def4
JB
36652008-01-04 Joel Brobecker <brobecker@adacore.com>
3666
3667 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3668 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3669
d3353bbd
JB
36702008-01-04 Joel Brobecker <brobecker@adacore.com>
3671
3672 * ada-exp.y (chop_separator): New function.
3673 (write_selectors): Rewrite to re-use chop_separator.
3674 (ada_nget_field_index, get_symbol_field_type): New functions.
3675 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3676 expressions.
3677
82cf6c60
TJB
36782008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3679
3680 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3681 of SYMBOL_VALUE when working with function symbols.
3682
b3dbf008
JB
36832008-01-03 Joel Brobecker <brobecker@adacore.com>
3684
3685 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3686 expressions. These expressions do not need to be rewriten.
3687
02eb380e
JB
36882008-01-03 Joel Brobecker <brobecker@adacore.com>
3689
3690 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3691 the given die is a declaration.
3692
abb68b3e
JB
36932008-01-03 Joel Brobecker <brobecker@adacore.com>
3694
3695 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3696 Handle properly the case when the index type is an enumerated type.
3697 Do not return the subtype of the bounds type, just return the
3698 bounds type directly - this is not needed and is more consistent
3699 with what we do for arrays when no XA parallel type exists.
3700
f192137b
JB
37012008-01-03 Joel Brobecker <brobecker@adacore.com>
3702
3703 * ada-lang.c (static_unwrap_type): Add forward declaration.
3704 (template_to_static_fixed_type): Fields of dynamic types sometimes
3705 also need to be unwrapped. Take this into account.
3706 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3707 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3708 * ada-typeprint.c (ada_print_type): Get the typename from
3709 the original type, not the base type.
3710
1ed6ede0
JB
37112008-01-03 Jerome Guitton <guitton@adacore.com>
3712
3713 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3714 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3715 Update calls to ada_to_fixed_type.
3716 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3717 for the tag.
3718 (ada_to_fixed_type): Add check_tag parameter; do not look for
3719 tag if null. When looking for a tag, use a fixed record type.
3720 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3721 * ada-valprint.c (printable_val_type, ada_value_print): Update
3722 calls to ada_to_fixed_type.
3723
542a88d0
LM
37242008-01-03 Luis Machado <luisgpm@br.ibm.com>
3725
3726 * doublest.c (convert_floatformat_to_doublest): Call
3727 floatformat_to_doublest instead of floatformat_to_double and use
3728 DOUBLEST variables.
3729 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3730 instead of floatformat_from_double and use DOUBLEST variables.
3731
dc2bbab2
NH
37322008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3733
3734 * MAINTAINERS (Write After Approval): Add self.
3735
8b60591b
JB
37362008-01-03 Joel Brobecker <brobecker@adacore.com>
3737
3738 * symfile.c (set_initial_language): Make non-static.
3739 * symfile.h (set_initial_language): Add declaration.
3740 * language.c: #include "symfile.h".
3741 (set_language): Call set_initial_language if the frame language
3742 could not be determined.
3743
ceef53c1
JB
37442008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3745
3746 * eval.c (evaluate_subexp_for_address): Provide frame address to
3747 locate_var_value only if it will be needed.
3748
ef29ce1a
JK
37492008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3750
3751 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3752
0a07e705
JB
37532008-01-02 Joel Brobecker <brobecker@adacore.com>
3754
3755 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3756 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3757 This is needed to make sure that any other treatment applied
3758 to the resulting value does not fail for spurious reason,
3759 such as trying to take the address of this value.
3760
f58b38bf
JB
37612008-01-02 Joel Brobecker <brobecker@adacore.com>
3762
3763 * ada-lang.c (ada_value_equal): Dereference reference types when
3764 comparing arrays.
3765
9b254dd1
DJ
37662008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3767
3768 Updated copyright notices for most files.
3769
33605d39
CF
37702008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3771
3772 * win32-nat.c (psapi_module_handle): Remove static.
3773 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3774 return first module found if base_address is zero. Don't initialize
3775 psapi function pointers here. Convert to cygwin paths when
3776 appropriate.
3777 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3778 executable name. Use get_module_name when that fails or when
3779 !__CYGWIN__.
3780 (_initialize_psapi): New function. Initialize psapi stuff before it is
3781 needed or issue a warning if it is not found. Move psapi_module_handle
3782 here.
3783
29480c32
JB
37842008-01-01 Joel Brobecker <brobecker@adacore.com>
3785
3786 * ada-lang.c (ada_remove_trailing_digits): New function.
3787 (ada_remove_po_subprogram_suffix): New function.
3788 (ada_decode): Improve. Move the description of the algorithm
3789 directly inside the code, instead of in the function global
3790 description.
3791
969a1360
JB
37922008-01-01 Joel Brobecker <brobecker@adacore.com>
3793
3794 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3795 and always print the dereferenced value.
3796
b7789565
JB
37972008-01-01 Joel Brobecker <brobecker@adacore.com>
3798
3799 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3800 of the case where the first argument is a reference.
3801 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3802
73fb9985
JB
38032008-01-01 Joel Brobecker <brobecker@adacore.com>
3804
3805 Implement support for Ada interface types.
3806
3807 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3808 (ada_is_ignored_field): Ignore fields that are a dispatch table
3809 of a tagged type.
3810
636265b6
JB
38112008-01-01 Joel Brobecker <brobecker@adacore.com>
3812
3813 * top.c (print_gdb_version): Update copyright year.
3814
9d200a2e 38152008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 3816
9d200a2e
JB
3817 * ChangeLog-2007: New ChangeLog rotation.
3818 * ChangeLog: Reset for 2008.
3819 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3820 ChangeLog-2007.
b7589f7d 3821
9d200a2e 3822For older changes see ChangeLog-2007.
c906108c
SS
3823\f
3824Local Variables:
3825mode: change-log
3826left-margin: 8
3827fill-column: 74
3828version-control: never
57da7796 3829coding: utf-8
c906108c 3830End: