Commit | Line | Data |
---|---|---|
8c85a4e2 DE |
1 | 2012-01-27 Doug Evans <dje@google.com> |
2 | ||
3 | * configure.ac (with_python): Fix absolute path handling for win32. | |
4 | * configure: Regenerate. | |
5 | ||
78d8b4d7 DE |
6 | 2012-01-26 Doug Evans <dje@google.com> |
7 | ||
eca864fe DE |
8 | * symtab.c: Whitespace cleanup, no code changes. |
9 | ||
7e082072 DE |
10 | * symtab.c (lookup_symbol_in_language): Improve comment. |
11 | (lookup_symbol_aux): Fix comment. | |
12 | ||
7dc25483 DE |
13 | * psymtab.c (add_psymbol_to_list): Result is now "void". |
14 | * psympriv.h (add_psymbol_to_list): Update. | |
15 | ||
78d8b4d7 DE |
16 | * dwarf2read.c (add_partial_symbol): Delete local psym, unused. |
17 | ||
4c63965b JK |
18 | 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
19 | ||
20 | Do not open script filenames twice. | |
21 | * cli/cli-cmds.c (source_script_from_stream): Pass to | |
22 | source_python_script also STREAM. | |
23 | * python/py-auto-load.c (source_section_scripts): Pass to | |
24 | source_python_script_for_objfile also STREAM. | |
25 | (auto_load_objfile_script): Pass to source_python_script_for_objfile | |
26 | also INPUT. | |
27 | * python/python-internal.h (source_python_script_for_objfile): New | |
28 | parameter file, rename parameter file to filename. | |
29 | * python/python.c (python_run_simple_file): Call PyRun_SimpleFile | |
30 | instead if !_WIN32. Update the function comment. | |
31 | (source_python_script, source_python_script_for_objfile) | |
32 | (source_python_script): New parameter file, rename parameter file to | |
33 | filename. Pass FILENAME to python_run_simple_file. | |
34 | * python/python.h (source_python_script): New parameter file, rename | |
35 | parameter file to filename. | |
36 | ||
88f38a04 PA |
37 | 2012-01-26 Pedro Alves <palves@redhat.com> |
38 | ||
39 | * corelow.c (core_has_fake_pid): Delete. | |
40 | (core_close): Delete references to `core_has_fake_pid'. | |
41 | (add_to_thread_list): Adjust to mark the inferior's pid as fake. | |
42 | (core_open): Delete references to `core_has_fake_pid'. | |
43 | (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of | |
44 | the removed global. | |
45 | ||
e078317b JB |
46 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
47 | ||
48 | * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: | |
49 | Remove language parameter from name_matcher. Adjust the comment. | |
50 | * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): | |
51 | Remove language parameter. | |
52 | * ada-lang.c (ada_expand_partial_symbol_name): Likewise. | |
53 | * linespec.c (iterate_name_matcher): Likewise. | |
54 | * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of | |
55 | name_matcher. Adjust call accordingly. | |
56 | * psymtab.c (expand_symtabs_matching_via_partial): Likewise. | |
57 | (maintenance_check_symtabs): Adjust type of parameter "fun". | |
58 | * psymtab.h (maintenance_check_symtabs): Likewise. | |
59 | ||
74ccd7f5 JB |
60 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
61 | ||
62 | * language.h (symbol_name_match_p_ftype): New typedef. | |
63 | (struct language_defn): Replace field la_symbol_name_compare | |
64 | by la_get_symbol_name_match_p. | |
65 | * ada-lang.c (ada_get_symbol_name_match_p): New function. | |
66 | (ada_language_defn): Use it. | |
67 | * linespec.c (struct symbol_matcher_data): New type. | |
68 | (iterate_name_matcher): Rewrite. | |
69 | (iterate_over_all_matching_symtabs): Pass a pointer to | |
70 | a symbol_matcher_data struct to expand_symtabs_matching | |
71 | instead of just the lookup name. | |
72 | * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, | |
73 | opencl-lang.c, p-lang.c, language.c: Delete field | |
74 | la_symbol_name_compare, and replace by NULL for new field | |
75 | la_get_symbol_name_match_p. | |
76 | * symfile.h (struct quick_symbol_functions): Update comment. | |
77 | ||
5d268276 TT |
78 | 2012-01-25 Tom Tromey <tromey@redhat.com> |
79 | ||
80 | * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before | |
81 | dereferencing. | |
82 | ||
edcc5120 TT |
83 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
84 | ||
85 | PR symtab/12406: | |
86 | * solib.c (update_solib_list): Update the program space's | |
87 | added_solibs and deleted_solibs fields. | |
88 | * progspace.h (struct program_space) <added_solibs, | |
89 | deleted_solibs>: New fields. | |
90 | (clear_program_space_solib_cache): Declare. | |
91 | * progspace.c (release_program_space): Call | |
92 | clear_program_space_solib_cache. | |
93 | (clear_program_space_solib_cache): New function. | |
94 | * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call | |
95 | bpstat_stop_status. Use handle_solib_event. | |
96 | * breakpoint.c: Include gdb_regex.h. | |
97 | (print_solib_event): New function. | |
98 | (bpstat_print): Use print_solib_event. | |
99 | (bpstat_stop_status): Add special case for bp_shlib_event. | |
100 | (handle_solib_event): New function. | |
101 | (bpstat_what): Use handle_solib_event. | |
102 | (struct solib_catchpoint): New. | |
103 | (dtor_catch_solib, insert_catch_solib, remove_catch_solib) | |
104 | (breakpoint_hit_catch_solib, check_status_catch_solib) | |
105 | (print_it_catch_solib, print_one_catch_solib) | |
106 | (print_mention_catch_solib, print_recreate_catch_solib): New | |
107 | functions. | |
108 | (catch_solib_breakpoint_ops): New global. | |
109 | (catch_load_or_unload, catch_load_command_1) | |
110 | (catch_unload_command_1): New functions. | |
111 | (internal_bkpt_check_status): Add special case for | |
112 | bp_shlib_event. | |
113 | (internal_bkpt_print_it): Use print_solib_event. | |
114 | (initialize_breakpoint_ops): Initialize | |
115 | catch_solib_breakpoint_ops. | |
116 | (_initialize_breakpoint): Register "catch load" and "catch | |
117 | unload". | |
118 | * breakpoint.h (handle_solib_event): Declare. | |
119 | * NEWS: Add entry for "catch load" and "catch unload". | |
120 | ||
fa864999 TT |
121 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
122 | ||
123 | * ada-lang.c: Include gdb_vecs.h. | |
124 | * charset.c: Include gdb_vecs.h. | |
125 | * tracepoint.h: Include gdb_vecs.h. | |
126 | * gdb_vecs.h: New file. | |
127 | ||
f90263c1 TT |
128 | 2012-01-24 Pedro Alves <pedro@codesourcery.com> |
129 | ||
130 | * breakpoint.c (breakpoint_hit_catch_fork) | |
131 | (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall) | |
132 | (breakpoint_hit_catch_exec): Make use of the `ws' argument. | |
133 | * infrun.c (inferior_has_forked, inferior_has_vforked) | |
134 | (inferior_has_execd, inferior_has_called_syscall): Delete. | |
135 | (handle_syscall_event): Get syscall_number from the execution | |
136 | control state's wait status. | |
137 | (wait_for_inferior): Don't clear syscall_number. | |
138 | ||
09ac7c10 TT |
139 | 2012-01-24 Pedro Alves <palves@redhat.com> |
140 | ||
141 | * breakpoint.c (bpstat_check_location, bpstat_stop_status, | |
142 | pc_at_non_inline_function): Add `ws' parameter, and pass it down. | |
143 | (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork) | |
144 | (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add | |
145 | `ws' parameter. | |
146 | (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return | |
147 | false for events other than TARGET_SIGNAL_TRAP. | |
148 | (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit): | |
149 | Add `ws' parameter. | |
150 | (bkpt_breakpoint_hit): Add `ws' parameter. Return false for | |
151 | events other than TARGET_SIGNAL_TRAP. | |
152 | (tracepoint_breakpoint_hit): Add `ws' parameter. | |
153 | * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws' | |
154 | parameter. | |
155 | (bpstat_stop_status): Same. | |
156 | (pc_at_non_inline_function): Same. | |
157 | * infrun.c (handle_syscall_event, handle_inferior_event): Adjust | |
158 | to pass the current event's waitstatus to bpstat_stop_status | |
159 | and pc_at_non_inline_function. | |
160 | ||
86eb7e95 JK |
161 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
162 | ||
163 | Code cleanup. | |
164 | * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM. | |
165 | Update the function comment for it. | |
166 | (source_script_with_search): Call make_cleanup_fclose for STREAM. | |
167 | * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose | |
168 | for STREAM. | |
169 | ||
a9b3a50f PA |
170 | 2012-01-24 Pedro Alves <palves@redhat.com> |
171 | ||
172 | * breakpoint.c (bpstat_stop_status): Moving clearing print_it | |
173 | outside `bs->stop' block. | |
174 | (bpstat_what): Rework bp_shlib_event handling. | |
175 | (internal_bkpt_check_status): If the breakpoint is a | |
176 | bp_shlib_event, then set bs->stop and bs->print if | |
177 | stop_on_solib_events is set. | |
178 | ||
53fe1783 GB |
179 | 2012-01-24 Gary Benson <gbenson@redhat.com> |
180 | ||
181 | Delete #if 0'd out code. | |
182 | * stack.c (print_frame_label_vars): Remove. | |
183 | (catch_info): Likewise. | |
184 | (_initialize_stack): Remove "info catch" command. | |
185 | * NEWS: Mention the above. | |
186 | ||
49c62f2e PA |
187 | 2012-01-24 Pedro Alves <palves@redhat.com> |
188 | ||
189 | * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use | |
190 | it. | |
191 | (remote_notice_new_inferior): If the remote end doesn't support | |
192 | the multiprocess extensions, then the PID is fake. | |
193 | (add_current_inferior_and_thread): New. | |
194 | (remote_start_remote): Use it. | |
195 | (extended_remote_attach_1): Adjust. | |
196 | (extended_remote_create_inferior_1): Use | |
197 | add_current_inferior_and_thread. | |
198 | ||
d0d8b0c6 JK |
199 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
200 | ||
201 | Fix watchpoints to be specific for each inferior. | |
202 | * breakpoint.c (watchpoint_in_thread_scope): Verify also | |
203 | current_program_space. | |
204 | * i386-nat.c (i386_inferior_data_cleanup): New. | |
205 | (i386_inferior_data_get): Replace variable inf_data_local by an | |
206 | inferior_data call. | |
207 | (i386_use_watchpoints): Initialize i386_inferior_data. | |
208 | * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID | |
209 | specific iterate_over_lwps. | |
210 | ||
4403d8e9 JK |
211 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
212 | ||
213 | Fix watchpoints across inferior fork. | |
214 | * amd64-linux-nat.c (update_debug_registers_callback): Update the | |
215 | comment for linux_nat_iterate_watchpoint_lwps. | |
216 | (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use | |
217 | linux_nat_iterate_watchpoint_lwps. | |
218 | (amd64_linux_prepare_to_resume): New comment on Linux kernel. | |
219 | * i386-linux-nat.c (update_debug_registers_callback): Update the | |
220 | comment for linux_nat_iterate_watchpoint_lwps. | |
221 | (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use | |
222 | linux_nat_iterate_watchpoint_lwps. | |
223 | (i386_linux_prepare_to_resume): New comment on Linux kernel. | |
224 | * i386-nat.c: Include inferior.h. | |
225 | (dr_mirror): Remove. | |
226 | (i386_inferior_data, struct i386_inferior_data) | |
227 | (i386_inferior_data_get): New. | |
228 | (i386_debug_reg_state): Use i386_inferior_data_get. | |
229 | (i386_cleanup_dregs, i386_update_inferior_debug_regs) | |
230 | (i386_insert_watchpoint, i386_remove_watchpoint) | |
231 | (i386_stopped_data_address, i386_insert_hw_breakpoint) | |
232 | (i386_remove_hw_breakpoint): New variable state, use | |
233 | i386_debug_reg_state instead of DR_MIRROR. | |
234 | * linux-nat.c (delete_lwp): New declaration. | |
235 | (num_lwps): Move here from downwards. | |
236 | (delete_lwp_cleanup): New. | |
237 | (linux_child_follow_fork): Create new child_lp, call | |
238 | linux_nat_new_thread and linux_nat_prepare_to_resume before calling | |
239 | PTRACE_DETACH. | |
240 | (num_lwps): Move upwards. | |
241 | (linux_nat_iterate_watchpoint_lwps): New. | |
242 | * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New. | |
243 | (linux_nat_iterate_watchpoint_lwps_ftype): New declaration. | |
244 | ||
2992c9a7 | 245 | 2012-01-24 Joel Brobecker <brobecker@adacore.com> |
246 | ||
247 | GDB 7.4 released. | |
248 | ||
e360902b PA |
249 | 2012-01-23 Pedro Alves <palves@redhat.com> |
250 | ||
251 | * top.c (caution): Rename to ... | |
252 | (confirm): ... this. | |
253 | (show_caution): Rename to ... | |
254 | (show_confirm): ... this. | |
255 | (quit_cover): Adjust. | |
256 | (init_main): Adjust. | |
257 | * top.h (caution): Rename to ... | |
258 | (confirm): ... this. | |
259 | * utils.c (internal_vproblem, defaulted_query): Adjust. | |
260 | ||
050a2e1d PA |
261 | 2012-01-23 Pedro Alves <palves@redhat.com> |
262 | ||
263 | * top.c (caution): Update comment. | |
264 | (execute_command): Don't consider the current value of `caution'. | |
265 | ||
77a35dd8 JK |
266 | 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
267 | ||
268 | * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen. | |
269 | ||
a71b5a38 UW |
270 | 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org> |
271 | ||
272 | * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>. | |
273 | * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning. | |
274 | * target.c (target_fileio_pwrite): Remove buffer address from | |
275 | debug output. | |
276 | (target_fileio_pread): Likewise. | |
277 | ||
d99bd577 UW |
278 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
279 | ||
280 | * NEWS: Document remote "info proc" and "generate-core-file". | |
281 | ||
35c2fab7 UW |
282 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
283 | ||
284 | * gdbarch.sh (find_memory_regions): New callback. | |
285 | * gdbarch.c, gdbarch.h: Regenerate. | |
286 | ||
287 | * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions | |
288 | callback before falling back to target method. | |
289 | ||
290 | * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove. | |
291 | (linux_target_install_ops): No longer install it. | |
292 | ||
293 | * linux-tdep.c (linux_find_memory_regions): New function. | |
294 | (linux_init_abi): Install it. | |
295 | ||
6432734d UW |
296 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
297 | ||
298 | * gdbarch.sh (make_corefile_notes): New architecture callback. | |
299 | * gdbarch.c: Regenerate. | |
300 | * gdbarch.h: Likewise. | |
301 | ||
302 | * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes | |
303 | before target_make_corefile_notes. If NULL is returned, the | |
304 | target does not support core file generation. | |
305 | ||
306 | * linux-nat.c: Include "linux-tdep.h". | |
307 | (find_signalled_thread, find_stop_signal): Remove. | |
308 | (linux_nat_do_thread_registers): Likewise. | |
309 | (struct linux_nat_corefile_thread_data): Likewise. | |
310 | (linux_nat_corefile_thread_callback): Likewise. | |
311 | (iterate_over_spus): Likewise. | |
312 | (struct linux_spu_corefile_data): Likewise. | |
313 | (linux_spu_corefile_callback): Likewise. | |
314 | (linux_spu_make_corefile_notes): Likewise. | |
315 | (linux_nat_collect_thread_registers): New function. | |
316 | (linux_nat_make_corefile_notes): Replace contents by call to | |
317 | linux_make_corefile_notes passing linux_nat_collect_thread_registers | |
318 | as native-only callback. | |
319 | ||
320 | * linux-tdep.h: Include "bfd.h". | |
321 | (struct regcache): Add forward declaration. | |
322 | (linux_collect_thread_registers_ftype): New typedef. | |
323 | (linux_make_corefile_notes): Add prototype. | |
324 | * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h", | |
325 | "regset.h", and "elf-bfd.h". | |
326 | (find_signalled_thread, find_stop_signal): New functions. | |
327 | (linux_spu_make_corefile_notes): Likewise. | |
328 | (linux_collect_thread_registers): Likewise. | |
329 | (struct linux_corefile_thread_data): New data structure. | |
330 | (linux_corefile_thread_callback): New funcion. | |
331 | (linux_make_corefile_notes): Likewise. | |
332 | (linux_make_corefile_notes_1): Likewise. | |
333 | (linux_init_abi): Install it. | |
334 | ||
3030c96e UW |
335 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
336 | ||
337 | * gdbarch.sh (info_proc): New callback. | |
338 | * gdbarch.c, gdbarch.h: Regenerate. | |
339 | ||
340 | * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback | |
341 | before falling back to the target info_proc callback. | |
342 | ||
343 | * linux-nat.c: Do not include "cli/cli-utils.h". | |
344 | (linux_nat_info_proc): Remove. | |
345 | (linux_target_install_ops): No longer install it. | |
346 | ||
347 | * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>. | |
348 | (read_mapping): New function. | |
349 | (linux_info_proc): Likewise. | |
350 | (linux_init_abi): Install it. | |
351 | ||
145b16a9 UW |
352 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
353 | ||
354 | * defs.h (enum info_proc_what): Moved here from linux-nat.c | |
355 | * infcmd.c: (info_proc_cmd_1): New function. | |
356 | (info_proc_cmd): New function, moved here from equivalent routine | |
357 | orignally in linux-nat.c. | |
358 | (info_proc_cmd_mappings): Likewise. | |
359 | (info_proc_cmd_stat): Likewise. | |
360 | (info_proc_cmd_status): Likewise. | |
361 | (info_proc_cmd_cwd): Likewise. | |
362 | (info_proc_cmd_cmdline): Likewise. | |
363 | (info_proc_cmd_exe): Likewise. | |
364 | (info_proc_cmd_all): Likewise. | |
365 | (_initialize_infcmd): Install "info proc" command and subcommands. | |
366 | ||
367 | * target.h (struct target_ops): Add to_info_proc. | |
368 | (target_info_proc): Add prototype. | |
369 | * target.c (target_info_proc): New function. | |
370 | ||
371 | * procfs.c (procfs_info_proc): Add prototype. | |
372 | (info_proc_cmd): Rename into ... | |
373 | (procfs_info_proc): ... this. Update argument types as appropriate | |
374 | for a to_info_proc implementation. Handle "what" argument. | |
375 | (procfs_target): Install procfs_info_proc. | |
376 | (_initialize_procfs): No longer install "info proc" command. | |
377 | ||
378 | * linux-nat.c: (enum info_proc_what): Remove. | |
379 | (linux_nat_info_proc_cmd_1): Rename into ... | |
380 | (linux_nat_info_proc): ... this. Update argument types as appropriate | |
381 | for a to_info_proc implementation. | |
382 | (linux_nat_info_proc_cmd): Remove. | |
383 | (linux_nat_info_proc_cmd_mappings): Likewise. | |
384 | (linux_nat_info_proc_cmd_stat): Likewise. | |
385 | (linux_nat_info_proc_cmd_status): Likewise. | |
386 | (linux_nat_info_proc_cmd_cwd): Likewise. | |
387 | (linux_nat_info_proc_cmd_cmdline): Likewise. | |
388 | (linux_nat_info_proc_cmd_exe): Likewise. | |
389 | (linux_nat_info_proc_cmd_all): Likewise. | |
390 | (linux_target_install_ops): Install linux_nat_info_proc. | |
391 | (_initialize_linux_nat): No longer install "info proc" command | |
392 | and subcommands. | |
393 | ||
b9e7b9c3 UW |
394 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
395 | ||
396 | * configure.ac [AC_CHECK_FUNCS]: Check for readlink. | |
397 | * config.in, configure: Regenerate. | |
398 | ||
399 | * target.h (struct target_ops): Add to_fileio_readlink. | |
400 | (target_fileio_readlink): Add prototype. | |
401 | * target.c (target_fileio_readlink): New function. | |
402 | ||
403 | * inf-child.c: Conditionally include <sys/param.h>. | |
404 | (inf_child_fileio_readlink): New function. | |
405 | (inf_child_target): Install it. | |
406 | ||
407 | * remote.c (PACKET_vFile_readlink): New enum value. | |
408 | (remote_hostio_readlink): New function. | |
409 | (init_remote_ops): Install it. | |
410 | (_initialize_remote): Handle vFile:readlink packet type. | |
411 | ||
7313baad UW |
412 | 2012-01-20 Pedro Alves <palves@redhat.com> |
413 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
414 | ||
415 | * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite. | |
416 | * config.in, configure: Regenerate. | |
417 | ||
418 | * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite, | |
419 | to_fileio_pread, to_fileio_close, to_fileio_unlink. | |
420 | (target_fileio_open): Add prototype. | |
421 | (target_fileio_pwrite): Likewise. | |
422 | (target_fileio_pread): Likewise. | |
423 | (target_fileio_close): Likewise. | |
424 | (target_fileio_unlink): Likewise. | |
425 | (target_fileio_read_alloc): Likewise. | |
426 | (target_fileio_read_stralloc): Likewise. | |
427 | ||
428 | * target.c: Include "gdb/fileio.h". | |
429 | (target_read_stralloc): Accept trailing, but not embedded NUL bytes. | |
430 | (default_fileio_target): New function. | |
431 | (target_fileio_open): Likewise. | |
432 | (target_fileio_pwrite): Likewise. | |
433 | (target_fileio_pread): Likewise. | |
434 | (target_fileio_close): Likewise. | |
435 | (target_fileio_unlink): Likewise. | |
436 | (target_fileio_close_cleanup): Likewise. | |
437 | (target_fileio_read_alloc_1): Likewise. | |
438 | (target_fileio_read_alloc): Likewise. | |
439 | (target_fileio_read_stralloc): Likewise. | |
440 | ||
441 | * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>, | |
442 | <fcntl.h>, and <unistd.h>. | |
443 | (inf_child_fileio_open_flags_to_host): New function. | |
444 | (inf_child_errno_to_fileio_error): Likewise. | |
445 | (inf_child_fileio_open): Likewise. | |
446 | (inf_child_fileio_pwrite): Likewise. | |
447 | (inf_child_fileio_pread): Likewise. | |
448 | (inf_child_fileio_close): Likewise. | |
449 | (inf_child_fileio_unlink): Likewise. | |
450 | (inf_child_target): Install to_fileio routines. | |
451 | ||
452 | * remote.c (init_remote_ops): Install to_fileio routines. | |
453 | ||
901f9912 UW |
454 | 2012-01-20 Pedro Alves <palves@redhat.com> |
455 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
456 | ||
457 | * remote.c (remote_multi_process_p): Only check for multi-process | |
458 | protocol feature, do not check for extended protocol. | |
459 | (remote_supports_multi_process): Check for extended protocol here. | |
460 | (set_general_process): Likewise. | |
461 | (extended_remote_kill): Likewise. | |
462 | (remote_pid_to_str): Likewise. | |
463 | (remote_query_supported): Always query multiprocess mode. | |
464 | ||
e714e1bf UW |
465 | 2012-01-20 Pedro Alves <palves@redhat.com> |
466 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
467 | ||
468 | * inferior.h (struct inferior): Add fake_pid_p. | |
469 | * inferior.c (exit_inferior_1): Clear fake_pid_p. | |
470 | * remote.c (remote_start_remote): Set fake_pid_p if we have to use | |
471 | magic_null_ptid since the remote side doesn't provide a real PID. | |
472 | ||
50897289 TT |
473 | 2012-01-19 Tom Tromey <tromey@redhat.com> |
474 | ||
475 | * NEWS: Combine the two Python sections. | |
476 | ||
1afc2033 JK |
477 | 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
478 | ||
479 | * target.h (target_close): Update comment on the target's unpush state. | |
480 | ||
305436e0 PA |
481 | 2012-01-19 Pedro Alves <palves@redhat.com> |
482 | ||
483 | * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and | |
484 | linux_nat_async directly instead of going through the target | |
485 | vector. | |
486 | * target.c (unpush_target): Close target after unpushing it, not | |
487 | before. | |
488 | ||
49323895 GB |
489 | 2012-01-19 Gary Benson <gbenson@redhat.com> |
490 | ||
491 | * mdebugread.c (sort_blocks): Replace integer constants with ones | |
492 | derived from FIRST_LOCAL_BLOCK. | |
493 | ||
1db33378 PP |
494 | 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com> |
495 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
496 | ||
497 | PR gdb/9538 | |
498 | * symfile.c (find_separate_debug_file): New function. | |
499 | (terminate_after_last_dir_separator): Likewise. | |
500 | (find_separate_debug_file_by_debuglink): Also try realpath. | |
501 | * configure.ac (AC_CHECK_FUNCS): Add lstat. | |
502 | * configure: Regenerate. | |
503 | * config.in: Regenerate. | |
504 | ||
f83d8a90 DE |
505 | 2012-01-18 Doug Evans <dje@google.com> |
506 | ||
507 | * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete. | |
508 | (main.o): Remove rule. | |
509 | * configure.ac (BINDIR): Define with AC_DEFINE_DIR. | |
510 | (--with-sysroot): Rewrite. | |
511 | * configure: Regenerate. | |
512 | * config.in: Regenerate. | |
513 | ||
2dbca4d6 SDJ |
514 | 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com> |
515 | ||
516 | * parse.c (initialize_expout): New function. | |
517 | (reallocate_expout): Likewise. | |
518 | (parse_exp_in_context): Use `initialize_expout' and | |
519 | `reallocate_expout' when appropriate. | |
520 | ||
0695b514 PA |
521 | 2012-01-18 Pedro Alves <palves@redhat.com> |
522 | ||
523 | * record.c (struct record_breakpoint, record_breakpoint_p) | |
524 | (record_breakpoints): New. | |
525 | (record_insert_breakpoint, record_remove_breakpoint): Manage | |
526 | record breakpoints list. Only remove breakpoints from the | |
527 | inferior if they had been inserted there in the first place. | |
528 | ||
136e1c30 DE |
529 | 2012-01-17 Doug Evans <dje@google.com> |
530 | ||
531 | * linespec.c (decode_line_internal): Don't call symtabs_from_filename | |
532 | if we know we don't have a file name to look for. | |
533 | ||
c0bf857d PA |
534 | 2012-01-17 Pedro Alves <palves@redhat.com> |
535 | ||
536 | * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if | |
537 | the frame's stop reason is UNWIND_UNAVAILABLE. | |
538 | ||
b486de60 JK |
539 | 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
540 | ||
541 | Fix compilation error. | |
542 | * m2-exp.y (yyerror): Use ANSI C prototype. | |
543 | ||
d04550a6 SDJ |
544 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
545 | ||
546 | * f-exp.y (parse_number): Convert prototype from K&R to ANSI C. | |
547 | (growbuf_by_size): Likewise. | |
548 | (yyerror): Likewise. | |
549 | * m2-exp.y (make_qualname): Remove function (was #if 0'ed). | |
550 | (modblock): Remove variable (was #if 0'ed). | |
551 | (parse_number): Convert prototype from K&R to ANSI C. | |
552 | (yyerror): Likewise. | |
553 | * objc-exp.y (parse_number): Likewise. | |
554 | (yyerror): Likewise. | |
555 | (yylex): Remove #if 0'ed code. | |
556 | * p-exp.y (uptok): Convert prototype from K&R to ANSI C. | |
557 | (yyerror): Likewise. | |
558 | ||
4aac40c8 TT |
559 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
560 | ||
561 | * NEWS: Add item. | |
562 | * symtab.h (compare_filenames_for_search): Declare. | |
563 | * symtab.c (compare_filenames_for_search): New function. | |
564 | (iterate_over_some_symtabs): Use it. | |
565 | * symfile.h (struct quick_symbol_functions) | |
566 | <map_symtabs_matching_filename>: Change spec. | |
567 | * psymtab.c (partial_map_symtabs_matching_filename): Use | |
568 | compare_filenames_for_search. Update for new spec. | |
569 | * dwarf2read.c (dw2_map_symtabs_matching_filename): Use | |
570 | compare_filenames_for_search. Update for new spec. | |
571 | * breakpoint.c (clear_command): Use compare_filenames_for_search. | |
572 | ||
cafec441 TT |
573 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
574 | ||
575 | PR python/13281: | |
576 | * gdbtypes.h (TYPE_FLAG_ENUM): New macro. | |
577 | (struct main_type) <flag_flag_enum>: New field. | |
578 | * dwarf2read.c (process_enumeration_scope): Detect "flag" enums. | |
579 | * NEWS: Add entries. | |
580 | * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag" | |
581 | enums. | |
582 | * python/lib/gdb/printing.py (_EnumInstance): New class. | |
583 | (FlagEnumerationPrinter): Likewise. | |
584 | ||
983af33b SDJ |
585 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
586 | ||
587 | * breakpoint.c (create_sals_from_address_default): New function. | |
588 | (create_breakpoints_sal_default): Likewise. | |
589 | (decode_linespec_default): Likewise. | |
590 | (is_marker_spec): Removed. | |
591 | (strace_marker_p): New function. | |
592 | (init_breakpoint_sal): Using `strace_marker_p' instead of | |
593 | `is_marker_spec'. | |
594 | (create_breakpoint): Call method `create_sals_from_address' from | |
595 | breakpoint_ops, replacing code that created SALs conditionally | |
596 | on the type of the breakpoint. Call method `create_breakpoints_sal', | |
597 | replacing code that created breakpoints conditionally on the type | |
598 | wanted. | |
599 | (base_breakpoint_create_sals_from_address): New function. | |
600 | (base_breakpoint_create_breakpoints_sal): Likewise. | |
601 | (base_breakpoint_decode_linespec): Likewise. | |
602 | (base_breakpoint_ops): Add methods | |
603 | `base_breakpoint_create_sals_from_address', | |
604 | `base_breakpoint_create_breakpoints_sal' and | |
605 | `base_breakpoint_decode_linespec'. | |
606 | (bkpt_create_sals_from_address): New function. | |
607 | (bkpt_create_breakpoints_sal): Likewise. | |
608 | (bkpt_decode_linespec): Likewise. | |
609 | (tracepoint_create_sals_from_address): Likewise. | |
610 | (tracepoint_create_breakpoints_sal): Likewise. | |
611 | (tracepoint_decode_linespec): Likewise. | |
612 | (strace_marker_create_sals_from_address): Likewise. | |
613 | (strace_marker_create_breakpoints_sal): Likewise. | |
614 | (strace_marker_decode_linespec): Likewise. | |
615 | (strace_marker_breakpoint_ops): New variable. | |
616 | (addr_string_to_sals): Remove `marker_spec'. Call method | |
617 | `decode_linespec' from breakpoint_ops, replacing code that decoded | |
618 | an address string into a SAL. Use `strace_marker_p' instead of | |
619 | `marker_spec'. | |
620 | (strace_command): Decide whether we are dealing with a static | |
621 | tracepoint with marker or not. Use the appropriate breakpoint_ops. | |
622 | (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops. | |
623 | * breakpoint.h (linespec_result, linespec_sals): New forward | |
624 | declarations. | |
625 | (breakpoint_ops) <create_sals_from_address>, | |
626 | <create_breakpoints_sal>, <decode_linespec>: New methods. | |
627 | ||
4795f398 DE |
628 | 2012-01-14 Doug Evans <dje@google.com> |
629 | ||
630 | * NEWS: Update text for "maint set python print-stack". | |
631 | It is deprecated in gdb 7.4 and deleted in 7.5. | |
632 | ||
ee5106fe EZ |
633 | 2012-01-13 Eli Zaretskii <eliz@gnu.org> |
634 | ||
635 | * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before | |
636 | including curses.h. | |
637 | ||
b161e06f JK |
638 | 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
639 | ||
640 | * configure: Regenerate. | |
641 | * config.in: Regenerate. | |
642 | ||
85254831 KS |
643 | 2012-01-12 Keith Seitz <keiths@redhat.com> |
644 | ||
645 | PR mi/10586 | |
646 | * varobj.c (ANONYMOUS_STRUCT_NAME): Define. | |
647 | (ANONYMOUS_UNION_NAME): Define. | |
648 | (is_path_expr_parent): New function. | |
649 | (get_path_expr_parent): New function. | |
650 | (is_anonymous_child): New function. | |
651 | (create_child_with_value): If the child is anonymous and without | |
652 | a name, assign an object name to it. | |
653 | (c_describe_child): Use get_path_expr_parent to determine | |
654 | the parent expression. | |
655 | If there field represents an anonymous struct or union and | |
656 | has no name, set an appropriate display name and expression. | |
657 | (cplus_describe_child): Likewise. | |
658 | ||
620fa63a PA |
659 | 2012-01-12 Pedro Alves <palves@redhat.com> |
660 | ||
661 | * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as | |
662 | available when %ebp is found to be zero (outermost). | |
663 | ||
2efa2c79 AT |
664 | 2012-01-11 Andreas Tobler <andreast@fgznet.ch> |
665 | ||
666 | * common/gdb_assert.h (gdb_static_assert): Rename static_assert to | |
667 | an internal gdb_static_assert. | |
668 | * mi/mi-common.c: Rename static_assert to gdb_static_assert. | |
669 | ||
88e7d25d TT |
670 | 2012-01-11 Tom Tromey <tromey@redhat.com> |
671 | ||
672 | PR gdb/9598: | |
673 | * breakpoint.c (_initialize_breakpoint): Fix help for "catch | |
674 | catch" and "catch throw". | |
675 | ||
72384ba3 PH |
676 | 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> |
677 | ||
678 | * blockframe.c (block_innermost_frame): Start search from selected | |
679 | frame, if present, or otherwise the current frame. | |
680 | ||
681 | * c-exp.y (variable): Update innermost_block for | |
682 | 'block COLONCOLON NAME' clause. | |
683 | * m2-exp.y (variable): Ditto. | |
684 | * objc-exp.y (variable): Ditto. | |
685 | ||
065a711f TT |
686 | 2012-01-10 Tom Tromey <tromey@redhat.com> |
687 | ||
688 | PR python/13199: | |
689 | * python/python.c (finish_python_initialization): Set sys.argv. | |
690 | ||
f3f5162e DE |
691 | 2012-01-10 Doug Evans <dje@google.com> |
692 | ||
693 | * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg | |
694 | "want_line_info". All callers updated. | |
695 | (dwarf_decode_lines_1): New function. | |
696 | (handle_DW_AT_stmt_list): Add function comment. | |
697 | New arg "want_line_info". All callers updated. | |
698 | (read_file_scope,read_type_unit_scope): Move comment from | |
699 | handle_DW_AT_stmt_list to here. | |
700 | ||
9934703b JK |
701 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
702 | ||
703 | Fix regression after libiberty/ update for GCC PR 6057 and others. | |
704 | * c-exp.y (operator) <OPERATOR DELETE> | |
705 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
706 | * cp-name-parser.y (fill_comp, make_operator, make_dtor) | |
707 | (make_builtin_type, make_name): New variable i, add gdb_assert. | |
708 | (operator) <OPERATOR NEW>: Update ARGS to 3. | |
709 | (operator) <OPERATOR DELETE>: Add trailing space. | |
710 | (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3. | |
711 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
712 | * cp-support.c (cp_canonicalize_string): Check NULL from | |
713 | cp_comp_to_string, call warning and return. | |
714 | ||
06b9f45f JK |
715 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
716 | ||
717 | Fix duplicate .o files after omitting libbfd.a. | |
718 | * Makefile.in (ALL_TARGET_OBS): Remove corelow.o. | |
719 | (SFILES): Add corelow.c. | |
720 | (COMMON_OBS): Add corelow.o. | |
721 | (ALLDEPFILES): Remove corelow.c. | |
722 | * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o. | |
723 | * config/alpha/alpha-osf3.mh: Likewise. | |
724 | * config/alpha/fbsd.mh: Likewise. | |
725 | * config/arm/nbsdaout.mh: Likewise. | |
726 | * config/arm/nbsdelf.mh: Likewise. | |
727 | * config/i386/i386gnu.mh: Likewise. | |
728 | * config/ia64/hpux.mh: Likewise. | |
729 | * config/ia64/linux.mh: Likewise. | |
730 | * config/m32r/linux.mh: Likewise. | |
731 | * config/m68k/linux.mh: Likewise. | |
732 | * config/mips/irix5.mh: Likewise. | |
733 | * config/mips/irix6.mh: Likewise. | |
734 | * config/pa/hpux.mh: Likewise. | |
735 | * config/pa/linux.mh: Likewise. | |
736 | * config/powerpc/aix.mh: Likewise. | |
737 | * config/sparc/linux.mh: Likewise. | |
738 | * config/sparc/linux64.mh: Likewise. | |
739 | * config/sparc/sol2.mh: Likewise. | |
740 | * config/vax/vax.mh: Likewise. | |
741 | * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu) | |
742 | (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*) | |
743 | (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*) | |
744 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*) | |
745 | (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*) | |
746 | (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*) | |
747 | (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*) | |
748 | (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*) | |
749 | (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*) | |
750 | (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu) | |
751 | (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*) | |
752 | (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*) | |
753 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
754 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*) | |
755 | (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*) | |
756 | (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
757 | (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*) | |
758 | (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu) | |
759 | (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*) | |
760 | (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*) | |
761 | (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*) | |
762 | (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove | |
763 | corelow.o from gdb_target_obs. | |
764 | * corefile.c (core_target): Update the comment on NULL value. | |
765 | (core_file_command): Replace error by gdb_assert on CORE_TARGET. | |
766 | * corelow.c (sniff_core_bfd): Call error instead of warning on zero | |
767 | MATCHES. Drop YUMMY set on NULL. | |
768 | (core_close): Do not call exit_inferior_silent on zero PID. Do not | |
769 | reclaim CORE_DATA if it is already NULL. | |
770 | ||
34365054 DE |
771 | 2012-01-09 Doug Evans <dje@google.com> |
772 | ||
773 | * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy. | |
774 | * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy. | |
775 | ||
696166a3 KS |
776 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
777 | ||
778 | * breakpoint.c (wrapper.h): Don't include. | |
779 | ||
8e7b59a5 KS |
780 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
781 | ||
782 | * Makefile.in (SFILES): Remove wrapper.c. | |
783 | (HFILES_NO_SRCDIR): Remove wrapper.h. | |
784 | (COMMON_OBS): Remove wrapper.o. | |
785 | * cli/cli-interp.c: Don't inlude wrapper.h. | |
786 | * corelow.c: Likewise. | |
787 | (core_open): Replace gdb_target_find_new_threads with | |
788 | TRY_CATCH around target_find_new_threads. | |
789 | * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. | |
790 | * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. | |
791 | * varobj.c (varobj_create): Likewise for parse_exp_1 and | |
792 | evaluate_expression. | |
793 | (varobj_set_value): Likewise for evaluate_expression and | |
794 | value_assign. | |
795 | (install_new_variable): Likewise for value_fetch_lazy. | |
796 | (adjust_value_for_child_access): Likewise for value_ind. | |
797 | (c_describe_child): Likewise for value_subscript and | |
798 | value_ind. | |
799 | (c_value_of_root): Likewise for evaluate_expression. | |
800 | * wrapper.c: Remove. | |
801 | * wrapper.h: Remove. | |
802 | ||
1a4eeb98 DE |
803 | 2012-01-09 Doug Evans <dje@google.com> |
804 | ||
9ff913ba DE |
805 | * dwarf2read.c (read_and_check_comp_unit_head): Renamed from |
806 | partial_read_comp_unit_head. Replace "buffer", "buffer_size" and | |
807 | "abfd" args with "section". All callers updated. | |
808 | Error checking code moved ... | |
809 | (error_check_comp_unit_head): ... here. New function. | |
810 | (read_and_check_type_unit_head): Renamed from read_type_unit_head. | |
811 | Delete arg "abfd". New arg "type_offset". All callers updated. | |
812 | (create_debug_types_hash_table): Simplify by using | |
813 | read_and_check_type_unit_head. | |
814 | ||
1a4eeb98 DE |
815 | * parser-defs.h (namecopy): Delete. |
816 | * parse.c (namecopy, namecopy_size): Move into copy_name. | |
817 | ||
2e6af8c0 JK |
818 | 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
819 | ||
820 | Partially fix duplicate .o files after omitting libbfd.a. | |
821 | * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o. | |
822 | * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
823 | * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o. | |
824 | * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
825 | * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o. | |
826 | * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o. | |
827 | * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
828 | ||
9f2f828a PA |
829 | 2012-01-09 Pedro Alves <palves@redhat.com> |
830 | ||
831 | * MAINTAINERS: Update my email address. | |
832 | ||
4d72c0bc DE |
833 | 2012-01-08 Doug Evans <dje@google.com> |
834 | ||
d467dd73 DE |
835 | * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to |
836 | n_type_units. Rename type_comp_units to all_type_units. | |
837 | All uses updated. | |
838 | (add_signatured_type_cu_to_table): Renamed from | |
839 | add_signatured_type_cu_to_list. All callers updated. | |
840 | ||
4d72c0bc DE |
841 | * gdbtypes.h (struct cplus_struct_type): Delete member |
842 | nfn_fields_total. All uses removed. | |
843 | ||
21b2bd31 DE |
844 | 2012-01-06 Doug Evans <dje@google.com> |
845 | ||
846 | * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard | |
847 | to top of file. | |
848 | (dwarf2_find_comp_unit): Delete. | |
849 | (process_psymtab_comp_unit): Make result "void". | |
850 | Delete args buffer, info_ptr, buffer_size, and replace with | |
851 | "section". All callers updated. | |
852 | (dwarf2_build_psymtabs_hard): Simplify. | |
853 | ||
bfd189b1 SDJ |
854 | 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com> |
855 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
856 | ||
857 | * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword | |
858 | before `struct gdb_exception'. | |
859 | * breakpoint.c (update_global_location_list_nothrow) | |
860 | (update_breakpoint_locations, enable_breakpoint_disp): Likewise. | |
861 | * cp-abi.c (value_rtti_type): Likewise. | |
862 | * cp-support.c (cp_validate_operator): Likewise. | |
863 | * infrun.c (insert_exception_resume_breakpoint) | |
864 | (check_exception_resume, keep_going): Likewise. | |
865 | * mi-interp.c (mi_breakpoint_created) | |
866 | (mi_breakpoint_modified): Likewise. | |
867 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise. | |
868 | * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p) | |
869 | (ia64_hpux_handle_dld_breakpoint_1): Likewise. | |
870 | ||
6b07635f DE |
871 | 2012-01-05 Doug Evans <dje@google.com> |
872 | ||
0b30b85c DE |
873 | * dwarf2read.c (statement_prologue): Delete, unused. |
874 | ||
98714339 DE |
875 | * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int. |
876 | * dwarf2loc.h (dwarf2_per_cu_addr_size): Update. | |
877 | ||
6b07635f DE |
878 | * dwarf2read.c (comp_unit_header): Delete, unused. |
879 | ||
761f4555 UW |
880 | 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com> |
881 | ||
882 | * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o. | |
883 | * config/s390/s390.mh (NATDEPFILES): Remove corelow.o. | |
884 | ||
2ca0b532 PA |
885 | 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> |
886 | ||
887 | * infrun.c (normal_stop): Don't skip calling the normal_stop | |
888 | observers if the thread was doing a multi-step, but stopped for | |
889 | some reason other than stepping. | |
890 | ||
50aeff07 PA |
891 | 2012-01-05 Pedro Alves <alves.ped@gmail.com> |
892 | ||
893 | * cli/cli-decode.h: Add comments. | |
894 | (CMD_LIST_AMBIGUOUS): Moved to command.h | |
895 | (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd) | |
896 | (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq) | |
897 | (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1) | |
898 | (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition) | |
899 | (add_com, add_com_alias, add_info, add_info_alias) | |
900 | (complete_on_cmdlist, complete_on_enum, help_list): Remove | |
901 | declarations. | |
902 | * command.h: Add and adjust comments. | |
903 | (CMD_LIST_AMBIGUOUS): Moved here. | |
904 | (help_cmd, help_cmd_list): Delete declarations. | |
905 | ||
5953832c DE |
906 | 2012-01-04 Doug Evans <dje@google.com> |
907 | ||
e5fe5e75 DE |
908 | * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd". |
909 | All callers updated. | |
910 | (load_full_type_unit): Renamed from read_signatured_type_at_offset. | |
911 | Replace all arguments with "per_cu". All callers updated. | |
912 | ||
28dee7f5 DE |
913 | * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment. |
914 | ||
23745b47 DE |
915 | * dwarf2read.c (init_one_comp_unit): Delete arg "objfile". |
916 | New arg "per_cu". All callers updated. | |
917 | ||
5953832c DE |
918 | Delete #if 0'd out code. |
919 | * language.c (binop_result_type): Delete. | |
920 | (simple_type, ordered_type, same_type, integral_type): Delete. | |
921 | (numeric_type, character_type, string_type, boolean_type): Delete. | |
922 | (float_type, structured_type): Delete. | |
923 | * language.h: Update. | |
924 | ||
0f5b7562 TT |
925 | 2012-01-04 Tom Tromey <tromey@redhat.com> |
926 | ||
927 | * python/py-value.c (valpy_binop): Initialize 'res_val'. | |
928 | ||
78218f56 JB |
929 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
930 | ||
931 | * corefile.c (close_exec_file): Delete. | |
932 | (reopen_exec_file): Remove commented out code that seems related | |
933 | to close_exec_file, which is being deleted here. | |
934 | * inferior.h (close_exec_file): Delete. | |
935 | * fork-child.c (fork_inferior): Remove call to fork_inferior. | |
936 | ||
0fcd72ba JB |
937 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
938 | ||
939 | * ada-lang.c: #include "cli/cli-utils.h". | |
940 | (get_selections): Use skip_spaces. | |
941 | (ada_get_next_arg): Use skip_spaces and skip_to_space. | |
942 | (catch_ada_exception_command_split): Use skip_spaces. | |
943 | (ada_decode_assert_location): Likewise. | |
944 | ||
1dabb4c4 JB |
945 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
946 | ||
947 | * linespec.c (decode_line_internal): Check for C++ or Java | |
948 | compound constructs only if the current language is C, C++ | |
949 | or Java. | |
950 | ||
5931a2fa JK |
951 | 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
952 | ||
953 | Revert: | |
954 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
955 | Joel Brobecker <brobecker@adacore.com> | |
956 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
957 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
958 | 3 times. | |
959 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
960 | fall through into AT_ENTRY_POINT. | |
961 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
962 | DUMMY_ADDR with it. | |
963 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
964 | PPC_INSN_SIZE skip to 3 times. | |
965 | ||
1a2da5ee JB |
966 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
967 | ||
968 | * linespec.c (add_minsym): Preserve function descriptors. | |
969 | ||
8645ff69 UW |
970 | 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
971 | ||
972 | * breakpoint.c (all_locations_are_pending): Consider locations | |
973 | in program spaces executing during startup pending as well. | |
974 | ||
0b302171 JB |
975 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
976 | ||
977 | Copyright year update in most files of the GDB Project. | |
978 | ||
8ba098ad JB |
979 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
980 | ||
981 | * copyright.sh: Delete. | |
982 | * copyright.py: Rewrite. | |
983 | ||
09c01c30 JB |
984 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
985 | ||
986 | * gnulib/extra/update-copyright: New file, imported from gnulib. | |
987 | ||
3c36c0af JB |
988 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
989 | ||
990 | * README (Copyright and License Notices): New section. | |
991 | ||
888fe1e1 TT |
992 | 2012-01-03 Tom Tromey <tromey@redhat.com> |
993 | ||
994 | PR python/12533: | |
995 | * python/py-value.c (valpy_dereference, valpy_get_address | |
996 | valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
997 | (valpy_getitem, valpy_call, valpy_binop, valpy_negative) | |
998 | (valpy_absolute, valpy_richcompare): Free intermediate values. | |
999 | ||
6e681866 JB |
1000 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
1001 | ||
1002 | * ada-lang.c: Reformat the copyright notice. | |
1003 | ||
0cd09acb JK |
1004 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1005 | ||
1006 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
1007 | * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*) | |
1008 | (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*) | |
1009 | (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o. | |
1010 | Revert this part of: | |
1011 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1012 | Build gdb directly from *.o files not using libgdb.a. | |
1013 | * Makefile.in (COMMON_OBS): Remove solib-target.o. | |
1014 | ||
12c3e59c JB |
1015 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1016 | ||
1017 | * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c, | |
1018 | gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c: | |
1019 | Reformat the copyright header. | |
1020 | ||
11bf1490 JK |
1021 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1022 | ||
1023 | Revert this part of: | |
1024 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1025 | Remove the gdbtui binary. | |
1026 | * gdb.c (main): Remove args.interpreter_p initialization. | |
1027 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
1028 | * main.h (struct captured_main_args): Remove interpreter_p. | |
1029 | ||
1fef196f JB |
1030 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1031 | ||
1032 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011. | |
1033 | ||
67827812 JB |
1034 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1035 | ||
1036 | * top.c (print_gdb_version): Update copyright year. | |
1037 | ||
a4d0b831 YQ |
1038 | 2012-01-02 Yao Qi <yao@codesourcery.com> |
1039 | ||
1040 | * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent. | |
1041 | ||
b5914469 JK |
1042 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1043 | Joel Brobecker <brobecker@adacore.com> | |
1044 | ||
1045 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
1046 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
1047 | 3 times. | |
1048 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
1049 | fall through into AT_ENTRY_POINT. | |
1050 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
1051 | DUMMY_ADDR with it. | |
1052 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
1053 | PPC_INSN_SIZE skip to 3 times. | |
1054 | ||
8da828f7 JK |
1055 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1056 | ||
1057 | * amd64-linux-nat.c (update_debug_registers_callback): New comment on | |
1058 | the return value. | |
1059 | * i386-linux-nat.c (update_debug_registers_callback): Likewise. | |
1060 | ||
8574e74b JK |
1061 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1062 | ||
1063 | Build gdb directly from *.o files not using libgdb.a. | |
1064 | * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o. | |
1065 | (COMMON_OBS): Remove solib-target.o. | |
1066 | (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule. | |
1067 | (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS). | |
1068 | (LIBGDB_OBS, libgdb.a): Move it above. | |
1069 | * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*) | |
1070 | (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu) | |
1071 | (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe) | |
1072 | (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu) | |
1073 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*) | |
1074 | (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*) | |
1075 | (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu) | |
1076 | (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*) | |
1077 | (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*) | |
1078 | (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*) | |
1079 | (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
1080 | (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*) | |
1081 | (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*) | |
1082 | (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*) | |
1083 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
1084 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*) | |
1085 | (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*) | |
1086 | (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
1087 | (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*) | |
1088 | (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu) | |
1089 | (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*) | |
1090 | (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*) | |
1091 | (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*) | |
1092 | (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*) | |
1093 | (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu) | |
1094 | (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*) | |
1095 | (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs. | |
1096 | ||
217bff3e JK |
1097 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1098 | ||
1099 | Remove the gdbtui binary. | |
1100 | * .gitignore (/gdbtui): Remove. | |
1101 | * Makefile.in (TUI): Remove. | |
1102 | (SUBDIR_TUI_OBS): Remove tui-main.o. | |
1103 | (SUBDIR_TUI_SRCS): Remove tui/tui-main.c. | |
1104 | (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui) | |
1105 | (tui-main.o): Remove. | |
1106 | (all_object_files): Remove tui-main.o. | |
1107 | * NEWS: New note for the gdbtui removal. | |
1108 | * configure: Rebuilt. | |
1109 | * configure.ac: No longer add all-tui, clean-tui, install-tui and | |
1110 | uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and | |
1111 | CONFIG_UNINSTALL respectively. | |
1112 | * gdb.c (main): Remove args.interpreter_p initialization. | |
1113 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
1114 | * main.h (struct captured_main_args): Remove interpreter_p. | |
1115 | * tui/tui-main.c: Remove. | |
1116 | ||
9cdd5dbd DE |
1117 | 2012-01-01 Doug Evans <dje@google.com> |
1118 | ||
bb5ed363 DE |
1119 | * dwarf2read.c (dwarf2_compute_name): Simplify objfile references. |
1120 | (dwarf2_physname, read_import_statement): Ditto. | |
1121 | (read_call_site_scope, dwarf2_record_block_ranges): Ditto. | |
1122 | (process_structure_scope read_subroutine_type): Ditto. | |
1123 | (read_typedef, load_partial_dies, read_partial_die): Ditto. | |
1124 | (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto. | |
1125 | (dwarf2_fetch_die_location_block): Ditto. | |
1126 | (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto. | |
1127 | ||
a0f42c21 DE |
1128 | * dwarf2read.c (read_signatured_type): Delete `objfile' arg. |
1129 | All callers updated. | |
1130 | (load_full_comp_unit, queue_comp_unit, process_queue): Ditto. | |
1131 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto. | |
1132 | (process_psymtab_comp_unit, load_partial_comp_unit): Ditto. | |
1133 | ||
2dc860c0 DE |
1134 | * dwarf2read.c (load_cu): Move assert to more useful location. |
1135 | ||
68dc6402 DE |
1136 | * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit. |
1137 | All callers updated. | |
1138 | ||
9cdd5dbd DE |
1139 | * dwarf2read.c (dwarf2_per_objfile): Add comment. |
1140 | (dwarf2_elf_names): Minor reformat. | |
1141 | (dwarf2_per_cu_data): Tweak comment. | |
1142 | (dwarf2_read_section): Fix comment. | |
1143 | (create_all_comp_units): Fix comment. | |
1144 | (load_full_comp_unit): Fix comment. | |
1145 | (process_full_comp_unit): Fix comment. | |
1146 | (read_signatured_type): Fix comment. | |
1147 | ||
0c10e53e | 1148 | For older changes see ChangeLog-2011. |
c906108c SS |
1149 | \f |
1150 | Local Variables: | |
1151 | mode: change-log | |
1152 | left-margin: 8 | |
1153 | fill-column: 74 | |
1154 | version-control: never | |
57da7796 | 1155 | coding: utf-8 |
c906108c | 1156 | End: |