Commit | Line | Data |
---|---|---|
63807e1d PA |
1 | 2009-02-22 Pedro Alves <pedro@codesourcery.com> |
2 | ||
3 | Silence a few -Wmissing-prototypes warnings. | |
4 | ||
5 | PR build/9877: | |
6 | * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make | |
7 | it static. | |
8 | * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare. | |
9 | * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static. | |
10 | * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ... | |
11 | (_initialize_amd64nbsd_tdep): ... this. | |
12 | * arm-linux-tdep.c (arm_linux_software_single_step): Make it static. | |
13 | (_initialize_arm_linux_tdep): Declare. | |
14 | * armbsd-tdep.c (armbsd_fpreg_offset): Make it static. | |
15 | * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare. | |
16 | * armobsd-tdep.c (_initialize_armobsd_tdep): Declare. | |
17 | * avr-tdep.c (avr_return_value): Make it static. | |
18 | (avr_frame_unwind_cache): Ditto. | |
19 | * bsd-uthread.c (bsd_uthread_inferior_created): Ditto. | |
20 | (bsd_uthread_solib_loaded): Ditto. | |
21 | (bsd_uthread_solib_unloaded): Ditto. | |
22 | (bsd_uthread_target): Ditto. | |
23 | (_initialize_bsd_uthread): Declare. | |
24 | * cris-tdep.c (crisv32_single_step_through_delay): Make it static. | |
25 | (cris_frame_unwind_cache): Ditto. | |
26 | * frv-tdep.c (frv_return_value): Ditto. | |
27 | * h8300-tdep.c (h8300_use_struct_convention): Ditto. | |
28 | (h8300h_use_struct_convention): Ditto. | |
29 | * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend): | |
30 | Ditto. | |
31 | * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete | |
32 | declarations. | |
33 | * hppabsd-tdep.c: Include hppabsd-tdep.h. | |
34 | (hppabsd_find_global_pointer): Make it static. | |
35 | * hppabsd-tdep.h: New. | |
36 | * hppanbsd-tdep.c: Include hppabsd-tdep.h. | |
37 | (hppabsd_init_abi): Remove declaration. | |
38 | (_initialize_hppabsd_tdep): Remove declaration. | |
39 | (_initialize_hppanbsd_tdep): Declare. | |
40 | * hppaobsd-tdep.c: Include hppabsd-tdep.h. | |
41 | (hppabsd_init_abi): Delete declaration. | |
42 | (hppaobsd_init_abi): Make it static. | |
43 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare. | |
44 | * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare. | |
45 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare. | |
46 | * ia64-tdep.c (ia64_register_reggroup_p): Make it static. | |
47 | * iq2000-tdep.c (_initialize_iq2000_tdep): Declare. | |
48 | * m32c-tdep.c (m32c_register_reggroup_p): Make it static. | |
49 | (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto. | |
50 | (_initialize_m32c_tdep): Declare. | |
51 | * m32r-rom.c (_initialize_m32r_rom): Declare. | |
52 | * m32r-tdep.c (m32r_skip_prologue): Make it static. | |
53 | (m32r_return_value): Ditto. | |
54 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static. | |
55 | (m68hc11_return_value): Ditto. | |
56 | * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare. | |
57 | * m88k-tdep.c (m88k_frame_cache): Make it static. | |
58 | * mep-tdep.c (mep_gdb_print_insn): Ditto. | |
59 | (mep_return_value): Ditto. | |
60 | (_initialize_mep_tdep): Declare. | |
61 | * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare. | |
62 | * mips-linux-tdep.c (supply_64bit_reg): Make it static. | |
63 | (mips_linux_syscall_next_pc): Ditto. | |
64 | (_initialize_mips_linux_tdep): Declare. | |
65 | * mips-tdep.c (mips_single_step_through_delay): Make it static. | |
66 | * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare. | |
67 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare. | |
68 | * mn10300-tdep.c (_initialize_mn10300_tdep): Declare. | |
69 | * mt-tdep.c (_initialize_mt_tdep): Declare. | |
70 | * nbsd-tdep.c: Include nbsd-tdep.h. | |
71 | * nto-tdep.c (find_load_phdr): Make it static. | |
72 | (_initialize_nto_tdep): Declare. | |
73 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it | |
74 | static. | |
75 | (_initialize_ppc_linux_tdep): Declare. | |
76 | * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint) | |
77 | (m32r_insert_watchpoint, m32r_remove_watchpoint) | |
78 | (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make | |
79 | static. | |
80 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare. | |
81 | * rs6000-nat.c: Include xcoffread.h. | |
82 | (find_toc_address): Don't extern declare get_toc_offset. Adjust | |
83 | to call xcoff_get_to_offset. | |
84 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup) | |
85 | (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline) | |
86 | (rs6000_skip_trampoline_code): Make static. | |
87 | * s390-tdep.c (s390_regset_from_core_section): Ditto. | |
88 | * sh-tdep.c (sh_register_reggroup_p): Ditto. | |
89 | * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto. | |
90 | (_initialize_shnbsd_tdep): Declare. | |
91 | * solib-frv.c (displacement_from_map): Make static. | |
92 | (_initialize_frv_solib): Declare. | |
93 | * solib-irix.c (fetch_lm_info): Make static. | |
94 | (_initialize_irix_solib): Declare. | |
95 | * solib-som.c: Include solib-som.h. | |
96 | (som_solib_select): Line break. | |
97 | * sparc-tdep.c (sparc_regset_from_core_section): Make static. | |
98 | * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ... | |
99 | (_initialize_sparcnbsd_tdep): ... this. | |
100 | * spu-tdep.c (spu_software_single_step): Make it static. | |
101 | (_initialize_spu_tdep): Declare. | |
102 | * vax-tdep.c (vax_frame_cache): Make it static. | |
103 | * xcoffread.c: Include xcoffread.h. | |
104 | (get_toc_offset): Rename to ... | |
105 | (xcoff_get_toc_offset): ... this. | |
106 | (_initialize_xcoffread): Declare. | |
107 | * xcoffread.h: New. | |
108 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare. | |
109 | * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make | |
110 | static. | |
111 | (_initialize_xtensa_tdep): Declare. | |
112 | ||
2c0b251b PA |
113 | 2008-02-21 Pedro Alves <pedro@codesorcery.com> |
114 | ||
115 | Silence a few -Wmissing-prototypes warnings. | |
116 | ||
117 | PR build/9877: | |
118 | * amd64-nat.c: Include "amd64-nat.h". | |
119 | * fork-child.c (_initialize_fork_child): Ditto. | |
120 | * gcore.c (_initialize_gcore): Ditto. | |
121 | * inf-ptrace.c: Include "inf-ptrace.h". | |
122 | (inf_ptrace_store_registers): Make it static. | |
123 | * linux-nat.c (linux_nat_terminal_ours): Make it static. | |
124 | (_initialize_linux_nat): Declare before definition. | |
125 | * linux-tdep.c: Include "linux-tdep.h". | |
126 | * linux-thread-db.c (_initialize_thread_db): Declare before | |
127 | definition. | |
128 | * proc-service.c (_initialize_proc_service): Ditto. | |
129 | * remote.c (remote_send_printf): Make it static. | |
130 | * solib.c: Include "solib.h". | |
131 | * symfile-mem.c (_initialize_symfile_mem): Declare before | |
132 | definition. | |
133 | * ada-lang.c (ada_la_decode, ada_match_name) | |
134 | (ada_suppress_symbol_printing, ada_is_array_type) | |
135 | (ada_value_ptr_subscript, ada_array_length) | |
136 | (ada_to_static_fixed_value): Make them static. | |
137 | (_initialize_ada_language): Declare before definition. | |
138 | * ada-tasks.c (ada_get_task_number, ada_get_environment_task) | |
139 | (ada_task_list_changed, ada_new_objfile_observer): Make them | |
140 | static. | |
141 | (_initialize_tasks): Declare before definition. | |
142 | * addrmap.c (_initialize_addrmap): Declare before definition. | |
143 | * auxv.c (default_auxv_parse): Make it static. | |
144 | * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make | |
145 | them static. | |
146 | * breakpoint.c (remove_sal): Add line break. | |
147 | (expand_line_sal_maybe): Make it static. | |
148 | * cp-name-parser.y: Include "cp-support.h". | |
149 | * cp-valprint.c (cp_find_class_member): Make it static. | |
150 | * eval.c (value_f90_subarray): Ditto. | |
151 | * exceptions.c (print_any_exception): Ditto. | |
152 | * findcmd.c (_initialize_mem_search): Declare before definition. | |
153 | * frame.c (frame_observer_target_changed): Make it static. | |
154 | * gnu-v3-abi.c (gnuv3_find_method_in): Make it static. | |
155 | * inf-child.c: Include "inf-child.h". | |
156 | * inferior.h (valid_inferior_id): Rename to ... | |
157 | (valid_gdb_inferior_id): ... this. | |
158 | * infrun.c (infrun_thread_stop_requested, siginfo_make_value): | |
159 | Make them static. | |
160 | * jv-lang.c (java_language_arch_info): Make it static. | |
161 | * m2-typeprint.c (m2_get_discrete_bounds): Ditto. | |
162 | * osdata.c (info_osdata_command): Make it static. | |
163 | * regcache.c (regcache_observer_target_changed): Make it static. | |
164 | * reverse.c (_initialize_reverse): Declare before definition. | |
165 | * stabsread.c (cleanup_undefined_types_noname) | |
166 | (cleanup_undefined_types_1): Make them static. | |
167 | * symfile.c (place_section): Make it static. | |
168 | * symtab.c (find_pc_sect_psymtab_closer): Make it static. | |
169 | * target-descriptions.c (_initialize_target_descriptions): Declare | |
170 | before definition. | |
171 | * target.c (default_get_ada_task_ptid, find_default_can_async_p) | |
172 | (find_default_is_async_p, find_default_supports_non_stop): Make | |
173 | them static. | |
174 | (target_supports_non_stop): Add prototype. | |
175 | (dummy_pid_to_str): Make it static. | |
176 | * utils.c (_initialize_utils): Declare before definition. | |
177 | * ada-exp.y (_initialize_ada_exp): Declare before definition. | |
178 | * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype. | |
179 | * target.h (struct target_ops): Add a prototype to the | |
180 | to_can_execute_reverse callback. | |
181 | * macroscope.c (_initialize_macroscope): Declare before definition. | |
182 | * cp-namespace.c (_initialize_cp_namespace): Declare before definition. | |
183 | * python/python.c (_initialize_python): Declare before definition. | |
184 | * tui/tui-command.c: Include "tui/tui-command.h". | |
185 | * tui/tui-data.c (init_content_element, init_win_info): Make them | |
186 | static. | |
187 | * tui/tui-disasm.c: Include "tui/tui-disasm.h". | |
188 | * tui/tui-interp.c (_initialize_tui_interp): Declare before | |
189 | definition. | |
190 | * tui/tui-layout.c: Include "tui/tui-layout.h". | |
191 | (_initialize_tui_layout): Declare before definition. | |
192 | * tui/tui-regs.c: Include "tui/tui-regs.h". | |
193 | (tui_display_reg_element_at_line): Make it static. | |
194 | (_initialize_tui_regs): Declare before definition. | |
195 | * tui/tui-stack.c (_initialize_tui_stack): Declare before | |
196 | definition. | |
197 | * tui/tui-win.c: Include "tui/tui-win.h". | |
198 | (_initialize_tui_win): Declare before definition. | |
199 | (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH. | |
200 | * tui/tui-win.h (tui_sigwinch_handler): Delete declaration. | |
201 | (tui_get_cmd_list): Add a prototype. | |
202 | * tui/tui-windata.c: Include tui-windata.h. | |
203 | * tui/tui-wingeneral.c (box_win): Make it static. | |
204 | * cli/cli-logging.c (show_logging_command): Make it static. | |
205 | (_initialize_cli_logging): Declare before definition. | |
206 | * mi/mi-common.c (_initialize_gdb_mi_common): Declare before | |
207 | definition. | |
208 | ||
5aca5a82 PM |
209 | 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr> |
210 | ||
08c1f091 | 211 | Extend use of i386_use_watchpoints to all i386 native files |
5aca5a82 | 212 | using hardware watchpoints. |
08c1f091 DE |
213 | * go32-nat.c (init_go32_ops): Call i386_use_watchpoints. |
214 | * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto. | |
215 | * windows-nat.c (init_windows_ops): Ditto. | |
216 | * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR. | |
217 | * config/i386/nm-cygwin64.h: Ditto. | |
218 | * config/i386/nm-fbsd.h: Ditto. | |
219 | * config/i386/nm-go32.h: Ditto. | |
5aca5a82 | 220 | |
1db300f1 JB |
221 | 2009-02-19 Joel Brobecker <brobecker@adacore.com> |
222 | ||
223 | * ada-typeprint.c (ada_typedef_print): Remove. Unused. | |
224 | ||
c86cf029 VP |
225 | 2009-02-18 Vladimir Prus <vladimir@codesourcery.com> |
226 | ||
227 | * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New. | |
228 | (mi_interpreter_init): Register the above. | |
229 | * solib.c (clear_solib): Notify solib unload. | |
230 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not | |
231 | disable breakpoints on a.out targets. | |
232 | ||
3ea85240 VP |
233 | 2009-02-17 Vladimir Prus <vladimir@codesourcery.com> |
234 | ||
235 | * observer.c (observer_test_first_notification_function) | |
236 | (observer_test_second_notification_function) | |
237 | (observer_test_third_notification_function): Adjust prototype. | |
238 | ||
4c1d2973 PA |
239 | 2009-02-17 Pedro Alves <pedro@codesourcery.com> |
240 | ||
241 | * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o. | |
242 | (ALL_TARGET_OBS): Add dicos-tdep.o. | |
243 | (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c. | |
244 | * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to | |
245 | gdb_target_obs. | |
246 | (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to | |
247 | gdb_target_obs. | |
248 | * dicos-tdep.h, dicos-tdep.c: New. | |
249 | * amd64-dicos-tdep.c: New. | |
250 | * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or | |
251 | inferior.h. Include dicos-tdep.h. | |
252 | (i386_dicos_init_abi): Call dicos_init_abi. | |
253 | (i386_dicos_bfd_has_symbol_p): Delete. | |
254 | (i386_dicos_osabi_sniffer): Use dicos_load_module_p. | |
255 | ||
256 | * NEWS: Mention x86-64 DICOS target support. | |
257 | ||
1903f0e6 DE |
258 | 2009-02-16 Doug Evans <dje@google.com> |
259 | ||
260 | * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes. | |
261 | All callers updated. | |
262 | (amd64_get_insn_details): Handle more 3-byte opcode insns. | |
263 | (amd64_breakpoint_p): Delete. | |
264 | (amd64_displaced_step_fixup): When fixing up after stepping an int3, | |
265 | don't back up pc to the start of the int3. | |
266 | * i386-tdep.c: #include opcode/i386.h. | |
267 | (i386_skip_prefixes): New function. | |
268 | (i386_absolute_jmp_p): Constify argument. | |
269 | (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto. | |
270 | (i386_breakpoint_p): Delete. | |
271 | (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes. | |
272 | When fixing up after stepping an int3, don't back up pc to the start | |
273 | of the int3. | |
274 | ||
959b8724 PA |
275 | 2009-02-16 Pedro Alves <pedro@codesourcery.com> |
276 | ||
277 | * corelow.c (core_close): Don't hardcode the core's pid. | |
278 | (core_open): Find core threads before calling | |
279 | post_create_inferior. | |
280 | (add_to_thread_list, get_core_register_section): Take into account | |
281 | systems where the regset section names encode the pid of the | |
282 | inferior. | |
283 | ||
284 | * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting. | |
285 | * gdbarch.h, gdbarch.c: Regenerate. | |
286 | ||
287 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it. | |
288 | * i386-sol2-tdep.c (i386_sol2_init_abi): Set it. | |
289 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it. | |
290 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it. | |
291 | ||
1d33d6ba VP |
292 | 2009-02-14 Vladimir Prus <vladimir@codesourcery.com> |
293 | ||
294 | Include frame information for *stopped due to CLI commands. | |
295 | ||
296 | * ada-tasks.c (ada_normal_stop_observer): Adjust prototype. | |
297 | * infcmd.c (finish_command_continuation): Pass '1' for | |
298 | 'print_frame' parameter to the observer. | |
299 | * infrun.c (normal_stop): Don't print mi-specific information | |
300 | here. Pass 'stop_print_frame' to the 'print_frame' parameter | |
301 | of the observer. | |
302 | * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype. | |
303 | If we need to print frame, and current uiout is not the MI one, | |
304 | print frame again. | |
305 | ||
2ff5e605 PM |
306 | 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr> |
307 | ||
308 | * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro. | |
309 | Replace BSZ macro uses by XTENSA_ISA_BSZ macro. | |
310 | ||
5d7cb8df JK |
311 | 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
312 | ||
313 | PR fortran/9806 | |
314 | * dwarf2read.c (process_die <DW_TAG_module>, read_module) | |
315 | (scan_partial_symbols <DW_TAG_module>, add_partial_module): New. | |
316 | ||
868a0084 PM |
317 | 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr> |
318 | ||
319 | * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR | |
5d7cb8df | 320 | for DW_ATE_signed_char and DW_ATE_unsigned_char |
868a0084 PM |
321 | for pascal language. |
322 | ||
42e2132c JK |
323 | 2009-02-11 Jim Meyering <meyering@redhat.com> |
324 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
325 | ||
326 | Avoid NULL dereference. | |
327 | * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun). | |
328 | New variable func_type. | |
329 | ||
315aef0a PA |
330 | 2009-02-11 Pedro Alves <pedro@codesourcery.com> |
331 | ||
332 | * gdbarch.c: Regenerate. | |
333 | ||
58159490 PM |
334 | 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr> |
335 | ||
336 | * p-lang.c (is_pascal_string_type): Fix comment. | |
337 | Determine exact size of char elements for GPC | |
338 | strings. | |
339 | (pascal_printstr): Handle char width of 2 or 4. | |
340 | * p-valprint.c (pascal_val_print): Handle char | |
341 | of width 2 or 4. | |
342 | ||
d3f36a39 DJ |
343 | 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com> |
344 | ||
345 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc | |
346 | inside the loop. Only call addrmap_set_empty if the compilation unit | |
347 | had DW_AT_high_pc and DW_AT_low_pc. Update call to | |
348 | scan_partial_symbols. | |
349 | (scan_partial_symbols): Take NEED_PC argument and pass it along with | |
350 | LOWPC and HIGHPC. | |
351 | (add_partial_namespace): Take NEED_PC argument and pass it through. | |
352 | (add_partial_subprogram): Take NEED_PC argument. Update the addrmap | |
353 | if necessary. | |
354 | ||
47a3467a PA |
355 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
356 | ||
357 | * NEWS: Mention inspecting extra signal information, $_siginfo, | |
358 | and the qXfer:siginfo:read and qXfer:siginfo:write packets. | |
359 | ||
1ef18d08 PA |
360 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
361 | ||
362 | * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO | |
363 | isn't defined. | |
364 | ||
5b009018 PA |
365 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
366 | ||
367 | * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t) | |
368 | (compat_timer_t, compat_clock_t, struct compat_timeval) | |
369 | (compat_sigval_t, compat_siginfo_t): New types. | |
370 | (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun) | |
371 | (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr) | |
372 | (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines. | |
373 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
374 | (amd64_linux_siginfo_fixup): New. | |
375 | * linux-nat.c (linux_nat_siginfo_fixup): New. | |
376 | (siginfo_fixup): New. | |
377 | (linux_xfer_siginfo): Use siginfo_fixup to convert between the | |
378 | siginfo layout expected by ptrace and the siginfo layout of the | |
379 | inferior. | |
380 | (linux_nat_set_siginfo_fixup): New. | |
381 | * linux-nat.h (linux_nat_set_siginfo_fixup): Declare. | |
382 | ||
4aa995e1 PA |
383 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
384 | ||
385 | * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO. | |
386 | * infrun.c (siginfo_value_read, siginfo_value_write): New. | |
387 | (siginfo_value_funcs): New. | |
388 | (siginfo_make_value): New. | |
389 | (_initialize_infrun): Create the $_siginfo convenience variable. | |
390 | * gdbtypes.h (append_composite_type_field_aligned): Declare. | |
391 | * gdbtypes.c (append_composite_type_field): Rename to... | |
392 | (append_composite_type_field_aligned): ... this. Add ALIGNMENT | |
393 | argument. Handle it. | |
394 | (append_composite_type_field): Rewrite on top of | |
395 | append_composite_type_field_aligned. | |
396 | * value.h (internalvar_make_value): New typedef. | |
397 | (struct internalvar) <make_value>: New field. | |
398 | (create_internalvar_type_lazy): Declare. | |
399 | * value.c (create_internalvar): Clear make_value. | |
400 | (create_internalvar_type_lazy): New. | |
401 | (value_of_internalvar): If make_value is set use it. | |
402 | (preserve_values): Skip internal variables that don't have a | |
403 | value. | |
404 | * gdbarch.sh (get_siginfo_type): New. | |
405 | * gdbarch.h, gdbarch.c: Regenerate. | |
406 | ||
407 | * linux-tdep.h, linux-tdep.c: New. | |
408 | * amd64-linux-tdep.c: Include "linux-tdep.h". | |
409 | (amd64_linux_init_abi): Register linux_get_siginfo_type and | |
410 | linux_get_siginfo_mapper. | |
411 | * i386-linux-tdep.c: Include "linux-tdep.h". | |
412 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
413 | linux_get_siginfo_mapper. | |
414 | * arm-linux-tdep.c: Include "linux-tdep.h". | |
415 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
416 | linux_get_siginfo_mapper. | |
417 | ||
418 | * linux-nat.c (linux_xfer_siginfo): New. | |
419 | (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
420 | * remote.c (PACKET_qXfer_siginfo_read) | |
421 | (PACKET_qXfer_siginfo_write): New. | |
422 | (feature remote_protocol_features): Add "qXfer:siginfo:read" and | |
423 | "qXfer:siginfo:write" features. | |
424 | (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
425 | (_initialize_remote): Add "set/show remote read-siginfo-object" | |
426 | and "set/show remote write-siginfo-object" commands. | |
427 | ||
428 | * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o. | |
429 | (HFILES_NO_SRCDIR): Add linux-tdep.h. | |
430 | (ALLDEPFILES): Add linux-tdep.c. | |
431 | ||
432 | * configure.tgt (arm*-*-linux* | arm*-*-uclinux*) | |
433 | (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to | |
434 | gdb_target_obs. | |
435 | ||
5f5233d4 PA |
436 | 2009-02-06 Jim Blandy <jimb@codesourcery.com> |
437 | Daniel Jacobowitz <dan@codesourcery.com> | |
438 | Vladimir Prus <vladimir@codesourcery.com> | |
439 | Pedro Alves <pedro@codesourcery.com> | |
440 | ||
441 | * defs.h (enum lval_type): New value: lval_computed. | |
442 | * value.h (struct lval_funcs): New type. | |
443 | (allocate_computed_value, value_computed_funcs) | |
444 | (value_computed_closure): New declarations. | |
445 | * value.c (struct value): Add a structure to the location union | |
446 | for computed lvalues, containing 'funcs' and 'closure' members. | |
447 | (allocate_computed_value, value_computed_funcs) | |
448 | (value_computed_closure): New functions. | |
449 | (value_free): For computed lvalues, call the closure's | |
450 | 'free_closure' function before freeing the value itself. | |
451 | (value_copy): If we're copying an lval_computed value, call the | |
452 | closure's 'copy_closure' function. | |
453 | (set_value_component_location): If the original value is a | |
454 | computed lvalue, then call the closure's 'copy_closure' function. | |
455 | (value_of_internalvar): If an internal variable's value is a | |
456 | computed lvalue, make retrieving its value produce an equivalent | |
457 | computed lvalue. | |
458 | * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling | |
459 | their read function. | |
460 | (value_assign): Assign to computed lvalues by calling their write | |
461 | function. | |
462 | ||
117de6a9 PA |
463 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
464 | ||
465 | * linux-nat.c (linux_nat_wait): Adjust. | |
466 | (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init. | |
467 | * linux-nat.h (thread_db_init): Delete declaration. | |
468 | * linux-thread-db.c (target_beneath): Delete. | |
469 | (thread_db_init): Delete. | |
470 | (thread_db_detach): Use find_target_beneath. | |
471 | (thread_db_wait): Adjust interface. Use find_target_beneath. | |
472 | (thread_db_mourn_inferior): Use find_target_beneath. | |
473 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
474 | (thread_db_async_mask): Delete. | |
475 | (thread_db_pid_to_str): Adjust interface. Use | |
476 | find_target_beneath. | |
477 | (thread_db_get_thread_local_address): Adjust interface. Use | |
478 | find_target_beneath. | |
479 | (init_thread_db_ops): Delete references to delete functions. | |
480 | * target.c (update_current_target): Don't inherit or default | |
481 | to_wait. Don't inherit to_pid_to_str and | |
482 | to_get_thread_local_address. | |
483 | (target_translate_tls_address): Look for a pushed target that | |
484 | implements to_get_thread_local_address, and use it instead of | |
485 | checking for target_get_thread_local_address_p. | |
486 | (target_wait, target_pid_to_str): Reimplement as functions. | |
487 | (dummy_pid_to_str): New. | |
488 | (init_dummy_target): Register it. | |
489 | (debug_to_wait): Delete. | |
490 | * target.h (struct target_ops): Make to_wait, to_pid_to_str and | |
491 | to_get_thread_local_address accept a pointer to struct target_ops. | |
492 | (target_wait): Delete macro, and declare as function. | |
493 | (target_pid_to_str): Likewise. | |
494 | (target_get_thread_local_address) | |
495 | (target_get_thread_local_address_p): Delete. | |
496 | (noprocess): Add NORETURN and ATTR_NORETURN tags. | |
497 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
498 | (inf_ptrace_pid_to_str): New. | |
499 | (inf_ptrace_target): Use inf_ptrace_pid_to_str. | |
500 | * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust. | |
501 | * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust. | |
502 | * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str): | |
503 | Adjust. | |
504 | * corelow.c (core_pid_to_str): Adjust. | |
505 | * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust. | |
506 | * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust. | |
507 | * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust. | |
508 | * go32-nat.c (go32_wait, go32_pid_to_str): Adjust. | |
509 | * hpux-thread.c (hpux_thread_wait): Adjust. | |
510 | * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust. | |
511 | * monitor.c (monitor_wait, monitor_pid_to_str): Adjust. | |
512 | * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust. | |
513 | * procfs.c (procfs_pid_to_str): Adjust. | |
514 | * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust. | |
515 | * remote-mips.c (mips_wait): Adjust. | |
516 | * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust. | |
517 | * remote.c (remote_wait, remote_pid_to_str) | |
518 | (remote_get_thread_local_address): Adjust. | |
519 | * rs6000-nat.c (rs6000_wait): Adjust. | |
520 | * sol-thread.c (procfs_pid_to_str): Adjust declaration. | |
521 | (sol_thread_wait, solaris_pid_to_str): Adjust. | |
522 | * spu-linux-nat.c (spu_child_wait): Adjust. | |
523 | * windows-nat.c (windows_wait, windows_pid_to_str): Adjust. | |
524 | ||
d8906c6f TJB |
525 | 2009-02-06 Tom Tromey <tromey@redhat.com> |
526 | ||
527 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o. | |
528 | (SUBDIR_PYTHON_SRCS): Add python-cmd.c. | |
529 | (python-cmd.o): New target. | |
530 | * cli/cli-decode.c (set_cmd_completer): Add self parameter to | |
531 | completer prototype. | |
532 | (add_cmd): Initialize destroyer member of cmd_list_element. Use | |
533 | make_symbol_completion_list_fn as completer. | |
534 | (delete_cmd): Call destroyer if one is set. | |
535 | * cli/cli-decode.h (cmd_list_element): Add cmd parameter to | |
536 | completer member. Add destroyer member. | |
537 | (set_cmd_completer): Add self parameter to | |
538 | completer prototype. | |
539 | * command.h (set_cmd_completer): Add cmd parameter to | |
540 | completer prototype. | |
541 | * completer.c (noop_completer, filename_completer, | |
542 | location_completer, expression_completer, command_completer): Adapt | |
543 | to new completer prototype. | |
544 | (complete_line_internal): Pass new parameter to completer function. | |
545 | * completer.h (noop_completer, filename_completer, | |
546 | location_completer, expression_completer, command_completer): Adapt | |
547 | prototypes to new completer prototype. | |
548 | * interps.c (interpreter_completer): Adapt to new completer | |
549 | prototype. | |
550 | * python/python-cmd.c: New file. | |
551 | * python/python-internal.h (gdbpy_initialize_commands): Add | |
552 | prototype. | |
553 | (gdbpy_doc_cst): Add forward declaration. | |
554 | * python/python.c (gdbpy_doc_cst): Declare. | |
555 | (_initialize_python): Call gdbpy_initialize_commands. Initialize | |
556 | gdbpy_doc_cst. | |
557 | * symtab.c (make_symbol_completion_list_fn): New function. | |
558 | * symtab.h (make_symbol_completion_list_fn): Add prototype. | |
559 | ||
739ef7fb PA |
560 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
561 | ||
562 | * target.c (target_get_osdata): Check for equal or higher than | |
563 | process_stratum, not dummy_stratum. | |
564 | ||
6d097e65 PA |
565 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
566 | ||
567 | * remote.c (extended_remote_can_run): Delete. | |
568 | (init_remote_ops): Don't register it. | |
569 | * target.c (target_get_osdata): Don't check for target_can_run. | |
570 | Instead any target that has already been pushed, otherwise | |
739ef7fb | 571 | fallback to the default run target. |
6d097e65 | 572 | |
947b8855 PA |
573 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
574 | ||
575 | * target.c (target_create_inferior, target_detach) | |
576 | (target_mourn_inferior, target_attach, target_close): Do target | |
577 | debug output. | |
578 | (debug_to_attach, debug_to_detach, debug_to_create_inferior) | |
579 | (debug_to_mourn_inferior, debug_to_close): Delete. | |
580 | (setup_target_debug): Adjust. | |
581 | ||
611041af PA |
582 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
583 | ||
584 | * target.h (target_stopped_data_address_p): Delete declaration, | |
585 | and don't define as macro. | |
586 | * target.c (target_stopped_data_address_p): Delete. | |
587 | ||
b6cb8e7d TJB |
588 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
589 | Tom Tromey <tromey@redhat.com> | |
590 | ||
591 | * python/python-utils.c (target_string_to_unicode): New function. | |
592 | * python/python-internal.h (target_string_to_unicode): New prototype. | |
593 | * python/python-value.c (valpy_string): New function. | |
594 | (value_object_methods): Add `string' entry. | |
595 | ||
54ba13f7 PA |
596 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
597 | ||
598 | * target.h (target_tid_to_str): Delete. | |
599 | * thread.c (print_thread_info, thread_apply_all_command) | |
600 | (thread_apply_command, thread_command, do_captured_thread_select): | |
601 | Use target_pid_to_str instead of target_tid_to_str. | |
602 | * linux-fork.c (delete_fork_command): Likewise. | |
603 | ||
9d49bdc2 PA |
604 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
605 | ||
606 | * frame.c (has_stack_frames): Make public. | |
607 | (get_prev_frame): Don't allow a NULL this_frame anymore. | |
608 | * frame.h (has_stack_frames): Declare. | |
609 | * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL | |
610 | to get_prev_frame, instead start at get_current_frame. | |
611 | (varobj_create): Check has_stack_frames before getting any frame; | |
612 | eliminate one usage of deprecated_safe_get_selected_frame. | |
613 | ||
12453b93 TJB |
614 | 2009-02-05 Tom Tromey <tromey@redhat.com> |
615 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
616 | ||
617 | * python/python.c (GdbMethods): Move to bottom of file. | |
618 | (get_parameter, execute_gdb_command, gdbpy_write, | |
619 | gdbpy_flush): Remove forward declarations. | |
620 | (eval_python_from_control_command): Fix error checking of function | |
621 | PyRun_SimpleString. Fix error string. | |
622 | (python_command): Likewise. | |
623 | (execute_gdb_command): Added from_tty argument. | |
624 | ||
ae6a3a4c TJB |
625 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
626 | ||
627 | * language.h (language_dfn): Add la_get_string member. | |
628 | (LA_GET_STRING): New macro. | |
629 | (default_get_string): New prototype. | |
630 | * language.c (default_get_string): New function. | |
631 | (unknown_language_defn, auto_language_defn, local_language_defn): Use | |
632 | default_get_string for la_get_string. | |
633 | * c-lang.c (c_get_string): New function. | |
634 | (c_language_defn, cplus_language_defn, asm_language_defn): Use | |
635 | c_get_string for la_get_string. | |
636 | (minimal_language_defn): Likewise | |
637 | * ada-lang.c (ada_language_defn): Likewise. | |
638 | * f-lang.c (f_language_defn): Use default_get_string for | |
639 | la_get_string. | |
640 | * jv-lang.c (java_language_defn): Likewise. | |
641 | * m2-lang.c (m2_language_defn): Likewise. | |
642 | * objc-lang.c (objc_language_defn): Likewise. | |
643 | * p-lang.c (p_language_defn): Likewise. | |
644 | * scm-lang.c (scm_language_defn): Likewise. | |
645 | * typeprint.c (type_to_string): New function. | |
646 | * value.h (type_to_string): New prototype. | |
647 | * valprint.c (val_print_string): Factor out code for reading string | |
648 | from the inferior into its own function. Put 2 spaces after period | |
649 | in comments. | |
650 | (read_string): New function. | |
651 | * valprint.h (read_string): New prototype. | |
652 | ||
fa8a61dc TT |
653 | 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr> |
654 | Tom Tromey <tromey@redhat.com> | |
655 | ||
656 | PR breakpoints/8079: | |
657 | * breakpoint.c (print_one_breakpoint): Use exp_string field | |
658 | to display expression of watchpoints. | |
659 | (mention): Likewise. | |
660 | (watch_command_1): Remove trailing whitespace from expression. | |
661 | * printcmd.c (struct display) <exp_string>: New field. | |
662 | (display_command): Set exp_string. | |
663 | (free_display): Free exp_string. | |
664 | (clear_displays): Use free_display. | |
665 | (do_one_display): Print exp_string. | |
666 | (display_info): Likewise. | |
667 | ||
08c637de TJB |
668 | 2009-02-04 Tom Tromey <tromey@redhat.com> |
669 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
670 | Phil Muldoon <pmuldoon@redhat.com> | |
671 | ||
672 | * python/python-internal.h (gdbpy_get_value_from_history): Rename | |
673 | prototype to gdbpy_history. | |
674 | (gdbpy_is_string): Declare. | |
675 | (python_string_to_host_string): Declare. | |
676 | * python/python-utils.c (gdbpy_is_string): New function. | |
677 | (unicode_to_encoded_string): New function. | |
678 | (unicode_to_target_string): Use it. | |
679 | (python_string_to_host_string): New function. | |
680 | * python/python-value.c (valpy_address): New function. | |
681 | (convert_value_from_python): Use gdbpy_is_string. Change to throw | |
682 | Python exception instead of a GDB exception on error. Properly check | |
683 | Python booleans. | |
684 | (valpy_getitem): Convert field name to host string. Handle array | |
685 | accesses. Adapt to new behaviour of convert_value_from_python. | |
686 | (valpy_new): Adapt to new behaviour of convert_value_from_python. | |
687 | (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND, | |
688 | VALPY_BITXOR, VALPY_BITOR>: New constants. | |
689 | (valpy_binop): Update. Adapt to new behaviour of | |
690 | convert_value_from_python. | |
691 | (valpy_invert): New function. | |
692 | (valpy_lsh): Likewise. | |
693 | (valpy_rsh): Likewise. | |
694 | (valpy_and): Likewise. | |
695 | (valpy_or): Likewise. | |
696 | (valpy_xor): Likewise. | |
697 | (valpy_richcompare): Call convert_value_from_python instead of doing | |
698 | conversions itself. | |
699 | (is_intlike, valpy_int, valpy_long, valpy_float): New functions. | |
700 | (gdbpy_get_value_from_history): Rename | |
701 | function to gdbpy_history. | |
702 | (gdbpy_initialize_values): Don't set tp_new. | |
703 | (value_object_type): Add valpy_new. | |
704 | (value_object_methods): Add `address' entry. | |
705 | (value_object_as_number): Update for new methods. | |
706 | * python/python.c (GdbMethods): Rename entry from | |
707 | `get_value_from_history' to `history'. | |
708 | ||
538e13a6 | 709 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
b5304971 JG |
710 | |
711 | * ada-lang.c (ada_template_to_fixed_record_type_1): Check size | |
712 | of type to guard against a crash. | |
713 | ||
33d502b4 JG |
714 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
715 | ||
716 | * value.c (value_from_contents_and_address): Always return | |
717 | a lval_memory value, even if address is null. | |
718 | ||
9f08ae4f TG |
719 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
720 | ||
721 | * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function. | |
722 | (amd64_darwin_sigcontext_addr): Ditto. | |
723 | (darwin_dwarf_signal_frame_p): Ditto. | |
724 | (i386_darwin_init_abi): Handle signal frames, use the const for | |
725 | sc_num_regs. | |
726 | (x86_darwin_init_abi_64): Ditto. | |
727 | ||
4bd207ef TG |
728 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
729 | ||
730 | * i386-tdep.c (i386_sigtramp_p): Make it public. | |
731 | * i386-tdep.h (i386_sigtramp_p): Declare. | |
732 | ||
4aa99a88 TG |
733 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
734 | ||
735 | * machoread.c (macho_symfile_read): Read minsymtab also from | |
736 | shared libraries. | |
737 | (macho_symfile_read): Try to read dwarf2 frame info from main | |
738 | object file, but not from OSO files. | |
739 | (macho_symfile_offsets): Update section names for latest BFD | |
740 | changes. | |
741 | * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops. | |
742 | (x86_darwin_init_abi_64): Ditto. | |
743 | * solib-darwin.c: New file. | |
744 | * solib-darwin.h: New file. | |
745 | * configure.tgt: Add solib.o solib-darwin.o for Darwin. | |
746 | ||
7a848be1 TG |
747 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
748 | ||
749 | * solist.h (struct target_so_ops): Comment fallback behavior for | |
750 | operation same. | |
751 | ||
b32d97f3 TT |
752 | 2009-02-03 Tom Tromey <tromey@redhat.com> |
753 | ||
754 | * completer.c (add_struct_fields): Check type_name against NULL | |
755 | before use. | |
756 | ||
692263b8 JB |
757 | 2009-02-03 Joel Brobecker <brobecker@adacore.com> |
758 | ||
759 | * MAINTAINERS: Update Elena's email address. | |
760 | ||
bfa149ac JB |
761 | 2009-02-02 Joel Brobecker <brobecker@adacore.com> |
762 | ||
763 | * breakpoint (update_watchpoint): Minor comment adjustment. | |
764 | ||
1c71341a TT |
765 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
766 | ||
52e44b43 | 767 | PR gdb/9594: |
1c71341a TT |
768 | * completer.c (count_struct_fields): Count method names. |
769 | (add_struct_fields): Add matching method names. | |
770 | ||
85541719 DE |
771 | 2009-02-02 Doug Evans <dje@google.com> |
772 | ||
773 | * configure.ac (gdbkt): Check both no_tcl/no_tk first, before | |
774 | doing any further tcl/tk configury. Don't configure gdbtk if | |
775 | tcl or tk check fails. | |
776 | * aclocal.m4: Regenerate. | |
777 | * configure: Regenerate. | |
778 | ||
a4295225 TT |
779 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
780 | ||
781 | PR exp/9059: | |
782 | * valops.c (find_overload_match): Follow typedefs before taking | |
783 | address of object argument. | |
784 | ||
f00150c9 DE |
785 | 2009-02-01 Doug Evans <dje@google.com> |
786 | ||
787 | * target.h (target_waitstatus_to_string): Declare. | |
788 | * target.c (target_waitstatus_to_string): New function. Copied from | |
789 | debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY, | |
790 | TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE, | |
791 | TARGET_WAITKIND_NO_HISTORY. | |
792 | (debug_to_wait): Call it. | |
793 | * infrun.c (wait_for_inferior): If debug_infrun, print result of | |
794 | target_wait. | |
795 | (fetch_inferior_event): Ditto. | |
796 | ||
5abdf4bd TT |
797 | 2009-01-30 Tom Tromey <tromey@redhat.com> |
798 | ||
799 | * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h. | |
800 | ||
592375cd VP |
801 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
802 | ||
803 | PR 8145. | |
804 | * thread.c (do_captured_list_thread_ids): Report the current | |
805 | thread id. | |
806 | ||
41447f92 VP |
807 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
808 | ||
809 | * breakpoint.c (create_breakpoint, create_breakpoints) | |
810 | (break_command_really, set_breakpoint): New parameter enabled. | |
811 | (create_breakpoint, break_command_really): Make breakpoint | |
812 | disabled if so requested. | |
813 | * breakpoint.h (set_breakpoint): New parameter enabled. | |
814 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option. | |
815 | ||
35669430 DE |
816 | 2009-01-28 Doug Evans <dje@google.com> |
817 | ||
818 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. | |
819 | (amd64_displaced_step_fixup): Declare. | |
820 | * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. | |
821 | (amd64_arch_regmap): Move out of amd64_analyze_stack_align | |
822 | and make static global. | |
823 | (amd64_arch_regmap_len): New static global. | |
824 | (amd64_arch_reg_to_regnum): New function. | |
825 | (struct amd64_insn): New struct. | |
826 | (struct displaced_step_closure): New struct. | |
827 | (onebyte_has_modrm,twobyte_has_modrm): New static globals. | |
828 | (rex_prefix_p,skip_prefixes) | |
829 | (amd64_insn_length_fprintf,amd64_insn_length_init_dis) | |
830 | (amd64_insn_length,amd64_get_unused_input_int_reg) | |
831 | (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) | |
832 | (amd64_displaced_step_copy_insn) | |
833 | (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) | |
834 | (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) | |
835 | (amd64_displaced_step_fixup): New functions. | |
836 | * amd64-linux-tdep.c: #include arch-utils.h. | |
837 | (amd64_linux_init_abi): Install displaced stepping support. | |
838 | ||
4eb7c016 JG |
839 | 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
840 | Jerome Guitton <guitton@adacore.com> | |
841 | ||
842 | * configure, config.in: Regenerated. | |
843 | * configure.ac: Add --with-system-gdbinit. | |
844 | * main.c (get_init_files): New. | |
845 | (captured_main): Use get_init_files. Load system gdbinit before | |
846 | $HOME/.gdbinit. | |
847 | (print_gdb_help): Print location of init files. | |
848 | ||
7df3ce47 PA |
849 | 2009-01-28 Pedro Alves <pedro@codesourcery.com> |
850 | ||
851 | * corefile.c (generic_search): Delete disabled code. | |
852 | * gdbcore.h (generic_search): Delete declaration. | |
853 | ||
77435e4c PA |
854 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
855 | ||
856 | * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the | |
857 | parent to the child. | |
858 | * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. | |
859 | * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use | |
860 | remove_breakpoints to remove breakpoints from the parent. | |
861 | ||
1e275f79 PA |
862 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
863 | ||
7488432f | 864 | PR backtrace/9458, PR backtrace/8864: |
1e275f79 PA |
865 | * frame.c (create_new_frame): Update the frame's cached PC before |
866 | finding its unwinder. Use frame_id_build to build the new frame's | |
867 | id. | |
868 | * stack.c (parse_frame_specification_1): Correct setting ``addrs'' | |
869 | array values from the ``args'' array values. | |
870 | ||
1deafd4e PA |
871 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
872 | ||
873 | * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type) | |
874 | (create_array_type, create_set_type, init_flags_type) | |
875 | (copy_type_recursive): Replace pairs of calls to XALLOC and memset | |
876 | with a call to XZALLOC or XCALLOC, and pairs of calls to | |
877 | obstack_alloc and memset with a call to OBSTACK_ZALLOC. | |
878 | ||
3c16cced PA |
879 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
880 | ||
881 | Add "maint set|show internal-error|internal-warning quit|corefile | |
882 | ask|yes|no" commands. | |
883 | ||
884 | PR gdb/7580: | |
885 | * utils.c (internal_problem_ask, internal_problem_yes) | |
886 | (internal_problem_no, internal_problem_modes): New. | |
887 | (struct internal_problem): Remove FIXME. Make should_quit and | |
888 | should_dump_core types to char *. | |
889 | (internal_vproblem, internal_error_problem) | |
890 | (internal_warning_problem): Adjust. | |
891 | (set_internal_problem_cmd, show_internal_problem_cmd): New dummy | |
892 | functions. | |
893 | (add_internal_problem_command): New. | |
894 | (_initialize_utils): New. | |
895 | ||
616d7dd2 PA |
896 | 2009-01-25 Pedro Alves <pedro@codesourcery.com> |
897 | ||
898 | * infcmd.c (program_info): Use paddress instead of casting stop_pc | |
899 | to unsigned long. | |
900 | ||
0516318b PA |
901 | 2009-01-24 Pedro Alves <pedro@codesourcery.com> |
902 | ||
903 | * infrun.c (normal_stop): Don't call | |
904 | deprecated_update_frame_pc_hack. | |
905 | * frame.c (deprecated_update_frame_pc_hack) | |
906 | (deprecated_update_frame_base_hack): Delete, and ... | |
907 | (create_new_frame): ... inline here. | |
908 | * frame.h (deprecated_update_frame_pc_hack) | |
909 | (deprecated_update_frame_base_hack): Delete declarations. | |
910 | ||
1e8fb976 PA |
911 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
912 | ||
913 | * cli/cli-decode.c (add_setshow_zuinteger_cmd): New. | |
914 | * cli/cli-setshow.c (do_setshow_command): Handle it. | |
915 | * command.h (enum var_types): Add var_zuinteger. | |
916 | (add_setshow_zuinteger_cmd): Declare. | |
917 | ||
918 | * valprint.c (_initialize_valprint): Change the set input-radix | |
919 | and set output-radix commands to zuinteger type. | |
920 | ||
dd7e2d2b PA |
921 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
922 | ||
923 | PR gdb/9664: | |
924 | * infrun.c (normal_stop): Tag threads as stopped, and run the | |
925 | hook-stop before printing the stack frame. | |
926 | ||
392452f6 PA |
927 | 2009-01-22 Pedro Alves <pedro@codesourcery.com> |
928 | ||
929 | PR c++/9631: | |
930 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on | |
931 | vbasetype. | |
932 | ||
f6a96b83 KH |
933 | 2009-01-20 Kazu Hirata <kazu@codesourcery.com> |
934 | ||
935 | * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to | |
936 | unsigned long. | |
937 | ||
5d277928 | 938 | 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com> |
a12cc160 DJ |
939 | |
940 | PR gdb/9346 | |
941 | * infcmd.c (signal_command): Do not specify a resume PC. | |
942 | ||
b89667eb DE |
943 | 2009-01-19 Doug Evans <dje@google.com> |
944 | ||
945 | * dummy-frame.c (dummy_frame): Replace regcache member with | |
946 | caller_state. | |
947 | (dummy_frame_push): Replace caller_regcache arg with caller_state. | |
948 | All callers updated. | |
949 | (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns. | |
950 | (dummy_frame_pop): Rewrite. Verify requested frame is in the | |
951 | dummy frame stack. Restore program state. | |
952 | (cleanup_dummy_frames): Rewrite. | |
953 | (dummy_frame_sniffer): Update. Make static. | |
954 | * dummy-frame.h (regcache,frame_info): Delete forward decls. | |
955 | (inferior_thread_state): New forward decl. | |
956 | (dummy_frame_push): Update prototype. | |
957 | * frame.c (frame_pop): dummy_frame_pop now does all the work for | |
958 | DUMMY_FRAMEs. | |
959 | * infcall.c (breakpoint_auto_delete_contents): Delete. | |
960 | (get_function_name,run_inferior_call): New fns. | |
961 | (call_function_by_hand): Simplify by moving some code to | |
962 | get_function_name, run_inferior_call. Inferior function call wrapped | |
963 | in TRY_CATCH so there's less need for cleanups and all exits from | |
964 | proceed are handled similarily. Detect program exit. | |
965 | Detect program stopping in a different thread. | |
966 | Make error messages more consistent. | |
967 | * inferior.h (inferior_thread_state): Declare (opaque type). | |
968 | (save_inferior_thread_state,restore_inferior_thread_state, | |
969 | make_cleanup_restore_inferior_thread_state, | |
970 | discard_inferior_thread_state, get_inferior_thread_state_regcache): | |
971 | Declare. | |
972 | (save_inferior_status): Update prototype. | |
973 | * infrun.c: (normal_stop): When stopped for the completion of an | |
974 | inferior function call, verify the expected stack frame kind. | |
975 | (inferior_thread_state): New struct. | |
976 | (save_inferior_thread_state,restore_inferior_thread_state, | |
977 | do_restore_inferior_thread_state_cleanup, | |
978 | make_cleanup_restore_inferior_thread_state, | |
979 | discard_inferior_thread_state, | |
980 | get_inferior_thread_state_regcache): New functions. | |
981 | (inferior_status): Move stop_signal, stop_pc, registers to | |
982 | inferior_thread_state. Remove restore_stack_info. | |
983 | (save_inferior_status): Remove arg restore_stack_info. | |
984 | All callers updated. Remove saving of state now saved by | |
985 | save_inferior_thread_state. | |
986 | (restore_inferior_status): Remove restoration of state now done by | |
987 | restore_inferior_thread_state. | |
988 | (discard_inferior_status): Remove freeing of registers, now done by | |
989 | discard_inferior_thread_state. | |
990 | ||
aefc7064 PA |
991 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
992 | ||
993 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line | |
994 | at a time, times NUM_TO_SCROLL. | |
995 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to | |
996 | fetch the selected frame if there is no stack. | |
997 | ||
29f49a6a PA |
998 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
999 | ||
1000 | PR gdb/9747: | |
1001 | * gdbthread.h (finish_thread_state, finish_thread_state_cleanup): | |
1002 | Declare. | |
1003 | * thread.c (finish_thread_state, finish_thread_state_cleanup): New. | |
1004 | * infrun.c (wait_for_inferior, fetch_inferior_event): If an error | |
1005 | is thrown while handling an event, finish the thread state. | |
1006 | (normal_stop): Use finish_thread_state cleanup. | |
1007 | * infcmd.c (run_command_1): If an error is thrown while starting | |
1008 | the inferior, finish the thread state. | |
1009 | ||
e7243d73 PA |
1010 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
1011 | ||
1012 | * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout, | |
1013 | skip breakpoints without a location (pending breakpoints). | |
1014 | ||
e74994b5 PA |
1015 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
1016 | ||
1017 | PR build/9186: | |
1018 | * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'. | |
1019 | ||
8405c36e NR |
1020 | 2009-01-18 Nick Roberts <nickrob@snap.net.nz> |
1021 | ||
1022 | * thread.c (thread_command): Move call to annotate_thread_changed | |
1023 | to... | |
1024 | (do_captured_thread_select): ... here, to avoid printing an | |
1025 | annotation if the thread change generates an exception. | |
1026 | ||
b8bfd3ed JB |
1027 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
1028 | ||
1029 | * NEWS: Document x86_64/MinGW as a new native configuration. | |
1030 | ||
2dde91e9 JB |
1031 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
1032 | ||
1033 | * NEWS: Move the documentation of "info os processes" to | |
1034 | the appropriate section (documenting the new commands). | |
1035 | ||
54363045 DE |
1036 | 2009-01-15 Doug Evans <dje@google.com> |
1037 | ||
1038 | * target.h (target_signal_to_string): Make return type const char *. | |
1039 | (target_signal_to_name): Ditto. | |
1040 | (target_signal_from_name): Make arg const char *. | |
54363045 | 1041 | * infrun.c (sig_print_info): Update. |
54363045 DE |
1042 | * signals/signals.c (signals): Make array and struct members const. |
1043 | (target_signal_to_string): Make return type const char *. | |
1044 | (target_signal_to_name): Ditto. | |
1045 | (target_signal_from_name): Make arg const char *. | |
1046 | ||
572d275c UW |
1047 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
1048 | Tristan Gingold <gingold@adacore.com> | |
1049 | ||
1050 | * solist.h (struct target_so_ops): New member bfd_open. | |
1051 | (solib_find): Add prototype. | |
1052 | (solib_bfd_fopen): Add prototype. | |
1053 | * solib.c (solib_find, solib_bfd_fopen): New functions, extracted | |
1054 | from solib_bfd_open. | |
1055 | (solib_bfd_open): Use ops->bfd_open override if present. Call | |
1056 | solib_find and solib_bfd_open otherwise. | |
1057 | ||
1058 | * objfiles.h (OBJF_KEEPBFD): New define. | |
1059 | * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD | |
1060 | objfile flag is set. | |
1061 | * solib.c (symbol_add_stub): Do not allocate second BFD for | |
1062 | shared library; use OBJF_KEEPBFD flag on solib objfile. | |
1063 | ||
0701b271 UW |
1064 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
1065 | ||
1066 | * frame.c (get_frame_arch): Abort if called with NULL this_frame. | |
1067 | ||
61212c0f UW |
1068 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
1069 | ||
1070 | * value.h (address_of_variable): Add prototype. | |
1071 | (locate_var_value): Remove prototype. | |
1072 | ||
1073 | * findvar.c (read_var_value): Do not attempt to default frame | |
1074 | to selected frame. | |
1075 | (locate_var_value): Remove function. | |
1076 | * valops.c (value_of_variable): Retrieve selected frame for | |
1077 | symbols that require a frame when called with NULL block. | |
1078 | * valops.c (address_of_variable): New function. | |
1079 | ||
1080 | * eval.c (evaluate_subexp_for_address): Call address_of_variable | |
1081 | instead of calling locate_var_value. | |
1082 | (evaluate_subexp_with_coercion): Likewise. | |
1083 | ||
adb483fe DJ |
1084 | 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com> |
1085 | ||
1086 | * NEWS: Document "define" for prefixed commands. | |
1087 | * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call | |
1088 | show_user_1 for prefix commands. | |
1089 | * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined". | |
1090 | * cli/cli-script.c (validate_comname): Rewrite to handle prefix | |
1091 | commands. Return the containing command list. | |
1092 | (define_command, document_command): Update to handle prefix commands. | |
1093 | (show_user_1): Add prefix and name arguments. Handle prefix | |
1094 | commands. | |
1095 | * cli/cli-script.h (show_user_1): Update prototype. | |
1096 | ||
a32d7317 KT |
1097 | 2009-01-14 Kai Tietz <kai.tietz@onevision.com> |
1098 | ||
1099 | * mingw-ser.c (console_select_thread): Add return to make | |
1100 | compiler happy. | |
1101 | (pipe_select_thread): Likewise. | |
1102 | (file_select_thread): Likewise. | |
1103 | ||
041d0fd7 PA |
1104 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
1105 | ||
1106 | * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from | |
1107 | previous change. | |
1108 | ||
dc1981d7 PA |
1109 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
1110 | ||
1111 | * remote.c (extended_remote_mourn_1): Invalidate our notion of | |
1112 | current general thread. | |
1113 | ||
244bf9ae PA |
1114 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
1115 | ||
1116 | * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups | |
1117 | without a live selected thread. | |
1118 | ||
e4d013fc JB |
1119 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
1120 | ||
1121 | Update the copyright notice of some of the files I missed | |
1122 | in the previous copyright update. | |
1123 | ||
a588db63 JB |
1124 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
1125 | ||
1126 | * windows-nat.c (handle_unload_dll): Use %p to print the DLL | |
1127 | base address instead of casting it to DWORD. | |
1128 | ||
77a732d9 UW |
1129 | 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
1130 | ||
1131 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch | |
1132 | for NULL frame pointers. | |
1133 | ||
773698b5 JB |
1134 | 2009-01-13 Mark Kettenis <kettenis@gnu.org> |
1135 | ||
1136 | * utils.c (host_address_to_string): Reimplement in a way that | |
1137 | avoids the cast of the address to long. | |
1138 | ||
9918cab9 JB |
1139 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
1140 | ||
1141 | * mdebugread.c (parse_symbol): Save the symbol private data | |
1142 | using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE. | |
1143 | (psymtab_to_symtab_1): Likewise. | |
1144 | (parse_procedure): Declare variable "e" only in the scope | |
1145 | where it is used. Extract the symbol private data using | |
1146 | SYMBOL_VALUE_BYTES. | |
1147 | ||
74bcbdf3 PA |
1148 | 2009-01-13 Jim Blandy <jimb@codesourcery.com> |
1149 | ||
1150 | Abstract out common code for copying value locations. | |
1151 | ||
1152 | * value.h (set_value_component_location): New declaration. | |
1153 | * value.c (set_value_component_location): New function. | |
1154 | (value_primitive_field): Use it. | |
1155 | * valarith.c (value_subscript, value_subscripted_rvalue): Same. | |
1156 | * valops.c (search_struct_field, value_slice): Same. | |
1157 | * ada-lang.c (coerce_unspec_val_to_type) | |
1158 | (ada_value_primitive_packed_val): Same. | |
1159 | ||
d7dc3873 JB |
1160 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
1161 | ||
1162 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey. | |
1163 | ||
dc05df57 CF |
1164 | 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx> |
1165 | ||
1166 | * amd64-windows-nat.c Rename gdb-specific win32_* to windows_* | |
1167 | throughout. | |
1168 | * i386-cygwin-tdep.c: Ditto. | |
1169 | * i386-windows-nat.c: Ditto. | |
1170 | * windows-nat.h: Ditto. | |
1171 | * windows-tdep.c: Ditto. | |
1172 | * windows-tdep.h: Ditto. | |
1173 | * windows-nat.c: Ditto. | |
1174 | (cygwin_load_start): Redefine as CORE_ADDR. | |
1175 | (cygwin_load_end): Ditto. | |
b8511eeb | 1176 | (windows_make_so): Coerce result of address arithmetic to uintptr_t |
dc05df57 CF |
1177 | before coercing to CORE_ADDR to avoid a compiler warning. |
1178 | (handle_exception): Define addr as CORE_ADDR and coerce | |
1179 | ExceptionAddress to uintptr_t before assigining to avoid a compiler | |
1180 | warning. | |
1181 | * config/djgpp/fnchange.lst: Add mappings for recently renamed windows | |
1182 | files. | |
1183 | ||
31b060a2 CF |
1184 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1185 | ||
1186 | Fix linking with --enable-targets=all: | |
1187 | * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o. | |
1188 | (HFILES_NO_SRCDIR): Add windows-tdep.h. | |
1189 | (ALLDEPFILES): Add windows-tdep.c. | |
1190 | ||
1191 | 2009-01-11 Christ Faylor <me.gdb@cgf.cx> | |
1192 | ||
1193 | * win32-nat.h: Delete. | |
1194 | * windows-nat.h: Rename from win32-nat.h. | |
1195 | * win32-nat.c: Delete. | |
1196 | * windows-nat.c: Rename from win32-nat.c. | |
1197 | * win32-termcap.c: Delete. | |
1198 | * windows-termcap.c: Rename from win32-termcap.c. | |
1199 | * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h. | |
1200 | * configure.ac: Handle rename from win32-termcap.c -> | |
1201 | windows-termcap.c. | |
1202 | * configure: Regenerate. | |
1203 | * gdb_curses.h: Change comment to reflect rename from win32-termcap.c | |
1204 | -> windows-termcap.c. | |
1205 | * i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> | |
1206 | windows-tdep.h. | |
1207 | * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h. | |
1208 | * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h -> | |
1209 | windows-tdep.h. | |
1210 | (win32_make_so): Handle cygwin compiler warning due to change of | |
1211 | load_addr from DWORD to LPVOID. | |
1212 | (handle_load_dll): Use %p in format string to properly print address | |
1213 | and avoid a compiler warning. | |
1214 | (DEBUG_EXCEPTION_SIMPLE): Ditto. | |
1215 | (handle_exception): Ditto. | |
1216 | * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h. | |
1217 | * config/i386/cygwin.mh: Handle rename from win32-nat.o -> | |
1218 | windows-nat.o. | |
1219 | * config/i386/mingw.mh: Ditto. | |
1220 | * config/i386/mingw64.mh: Ditto. | |
1221 | ||
0311118f JK |
1222 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1223 | ||
1224 | * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable | |
1225 | arrayprint_recurse_level to a parameter. Update all the callers. New | |
1226 | comment at autovariables. | |
1227 | ||
5f61c20e JK |
1228 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1229 | ||
1230 | * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU | |
1231 | coding style. | |
1232 | ||
1233 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> | |
53b71562 JB |
1234 | |
1235 | * target.c (target_xfer_partial): Use host_address_to_string to | |
1236 | print the address of readbuf and writebuf. Cast the address of | |
1237 | elements inside the myaddr buffer into intptr_t. | |
1238 | (deprecated_debug_xfer_memory): Use paddress to print memaddr. | |
1239 | Cast the address of elements inside the myaddr buffer into | |
1240 | intptr_t. | |
1241 | ||
5f61c20e | 1242 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
d0761299 JB |
1243 | |
1244 | * amd64-windows-nat.c, amd64-windows-tdep.c: New files. | |
1245 | * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files. | |
1246 | * configure.host, configure.tgt: Add handling for x86_64/windows. | |
1247 | * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c | |
1248 | and amd64-windows-tdep.c. | |
1249 | ||
5f61c20e | 1250 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
bfb87e33 JB |
1251 | |
1252 | * win32-tdep.h, win32-tdep.c: New files. | |
1253 | * i386-cygwin-tdep.h: Delete. | |
1254 | * i386-cygwin-tdep.c: Include win32-tdep.h instead of | |
1255 | i386-cygwin-tdep.h. | |
1256 | (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. | |
1257 | * win32-nat.c: Likewise. | |
1258 | * configure.tgt: Add win32-tdep.o to the list of target object | |
1259 | files for i386-cygwin and i386-mingw targets. | |
1260 | ||
5f61c20e | 1261 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
7e63b4e4 JB |
1262 | |
1263 | * win32-nat.h: New file. | |
1264 | * win32-nat.c (mappings): Initialize to NULL. | |
1265 | (win32_set_context_register_offsets): New function. | |
1266 | * i386-windows-nat.c: New file. | |
1267 | (mappings): Moved here from win32-nat.c. | |
1268 | (_initialize_i386_windows_nat): New function. | |
1269 | * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. | |
1270 | * config/i386/cygwin.mh (NATDEPFILES): Likewise. | |
1271 | ||
25fc6591 AS |
1272 | 2009-01-09 Andreas Schwab <schwab@suse.de> |
1273 | ||
1274 | * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. | |
1275 | ||
87f70781 PA |
1276 | 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
1277 | ||
1278 | * gdbtypes.c (append_composite_type_field): Correct the location of | |
1279 | appended fields. | |
1280 | ||
58d4abe1 PA |
1281 | 2009-01-09 Pedro Alves <pedro@codesourcery.com> |
1282 | ||
1283 | * defs.h (deprecated_error_hook): Delete declaration. | |
1284 | * interps.c (clear_interpreter_hooks): Adjust. | |
1285 | * remote-sim.c (gdb_os_error): Don't try to call | |
1286 | deprecated_error_hook. No need to call exit anymore. | |
1287 | * top.c (deprecated_error_hook): Delete. | |
1288 | ||
e3cb3832 JB |
1289 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1290 | ||
1291 | * arch-utils.c (gdbarch_update_p): Use host_address_to_string | |
1292 | to print the address of the gdbarch pointer. | |
1293 | ||
30737ed9 JB |
1294 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1295 | ||
1296 | * gdbarch.sh: Fix all the compilation errors on amd64-windows | |
1297 | due to casting a pointer to a long when printing a function | |
1298 | address. Instead, use host_address_to_string to convert our | |
1299 | address to a string. | |
1300 | * gdbarch.c: Regenerate. | |
1301 | ||
ec4dfccf JB |
1302 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1303 | ||
1304 | * event-top.c (async_disconnect, async_stop_sig): use "raise" | |
1305 | instead of "kill" to raise a signal. | |
1306 | ||
d3653bf6 JB |
1307 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1308 | ||
1309 | * win32-nat.c (get_module_name): Change the type of parameter | |
1310 | "base_address" to LPVOID. Remove unnecessary cast. | |
1311 | (struct lm_info): Change type of load_addr to LPVOID. | |
1312 | (win32_make_so): Change the type of parameter "load_addr" | |
1313 | to LPVOID. Remove some unnecessary casts. | |
1314 | (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. | |
1315 | (win32_xfer_shared_libraries): Add missing cast. | |
1316 | ||
308a8808 JB |
1317 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1318 | ||
1319 | * win32-nat.c (has_detach_ability, set_process_privilege): | |
1320 | Cast the result of GetProcAddress to (void *) to avoid | |
1321 | a compilation warning. | |
1322 | ||
5851ab76 JB |
1323 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1324 | ||
1325 | * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not | |
1326 | already defined. | |
1327 | ||
5732a500 JB |
1328 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1329 | ||
1330 | * win32-nat.c (get_image_name, win32_xfer_memory): Fix type | |
1331 | definition of local variable "done". | |
1332 | (info_w32_command, handle_exception): Remove unnecessary cast. | |
1333 | ||
def4de3a JB |
1334 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1335 | ||
1336 | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames | |
1337 | DebugSetProcessKillOnExit. Update all uses in this file. | |
1338 | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. | |
1339 | Update all uses in this file. | |
1340 | ||
1341 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> | |
0795be10 JB |
1342 | |
1343 | * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, | |
1344 | and use it when pushing the target. | |
1345 | (win32_attach, win32_create_inferior): Update call to | |
1346 | do_initial_win32_stuff. | |
1347 | (win32_detach, win32_mourn_inferior): Use our ops parameter | |
1348 | instead of the global win32_ops to unpush the target. | |
1349 | ||
1be7fe8d JB |
1350 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1351 | ||
1352 | * ser-mingw.c (ser_windows_open): Use proper type when casting | |
1353 | in call to _open_osfhandle. | |
1354 | ||
1dac1b47 KT |
1355 | 2009-01-09 Kai Tietz <kai.tietz@onevision.com> |
1356 | ||
1357 | * coff-pe-read.c (read_pe_exported_syms): Fix typo. | |
1358 | ||
ecf180db JB |
1359 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1360 | ||
1361 | * CONTRIBUTE: Minor reformatting. | |
1362 | ||
8234eceb KT |
1363 | 2009-01-08 Kai Tietz <kai.tietz@onevision.com> |
1364 | ||
1365 | * MAINTAINERS: Add myself to Write After Approval. | |
a68ddad5 KT |
1366 | * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ |
1367 | export directory. | |
8234eceb | 1368 | |
72ee8797 NF |
1369 | 2009-01-08 Nathan Froyd <froydnj@codesourcery.com> |
1370 | ||
1371 | * remote-sim.c (gdb_os_error): Mark as a noreturn function. | |
1372 | Call exit to make it obvious to GCC. | |
1373 | ||
f7545552 TT |
1374 | 2009-01-08 Tom Tromey <tromey@redhat.com> |
1375 | ||
1376 | PR breakpoints/9350: | |
1377 | * varobj.c (varobj_invalidate): Unconditionally free | |
1378 | all_rootvarobj. | |
1379 | * symfile.c (syms_from_objfile): Free local_addr when returning | |
1380 | normally. | |
1381 | * exec.c (exec_file_attach): Do cleanups before returning. | |
1382 | (exec_file_command): Likewise. | |
1383 | * corefile.c (reopen_exec_file): Do cleanups before returning. | |
1384 | * breakpoint.c (insert_breakpoint_locations): Do cleanups before | |
1385 | returning. | |
1386 | (do_vec_free): New function. | |
1387 | (update_global_location_list): Make a cleanup for old_locations. | |
1388 | Do cleanups before returning. Remove unused variable 'e'. | |
1389 | (find_condition_and_thread): Free result of parsing the | |
1390 | expression. | |
1391 | (print_it_typical): Do cleanups before returning. | |
1392 | (breakpoint_re_set_one): Always free sals.sals. | |
1393 | ||
dde02812 ES |
1394 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1395 | Emi Suzuki <emi-suzuki@tjsys.co.jp> | |
1396 | ||
1397 | * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for | |
1398 | watchpoints. | |
1399 | ||
69bcc6bc DE |
1400 | 2009-01-07 Doug Evans <dje@google.com> |
1401 | ||
1402 | * top.c (gdb_prompt_string): Delete, unused. | |
1403 | ||
fa3a767f PA |
1404 | 2009-01-07 Pedro Alves <pedro@codesourcery.com> |
1405 | ||
1406 | Delete ONE_PROCESS_WRITETEXT leftovers. | |
1407 | ||
1408 | * breakpoint.c (insert_bp_location): Delete process_warning | |
1409 | argument. Adjust. | |
1410 | (insert_breakpoint_locations): Adjust. | |
1411 | (reattach_breakpoints): Adjust. | |
1412 | * infrun.c (normal_stop): Drop "It might be running in another | |
1413 | process" notice. | |
1414 | ||
7b93f36d SS |
1415 | 2009-01-07 Stan Shebs <stan@codesourcery.com> |
1416 | ||
1417 | * config/pa/linux.mh (XDEPFILES): Remove. | |
1418 | ||
0380c18b DE |
1419 | 2009-01-07 Doug Evans <dje@google.com> |
1420 | ||
1421 | * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. | |
1422 | ||
60023297 JK |
1423 | 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1424 | ||
1425 | * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output | |
1426 | spacing, a regression from 2008-04-22. | |
1427 | ||
ea8992ce JB |
1428 | 2009-01-07 Joel Brobecker <brobecker@adacore.com> |
1429 | ||
1430 | * utils.c (gdb_print_host_address): Adjust implementation to | |
1431 | reuse host_address_to_string. Move comment explaining the conversion | |
1432 | from host address to string from here... | |
1433 | (host_address_to_string): ... to there. | |
1434 | ||
301d2c47 ES |
1435 | 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp> |
1436 | ||
1437 | * MAINTAINERS: Add myself for write after approval privileges. | |
1438 | ||
170ce852 TT |
1439 | 2009-01-06 Tom Tromey <tromey@redhat.com> |
1440 | ||
1441 | * value.c (set_internalvar): Use value_free, not xfree. | |
1442 | ||
fdb7262a JB |
1443 | 2009-01-06 Jim Blandy <jimb@red-bean.com> |
1444 | ||
bf1d7d9c JB |
1445 | Check return values of functions declared with warn_unused_result |
1446 | attribute in GLIBC 2.8. | |
1447 | * cli/cli-cmds.c (pwd_command): Check return value from getcwd. | |
1448 | * inflow.c (check_syscall): New function. | |
1449 | (new_tty): Use check_syscall to check return values from open and dup. | |
1450 | * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets. | |
1451 | * main.c (captured_main): Call cwd after setting up gdb_stderr; | |
1452 | check for errors from getcwd. | |
1453 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd. | |
1454 | * ui-file.c (stdio_file_write): Ignore return value from fwrite. | |
1455 | (stdio_file_fputs): Same. | |
1456 | * utils.c (internal_vproblem): abort if last-ditch error message | |
1457 | write fails. | |
1458 | ||
fdb7262a JB |
1459 | * top.c (gdb_init): Don't set the current directory here; that's |
1460 | already been done in captured_main. | |
1461 | ||
84603566 SL |
1462 | 2009-01-06 Sandra Loosemore <sandra@codesourcery.com> |
1463 | ||
1464 | * ser-tcp.c: Adjust includes. | |
1465 | (tcp_set_cmdlist, tcp_show_cmdlist): Declare. | |
1466 | (tcp_auto_retry, tcp_retry_limit): Declare. | |
1467 | (TIMEOUT): Remove, in favor of tcp_retry_limit. | |
1468 | (POLL_INTERVAL): Increase to 5, in favor of backoff logic. | |
1469 | (wait_for_connect): New function. | |
1470 | (net_open): Use it. Add auto-retry logic. | |
1471 | (set_tcp_cmd, show_tcp_cmd): New functions. | |
1472 | (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry" | |
1473 | and "set/show tcp connect-timeout" commands. | |
1474 | * NEWS: Document new commands. | |
1475 | ||
5171e6b3 TT |
1476 | 2009-01-05 Tom Tromey <tromey@redhat.com> |
1477 | ||
1478 | * python/python-internal.h (Py_ssize_t): Define as int. | |
1479 | ||
a367a1f2 JB |
1480 | 2009-01-05 Jim Blandy <jimb@red-bean.com> |
1481 | ||
1482 | * MAINTAINERS: Fix my e-mail address as steering committee member. | |
1483 | ||
0fb0cc75 JB |
1484 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1485 | ||
1486 | Updated copyright notices for most files. | |
1487 | ||
c9fc347d JB |
1488 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1489 | ||
1490 | * top.c (print_gdb_version): Update copyright year. | |
1491 | ||
a85d99b4 JB |
1492 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1493 | ||
1494 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. | |
1495 | ||
4d78a120 JB |
1496 | 2009-01-01 Pedro Alves <pedro@codesourcery.com> |
1497 | ||
1498 | PR breakpoints/9681: | |
1499 | * exceptions.h (enum errors): New error type, MEMORY_ERROR. | |
1500 | * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. | |
1501 | * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but | |
1502 | retrow all other exceptions. | |
1503 | ||
67de2a4c | 1504 | For older changes see ChangeLog-2008. |
c906108c SS |
1505 | \f |
1506 | Local Variables: | |
1507 | mode: change-log | |
1508 | left-margin: 8 | |
1509 | fill-column: 74 | |
1510 | version-control: never | |
57da7796 | 1511 | coding: utf-8 |
c906108c | 1512 | End: |