Commit | Line | Data |
---|---|---|
14c0d4e1 TT |
1 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
2 | ||
3 | * NEWS: Fix typo. | |
4 | ||
b56df873 TT |
5 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
6 | ||
7 | * NEWS: Mention watch -location. | |
8 | ||
d63d0675 JK |
9 | 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
10 | ||
11 | * breakpoint.c (update_watchpoint): Add source empty line. Prefer | |
12 | EXP_STRING_REPARSE to EXP_STRING. | |
13 | (watch_command_1): Set also EXP_STRING_REPARSE. | |
14 | (delete_breakpoint): Free also EXP_STRING_REPARSE. | |
15 | * breakpoint.h (struct breakpoint): New field exp_string_reparse. | |
16 | Update comment for exp_string. | |
17 | ||
06a64a0b TT |
18 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
19 | ||
20 | * value.c (release_value): Clear 'next' pointer. | |
21 | * breakpoint.c (watch_command_1): Add 'just_location' argument. | |
22 | (watch_command_wrapper): Update. | |
23 | (watch_maybe_just_location): New function. | |
24 | (watch_command): Update. | |
25 | (rwatch_command_wrapper): Update. | |
26 | (rwatch_command): Update. | |
27 | (awatch_command_wrapper): Update. | |
28 | (awatch_command): Update. | |
29 | (check_for_argument): New function. | |
30 | (_initialize_breakpoint): Update help text. | |
31 | ||
f96b8fa0 UW |
32 | 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com> |
33 | ||
34 | * arm-tdep.c (arm_push_dummy_call): Handle pointers to | |
35 | typedef'ed function types correctly. | |
36 | ||
4eb54052 TT |
37 | 2010-08-13 Tom Tromey <tromey@redhat.com> |
38 | ||
39 | * python/python-internal.h (gdbpy_get_hook_function): Don't | |
40 | declare. | |
41 | ||
44be957e JK |
42 | 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
43 | ||
44 | * cli-logging.c (logging_overwrite, logging_redirect): Make them | |
45 | static. | |
46 | ||
76d8b686 KW |
47 | 2010-08-13 Ken Werner <ken.werner@de.ibm.com> |
48 | ||
49 | * python/python.c (gdbpy_solib_name): Remove the const qualifier of | |
50 | the format strings to be compatible with Python 2.4. | |
51 | ||
8dedea02 VP |
52 | 2010-08-13 Vladimir Prus <vladimir@codesourcery.com> |
53 | ||
54 | Easier and more stubborn MI memory read commands. | |
55 | ||
56 | * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes | |
57 | and data-write-memory-bytes. | |
58 | * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes) | |
59 | (mi_cmd_data_write_memory_bytes): New. | |
60 | * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read. | |
61 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes): | |
62 | New. | |
63 | (mi_cmd_list_features): Add "data-read-memory-bytes" feature. | |
64 | * target.c (target_read_until_error): Remove. | |
65 | (read_whatever_is_readable, free_memory_read_result_vector) | |
66 | (read_memory_robust): New. | |
67 | * target.h (target_read_until_error): Remove. | |
68 | (struct memory_read_result, free_memory_read_result_vector) | |
69 | (read_memory_robust): New. | |
70 | ||
1d9ec526 HZ |
71 | 2010-08-13 Hui Zhu <teawater@gmail.com> |
72 | ||
73 | * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. | |
74 | (read_comp_unit): Initialize back_to. | |
75 | ||
98bfdba5 PA |
76 | 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com> |
77 | Pedro Alves <pedro@codesourcery.com> | |
78 | ||
79 | * dwarf2read.c: Include "c-lang.h" and "valprint.h". | |
80 | (struct dwarf2_per_objfile) <reading_partial_symbols>: New field. | |
81 | (struct partial_die_info) <has_template_arguments>: New field. | |
82 | <num_attrs>: Change type to unsigned char. | |
83 | <building_fullname>: New field. | |
84 | (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only | |
85 | allocate a CU if we don't have one already. Add a cleanup for the | |
86 | CU. | |
87 | (partial_die_full_name): Handle template arguments not in | |
88 | DW_AT_name. | |
89 | (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols. | |
90 | (load_full_comp_unit): Only allocate a CU if we don't have one | |
91 | already. | |
92 | (do_ui_file_peek_last): New. | |
93 | (dwarf2_compute_name): Handle template parameters not in | |
94 | DW_AT_name. | |
95 | (read_comp_unit): Read and free abbrevs if not read yet. | |
96 | (load_partial_dies): Handle template arguments not in DW_AT_name. | |
97 | (find_partial_die): If we have a CU, but no a partial dies yet, | |
98 | also read in the CU. | |
99 | (dwarf2_const_value_attr): New, abstracted out from | |
100 | dwarf2_const_value. | |
101 | (dwarf2_const_value, dwarf2_const_value_data): Adjust to use | |
102 | dwarf2_const_value_attr. | |
103 | (determine_prefix): Detect and break loops created by RCVT's debug | |
104 | info. | |
105 | (maybe_queue_comp_unit): Bail out early if reading partial | |
106 | symbols. | |
107 | (follow_die_offset): Load full CU if we have no dies. | |
108 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public. | |
109 | * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare. | |
110 | ||
ca5c20b6 PM |
111 | 2010-08-11 Tom Tromey <tromey@redhat.com> |
112 | Phil Muldoon <pmuldoon@redhat.com> | |
113 | ||
114 | * python/python.c (gdbpy_run_events): New function. | |
115 | (gdbpy_post_event): Likewise. | |
116 | (gdbpy_initialize_events): Likewise. | |
117 | (_initialize_python): Call gdbpy_initialize_events. | |
118 | ||
7346b668 KW |
119 | 2010-08-11 Ken Werner <ken.werner@de.ibm.com> |
120 | ||
121 | * gdb/valarith.c (vector_binop): New function. | |
122 | (scalar_binop): Likewise. | |
123 | (value_binop): Call scalar_binop or vector_binop depending on the types. | |
124 | * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR. | |
125 | (evaluate_subexp_with_coercion): Add vector check to not convert vectors | |
126 | to pointers. | |
127 | * gdb/value.c (coerce_array): Add vector check to not coerce vectors. | |
128 | ||
62183e15 TT |
129 | 2010-08-11 Brad Roberts <braddr@puremagic.com> |
130 | ||
131 | * d-lang.c (extract_identifiers): Handle multiple digits. | |
132 | ||
39d7b0e2 JK |
133 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
134 | ||
135 | Code cleanup. | |
136 | * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. | |
137 | Rename to dummy_frame_unwind. | |
138 | (dummy_frame_unwind): Remove. | |
139 | * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. | |
140 | * frame-unwind.c (frame_unwind_init): Use address of | |
141 | dummy_frame_unwind and inline_frame_unwind. | |
142 | * frame.c (create_sentinel_frame): Use address of | |
143 | sentinel_frame_unwind. | |
144 | * inline-frame.c (inline_frame_unwinder): Rename to | |
145 | inline_frame_unwind. | |
146 | (inline_frame_unwind): Remove. | |
147 | * inline-frame.h (inline_frame_unwind): Reference directly the struct. | |
148 | * sentinel-frame.c (sentinel_frame_unwinder): Rename to | |
149 | sentinel_frame_unwind. | |
150 | (sentinel_frame_unwind): Remove. | |
151 | * sentinel-frame.h (sentinel_frame_unwind): Reference directly the | |
152 | struct. | |
153 | ||
9f9a8002 JK |
154 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
155 | ||
156 | Code cleanup. | |
157 | * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type | |
158 | and returned value. New comment from frame-unwind.h. | |
159 | * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. | |
160 | Extend the comment. | |
161 | * frame.c (get_frame_id, frame_unwind_register_value) | |
162 | (create_new_frame, get_prev_frame_1, frame_unwinder_is) | |
163 | (get_frame_type, frame_unwind_arch): Do not use the return value of | |
164 | frame_unwind_find_by_frame. | |
165 | ||
cb2e07a6 PM |
166 | 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> |
167 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
168 | Tom Tromey <tromey@redhat.com> | |
169 | ||
170 | * python/python.c (gdbpy_solib_address): New function. | |
171 | (gdbpy_decode_line): Likewise. | |
172 | ||
c29c521f TT |
173 | 2010-08-10 Tom Tromey <tromey@redhat.com> |
174 | ||
175 | Revert gdb-add-index addition: | |
176 | * Makefile.in (install-only): Don't install gdb-add-index. | |
177 | * gdb-add-index.sh: Remove. | |
178 | ||
0c012db1 KB |
179 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
180 | ||
181 | * remote-sim.c (gdbsim_xfer_inferior_memory): Replace | |
182 | `target_has_execution' check with `to_has_memory' check. | |
183 | (gdbsim_has_all_memory, gdbsim_has_memory): New functions. | |
184 | (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' | |
185 | with `gdbsim_has_all_memory' and `gdbsim_has_memory'. | |
186 | ||
db04efe6 KB |
187 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
188 | ||
189 | * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid) | |
190 | (resume_siggnal, resume_step): Move these static globals... | |
191 | (struct sim_inferior_data): ...into this new struct. | |
192 | (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): | |
193 | New static globals. | |
194 | (gdb_callback, callbacks_initialized): Move these globals to | |
195 | a point earlier in the file. | |
196 | (check_for_duplicate_sim_descriptor, get_sim_inferior_data) | |
197 | (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) | |
198 | (gdbsim_close_inferior, gdbsim_resume_inferior) | |
199 | (gdbsim_stop_inferior): New functions. | |
200 | (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): | |
201 | New constants. | |
202 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) | |
203 | (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) | |
204 | (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) | |
205 | (gdbsim_xfer_inferior_memory, gdbsim_files_info) | |
206 | (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, | |
207 | (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set | |
208 | new local variable `sim_data' in each of these functions. Use | |
209 | `sim_data' to reference former globals `program_loaded', | |
210 | `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and | |
211 | `resume_step'. | |
212 | (gdbsim_open): Remove local variable `argv'. Put results of call | |
213 | to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't | |
214 | make a cleanup for it. Free it though when a sim instance cannot | |
215 | be obtained. | |
216 | (gdbsim_close): Free sim_argv and null it out as appropriate. | |
217 | Close sim instances in all inferiors. | |
218 | (gdbsim_cntrl_c): Stop all inferiors. | |
219 | (gdbsim_wait): | |
220 | (_initialize_remote_sim): Initialize `sim_inferior_data_key'. | |
221 | ||
e37fd15a SW |
222 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
223 | ||
224 | * dwarf2read.c (new_symbol): Add symbol to variable list at end of | |
225 | function after symbol construction is complete. | |
226 | Do the same for template symbol addition to template_symbols list. | |
227 | ||
45c58896 SW |
228 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
229 | ||
230 | * symtab.c (symbol_get_demangled_name): Remove assertion and | |
231 | return NULL when language_specific.cplus_specific is not initialized. | |
232 | * stabsread.c (define_symbol): Set the name before calling | |
233 | cp_scan_for_anonymous_namespaces. | |
234 | ||
33e5013e SW |
235 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
236 | ||
237 | * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to | |
238 | SYMBOL_SET_LANGUAGE. | |
239 | (symbol_init_language_specific): Renamed to symbol_set_language. | |
240 | * symtab.c (symbol_init_language_specific): Removed redundant check | |
241 | for language_cplus. | |
242 | Renamed to symbol_set_language. | |
243 | * stabsread.c (define_symbol): Updated. | |
244 | (read_enum_type): Updated | |
245 | * psymtab.c (add_psymbol_to_bcache): Updated. | |
246 | * minsyms.c (install_minimal_symbols): Updated. | |
247 | * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of | |
248 | SYMBOL_LANGUAGE to set the language. | |
249 | * minsyms.c (prim_record_minimal_symbol_full): Ditto. | |
250 | * mdebugread.c (new_symbol): Ditto. | |
251 | * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. | |
252 | * dwarf2read.c (new_symbol_full): Ditto. | |
253 | * jv-lang.c (add_class_symbol): Ditto. | |
254 | ||
5da1313b JK |
255 | 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
256 | ||
257 | * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) | |
258 | (make_cleanup_restore_page_info) | |
259 | (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. | |
260 | * gdbcmd.h (execute_command_to_string): New declaration. | |
261 | * python/python.c (struct restore_ui_file_closure, restore_ui_file) | |
262 | (make_cleanup_restore_ui_file): Move to utils.c | |
263 | (execute_gdb_command) <to_string>: Move ... | |
264 | * top.c (execute_command_to_string): ... here. Call | |
265 | set_batch_flag_and_make_cleanup_restore_page_info. | |
266 | * utils.c (make_cleanup_restore_integer): New source file blank line. | |
267 | (make_cleanup_restore_uinteger): New. | |
268 | (struct restore_ui_file_closure, do_restore_ui_file) | |
269 | (make_cleanup_restore_ui_file): Move here from python/python.c. | |
270 | (init_page_info) <batch_flag> | |
271 | (do_restore_page_info_cleanup, make_cleanup_restore_page_info) | |
272 | (set_batch_flag_and_make_cleanup_restore_page_info): New. | |
273 | ||
c820c52a PA |
274 | 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> |
275 | ||
276 | * thread.c (add_thread_silent): Use null_ptid instead of | |
277 | minus_one_ptid while getting rid of stale inferior_ptid. | |
278 | ||
8da614df CV |
279 | 2010-08-06 Corinna Vinschen <vinschen@redhat.com> |
280 | ||
281 | * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. | |
282 | Throughout, call read_encoded_value with ptr_size rather than addr_size. | |
283 | (decode_frame_entry_1): Remove redundant setting of | |
284 | addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit | |
285 | to determine addr_size in Dwarf versions < 4. Set ptr_size dependent | |
286 | on examined frame section. Add comment to explain why. | |
287 | * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy | |
288 | comment to explain usage. | |
289 | * gdbarch.c: Regenerate. | |
290 | * gdbarch.h: Regenerate. | |
291 | ||
292 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4. | |
293 | ||
e4195b40 JK |
294 | 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
295 | ||
296 | Code cleanup. | |
297 | * varobj.c (varobj_create): Move variables fi, old_fi and block to | |
298 | a more inner block. | |
299 | ||
a3217aa0 PA |
300 | 2010-08-05 Pedro Alves <pedro@codesourcery.com> |
301 | ||
302 | * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) | |
303 | (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
304 | (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) | |
305 | (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add | |
306 | linux-tdep.o to gdb_target_obs. | |
307 | ||
e2b4a699 MK |
308 | 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com> |
309 | ||
310 | * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first | |
311 | argument. | |
312 | ||
50e8a0d5 HZ |
313 | 2010-08-05 Hui Zhu <teawater@gmail.com> |
314 | ||
315 | * mips-linux-tdep.c(regset.h): New include. | |
316 | (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, | |
317 | mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, | |
318 | mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, | |
319 | mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, | |
320 | mips_linux_regset_from_core_section): New functions. | |
321 | (fetch_core_registers, regset_core_fns): Deleted. | |
322 | (mips_linux_init_abi): Add mips_linux_regset_from_core_section. | |
323 | Deleted regset_core_fns. | |
324 | * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, | |
325 | tdep->gregset64, tdep->fpregset and tdep->fpregset64. | |
326 | * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset | |
327 | and fpregset64. | |
328 | ||
70728992 PA |
329 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
330 | ||
331 | * s390-tdep.c: Include linux-tdep.h. | |
332 | (s390_gdbarch_init): Call linux_init_abi. | |
333 | ||
a5ee0f0c PA |
334 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
335 | ||
336 | * corelow.c (core_pid_to_str): Default to using normal_pid_to_str | |
337 | instead of printing "Thread" here. | |
338 | * linux-tdep.c: Include inferior.h. | |
339 | (linux_core_pid_to_str): New. | |
340 | (linux_init_abi): New. | |
341 | * linux-tdep.h (linux_init_abi): Declare. | |
342 | * alpha-linux-tdep.c: Include linux-tdep.h. | |
343 | (alpha_linux_init_abi): Call linux_init_abi. | |
344 | * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. | |
345 | * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. | |
346 | * frv-linux-tdep.c: Include linux-tdep.h | |
347 | (frv_linux_init_abi): Call linux_init_abi. | |
348 | * hppa-linux-tdep.c: Include linux-tdep.h | |
349 | (hppa_linux_init_abi): Call linux_init_abi. | |
350 | * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. | |
351 | * ia64-linux-tdep.c: Include linux-tdep.h. | |
352 | (ia64_linux_init_abi): Call linux_init_abi. | |
353 | * m32r-linux-tdep.c: Include linux-tdep.h. | |
354 | (m32r_linux_init_abi): Call linux_init_abi. | |
355 | * m68klinux-tdep.c: Include linux-tdep.h. | |
356 | (m68k_linux_init_abi): Call linux_init_abi. | |
357 | * microblaze-linux-tdep.c: Include linux-tdep.h. | |
358 | (microblaze_linux_init_abi): Call linux_init_abi. | |
359 | * mips-linux-tdep.c: Include linux-tdep.h. | |
360 | (mips_linux_init_abi): Call linux_init_abi. | |
361 | * mn10300-linux-tdep.c: Include linux-tdep.h. | |
362 | (am33_linux_init_osabi): Call linux_init_abi. Rename the | |
363 | 'gdbinfo' parameter to 'info'. | |
364 | * ppc-linux-tdep.c: Include linux-tdep.h. | |
365 | (ppc_linux_init_abi): Call linux_init_abi. | |
366 | * sh-linux-tdep.c: Include linux-tdep.h. | |
367 | (sh_linux_init_abi): Call linux_init_abi. | |
368 | * sparc-linux-tdep.c: Include linux-tdep.h. | |
369 | (sparc32_linux_init_abi): Call linux_init_abi. | |
370 | * sparc64-linux-tdep.c: Include linux-tdep.h. | |
371 | (sparc64_linux_init_abi): Call linux_init_abi. | |
372 | * xtensa-linux-tdep.c: Include linux-tdep.h. | |
373 | (xtensa_linux_init_abi): Call linux_init_abi. | |
374 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. | |
375 | (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str | |
376 | callback. | |
377 | ||
bc043ef3 DE |
378 | 2010-08-03 Doug Evans <dje@google.com> |
379 | ||
380 | * breakpoint.c (bpdisp_text): Constify bpdisps. | |
381 | * solib-svr4.c (solib_break_names): Constify. | |
382 | (bkpt_names, main_name_list): Constify. | |
383 | (match_main): Constify soname arg. | |
63cdd227 DE |
384 | (bfd_lookup_symbol): Remove unnecessary forward decl. |
385 | Constify symname arg. | |
bc043ef3 DE |
386 | (enable_break): Constify bkpt_namep. |
387 | * symtab.c (search_symbols): Constify types, types2, types3, types4. | |
388 | (symtab_symbol_info): Constify classnames. | |
389 | ||
585d1eb8 PM |
390 | 2010-08-03 Phil Muldoon <pmuldoon@redhat.com> |
391 | ||
392 | * NEWS: Document Python value inferior function calls. | |
393 | ||
2de00c64 DE |
394 | 2010-08-02 Doug Evans <dje@google.com> |
395 | ||
396 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
397 | ||
02d868e8 PP |
398 | 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
399 | ||
400 | * linux-thread-db.c (libthread_db_debug): New variable. | |
401 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
402 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
403 | (find_new_threads_once): Likewise. | |
404 | (_initialize_thread_db): Set/show it. | |
405 | ||
a19cae16 JK |
406 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
407 | ||
408 | * common/signals.c (signals): Move the content to signals.def. | |
409 | Include it. Remove the INDENT comments. | |
410 | ||
c2bbed2a TT |
411 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
412 | ||
413 | * Makefile.in (install-only): Install gdb-add-index. | |
414 | * gdb-add-index.sh: New file. | |
415 | ||
f32b2f09 CR |
416 | 2010-07-31 Renquan Cheng <crq@gcc.gnu.org> |
417 | ||
418 | * MAINTAINERS: Add myself for write after approval privileges. | |
419 | ||
1276c759 JK |
420 | 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
421 | ||
422 | * symfile.c (addr_section_name): New function. | |
423 | (addrs_section_compar): Use it. | |
424 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
425 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
426 | ||
420697bb TT |
427 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
428 | ||
429 | * configure: Rebuild. | |
430 | * configure.ac: Add missing case for Python 2.7. | |
431 | ||
d0d99561 DD |
432 | 2010-07-29 DJ Delorie <dj@redhat.com> |
433 | ||
434 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
435 | conditions. | |
436 | ||
0b29bdde PA |
437 | 2010-07-29 Pedro Alves <pedro@codesourcery.com> |
438 | ||
439 | * PROBLEMS: Remove mention of all problems. | |
440 | ||
110ed339 PA |
441 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
442 | ||
443 | PR build/11848 | |
444 | * configure.ac: Check for wresize. | |
445 | * configure, config.in: Regenerate. | |
446 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
447 | with HAVE_WRESIZE. | |
448 | ||
326fd672 TT |
449 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
450 | ||
451 | PR python/11060: | |
452 | * python/py-type.c (typy_legacy_template_argument): New function, | |
453 | extracted from typy_template_argument. | |
454 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
455 | value when needed. | |
456 | ||
4ac8c4da TT |
457 | 2010-07-28 Oleg Nesterov <oleg@redhat.com> |
458 | ||
459 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
460 | ||
053315c2 TT |
461 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
462 | ||
463 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
464 | ||
3ce3b1ba PA |
465 | 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
466 | ||
467 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
468 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
469 | ||
2bb4f988 TT |
470 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
471 | ||
472 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
473 | ||
74232302 JB |
474 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
475 | ||
476 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
477 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
478 | ||
385d04dc JB |
479 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
480 | ||
481 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
482 | down, just before the block that parse the breakpoint addr_string. | |
483 | ||
34eaf542 TT |
484 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
485 | ||
486 | PR c++/9946: | |
487 | * symfile.c (reread_symbols): Clear template_symbols. | |
488 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
489 | field. | |
490 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
491 | (struct template_symbol): New. | |
492 | * symtab.c (lookup_symbol_aux_local): Use | |
493 | cp_lookup_symbol_imports_or_template. | |
494 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
495 | * objfiles.c (relocate_one_symbol): New function. | |
496 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
497 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
498 | template_arguments>: New fields. | |
499 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
500 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
501 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
502 | (lookup_typename): Update. | |
503 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
504 | * dwarf2read.c: Include vec.h. | |
505 | (symbolp): New typedef. | |
506 | (read_func_scope): Read template arguments. Allocate a | |
507 | template_symbol when needed. | |
508 | (read_structure_type): Read template arguments. | |
509 | (new_symbol_full): New function, from new_symbol. Handle | |
510 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
511 | (new_symbol): Rewrite as wrapper. | |
512 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
513 | * cp-namespace.c: Include language.h. | |
514 | (search_symbol_list): New function. | |
515 | (cp_lookup_symbol_imports_or_template): Likewise. | |
516 | ||
d27b3be4 PA |
517 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
518 | ||
519 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
520 | the command window to the new size and position. | |
521 | ||
0036e657 PA |
522 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
523 | ||
a782f43e | 524 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
525 | coordinates. |
526 | ||
36900355 PA |
527 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
528 | ||
a782f43e | 529 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 530 | after a detecting a resize. |
a782f43e | 531 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
532 | call. |
533 | ||
db5e03ae PA |
534 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
535 | ||
536 | * configure.ac: Check for resize_term. | |
537 | * configure, config.in: Regenerate. | |
538 | ||
b71fff68 JB |
539 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
540 | ||
541 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
542 | ||
9b1c24c8 PA |
543 | 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
544 | ||
545 | * dwarf2read.c (read_string): Rename to ... | |
546 | (read_direct_string): ... this. | |
547 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
548 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
549 | ||
00390b84 JK |
550 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
551 | ||
552 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
553 | (count_events_callback, select_event_lwp_callback) | |
554 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
555 | ||
26ab7092 JK |
556 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
557 | ||
558 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
559 | (_initialize_ia64_linux_nat): Install it. | |
560 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
561 | (linux_nat_set_status_is_event): New. | |
562 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
563 | cancel_breakpoints_callback, linux_nat_filter_event) | |
564 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
565 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
566 | ||
283e6a52 TT |
567 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
568 | ||
569 | * NEWS: Mention labels, .gdb_index. | |
570 | ||
53a71c06 CR |
571 | 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg> |
572 | ||
573 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 574 | "start,+length" form of arguments. |
53a71c06 CR |
575 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
576 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
577 | description in "Changes in GDB 7.0". | |
578 | ||
c63a1f86 JK |
579 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
580 | ||
581 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
582 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
583 | (fputs_maybe_filtered): Do not do filtering also on | |
584 | ! INPUT_FROM_TERMINAL_P. | |
585 | ||
abebb8b0 JB |
586 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
587 | ||
588 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
589 | in warning message. | |
590 | ||
5374244e PM |
591 | 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> |
592 | ||
593 | * python/py-value.c (valpy_call): New Function. | |
594 | ||
ac0b195c KW |
595 | 2010-07-27 Ken Werner <ken.werner@de.ibm.com> |
596 | ||
872e696d | 597 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
598 | types_list_elements variables. |
599 | ||
09d8bd00 TT |
600 | 2010-07-26 Tom Tromey <tromey@redhat.com> |
601 | ||
602 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
603 | TLS with DW_OP_const4u or DW_OP_const8u. | |
604 | ||
9fe70b4f TJB |
605 | 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
606 | ||
607 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
608 | VSX registers contents. | |
609 | ||
caac4577 JG |
610 | 2010-07-26 Jerome Guitton <guitton@adacore.com> |
611 | ||
612 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
613 | its adress is null. Add comment to explain why. | |
614 | (new_symbol): Ditto. | |
615 | ||
857d11d0 JK |
616 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
617 | ||
618 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
619 | the host signal first. | |
620 | ||
1fd400ff TT |
621 | 2010-07-23 Tom Tromey <tromey@redhat.com> |
622 | ||
623 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
624 | type_comp_units>: New fields. | |
625 | (dw2_get_cu): New function. | |
626 | (create_cus_from_index): Remove unused argument. | |
627 | (create_signatured_type_hash_from_index): New function. | |
628 | (create_addrmap_from_index): Update. | |
629 | (dwarf2_read_index): Handle version 2. | |
630 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
631 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
632 | (dw2_print_stats, dw2_expand_all_symtabs) | |
633 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
634 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
635 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
636 | (allocate_signatured_type_hash_table): New function. | |
637 | (add_signatured_type_cu_to_list): Likewise. | |
638 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
639 | (read_signatured_type): Ensure section data is available. | |
640 | (add_address_entry): Don't record empty ranges. | |
641 | (struct signatured_type_index_data): New. | |
642 | (write_one_signatured_type): New function. | |
643 | (write_psymtabs_to_index): Write type CUs. | |
644 | (save_gdb_index_command): Update comment. | |
645 | (process_type_comp_unit): Move inititalization of | |
646 | from_debug_types... | |
647 | (create_debug_types_hash_table): ... here. | |
648 | ||
3a674486 JK |
649 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
650 | ||
651 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
652 | cleanup and generating of gdb script to it. | |
653 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
654 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
655 | ||
54ec275a KS |
656 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
657 | ||
658 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
659 | hook for STATIC_BLOCK types, too. | |
660 | ||
8fd447e6 KS |
661 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
662 | ||
663 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
664 | and vector definition. | |
665 | ||
25b72dde JK |
666 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
667 | ||
668 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
669 | ||
96d19272 JK |
670 | 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
671 | ||
672 | * dwarf2read.c: Include completer.h. | |
673 | (save_gdb_index_command): Use matching usage command name. | |
674 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
675 | Set filename_completer for it. | |
676 | ||
ca1f3406 TT |
677 | 2010-07-22 Tom Tromey <tromey@redhat.com> |
678 | ||
679 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
680 | type signature's per-CU data. | |
681 | ||
ba25b921 PA |
682 | 2010-07-22 Pedro Alves <pedro@codesourcery.com> |
683 | ||
684 | * NEWS: Mention target reported shared libraries support by | |
685 | default. | |
686 | ||
23bd0f7c PA |
687 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
688 | ||
689 | PR symtab/11827 | |
690 | ||
691 | Revert: | |
692 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
693 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
694 | and DW_TAG_volatile_type. | |
695 | (new_symbol): Likewise. | |
696 | ||
883df6dd SW |
697 | 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> |
698 | ||
699 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
700 | function symbols before overload resolution. | |
701 | ||
269b11a2 PA |
702 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
703 | ||
704 | * breakpoint.c (bptype_string): New, abstracted out from | |
705 | print_one_breakpoint_location. | |
706 | (print_one_breakpoint_location): Adjust. | |
707 | (breakpoint_1): Adjust the type column width dynamically. | |
708 | ||
569b05a5 JK |
709 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
710 | ||
711 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
712 | a gdb_assert call, new comment. | |
713 | ||
ad34eb2f JK |
714 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
715 | ||
716 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
717 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
718 | ||
33355866 JK |
719 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
720 | ||
721 | Code cleanup. | |
722 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
723 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
724 | ||
26590820 HZ |
725 | 2010-07-20 Hui Zhu <teawater@gmail.com> |
726 | ||
727 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
728 | (inf_ptrace_attach): Ditto. | |
729 | ||
c0edd9ed JK |
730 | 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
731 | ||
732 | Make core files the process_stratum. | |
733 | * corefile.c (core_target): New variable. | |
734 | (core_file_command): Remove variable t, use core_target. | |
735 | * corelow.c (core_ops): Make it static. | |
736 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
737 | * defs.h (make_cleanup_unpush_target): New prototype. | |
738 | * gdbarch.h: Regenerate. | |
739 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
740 | * gdbcore.h (core_target): New declaration. | |
741 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
742 | variables ops_already_pushed and back_to. Use push_target, | |
743 | make_cleanup_unpush_target and discard_cleanups calls. | |
744 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
745 | * target.c (target_is_pushed): New function. | |
746 | (find_core_target): Remove. | |
747 | * target.h (enum strata) <core_stratum>: Remove. | |
748 | (target_is_pushed): New declaration. | |
749 | (find_core_target): Remove declaration. | |
750 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
751 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
752 | ||
f02253f1 HZ |
753 | 2010-07-19 Hui Zhu <teawater@gmail.com> |
754 | ||
755 | * breakpoint.c (single_step_breakpoints_inserted): New | |
756 | function. | |
757 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
758 | * infrun.c (maybe_software_singlestep): Add check code. | |
759 | * record.c (record_resume): Add code for software single step. | |
760 | (record_wait): Ditto. | |
761 | ||
78768c4a JK |
762 | 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
763 | ||
764 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
765 | a more inner block. Remove its unused declaration initializer. | |
766 | ||
431e49aa TJB |
767 | 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com> |
768 | ||
769 | * NEWS: Mention support for the new ptrace interface and hardware | |
770 | accelerated watchpoint conditions on powerpc-linux. | |
771 | ||
bd91e7ae OS |
772 | 2010-07-16 Ozkan Sezer <sezeroz@gmail.com> |
773 | ||
774 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
775 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
776 | and host_address_to_string() and %s for pointers. | |
777 | (debug_to_remove_breakpoint): Likewise. | |
778 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
779 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
780 | (debug_to_stopped_data_address): Likewise. | |
781 | (debug_to_watchpoint_addr_within_range): Likewise. | |
782 | (debug_to_insert_hw_breakpoint): Likewise. | |
783 | (debug_to_remove_hw_breakpoint): Likewise. | |
784 | (debug_to_insert_watchpoint): Likewise. | |
785 | (debug_to_remove_watchpoint): Likewise. | |
786 | ||
29df156d SW |
787 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
788 | ||
789 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
790 | argument. | |
791 | (cplus_specific): New struct. | |
792 | * symtab.c (symbol_set_demangled_name): Updated. | |
793 | Use cplus_specific for cplus symbols. | |
794 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
795 | struct for cplus symbols. | |
796 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
797 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
798 | * symtab.c (symbol_init_cplus_specific): New function. | |
799 | ||
b250c185 SW |
800 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
801 | ||
802 | * symtab.h (symbol_set_demangled_name): New function. | |
803 | (symbol_get_demangled_name): New function. | |
804 | * symtab.c (symbol_set_demangled_name): New function. | |
805 | (symbol_get_demangled_name): New function. | |
806 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
807 | (symbol_set_names): Ditto. | |
808 | (symbol_natural_name): Ditto. | |
809 | (symbol_demangled_name): Ditto. | |
810 | * dwarf2read.c (new_symbol): Ditto. | |
811 | ||
afa16725 SW |
812 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
813 | ||
814 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
815 | * symtab.c (symbol_init_language_specific): Updated. | |
816 | (symbol_set_names): Updated. | |
817 | (symbol_natural_name): Updated. | |
818 | (symbol_demangled_name): Updated. | |
819 | * ada-lang.c (ada_decode_symbol): Updated. | |
820 | * dwarf2read.c (new_symbol): Updated. | |
821 | ||
3cbaedff KW |
822 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
823 | ||
824 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
825 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
826 | ||
c932f1be KW |
827 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
828 | ||
829 | * MAINTAINERS: Add myself for write after approval privileges. | |
830 | ||
91158a56 TT |
831 | 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com> |
832 | ||
833 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
834 | call to val_print_array_elements. | |
835 | ||
b3b272e1 TT |
836 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
837 | ||
838 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
839 | ||
bb3fa9d0 TT |
840 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
841 | ||
842 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
843 | objfile. | |
844 | ||
dd786858 TT |
845 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
846 | ||
847 | * symfile.c (set_initial_language): Update. | |
848 | (deduce_language_from_filename): Argument type now const. | |
849 | * symtab.h (find_main_filename): Update. | |
850 | (deduce_language_from_filename): Update. | |
851 | * symtab.c (find_main_filename): Make result const. | |
852 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
853 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
854 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
855 | Make result const. | |
856 | ||
9291a0cd TT |
857 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
858 | ||
859 | * breakpoint.c (save_cmdlist): No longer static. | |
860 | * gdbcmd.h (save_cmdlist): Declare. | |
861 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
862 | OBJF_READNOW on objfile if readnow_symbol_files. | |
863 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
864 | (elf_sym_fns_gdb_index): New global. | |
865 | * dwarf2read.c: Include exceptions.h. | |
866 | (offset_type): New. | |
867 | (struct mapped_index): New. | |
868 | (dwarf2_per_cu_data_ptr): New typedef. | |
869 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
870 | New fields. | |
871 | (GDB_INDEX_SECTION): New define. | |
872 | (struct dwarf2_per_cu_quick_data): New. | |
873 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
874 | <psymtab>: Removed. | |
875 | <v>: New field. | |
876 | (byte_swap): New function. | |
877 | (MAYBE_SWAP): New macro. | |
878 | (INDEX_SUFFIX): New macro. | |
879 | (dw2_do_instantiate_symtab): New function. | |
880 | (dw2_instantiate_symtab): Likewise. | |
881 | (create_cus_from_index): Likewise. | |
882 | (create_addrmap_from_index): Likewise. | |
883 | (mapped_index_string_hash): Likewise. | |
884 | (find_slot_in_mapped_hash): Likewise. | |
885 | (dwarf2_read_index): Likewise. | |
886 | (dw2_setup): Likewise. | |
887 | (dw2_require_line_header): Likewise. | |
888 | (dw2_require_full_path): Likewise. | |
889 | (dw2_find_last_source_symtab): Likewise. | |
890 | (dw2_forget_cached_source_info): Likewise. | |
891 | (dw2_lookup_symtab): Likewise. | |
892 | (dw2_lookup_symbol): Likewise. | |
893 | (dw2_do_expand_symtabs_matching): Likewise. | |
894 | (dw2_pre_expand_symtabs_matching): Likewise. | |
895 | (dw2_print_stats): Likewise. | |
896 | (dw2_dump): Likewise. | |
897 | (dw2_relocate): Likewise. | |
898 | (dw2_expand_symtabs_for_function): Likewise. | |
899 | (dw2_expand_all_symtabs): Likewise. | |
900 | (dw2_expand_symtabs_with_filename): Likewise. | |
901 | (dw2_find_symbol_file): Likewise. | |
902 | (dw2_map_ada_symtabs): Likewise. | |
903 | (dw2_expand_symtabs_matching): Likewise. | |
904 | (dw2_find_pc_sect_symtab): Likewise. | |
905 | (dw2_map_symbol_names): Likewise. | |
906 | (dw2_map_symbol_filenames): Likewise. | |
907 | (dw2_has_symbols): Likewise. | |
908 | (dwarf2_gdb_index_functions): New global. | |
909 | (dwarf2_initialize_objfile): New function. | |
910 | (process_psymtab_comp_unit): Update. | |
911 | (add_partial_subprogram): Likewise. | |
912 | (dwarf2_psymtab_to_symtab): Likewise. | |
913 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
914 | (process_full_comp_unit): Update. | |
915 | (find_file_and_directory): New function. | |
916 | (read_file_scope): Use find_file_and_directory. | |
917 | (dwarf2_per_cu_objfile): Update. | |
918 | (dwarf2_per_cu_addr_size): Update. | |
919 | (dwarf2_per_cu_offset_size): Update. | |
920 | (dwarf2_free_objfile): Free the index, if needed. | |
921 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
922 | (struct strtab_entry): New. | |
923 | (hash_strtab_entry): New function. | |
924 | (eq_strtab_entry): Likewise. | |
925 | (create_strtab): Likewise. | |
926 | (add_string): Likewise. | |
927 | (struct symtab_index_entry): New. | |
928 | (struct mapped_symtab): New. | |
929 | (hash_symtab_entry): New function. | |
930 | (eq_symtab_entry): Likewise. | |
931 | (delete_symtab_entry): Likewise. | |
932 | (create_index_table): Likewise. | |
933 | (create_mapped_symtab): Likewise. | |
934 | (cleanup_mapped_symtab): Likewise. | |
935 | (find_slot): Likewise. | |
936 | (hash_expand): Likewise. | |
937 | (add_index_entry): Likewise. | |
938 | (add_indices_to_cpool): Likewise. | |
939 | (write_hash_table): Likewise. | |
940 | (add_address_entry): Likewise. | |
941 | (write_psymbols): Likewise. | |
942 | (write_obstack): Likewise. | |
943 | (unlink_if_set): Likewise. | |
944 | (write_psymtabs_to_index): Likewise. | |
945 | (save_gdb_index_command): Likewise. | |
946 | (_initialize_dwarf2_read): Install "save gdb-index" | |
947 | command. | |
948 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
949 | (dwarf2_locate_sections): Check for .gdb_index. | |
950 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
951 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
952 | ||
58b6ab13 TT |
953 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
954 | ||
955 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
956 | (basic_lookup_transparent_type): Likewise. | |
957 | * symfile.h (struct quick_symbol_functions) | |
958 | <pre_expand_symtabs_matching>: New field. | |
959 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
960 | (psym_functions): Update. | |
961 | ||
0f5238ed TT |
962 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
963 | ||
964 | PR breakpoints/8357: | |
965 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
966 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
967 | (decode_label): New function. | |
968 | (symbol_found): Handle LOC_LABEL. | |
969 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
970 | domain. Call add_symbol_to_list. | |
971 | ||
9aa1f1e3 TT |
972 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
973 | ||
974 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
975 | * dwarf2loc.c (find_location_expression): Use | |
976 | dwarf2_per_cu_text_offset. | |
977 | (dwarf2_evaluate_loc_desc): Likewise. | |
978 | (dwarf2_loc_desc_needs_frame): Likewise. | |
979 | (compile_dwarf_to_ax): Likewise. | |
980 | (loclist_describe_location): Likewise. | |
981 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
982 | (dwarf2_per_cu_objfile): Update comment. | |
983 | ||
953ac07e JK |
984 | 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
985 | ||
986 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
987 | * p-lang.c (pascal_printstr): Likewise. | |
988 | ||
f04e4012 TT |
989 | 2010-07-09 Tom Tromey <tromey@redhat.com> |
990 | ||
991 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
992 | 'hint' if it is NULL. | |
993 | ||
f4dfd9c0 HZ |
994 | 2010-07-09 Hui Zhu <teawater@gmail.com> |
995 | ||
996 | * source.c (print_source_lines_base): Add check for noprint. | |
997 | ||
7e6e39e5 JB |
998 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
999 | ||
1000 | * python/python-config.py: Resync with Python 2.7 version of this | |
1001 | script. | |
1002 | ||
76b8507d JB |
1003 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
1004 | ||
1005 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
1006 | ||
797054e6 JB |
1007 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
1008 | ||
1009 | * NEWS: Create a new section for the next release branch. | |
1010 | Rename the section of the current branch, now that it has | |
1011 | been cut. | |
1012 | ||
c80befee | 1013 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
1014 | ||
1015 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
1016 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
1017 | ||
ac56253d TT |
1018 | 2010-07-07 Tom Tromey <tromey@redhat.com> |
1019 | ||
1020 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
1021 | LOC_COMPUTED symbol. | |
1022 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
1023 | (dwarf2_loc_desc_needs_frame): Likewise. | |
1024 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
1025 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
1026 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
1027 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
1028 | 'offset' argument. | |
1029 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
1030 | (dwarf2_frame_cache): Set new field. | |
1031 | (dwarf2_frame_prev_register): Update. | |
1032 | (dwarf2_frame_sniffer): Update. | |
1033 | (dwarf2_frame_base_sniffer): Update. | |
1034 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
1035 | ||
0cf6dd15 TJB |
1036 | 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
1037 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1038 | ||
1039 | Support for hw accelerated condition watchpoints in booke powerpc. | |
1040 | ||
1041 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
1042 | and move to eval.c. Change callers. | |
1043 | (insert_bp_location): Pass watchpoint condition in | |
1044 | target_insert_watchpoint. | |
1045 | (remove_breakpoint_1) Pass watchpoint condition in | |
1046 | target_remove_watchpoint. | |
1047 | (watchpoint_locations_match): Call | |
1048 | target_can_accel_watchpoint_condition. | |
1049 | * eval.c: Include wrapper.h. | |
1050 | (fetch_subexp_value): Moved from breakpoint.c. | |
1051 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
1052 | Formatting fix. | |
1053 | (can_use_watchpoint_cond_accel): New function. | |
1054 | (calculate_dvc): Likewise. | |
1055 | (num_memory_accesses): Likewise. | |
1056 | (check_condition): Likewise. | |
1057 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
1058 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
1059 | check_condition and calculate_dvc. | |
1060 | (ppc_linux_remove_watchpoint): Likewise. | |
1061 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
1062 | ppc_linux_can_accel_watchpoint_condition | |
1063 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
1064 | condition. | |
1065 | (debug_to_remove_watchpoint): Likewise. | |
1066 | (debug_to_can_accel_watchpoint_condition): New function. | |
1067 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
1068 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
1069 | * target.h: Add opaque declaration for struct expression. | |
1070 | (struct target_ops) <to_insert_watchpoint>, | |
1071 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
1072 | <to_can_accel_watchpoint_condition>: New member. | |
1073 | condition. Update all callers and implementations. | |
1074 | (target_can_accel_watchpoint_condition): New macro. | |
1075 | * value.c (free_value_chain): New function. | |
1076 | * value.h (fetch_subexp_value): New prototype. | |
1077 | (free_value_chain): Likewise. | |
1078 | ||
2f2241f1 UW |
1079 | 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com> |
1080 | ||
1081 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
1082 | from gdbarch_core_regset_sections also for .reg if present. | |
1083 | ||
1084 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
1085 | section size for .reg. | |
1086 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
1087 | (ppc_linux_vmx_regset_sections): Likewise. | |
1088 | (ppc_linux_fp_regset_sections): Likewise. | |
1089 | (ppc64_linux_vsx_regset_sections): New variable. | |
1090 | (ppc64_linux_vmx_regset_sections): Likewise. | |
1091 | (ppc64_linux_fp_regset_sections): Likewise. | |
1092 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
1093 | for current word size. | |
1094 | ||
1fd7cdc2 JB |
1095 | 2010-07-06 Joel Brobecker <brobecker@adacore.com> |
1096 | ||
1097 | * server.c (myresume): Make static. | |
1098 | ||
11763c18 TT |
1099 | 2010-07-06 Tom Tromey <tromey@redhat.com> |
1100 | ||
1101 | * configure, config.in: Rebuild. | |
1102 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
1103 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
1104 | ||
a6cc4789 AS |
1105 | 2010-07-06 Andreas Schwab <schwab@linux-m68k.org> |
1106 | ||
1107 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
1108 | "clear". | |
1109 | ||
f9e9243a UW |
1110 | 2010-07-06 Ken Werner <ken.werner@de.ibm.com> |
1111 | ||
1112 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
1113 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
1114 | * doublest.c (floatformat_from_length): Set format to | |
1115 | gdbarch_half_format if length matches. | |
1116 | * gdbarch.sh (half_bit): New architecture method. | |
1117 | (half_format): Likewise. | |
1118 | * gdbarch.h: Regenerate. | |
1119 | * gdbarch.c: Likewise. | |
1120 | ||
4e5799b6 JK |
1121 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1122 | Joel Brobecker <brobecker@adacore.com> | |
1123 | ||
1124 | Fix re-run of PIE executable, PR shlibs/11776. | |
1125 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
1126 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
1127 | ||
86e4bafc JK |
1128 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1129 | Joel Brobecker <brobecker@adacore.com> | |
1130 | ||
1131 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
1132 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
1133 | svr4_relocate_main_executable. | |
1134 | (svr4_solib_create_inferior_hook): Make the call to | |
1135 | svr4_relocate_main_executable unconditional. | |
1136 | ||
3cd07d20 JK |
1137 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1138 | Joel Brobecker <brobecker@adacore.com> | |
1139 | ||
1140 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
1141 | ||
0a1e94c7 JK |
1142 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1143 | Joel Brobecker <brobecker@adacore.com> | |
1144 | ||
1145 | Fix attaching to PIEs prelinked on the disk after the process was | |
1146 | started. | |
1147 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
1148 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
1149 | displacement for the phdrs comparison. | |
1150 | ||
5387647f TT |
1151 | 2010-07-02 Tom Tromey <tromey@redhat.com> |
1152 | ||
1153 | PR exp/11780: | |
1154 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
1155 | value as optimized-out. | |
1156 | ||
38b6c3b3 TJB |
1157 | 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com> |
1158 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1159 | ||
1160 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
1161 | represent?" question in comment. Change comment to a proper sentence. | |
1162 | ||
a17ac5b0 TT |
1163 | 2010-07-02 Ken Werner <ken.werner@de.ibm.com> |
1164 | ||
1165 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
1166 | ||
bddaafad JK |
1167 | 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1168 | ||
1169 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
1170 | create_breakpoint prototype. | |
1171 | ||
d41c0fc8 PA |
1172 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
1173 | ||
1174 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
1175 | usefulness suggestion of multiple breakpoints at same location. | |
1176 | ||
dc10affe PA |
1177 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
1178 | ||
1179 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
1180 | ||
cabe9ab6 PA |
1181 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
1182 | ||
1183 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
1184 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
1185 | ||
cce7e648 PA |
1186 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
1187 | ||
1188 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
1189 | unnecessary space in string. | |
1190 | * filesystem.c (_initialize_filesystem): Ditto. | |
1191 | * frame.c (_initialize_frame): Ditto. | |
1192 | * infcmd.c (step_once): Ditto. | |
1193 | * infrun.c (_initialize_infrun): Ditto. | |
1194 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
1195 | * maint.c (maintenance_deprecate): Ditto. | |
1196 | * memattr.c (_initialize_mem): Ditto. | |
1197 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
1198 | * monitor.c (monitor_open): Ditto. | |
1199 | * procfs.c (procfs_xfer_memory): Ditto. | |
1200 | * reverse.c (bookmarks_info): Ditto. | |
1201 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
1202 | * stack.c (_initialize_stack): Ditto. | |
1203 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
1204 | * xtensa-tdep.c (xtensa_supply_gregset, | |
1205 | xtensa_regset_from_core_section): Ditto. | |
1206 | ||
b65c7efe TT |
1207 | 2010-07-01 Tom Tromey <tromey@redhat.com> |
1208 | ||
1209 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
1210 | check_all_valid. | |
1211 | * value.c (value_entirely_optimized_out): Invert result. Update | |
1212 | for new function name. | |
1213 | ||
0fb4aa4b PA |
1214 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
1215 | ||
1216 | Static tracepoints support. | |
1217 | ||
1218 | * NEWS: Mention new support for static tracepoints. | |
1219 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
1220 | qXfer:statictrace:read. | |
1221 | (New features in the GDB remote stub, GDBserver): Mention static | |
1222 | tracepoints support using an UST based backend. | |
1223 | (New commands): Mention "info static-tracepoint-markers" and | |
1224 | "strace". | |
1225 | * breakpoint.c (is_marker_spec): New. | |
1226 | (is_tracepoint): Handle static tracepoints. | |
1227 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
1228 | while-stepping. | |
1229 | (static_tracepoints_here): New. | |
1230 | (bpstat_what): Handle static tracepoints. | |
1231 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
1232 | Ditto. | |
1233 | (create_breakpoint_sal): Ditto. | |
1234 | (decode_static_tracepoint_spec): New. | |
1235 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
1236 | `type_wanted'. Adjust. Handle static tracepoint marker | |
1237 | locations. | |
1238 | (break_command_1): Adjust. | |
1239 | (update_static_tracepoint): New. | |
1240 | (update_breakpoint_locations): Handle static tracepoints. | |
1241 | (breakpoint_re_set_one): Handle static tracepoint marker | |
1242 | locations. | |
1243 | (disable_command, enable_command): Handle static tracepoints. | |
1244 | (trace_command, ftrace_command): Adjust. | |
1245 | (strace_command): New. | |
1246 | (create_tracepoint_from_upload): Adjust. | |
1247 | (save_breakpoints): Handle static tracepoints. | |
1248 | (_initialize_breakpoint): Install the "strace" command. | |
1249 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
1250 | (struct breakpoint): New fields static_trace_marker_id and | |
1251 | static_trace_marker_id_idx. | |
1252 | (breakpoints_here_p): Declare. | |
1253 | (create_breakpoint): Adjust. | |
1254 | (static_tracepoints_here): Declare. | |
1255 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
1256 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
1257 | (remote_static_tracepoint_marker_at): New. | |
1258 | (remote_static_tracepoint_markers_by_strid): New. | |
1259 | (remote_static_tracepoint_feature): New. | |
1260 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
1261 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
1262 | (remote_supports_static_tracepoints): New. | |
1263 | (remote_download_tracepoint): Download static tracepoints. | |
1264 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
1265 | remote_static_tracepoint_markers_by_strid. | |
1266 | (_initialize_remote): Install set|show remote static-tracepoints, | |
1267 | and set|show remote read-sdata-object commands. | |
1268 | * target.c (update_current_target): Inherit and default | |
1269 | to_static_tracepoint_marker_at, and | |
1270 | to_static_tracepoint_markers_by_strid. | |
1271 | * target.h (static_tracepoint_marker): Forward declare. | |
1272 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
1273 | (static_tracepoint_marker_p): New typedef. | |
1274 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. | |
1275 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
1276 | to_static_tracepoint_markers_by_strid. | |
1277 | (target_static_tracepoint_marker_at) | |
1278 | (target_static_tracepoint_markers_by_strid): New. | |
1279 | * tracepoint.c: Include source.h. | |
1280 | (validate_actionline): Handle $_sdata. | |
1281 | (struct collection_list): New field strace_data. | |
1282 | (add_static_trace_data): New. | |
1283 | (clear_collection_list): Clear strace_data. | |
1284 | (stringify_collection_list): Account for a possible static trace | |
1285 | data collection. | |
1286 | (encode_actions_1): Encode an $_sdata collection. | |
1287 | (parse_tracepoint_definition): Handle static tracepoints. | |
1288 | (parse_static_tracepoint_marker_definition): New. | |
1289 | (release_static_tracepoint_marker): New. | |
1290 | (print_one_static_tracepoint_marker): New. | |
1291 | (info_static_tracepoint_markers_command): New. | |
1292 | (sdata_make_value): New. | |
1293 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
1294 | Add the "info static-tracepoint-markers" command. | |
1295 | Mention $_sdata in the "collect" command's help output. | |
1296 | * tracepoint.h (struct static_tracepoint_marker): New. | |
1297 | (parse_static_tracepoint_marker_definition) | |
1298 | (release_static_tracepoint_marker): Declare. | |
1299 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
1300 | * python/py-breakpoint.c (bppy_new): Adjust. | |
1301 | ||
aac63f0f JB |
1302 | 2010-06-30 Joel Brobecker <brobecker@adacore.com> |
1303 | ||
1304 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
1305 | including Python.h. | |
1306 | ||
e68994a7 DE |
1307 | 2010-06-29 Doug Evans <dje@google.com> |
1308 | ||
3863f96c DE |
1309 | PR gdb/11702 |
1310 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
1311 | DW_AT_external is present. | |
1312 | ||
254e6b9e DE |
1313 | PR gdb/11702 |
1314 | * NEWS: Add entry. | |
1315 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
1316 | create a symbol for the field and record the value. | |
1317 | (new_symbol): Handle DW_TAG_member. | |
1318 | * gdbtypes.c (field_is_static): Remove FIXME. | |
1319 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
1320 | only ignore LOC_CONST symbols that are enums. | |
1321 | ||
6e70227d DE |
1322 | * dwarf2read.c: Remove trailing whitespace. |
1323 | ||
e68994a7 DE |
1324 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
1325 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
1326 | (struct main_type, field loc): Delete dwarf_block. | |
1327 | (FIELD_DWARF_BLOCK): Delete. | |
1328 | (SET_FIELD_DWARF_BLOCK): Delete. | |
1329 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
1330 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
1331 | Update. | |
1332 | ||
a480d2f6 HZ |
1333 | 2010-06-29 Hui Zhu <teawater@gmail.com> |
1334 | ||
1335 | * record.c (set_record_pic_cmdlist, | |
1336 | show_record_pic_cmdlist): New variables. | |
1337 | (set_record_pic_command, | |
1338 | show_record_pic_command): New functions. | |
1339 | (record_pic_function, record_pic_line, record_pic_enum, | |
1340 | set_record_pic_type, record_pic_hide_nofunction, | |
1341 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
1342 | (record_pic_fputs): New function. | |
1343 | (function_list, node_list, edge_list): New struct. | |
1344 | (function_list, node_list, edge_list): New variables. | |
1345 | (record_pic_cleanups, record_pic_node, | |
1346 | record_pic_edge, cmd_record_pic): New functions. | |
1347 | (_initialize_record): Add new commands for record pic. | |
1348 | ||
a0d7a4ff JK |
1349 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1350 | ||
1351 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
1352 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
1353 | ||
595939de PM |
1354 | 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> |
1355 | Tom Tromey <tromey@redhat.com> | |
1356 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1357 | ||
1358 | * value.c (pack_unsigned_long): New function. | |
1359 | (value_from_ulongest): New function. | |
1360 | * value.h (value_from_ulongest): Declare. | |
1361 | * python/python.c (_initialize_python): Call | |
1362 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
1363 | * python/python-internal.h: Define thread_object. | |
1364 | (gdbpy_inferiors, gdbpy_selected_thread) | |
1365 | (frame_info_to_frame_object, create_thread_object) | |
1366 | (find_thread_object, find_inferior_object) | |
1367 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
1368 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
1369 | * python/py-value.c (builtin_type_upylong): Define. | |
1370 | (convert_value_from_python): Add logic for ulongest. | |
1371 | (gdbpy_is_value_object): New function. | |
1372 | * python/py-utils.c (get_addr_from_python): New function. | |
1373 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
1374 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
1375 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
1376 | py-infthread. | |
1377 | (SUBDIR_PYTHON_SRCS): Likewise. | |
1378 | (py-inferior.o): New Rule. | |
1379 | (py-infthread.o): New Rule. | |
1380 | * python/py-inferior.c: New File. | |
1381 | * python/py-infthread.c: New File. | |
1382 | ||
98751a41 JK |
1383 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1384 | ||
1385 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
1386 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
1387 | * dwarf2read.c (struct typedef_field_list) | |
1388 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
1389 | (dwarf2_add_typedef): New. | |
1390 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
1391 | Copy also FI.TYPEDEF_FIELD_LIST. | |
1392 | * gdbtypes.h (struct typedef_field) | |
1393 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
1394 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
1395 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
1396 | ||
41f62f39 JK |
1397 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1398 | ||
1399 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
1400 | concatenated_name. Turn the current return condition into a reverse | |
1401 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
1402 | name. | |
1403 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
1404 | other files into a called ... | |
1405 | (lookup_static_symbol_aux): ... new function here. | |
1406 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
1407 | * valops.c (value_maybe_namespace_elt): Call also | |
1408 | lookup_static_symbol_aux if we failed otherwise. | |
1409 | ||
af53d231 JK |
1410 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1411 | ||
1412 | Fix PR c++/11703 and PR gdb/1448. | |
1413 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
1414 | FIRST_ITER check. | |
1415 | ||
9655fd1a JK |
1416 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1417 | ||
1418 | Fix modification of cplus_struct_default. | |
1419 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
1420 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
1421 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
1422 | ||
9279c692 JB |
1423 | 2010-06-28 Joel Brobecker <brobecker@adacore.com> |
1424 | ||
1425 | * NEWS: Add entry announcing the python directory. | |
1426 | ||
d3f41bb1 TT |
1427 | 2010-06-28 Tom Tromey <tromey@redhat.com> |
1428 | ||
1429 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
1430 | ||
23e7acfb DE |
1431 | 2010-06-28 Doug Evans <dje@google.com> |
1432 | ||
1433 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
1434 | All callers updated. | |
1435 | ||
6036c742 JK |
1436 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1437 | ||
1438 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
1439 | obstack_begin after each obstack_free. | |
1440 | ||
9f18a3b3 DE |
1441 | 2010-06-27 Doug Evans <dje@google.com> |
1442 | ||
1596cb5d DE |
1443 | * value.c (value_static_field): Use `switch' instead of `if'. |
1444 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
1445 | ||
9f18a3b3 DE |
1446 | * valops.c (search_struct_field): Fix typo in error message. |
1447 | ||
43dabe42 UW |
1448 | 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com> |
1449 | ||
1450 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
1451 | directives at the start of the source line. | |
1452 | ||
0f3bb72e PH |
1453 | 2010-06-25 Paul Hilfinger <hilfinger@adacore.com> |
1454 | ||
6036c742 JK |
1455 | * defs.h (make_command_stats_cleanup): Declare. |
1456 | (set_display_time): Declare. | |
1457 | (set_display_space): Declare. | |
1458 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
1459 | * main.c (display_time, display_space): Move definitions to utils.c. | |
1460 | (captured_main): Use make_command_stats_cleanup to get start-up | |
1461 | statistics. | |
1462 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
1463 | case. | |
1464 | * maint.c (maintenance_time_display): Use set_display_time. | |
1465 | (maintenance_space_display): Use set_display_space. | |
1466 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
1467 | (command_loop): Use make_command_stats_cleanup. | |
1468 | * utils.c (struct cmd_stats): Structure for storing initial time | |
1469 | and space usage. | |
1470 | (display_time, display_space): Move definitions here from utils.c. | |
1471 | (set_display_time): New function. | |
1472 | (set_display_space): New function. | |
1473 | (make_command_stats_cleanup): New function. | |
1474 | (report_command_stats): New auxiliary function for | |
1475 | make_command_stats_cleanup. | |
0f3bb72e | 1476 | |
070c8028 UW |
1477 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
1478 | ||
1479 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
1480 | hosts where CORE_ADDR is long long. | |
1481 | ||
bc9f0842 TT |
1482 | 2010-06-25 Tom Tromey <tromey@redhat.com> |
1483 | ||
1484 | PR python/10808: | |
1485 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
1486 | "to_string" argument. | |
1487 | (struct restore_ui_file_closure): New. | |
1488 | (restore_ui_file): New function. | |
1489 | (make_cleanup_restore_ui_file): Likewise. | |
1490 | (GdbMethods) <execute>: Update. | |
1491 | ||
c0cc4c83 UW |
1492 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
1493 | ||
1494 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
1495 | during inferior call stack frame setup. | |
1496 | ||
f1d8ee66 UW |
1497 | 2010-06-25 Ken Werner <ken.werner@de.ibm.com> |
1498 | ||
1499 | * solib-spu.c: Include "exception.h". | |
1500 | (ocl_program_data_key): New variable. | |
1501 | (append_ocl_sos): New function. | |
1502 | (ocl_enable_break): Likewise. | |
1503 | (spu_current_sos): Call append_ocl_sos. | |
1504 | (spu_solib_loaded): Call ocl_enable_break. | |
1505 | (_initialize_spu_solib): Register ocl_program_data_key. | |
1506 | ||
19c0c0f8 UW |
1507 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
1508 | ||
1509 | * cp-support.c (reset_directive_searched): New function. | |
1510 | (make_symbol_overload_list_using): Prevent recursive calls. | |
1511 | ||
0f6a939d PM |
1512 | 2010-06-25 Phil Muldoon <pmuldoon@redhat.com> |
1513 | ||
1514 | * printcmd.c (print_variable_and_value): Print error message on | |
1515 | caught exception. | |
1516 | ||
f2c7657e UW |
1517 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
1518 | ||
1519 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
1520 | of stack values. | |
1521 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
1522 | "value" member. | |
1523 | (dwarf_expr_push): Change input type to ULONGEST. | |
1524 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
1525 | (dwarf_expr_fetch_address): Add prototype. | |
1526 | (dwarf2_read_address): Remove prototype. | |
1527 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
1528 | Truncate stack values to ctx->addr_size bytes. | |
1529 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
1530 | (dwarf_expr_fetch_address): New function. | |
1531 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
1532 | when appropriate. Update for struct dwarf_expr_piece changes. | |
1533 | (dwarf2_read_address): Remove. | |
1534 | (unsigned_address_type): Remove. | |
1535 | (signed_address_type): Remove. | |
1536 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
1537 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
1538 | values. Perform operations on ULONGEST instead of on GDB values, | |
1539 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
1540 | values and DW_OP_deref results as unsigned integers. | |
1541 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
1542 | changes. | |
1543 | (write_pieced_value): Likewise. | |
1544 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
1545 | dwarf_expr_fetch when appropriate. | |
1546 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
1547 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
1548 | instead of dwarf_expr_fetch when appropriate. | |
1549 | ||
b1d61bc9 PM |
1550 | 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr> |
1551 | ||
1552 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
1553 | ||
b14285f6 JB |
1554 | 2010-06-24 Joel Brobecker <brobecker@adacore.com> |
1555 | ||
1556 | * python/python.c (_initialize_python): Add new "constant" | |
1557 | PYTHONDIR in gdb module. Insert this path at the head of | |
1558 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
1559 | exec its __init__.py script if it exists in that directory. | |
1560 | ||
fd60dc69 KB |
1561 | 2010-06-24 Kevin Buettner <kevinb@redhat.com> |
1562 | ||
1563 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
1564 | (RX_NUM_REGS): Redefine to 26. | |
1565 | (rx_register_name): Add register "acc". Change order of several | |
1566 | registers. Change name of "vct" register to "fintv" to match RX | |
1567 | documentation. | |
1568 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
1569 | ||
18430289 TT |
1570 | 2010-06-24 Tom Tromey <tromey@redhat.com> |
1571 | ||
1572 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
1573 | ||
40618926 JK |
1574 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1575 | Tom Tromey <tromey@redhat.com> | |
1576 | ||
1577 | Fix GDB startup on readonly filesystem. | |
1578 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
1579 | ||
628fe4e4 JK |
1580 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1581 | Pedro Alves <pedro@codesourcery.com> | |
1582 | ||
1583 | Fix PR 9436. | |
1584 | * breakpoint.c (handle_jit_event): New function. | |
1585 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
1586 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
1587 | this_action and bptype. Change bs_class assignments to this_action | |
1588 | assignments. new unhandled bptype internal error. Move here | |
1589 | shlib_event and jit_event handling from handle_inferior_event. | |
1590 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
1591 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
1592 | BPSTAT_WHAT_CHECK_JIT. | |
1593 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
1594 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
1595 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
1596 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
1597 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
1598 | gdbarch when frame gets reinitialized. | |
1599 | ||
f1421989 HZ |
1600 | 2010-06-24 Hui Zhu <teawater@gmail.com> |
1601 | ||
1602 | * printcmd.c (ui_printf): New function. | |
1603 | (printf_command): Call ui_printf. | |
1604 | (_initialize_printcmd): New command "eval". | |
1605 | ||
d03285ec UW |
1606 | 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com> |
1607 | ||
1608 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
1609 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
1610 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
1611 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
1612 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
1613 | (detach_breakpoints): Call it. | |
1614 | (cancel_single_step_breakpoints): New function. | |
1615 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
1616 | ||
1617 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
1618 | (spu_gdbarch_init): Install it. | |
1619 | ||
38f6b338 JK |
1620 | 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
1621 | ||
1622 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
1623 | * configure: Regenerate. | |
1624 | ||
bb08c432 HZ |
1625 | 2010-06-22 Hui Zhu <teawater@gmail.com> |
1626 | ||
1627 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
1628 | (i386_process_record): Ditto. | |
1629 | * record.c (record_memory_query): New variable. | |
1630 | (_initialize_record): New command "set record memory-query". | |
1631 | * record.h (record_memory_query): New extern. | |
1632 | ||
b55078be DE |
1633 | 2010-06-21 Doug Evans <dje@google.com> |
1634 | ||
1635 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
1636 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
1637 | (i386_syscall_p): Change type of lengthp to int. | |
1638 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
1639 | syscall insn. | |
1640 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
1641 | i386_displaced_step_copy_insn instead of | |
1642 | simple_displaced_step_copy_insn. | |
1643 | ||
75079b2b TT |
1644 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
1645 | ||
1646 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
1647 | (dwarf_type_encoding_name): Likewise. | |
1648 | ||
b00fdb78 TT |
1649 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
1650 | ||
1651 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
1652 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
1653 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
1654 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
1655 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
1656 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
1657 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
1658 | failure. | |
1659 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
1660 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
1661 | ||
84951ab5 MS |
1662 | 2010-06-21 Michael Snyder <msnyder@vmware.com> |
1663 | ||
1664 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, | |
1665 | not add_abbrev_prefix_cmd, for "enable breakpoints". | |
1666 | ||
d4a087c7 UW |
1667 | 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com> |
1668 | ||
1669 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
1670 | to base-address-selection entry base addresses. Read addresses | |
1671 | (and offsets) as signed/unsigned integers, depending on the | |
1672 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
1673 | (loclist_describe_location): Likewise. | |
1674 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
1675 | unsigned integer. Do not call dwarf2_read_address. | |
1676 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
1677 | ||
13def385 UW |
1678 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
1679 | ||
1680 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
1681 | value instead of hard-coded SPU_LS_SIZE. | |
1682 | (spu_software_single_step): Likewise. | |
1683 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
1684 | ||
d2ed6730 UW |
1685 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
1686 | ||
1687 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
1688 | limit on local store memory accesses. | |
1689 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
1690 | * spu-tdep.c (spu_lslr): Remove. | |
1691 | (spu_pointer_to_address): Do not truncate addresses. | |
1692 | (spu_integer_to_address): Likewise. | |
1693 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
1694 | * spu-tdep.h: Add comments. | |
1695 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
1696 | (SPU_OVERLAY_LMA): Define. | |
1697 | ||
6aed2dbc SS |
1698 | 2010-06-18 Stan Shebs <stan@codesourcery.com> |
1699 | ||
a61408f8 SS |
1700 | * osdata.c (get_osdata): Warn separately if target does not report |
1701 | type list. | |
1702 | (info_osdata_command): Allow empty type, report error if target | |
1703 | does not return available types of OS data. | |
1704 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
1705 | types if no annex supplied. | |
1706 | ||
6aed2dbc SS |
1707 | * thread.c (thread_id_make_value): Make a value representing the |
1708 | current thread. | |
1709 | (_initialize_thread): Create $_thread. | |
1710 | ||
ec61707d JB |
1711 | 2010-06-17 Joel Brobecker <brobecker@adacore.com> |
1712 | ||
1713 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
1714 | last local variable declaration. No real code change. | |
1715 | ||
60606b2c TT |
1716 | 2010-06-17 Tom Tromey <tromey@redhat.com> |
1717 | ||
1718 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
1719 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
1720 | temporary obstack. | |
1721 | ||
65d79d4b SDJ |
1722 | 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com> |
1723 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1724 | ||
1725 | * breakpoint.c: Include parser-defs.h. | |
1726 | (watchpoint_exp_is_const): New function. | |
1727 | (watch_command_1): Call watchpoint_exp_is_const to check | |
1728 | if the expression is constant. | |
1729 | ||
0407b3f1 AS |
1730 | 2010-06-15 Andreas Schwab <schwab@linux-m68k.org> |
1731 | ||
1732 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
1733 | * configure: Regenerate. | |
1734 | ||
98d64339 PA |
1735 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
1736 | ||
1737 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
1738 | (SFILES): Remove solib-null.c, add solib-target.c. | |
1739 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
1740 | (ALLDEPFILES): Remove solib-target.c. | |
1741 | * solib-target.c (_initialize_solib_target): Set | |
1742 | current_target_so_ops to solib_target_so_ops if not already set. | |
1743 | * solib-null.c: Delete. | |
1744 | ||
6a271cae PA |
1745 | 2010-06-14 Pedro Alves <pedro@codesourcery.com> |
1746 | ||
1747 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
1748 | bytecode. | |
1749 | ||
1e9beacb UW |
1750 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
1751 | ||
1752 | * cp-valprint.c (cp_print_static_field): Members of | |
1753 | dont_print_stat_array_obstack are of type "struct type *". | |
1754 | (_initialize_cp_valprint): Likewise. | |
1755 | ||
21a176fb UW |
1756 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
1757 | ||
1758 | * frame.c (frame_register_unwind): Do not access contents | |
1759 | of "optimized out" unwound register value. | |
1760 | ||
25b524e8 JK |
1761 | 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
1762 | ||
1763 | * ada-lang.h (ada_print_type): Make varstring const. | |
1764 | * ada-typeprint.c (print_func_type): Make name const. | |
1765 | (ada_print_type): Make varstring const. | |
1766 | * c-lang.h (c_print_type): Make varstring const. | |
1767 | * c-typeprint.c (c_print_type): Likewise. | |
1768 | * f-lang.h (f_print_type): Likewise. | |
1769 | * f-typeprint.c (f_print_type): Likewise. | |
1770 | * jv-lang.h (java_print_type): Likewise. | |
1771 | * jv-typeprint.c (java_print_type): Likewise. | |
1772 | * language.c (unk_lang_print_type): Likewise. | |
1773 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
1774 | * m2-lang.h (m2_print_type): Likewise. | |
1775 | * m2-typeprint.c (m2_print_type): Likewise. | |
1776 | * p-lang.h (pascal_print_type): Likewise. | |
1777 | * p-typeprint.c (pascal_print_type): Likewise. | |
1778 | ||
d914c394 SS |
1779 | 2010-06-11 Stan Shebs <stan@codesourcery.com> |
1780 | ||
1781 | Add per-operation permission flags. | |
1782 | ||
1783 | * target.h (struct target_ops): New method to_set_permissions. | |
1784 | (target_set_permissions): New macro. | |
1785 | (target_insert_breakpoint): Change macro to function. | |
1786 | (target_remove_breakpoint): Ditto. | |
1787 | (target_stop): Ditto. | |
1788 | (may_write_registers): Declare. | |
1789 | (may_write_memory): Declare. | |
1790 | (may_insert_breakpoints): Declare. | |
1791 | (may_insert_tracepoints): Declare. | |
1792 | (may_insert_fast_tracepoints): Declare. | |
1793 | (may_stop): Declare. | |
1794 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
1795 | (may_write_memory, may_write_memory_1): New globals. | |
1796 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
1797 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
1798 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
1799 | globals. | |
1800 | (may_stop, may_stop_1): New global. | |
1801 | (target_xfer_partial): Test for write permission. | |
1802 | (target_store_registers): Ditto. | |
1803 | (target_insert_breakpoint): New function. | |
1804 | (target_remove_breakpoint): New function. | |
1805 | (target_stop): New function. | |
1806 | (_initialize_targets): Add new set/show variables. | |
1807 | (set_write_memory_permission): New function. | |
1808 | (update_target_permissions): New function. | |
1809 | (set_target_permissions): New function. | |
1810 | (update_current_target): Default to_set_permissions. | |
1811 | (_initialize_targets): Use new globals and setter function. | |
1812 | * tracepoint.c (start_tracing): Test for permission. | |
1813 | * inferior.h (update_observer_mode): Declare. | |
1814 | * infrun.c (non_stop_1): Define earlier. | |
1815 | (observer_mode, observer_mode_1): New globals. | |
1816 | (set_observer_mode, show_observer_mode): New functions. | |
1817 | (update_observer_mode): New function. | |
1818 | (_initialize_infrun): Define "set observer" command. | |
1819 | * remote.c (PACKET_QAllow): New optional packet. | |
1820 | (remote_protocol_features): Add QAllow. | |
1821 | (remote_set_permissions): New function. | |
1822 | (remote_start_remote): Call it. | |
1823 | (init_remote_ops): Add it to target vector. | |
1824 | (_initialize_remote): Add config command for QAllow. | |
1825 | ||
aec5aa8b TT |
1826 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
1827 | ||
1828 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
1829 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
1830 | ||
0e03807e TT |
1831 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
1832 | ||
1833 | PR gdb/9977, PR exp/11636: | |
1834 | * value.h (value_offset): Update. | |
1835 | (struct lval_funcs) <check_validity>: New field. | |
1836 | <copy_closure>: Make argument const. | |
1837 | (value_computed_closure): Update. | |
1838 | (value_contents_for_printing): Declare. | |
1839 | (value_bits_valid): Likewise. | |
1840 | (val_print): Likewise. | |
1841 | (set_value_component_location): Update. | |
1842 | (value_entirely_optimized_out): Declare. | |
1843 | * value.c (value_offset): Argument now const. | |
1844 | (require_not_optimized_out): New function. | |
1845 | (value_contents_for_printing): New function. | |
1846 | (value_contents_all): Call require_not_optimized_out. | |
1847 | (value_contents): Likewise. | |
1848 | (value_bits_valid): New function. | |
1849 | (value_computed_closure): Argument now const. | |
1850 | (set_value_component_location): Make 'whole' argument const. | |
1851 | (value_entirely_optimized_out): New function. | |
1852 | (value_bitsize): Argument now 'const'. | |
1853 | (value_bitpos): Likewise. | |
1854 | (value_type): Likewise. | |
1855 | * valprint.h (val_print_array_elements): Update. | |
1856 | * valprint.c (val_print): Add 'val' argument. Use | |
1857 | valprint_check_validity. | |
1858 | (valprint_check_validity): New function. | |
1859 | (value_check_printable): Use value_entirely_optimized_out. | |
1860 | (common_val_print): Update. | |
1861 | (value_print): Likewise. | |
1862 | (val_print_array_elements): Add 'val' argument. | |
1863 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
1864 | value_bits_valid. Reinit frame cache for lval_computed. | |
1865 | * sh64-tdep.c (sh64_do_register): Update. | |
1866 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
1867 | * scm-lang.h (scm_val_print): Update. | |
1868 | * python/python.h (apply_val_pretty_printer): Update. | |
1869 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
1870 | argument. Call set_value_component_location. | |
1871 | * printcmd.c (print_scalar_formatted): Update. | |
1872 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
1873 | (pascal_object_print_value_fields): Likewise. | |
1874 | (pascal_object_print_value): Likewise. | |
1875 | (pascal_object_print_static_field): Update. | |
1876 | * p-lang.h (pascal_val_print): Update. | |
1877 | (pascal_object_print_value_fields): Update. | |
1878 | * mt-tdep.c (mt_registers_info): Update. | |
1879 | * mi/mi-main.c (get_register): Update. | |
1880 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
1881 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
1882 | (m2_print_unbounded_array): Likewise. | |
1883 | (m2_val_print): Likewise. | |
1884 | * m2-lang.h (m2_val_print): Update. | |
1885 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
1886 | argument. | |
1887 | (LA_VAL_PRINT): Likewise. | |
1888 | * language.c (unk_lang_val_print): Add 'val' argument. | |
1889 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
1890 | (java_val_print): Likewise. | |
1891 | * jv-lang.h (java_val_print): Add 'val' argument. | |
1892 | * infcmd.c (default_print_registers_info): Update. | |
1893 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
1894 | (f77_print_array): Likewise. | |
1895 | (f_val_print): Likewise. | |
1896 | * f-lang.h (f_val_print): Add 'val' argument. | |
1897 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
1898 | value_bitpos. | |
1899 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
1900 | set_value_optimized_out. | |
1901 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
1902 | <default>: Don't exit loop. | |
1903 | (check_pieced_value_validity): New function. | |
1904 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
1905 | check_pieced_value_invalid. | |
1906 | (copy_pieced_value_closure): Update. | |
1907 | (check_pieced_value_bits): New function. | |
1908 | (check_pieced_value_invalid): New function. | |
1909 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
1910 | (d_val_print): Likewise. | |
1911 | * d-lang.h (d_val_print): Update. | |
1912 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
1913 | (cp_print_value_fields_rtti): Likewise. | |
1914 | (cp_print_value): Likewise. | |
1915 | (cp_print_static_field): Update. | |
1916 | * c-valprint.c (c_val_print): Add 'val' argument. | |
1917 | (c_value_print): Update. | |
1918 | * c-lang.h (c_val_print): Update. | |
1919 | (cp_print_value_fields): Likewise. | |
1920 | (cp_print_value_fields_rtti): Likewise. | |
1921 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
1922 | (val_print_packed_array_elements): Add 'val' argument. | |
1923 | (ada_val_print): Likewise. Rewrite. | |
1924 | (ada_val_print_stub): Remove. | |
1925 | (ada_val_print_array): Add 'val' argument. | |
1926 | (ada_val_print_1): Likewise. | |
1927 | (print_variant_part): Likewise. | |
1928 | (ada_value_print): Update. | |
1929 | (print_record): Add 'val' argument. | |
1930 | (print_field_values): Likewise. | |
1931 | * ada-lang.h (ada_val_print): Update. | |
1932 | ||
3cf03773 TT |
1933 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
1934 | ||
1935 | * vec.h (VEC_cleanup): New macro. | |
1936 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
1937 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
1938 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
1939 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
1940 | (unimplemented): New function. | |
1941 | (translate_register): Likewise. | |
1942 | (access_memory): Likewise. | |
1943 | (compile_dwarf_to_ax): Likewise. | |
1944 | (dwarf2_tracepoint_var_loc): Remove. | |
1945 | (dwarf2_tracepoint_var_access): Likewise. | |
1946 | (dwarf2_tracepoint_var_ref): Likewise. | |
1947 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
1948 | (loclist_tracepoint_var_ref): Likewise. | |
1949 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
1950 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
1951 | require_composition. No longer static. | |
1952 | (execute_stack_op): Update. | |
1953 | * ax-gdb.h (trace_kludge): Declare. | |
1954 | ||
2bdf28a0 JK |
1955 | 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1956 | ||
1957 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
1958 | (should_be_inserted): Return zero also on NULL OWNER. | |
1959 | (breakpoint_program_space_exit): New OWNER comment. | |
1960 | (insert_breakpoint_locations): Extend comment for OWNER. | |
1961 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
1962 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
1963 | New OWNER comment. | |
1964 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
1965 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
1966 | (bpstat_check_location): New assert on OWNER. | |
1967 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
1968 | and B initializations to the code block. New assert on them. | |
1969 | (print_one_breakpoint_location): New OWNER comment. | |
1970 | (watchpoint_locations_match): Assert on OWNER. | |
1971 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
1972 | initializations to the code block. New assert on OWNER. | |
1973 | (set_breakpoint_location_function): New assert on OWNER. | |
1974 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
1975 | (bp_location_compare, update_global_location_list) | |
1976 | (update_global_location_list): New OWNER comment. | |
1977 | ||
5b9a19af UW |
1978 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
1979 | ||
1980 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
1981 | ||
669211f5 UW |
1982 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
1983 | ||
1984 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
1985 | (lin_thread_get_thread_signals): Remove prototype. | |
1986 | (GET_THREAD_SIGNALS): Remove. | |
1987 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
1988 | * linux-thread-db.c (check_thread_signals): Directly call | |
1989 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
1990 | ||
b7a8b4ef UW |
1991 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
1992 | ||
1993 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
1994 | (gdb_fpxregset_t): Likewise. | |
1995 | (supply_fpxregset): Remove prototype. | |
1996 | (fill_fpxregset): Likewise. | |
1997 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
1998 | (fill_fpxregset): Likewise. | |
1999 | (fetch_fpxregs): Inline supply_fpxregset call. | |
2000 | (store_fpxregs): Inline fill_fpxregset call. | |
2001 | ||
2002 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
2003 | * config/i386/nm-linux.h: Remove file. | |
2004 | ||
82892036 MS |
2005 | 2010-06-09 Michael Snyder <msnyder@vmware.com> |
2006 | ||
2007 | * target.c (update_current_target): Fix spelling error in comment. | |
2008 | (target_mourn_inferior): Fix spelling error in error message. | |
2009 | ||
5ddb52fa PH |
2010 | 2010-06-08 Paul Hilfinger <hilfingr@adacore.com> |
2011 | ||
2012 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
2013 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
2014 | ||
0f2caa1b MS |
2015 | 2010-06-08 Michael Snyder <msnyder@vmware.com> |
2016 | ||
2017 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
2018 | ||
3bebe2f2 JK |
2019 | 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2020 | ||
2021 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
2022 | python#4434. | |
2023 | * configure: Regenerate. | |
2024 | ||
eaaffdf4 HZ |
2025 | 2010-06-08 Hui Zhu <teawater@gmail.com> |
2026 | ||
2027 | * record.c (record_wait): Move signal out of replay code. | |
2028 | ||
5c631832 JK |
2029 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2030 | ||
2031 | Fix PR 10640. | |
2032 | * dwarf2-frame.c (no_dwarf_call): New function. | |
2033 | (execute_stack_op): Set CTX->DWARF_CALL. | |
2034 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
2035 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
2036 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
2037 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
2038 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
2039 | (needs_frame_dwarf_call): New function. | |
2040 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
2041 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
2042 | Update the comment. Move variables die, offset and error call to ... | |
2043 | (follow_die_ref): ... a new function. | |
2044 | (dwarf2_fetch_die_location_block): New function. | |
2045 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
2046 | ||
17ea53c3 JK |
2047 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2048 | ||
2049 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
2050 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
2051 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
2052 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
2053 | this change. | |
2054 | (struct needs_frame_baton): New field per_cu. | |
2055 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
2056 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
2057 | ||
245040d7 SW |
2058 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
2059 | ||
2060 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
2061 | static and global blocks. | |
2062 | (make_symbol_overload_list_block): New function. | |
2063 | (make_symbol_overload_list): Separate namespace search from block | |
2064 | search. | |
2065 | (make_symbol_overload_list_qualified): Use | |
2066 | make_symbol_overload_list_block. | |
2067 | ||
4c3376c8 SW |
2068 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
2069 | ||
2070 | * value.h: Created oload_search_type enum. | |
2071 | (find_overload_match): Use oload_search_type enum. | |
2072 | * valops.c (find_overload_match): Support combined member and | |
2073 | non-member search. | |
2074 | * eval.c (evaluate_subexp_standard): Calls to | |
2075 | find_overload_match now use oload_search_type enum. | |
2076 | (oload_method_static): Verify index is a proper value. | |
2077 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
2078 | both member and non-member operators. | |
2079 | (value_user_defined_cpp_op): New function. | |
2080 | (value_user_defined_op): New function. | |
2081 | (value_x_unop): Use value_user_defined_op. | |
2082 | (value_x_binop): Ditto. | |
2083 | * cp-support.c (make_symbol_overload_list_using): Added block | |
2084 | iteration. | |
2085 | Add check for namespace aliases and imported declarations. | |
2086 | ||
ee55da67 JK |
2087 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2088 | ||
2089 | * breakpoint.h (owner): Extend the comment. | |
2090 | ||
1a2ab13a JK |
2091 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2092 | ||
2093 | Clear stale specific bp_location from former whole breakpoint. | |
2094 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
2095 | code ... | |
2096 | (free_bp_location): ... here. Rename there the called function to | |
2097 | bpstat_remove_bp_location_callback. | |
2098 | (bpstat_remove_breakpoint_callback): Rename to ... | |
2099 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
2100 | to struct bp_location. Change the called function to | |
2101 | bpstat_remove_bp_location. Create new declaration for the function. | |
2102 | (bpstat_remove_breakpoint): Rename to ... | |
2103 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
2104 | code for the new parameter type. | |
2105 | ||
16d6b4b7 NS |
2106 | 2010-06-07 Nathan Sidwell <nathan@codesourcery.com> |
2107 | ||
2108 | * README: Make version-agnostic. | |
2109 | ||
7e314c57 JK |
2110 | 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2111 | ||
2112 | Fix duplicate types for single DIE. | |
2113 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
2114 | set_die_type. | |
2115 | (read_array_type): Remove type initialization. Recheck get_die_type | |
2116 | after initial die_type. Move set_die_type before set_descriptive_type. | |
2117 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
2118 | initial die_type. Move attr initialization later. | |
2119 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
2120 | target_type. Recheck get_die_type after initial die_type. | |
2121 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
2122 | die_type and die_containing_type. | |
2123 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
2124 | Recheck get_die_type after initial die_type. | |
2125 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
2126 | Move set_die_type before set_descriptive_type. | |
2127 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
2128 | some type already set. | |
2129 | ||
2f296114 VP |
2130 | 2010-06-05 Vladimir Prus <vladimir@codesourcery.com> |
2131 | ||
2132 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
2133 | for current naming of thread groups (iN, not N). | |
2134 | ||
554794dc SDJ |
2135 | 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> |
2136 | ||
2137 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
2138 | * parse.c (operator_length): Likewise. | |
2139 | (operator_length_standard): Likewise. | |
2140 | * parser-defs.h (operator_length): Likewise. | |
2141 | (operator_length_standard): Likewise. | |
2142 | (struct exp_descriptor <operator_length>): Likewise. | |
2143 | ||
967cf477 DE |
2144 | 2010-06-04 Doug Evans <dje@google.com> |
2145 | ||
bddaacb9 | 2146 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
2147 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
2148 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
2149 | * python/python.c (gdbpy_enabled_cst): Define. | |
2150 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
2151 | * NEWS: Add entry. | |
2152 | ||
2dec564e JK |
2153 | 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
2154 | ||
2155 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
2156 | ||
44b5680a HZ |
2157 | 2010-06-04 Hui Zhu <teawater@gmail.com> |
2158 | ||
2159 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
2160 | ||
e7a30f46 DE |
2161 | 2010-06-03 Doug Evans <dje@google.com> |
2162 | ||
2163 | * configure.ac: Don't fail if python is unusable when | |
2164 | configured with --with-python=auto. | |
2165 | * configure: Regenerate. | |
2166 | ||
84b4420f SW |
2167 | 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> |
2168 | ||
2169 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. | |
2170 | ||
df178451 PM |
2171 | 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> |
2172 | ||
2173 | * valprint.h (get_array_bounds): Change low and high parameter types | |
2174 | to LONGEST *. | |
0407b3f1 | 2175 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
2176 | compute bounds. |
2177 | (val_print_array_elements): Adapt to change above. | |
2178 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
2179 | * p-valprint.c (pascal_val_print): Likewise. | |
2180 | ||
fd5700c7 JK |
2181 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2182 | ||
2183 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
2184 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
2185 | .F08. | |
2186 | ||
f55ee35c JK |
2187 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2188 | ||
2189 | Support DW_TAG_module as separate namespaces. | |
2190 | * dwarf2read.c (typename_concat): New parameter physname. | |
2191 | (read_module_type): New function and declaration. | |
2192 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
2193 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
2194 | to typename_concat backward compatible physname value 0. | |
2195 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
2196 | backward compatible physname value 0. | |
2197 | (add_partial_module, read_module): Remove FIXME comment. | |
2198 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
2199 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
2200 | DIEs under DW_TAG_module. | |
2201 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
2202 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
2203 | && physname and return there instead of just setting NAME. Extend | |
2204 | the main block for language_fortran. Pass physname parameter to the | |
2205 | typename_concat call. | |
2206 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
2207 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
2208 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
2209 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
2210 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
2211 | variables. | |
2212 | (read_type_die) <DW_TAG_module>: New. | |
2213 | (MAX_SEP_LEN): Increase to 7. | |
2214 | (typename_concat): New parameter physname. New variable lead. Support | |
2215 | also language_fortran. | |
2216 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
2217 | * f-lang.c: Include cp-support.h. | |
2218 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
2219 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
2220 | f_word_break_characters and f_make_symbol_completion_list. | |
2221 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
2222 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
2223 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
2224 | (symbol_find_demangled_name): New comment on language_fortran. | |
2225 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
2226 | for language_fortran. | |
2227 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
2228 | (default_make_symbol_completion_list): Rename to ... | |
2229 | (default_make_symbol_completion_list_break_on): ... this name. New | |
2230 | parameter break_on, use it. | |
2231 | (default_make_symbol_completion_list): New stub. | |
2232 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
2233 | prototype. | |
2234 | ||
cb91c06a JB |
2235 | 2010-06-02 Joel Brobecker <brobecker@adacore.com> |
2236 | ||
2237 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
2238 | to error. | |
2239 | ||
5c315b68 JK |
2240 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2241 | ||
2242 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
2243 | ||
9eae7c52 TT |
2244 | 2010-06-02 Tom Tromey <tromey@redhat.com> |
2245 | ||
2246 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
2247 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
2248 | type is const. Add 'def' argument. Add missing operators, remove | |
2249 | unhandled ones. | |
2250 | (decode_locdesc): Update. | |
2251 | (dwarf2_always_disassemble): New global. | |
2252 | (show_dwarf2_always_disassemble): New function. | |
2253 | (_initialize_dwarf2_read): Add always-disassemble. | |
2254 | (dwarf2_per_cu_offset_size): New function. | |
2255 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
2256 | (piece_end_p): New function. | |
2257 | (locexpr_describe_location_piece): Replace 'size' argument with | |
2258 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
2259 | some constants. Remove errors. | |
2260 | (disassemble_dwarf_expression): New function. | |
2261 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
2262 | Add 'offset_size' argument. | |
2263 | (loclist_describe_location): Change output formatting. | |
2264 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
2265 | ||
7d3fe98e SW |
2266 | 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> |
2267 | ||
2268 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
2269 | anonymous type case. | |
2270 | ||
e77813c8 PM |
2271 | 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr> |
2272 | ||
2273 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
2274 | according to Dwarf-2 specifications. | |
2275 | ||
7cf3118a SDJ |
2276 | 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2277 | ||
2278 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
2279 | BINOP_EXCL. | |
2280 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
2281 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
2282 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
2283 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
2284 | UNOP_CHMAX, UNOP_CHMIN. | |
2285 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
2286 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
2287 | UNOP_CHMIN>: Remove opcodes. | |
2288 | ||
ae4d0c03 PM |
2289 | 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr> |
2290 | ||
2291 | * dwarf2read.c (read_func_scope): Do not complain for | |
2292 | external function if bounds are not found. | |
2293 | ||
fa593d66 PA |
2294 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
2295 | ||
2296 | * NEWS: Mention gdbserver fast tracepoints support. | |
2297 | ||
cd44747c PM |
2298 | 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr> |
2299 | ||
2300 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
2301 | New macros. | |
2302 | (windows_set_console_info): New function. | |
2303 | (windows_create_inferior): Call windows_set_console_info | |
2304 | if NEW_CONSOLE is true. | |
2305 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
2306 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
2307 | GetCurrentConsoleFont. | |
2308 | ||
f6528abd JK |
2309 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2310 | ||
2311 | * Makefile.in (RDYNAMIC): New. | |
2312 | (SFILES): Add proc-service.list. | |
2313 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
2314 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
2315 | * config/arm/linux.mh: Likewise. | |
2316 | * config/i386/linux.mh: Likewise. | |
2317 | * config/i386/linux64.mh: Likewise. | |
2318 | * config/ia64/linux.mh: Likewise. | |
2319 | * config/m32r/linux.mh: Likewise. | |
2320 | * config/m68k/linux.mh: Likewise. | |
2321 | * config/mips/linux.mh: Likewise. | |
2322 | * config/pa/linux.mh: Likewise. | |
2323 | * config/powerpc/linux.mh: Likewise. | |
2324 | * config/powerpc/ppc64-linux.mh: Likewise. | |
2325 | * config/s390/s390.mh: Likewise. | |
2326 | * config/sparc/linux.mh: Likewise. | |
2327 | * config/sparc/linux64.mh: Likewise. | |
2328 | * config/xtensa/linux.mh: Likewise. | |
2329 | * configure.ac: New RDYNAMIC on native host and GCC. | |
2330 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
2331 | * configure: Regenerate. | |
2332 | * proc-service.list: New. | |
2333 | ||
ca2a87a0 JK |
2334 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2335 | ||
2336 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
2337 | CONTENT. | |
2338 | ||
1e225492 JK |
2339 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2340 | ||
2341 | * linux-nat.c (linux_nat_wait_1): Do not call | |
2342 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
2343 | TARGET_WAITKIND_SIGNALLED. | |
2344 | ||
e802dbe0 JB |
2345 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
2346 | ||
2347 | * ada-lang.c (ada_inferior_data): New struct. | |
2348 | (ada_inferior_data): New static global. | |
2349 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
2350 | (ada_get_tsd_type): New functions. | |
2351 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
2352 | to look the tsd type up. | |
2353 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
2354 | event. Set ada_inferior_data. | |
2355 | ||
176a6961 PA |
2356 | 2010-05-27 Pedro Alves <pedro@codesourcery.com> |
2357 | ||
2358 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
2359 | (remote_console_output): Make static, and add forward declaration. | |
2360 | * remote.h: Drop FIXME comment. | |
2361 | (unpack_varlen_hex): Declare. | |
2362 | (remote_console_output, remote_cisco_objfile_relocate) | |
2363 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
2364 | Delete declarations. | |
2365 | * tracepoint.c: Include "remote.h". | |
2366 | (unpack_varlen_hex): Delete declaration. | |
2367 | ||
88bfdde4 TT |
2368 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
2369 | ||
2370 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
2371 | (allocate_piece_closure): Initialize refc. | |
2372 | (copy_pieced_value_closure): Use refc. | |
2373 | (free_pieced_value_closure): Likewise. | |
2374 | ||
8c6363cf TT |
2375 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
2376 | ||
2377 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
2378 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
2379 | value_contents_writeable. Introduce new temporary. | |
2380 | ||
7ecb917e TT |
2381 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
2382 | ||
2383 | * findcmd.c (parse_find_args): Use value_contents, not | |
2384 | value_contents_raw. | |
2385 | ||
f42a0a33 TT |
2386 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
2387 | ||
2388 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
2389 | const. Use value_contents, not value_contents_writeable. | |
2390 | ||
12b795ad JB |
2391 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
2392 | ||
2393 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
2394 | by call to value_contents. | |
2395 | ||
5a2e11c7 OS |
2396 | 2010-05-27 Ozkan Sezer <sezeroz@gmail.com> |
2397 | ||
2398 | * MAINTAINERS: Add myself for write after approval privileges. | |
2399 | ||
ec685c5e DE |
2400 | 2010-05-26 Doug Evans <dje@google.com> |
2401 | ||
0c4a4063 DE |
2402 | Allow python to find its files if moved from original location. |
2403 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
2404 | (GDB_AC_WITH_DIR): Call it. | |
2405 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
2406 | python installation directory. | |
2407 | * config.in: Regenerate. | |
2408 | * configure: Regenerate. | |
2409 | * defs.h (python_libdir): Declare. | |
2410 | * main.c (python_libdir): Define. | |
2411 | (captured_main): Initialize python_libdir. | |
2412 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
2413 | call Py_SetProgramName to make sure python can find its libraries | |
2414 | and modules. | |
2415 | ||
ec685c5e DE |
2416 | * configure.ac: Try to use python's distutils to fetch compilation |
2417 | parameters. | |
2418 | * configure: Regenerate. | |
2419 | * python/python-config.py: New file. | |
2420 | ||
363a6e9f OS |
2421 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
2422 | ||
2423 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
2424 | equality to -1 not by it being negative. | |
2425 | (net_close): Likewise. | |
2426 | ||
dde08ee1 PA |
2427 | 2010-05-26 Pedro Alves <pedro@codesourcery.com> |
2428 | ||
2429 | * NEWS: Mention the `qRelocInsn' feature. | |
2430 | * gdbarch.sh (relocate_instruction): New. | |
2431 | * amd64-tdep.c (rip_relative_offset): New. | |
2432 | (append_insns): New. | |
2433 | (amd64_relocate_instruction): New. | |
2434 | (amd64_init_abi): Install it. | |
2435 | * i386-tdep.c (append_insns): New. | |
2436 | (i386_relocate_instruction): New. | |
2437 | (i386_gdbarch_init): Install it. | |
2438 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
2439 | * gdbarch.h, gdbarch.c: Regenerate. | |
2440 | ||
947bb88f TT |
2441 | 2010-05-26 Tom Tromey <tromey@redhat.com> |
2442 | ||
2443 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
2444 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
2445 | * dwarf2loc.c (find_location_expression): Constify return type. | |
2446 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
2447 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2448 | (loclist_read_variable): Constify. | |
2449 | (loclist_describe_location): Likewise. | |
2450 | (loclist_tracepoint_var_ref): Likewise. | |
2451 | ||
0d45f56e TT |
2452 | 2010-05-25 Tom Tromey <tromey@redhat.com> |
2453 | ||
2454 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
2455 | (dwarf_expr_frame_base_1): Likewise. | |
2456 | (read_pieced_value): Update. | |
2457 | (needs_frame_frame_base): Constify. | |
2458 | (dwarf2_tracepoint_var_loc): Likewise. | |
2459 | (dwarf2_tracepoint_var_access): Likewise. | |
2460 | (locexpr_describe_location_piece): Likewise. | |
2461 | (locexpr_describe_location_1): Likewise. | |
2462 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
2463 | Constify. | |
2464 | (data): Now const. | |
2465 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
2466 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
2467 | (dwarf2_read_address): Update. | |
2468 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
2469 | (read_uleb128): Likewise. | |
2470 | (read_sleb128): Likewise. | |
2471 | (dwarf2_read_address): Likewise. | |
2472 | (require_composition): Likewise. | |
2473 | (execute_stack_op): Likewise. | |
2474 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
2475 | "const gdb_byte *". | |
2476 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
2477 | Now const. | |
2478 | (no_get_frame_base): Constify. | |
2479 | (execute_stack_op): Likewise. | |
2480 | (execute_cfa_program): Likewise. | |
2481 | (read_encoded_value): Likewise. | |
2482 | ||
07ca107c DE |
2483 | 2010-05-25 Doug Evans <dje@google.com> |
2484 | ||
e34838f0 DE |
2485 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
2486 | ||
01f69b38 DE |
2487 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
2488 | * event-loop.c: ... here. | |
2489 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
2490 | `error' for clarity. | |
2491 | (tui_getc): Pass correct value for `error' parameter to | |
2492 | tui_readline_output. | |
2493 | ||
07ca107c DE |
2494 | Add python gdb.GdbError and gdb.string_to_argv. |
2495 | * NEWS: Document them. | |
2496 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
2497 | the exception is gdb.GdbError. Print a second traceback if there's | |
2498 | an error computing the error message. | |
2499 | (gdbpy_string_to_argv): New function. | |
2500 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
2501 | (gdbpy_exception_to_string): New function. | |
2502 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
2503 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
2504 | (gdbpy_gdberror_exc): Declare. | |
2505 | * python/python.c (gdbpy_gdberror_exc): New global. | |
2506 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
2507 | gdb.GdbError. | |
2508 | (GdbMethods): Add string_to_argv. | |
2509 | ||
5572ce1f PM |
2510 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2511 | ||
2512 | * windows-nat.c (display_selector): Call GetLastError to give better | |
2513 | failure explanation. | |
2514 | ||
acd5838a PA |
2515 | 2010-05-24 Pedro Alves <pedro@codesourcery.com> |
2516 | ||
2517 | * config.in: Regenerate. | |
2518 | ||
b26a4dcb JK |
2519 | 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2520 | ||
2521 | Code cleanup. | |
2522 | * target.c (push_target): Return only void. Remove the return value | |
2523 | comment. | |
2524 | * target.h (push_target): Return only void. | |
2525 | ||
f434ba03 PA |
2526 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
2527 | ||
2528 | Update gnulib from latest git. | |
2529 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
2530 | ||
2531 | * gnulib/memcmp.c: Removed. | |
2532 | * gnulib/memchr.valgrind: New. | |
2533 | * gnulib/stddef.in.h: New. | |
2534 | * gnulib/Makefile.am: Updated. | |
2535 | * gnulib/memchr.c: Updated. | |
2536 | * gnulib/memmem.c: Updated. | |
2537 | * gnulib/stdint.in.h: Updated. | |
2538 | * gnulib/str-two-way.h: Updated. | |
2539 | * gnulib/string.in.h: Updated. | |
2540 | * gnulib/wchar.in.h: Updated. | |
2541 | ||
2542 | * gnulib/extra/link-warning.h: Removed. | |
2543 | * gnulib/extra/c++defs.h: New. | |
2544 | * gnulib/extra/warn-on-use.h: New. | |
2545 | * gnulib/extra/arg-nonnull.h: Updated. | |
2546 | ||
2547 | * gnulib/m4/extensions.m4: Updated. | |
2548 | * gnulib/m4/gnulib-cache.m4: Updated. | |
2549 | * gnulib/m4/gnulib-common.m4: Updated. | |
2550 | * gnulib/m4/gnulib-comp.m4: Updated. | |
2551 | * gnulib/m4/gnulib-tool.m4: Updated. | |
2552 | * gnulib/m4/include_next.m4: Updated. | |
2553 | * gnulib/m4/longlong.m4: Updated. | |
2554 | * gnulib/m4/memchr.m4: Updated. | |
2555 | * gnulib/m4/memmem.m4: Updated. | |
2556 | * gnulib/m4/stdint.m4: Updated. | |
2557 | * gnulib/m4/string_h.m4: Updated. | |
2558 | * gnulib/m4/memcmp.m4: Removed. | |
2559 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
2560 | * gnulib/m4/00gnulib.m4: New. | |
2561 | * gnulib/m4/mmap-anon.m4: New. | |
2562 | * gnulib/m4/multiarch.m4: New. | |
2563 | * gnulib/m4/onceonly.m4: New. | |
2564 | * gnulib/m4/stddef_h.m4: New. | |
2565 | * gnulib/m4/warn-on-use.m4: New. | |
2566 | * gnulib/m4/wchar.m4: Removed. | |
2567 | * gnulib/m4/wchar_h.m4: New. | |
2568 | * gnulib/m4/wchar_t.m4: New. | |
2569 | * gnulib/m4/wint_t.m4: New. | |
2570 | ||
2571 | * aclocal.m4: Regenerate. | |
2572 | * config.in: Likewise. | |
2573 | * configure: Likewise. | |
2574 | * gnulib/Makefile.in: Likewise. | |
2575 | ||
d3b1e874 TT |
2576 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
2577 | ||
2578 | * dwarf2loc.c (extract_bits_primitive): New function. | |
2579 | (extract_bits): Likewise. | |
2580 | (insert_bits): Likewise. | |
2581 | (copy_bitwise): Likewise. | |
2582 | (read_pieced_value): Do all operations in bits. | |
2583 | (write_pieced_value): Likewise. | |
2584 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
2585 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
2586 | Always use xrealloc to resize piece array. | |
2587 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
2588 | <DW_OP_piece>: Update. | |
2589 | <DW_OP_bit_piece>: New case. | |
2590 | ||
cb826367 TT |
2591 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
2592 | ||
2593 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
2594 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
2595 | * dwarf2expr.h (enum dwarf_value_location) | |
2596 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
2597 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
2598 | (add_piece): Handle empty piece. | |
2599 | (execute_stack_op) <DW_OP_piece>: Handle | |
2600 | DWARF_VALUE_OPTIMIZED_OUT. | |
2601 | ||
74de6778 TT |
2602 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
2603 | ||
2604 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
2605 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
2606 | ||
f346a30d PM |
2607 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2608 | ||
2609 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
2610 | attribute. | |
2611 | ||
afd74c5f TT |
2612 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
2613 | ||
2614 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
2615 | offset. | |
2616 | (write_pieced_value): Likewise. | |
2617 | ||
90e7c2c5 PM |
2618 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2619 | ||
2620 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
2621 | and DW_TAG_volatile_type. | |
2622 | (new_symbol): Likewise. | |
2623 | ||
8148cf8d PM |
2624 | 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr> |
2625 | ||
2626 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
2627 | to obtain the number of elements in an array. | |
2628 | ||
3a1d4620 DE |
2629 | 2010-05-19 Doug Evans <dje@google.com> |
2630 | ||
0bf0f8c4 DE |
2631 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
2632 | ||
3a1d4620 DE |
2633 | * python.c (source_python_script): Add comment. |
2634 | (source_python_script_for_objfile): Remove unnecessary call to | |
2635 | gdbpy_print_stack. | |
2636 | ||
dc21167c JK |
2637 | 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2638 | Sergio Durigan Junior <sergiodj@redhat.com> | |
2639 | ||
2640 | Code cleanup. | |
2641 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
2642 | ||
5b4ee69b MS |
2643 | 2010-05-18 Michael Snyder <msnyder@vmware.com> |
2644 | ||
2645 | * ada-lang.c: White space. | |
2646 | * ada-typeprint.c: White space. | |
2647 | * ada-valprint.c: White space. | |
2648 | * addrmap.c: White space. | |
2649 | * auxv.c: White space. | |
2650 | * ax-gdb.c: White space. | |
2651 | ||
e17c9e56 HZ |
2652 | 2010-05-18 Hui Zhu <teawater@gmail.com> |
2653 | ||
2654 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
2655 | for oldfp. | |
2656 | (inferior_call_waitpid): Move make_cleanup out of check. | |
2657 | Check the return of waitpid. | |
2658 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
2659 | ||
a109c7c1 MS |
2660 | 2010-05-17 Michael Snyder <msnyder@vmware.com> |
2661 | ||
1c5313c5 MS |
2662 | * tui/tui.c: White space. |
2663 | * tui/tui-data.c: White space. | |
2664 | * tui/tui-disasm.c: White space. | |
2665 | * tui/tui-file.c: White space. | |
2666 | * tui/tui-interp.c: White space. | |
2667 | * tui/tui-main.c: White space. | |
2668 | * tui/tui-out.c: White space. | |
2669 | * tui/tui-regs.c: White space. | |
2670 | * tui/tui-source.c: White space. | |
2671 | * tui/tui-stack.c: White space. | |
2672 | * tui/tui-win.c: White space. | |
2673 | * tui/tui-winsource.c: White space. | |
2674 | ||
f4a14ae6 MS |
2675 | * procfs.c: White space. |
2676 | ||
d59b6f6c MS |
2677 | * python/py-auto-load.c: White space. |
2678 | * python/py-block.c: White space. | |
2679 | * python/py-breakpoint.c: White space. | |
2680 | * python/py-cmd.c: White space. | |
2681 | * python/py-function.c: White space. | |
2682 | * python/py-lazy-string.c: White space. | |
2683 | * python/py-objfile.c: White space. | |
2684 | * python/py-param.c: White space. | |
2685 | * python/py-prettyprint.c: White space. | |
2686 | * python/py-progspace.c: White space. | |
2687 | * python/py-symtab.c: White space. | |
2688 | * python/python.c: White space. | |
2689 | * python/py-type.c: White space. | |
2690 | * python/py-utils.c: White space. | |
2691 | * python/py-value.c: White space. | |
2692 | ||
102040f0 MS |
2693 | * mi/mi-cmd-break.c: White space. |
2694 | * mi/mi-cmd-env.c: White space. | |
2695 | * mi/mi-cmds.c: White space. | |
2696 | * mi/mi-cmd-stack.c: White space. | |
2697 | * mi/mi-cmd-var.c: White space. | |
2698 | * mi/mi-console.c: White space. | |
2699 | * mi/mi-getopt.c: White space. | |
2700 | * mi/mi-interp.c: White space. | |
2701 | * mi/mi-main.c: White space. | |
2702 | * mi/mi-out.c: White space. | |
2703 | * mi/mi-parse.c: White space. | |
2704 | ||
cdb27c12 MS |
2705 | * cli/cli-cmds.c: White space. |
2706 | * cli/cli-decode.c: White space. | |
2707 | * cli/cli-dump.c: White space. | |
2708 | * cli/cli-interp.c: White space. | |
2709 | * cli/cli-logging.c: White space. | |
2710 | * cli/cli-script.c: White space. | |
2711 | * cli/cli-setshow.c: White space. | |
2712 | ||
a109c7c1 MS |
2713 | * valarith.c: White space. |
2714 | * valops.c: White space. | |
2715 | * valprint.c: White space. | |
2716 | * value.c: White space. | |
2717 | * varobj.c: White space. | |
2718 | * xcoffread.c: White space. | |
2719 | * xml-support.c: White space. | |
2720 | * xml-tdesc.c: White space. | |
2721 | ||
3872d37d AS |
2722 | 2010-05-17 Andreas Schwab <schwab@redhat.com> |
2723 | ||
2724 | PR gdb/11092 | |
2725 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
2726 | string at first. | |
2727 | ||
0cce5bd9 JB |
2728 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
2729 | ||
2730 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
2731 | its associated language to parse the expression instead of | |
2732 | the current_language. | |
2733 | ||
5f19d646 JB |
2734 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
2735 | ||
2736 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
2737 | (type_from_class): Likewise. | |
2738 | (java_op_print_tab): Remove commented-out elements. | |
2739 | ||
28c85d6c JB |
2740 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
2741 | ||
2742 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
2743 | argument instead of the raw type name. Remove orig_type parameter. | |
2744 | Update calls throughout. | |
2745 | (ada_fixup_array_indexes_type): New function. | |
2746 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
2747 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
2748 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
2749 | Remove name parameter. | |
2750 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
2751 | Update calls to print_range_type. | |
2752 | (ada_print_type): Update calls to print_range_type. | |
2753 | ||
d09039dd PM |
2754 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
2755 | ||
2756 | * dwarf2read.c (read_set_type): Set type length if | |
2757 | DW_AT_byte_size attribute is present. | |
2758 | ||
7a081a30 PM |
2759 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
2760 | ||
2761 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
2762 | are undefined but size is known. | |
2763 | ||
77382aee PA |
2764 | 2010-05-17 Pedro Alves <pedro@codesourcery.com> |
2765 | ||
2766 | * procfs.c: Reformat. | |
2767 | ||
433759f7 MS |
2768 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
2769 | ||
5d502164 MS |
2770 | * target.c: White space. |
2771 | * target-descriptions.c: White space. | |
2772 | * target-memory.c: White space. | |
2773 | * thread.c: White space. | |
2774 | * top.c: White space. | |
2775 | * tracepoint.c: White space. | |
2776 | * trad-frame.c: White space. | |
2777 | * tramp-frame.c: White space. | |
2778 | * ui-file.c: White space. | |
2779 | * ui-out.c: White space. | |
2780 | * user-regs.c: White space. | |
2781 | * utils.c: White space. | |
2782 | ||
433759f7 MS |
2783 | * scm-exp.c: White space. |
2784 | * scm-lang.c: White space. | |
2785 | * scm-valprint.c: White space. | |
2786 | * sentinel-frame.c: White space. | |
2787 | * ser-base.c: White space. | |
2788 | * ser-go32.c: White space. | |
2789 | * serial.c: White space. | |
2790 | * ser-mingw.c: White space. | |
2791 | * ser-pipe.c: White space. | |
2792 | * ser-tcp.c: White space. | |
2793 | * ser-unix.c: White space. | |
2794 | * solib.c: White space. | |
2795 | * solib-darwin.c: White space. | |
2796 | * solib-frv.c: White space. | |
2797 | * solib-irix.c: White space. | |
2798 | * solib-osf.c: White space. | |
2799 | * solib-pa64.c: White space. | |
2800 | * solib-som.c: White space. | |
2801 | * solib-spu.c: White space. | |
2802 | * solib-svr4.c: White space. | |
2803 | * solib-target.c: White space. | |
2804 | * source.c: White space. | |
2805 | * stabsread.c: White space. | |
2806 | * stack.c: White space. | |
2807 | * std-regs.c: White space. | |
2808 | * symfile.c: White space. | |
2809 | * symmisc.c: White space. | |
2810 | * symtab.c: White space. | |
2811 | ||
dd304d53 MS |
2812 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
2813 | ||
2814 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
2815 | for the "reverse-search" command. | |
2816 | ||
a744cf53 MS |
2817 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
2818 | ||
123f5f96 MS |
2819 | * record.c: White space. |
2820 | * regcache.c: White space. | |
2821 | * reggroups.c: White space. | |
2822 | * remote-fileio.c: White space. | |
2823 | * remote-m32r-sdi.c: White space. | |
2824 | * remote-mips.c: White space. | |
2825 | * remote-sim.c: White space. | |
a744cf53 MS |
2826 | * remote.c: White space. |
2827 | (process_g_packet): Remove orphan braces. | |
2828 | ||
b8d56208 MS |
2829 | 2010-05-15 Michael Snyder <msnyder@vmware.com> |
2830 | ||
ad3bbd48 MS |
2831 | * parse.c: White space. |
2832 | * p-lang.c: White space. | |
2833 | * posix-hdep.c: White space. | |
2834 | * printcmd.c: White space. | |
2835 | * progspace.c: White space. | |
2836 | * prologue-value.c: White space. | |
2837 | * psymtab.c: White space. | |
2838 | * p-typeprint.c: White space. | |
2839 | * p-valprint.c: White space. | |
2840 | ||
5cc80db3 MS |
2841 | * objc-lang.c: White space. |
2842 | * objfiles.c: White space. | |
2843 | * observer.c: White space. | |
2844 | * osabi.c: White space. | |
2845 | * osdata.c: White space. | |
2846 | ||
b8d56208 MS |
2847 | * m2-lang.c: White space. |
2848 | * m2-valprint.c: White space. | |
2849 | * macrocmd.c: White space. | |
2850 | * macroexp.c: White space. | |
2851 | * macroscope.c: White space. | |
2852 | * macrotab.c: White space. | |
2853 | * main.c: White space. | |
2854 | * maint.c: White space. | |
2855 | * mdebugread.c: White space. | |
2856 | * memattr.c: White space. | |
2857 | * minsyms.c: White space. | |
2858 | * monitor.c: White space. | |
2859 | ||
9a619af0 MS |
2860 | 2010-05-14 Michael Snyder <msnyder@vmware.com> |
2861 | ||
e0881a8e MS |
2862 | * jv-lang.c: White space. |
2863 | * jv-typeprint.c: White space. | |
2864 | * jv-valprint.c: White space. | |
2865 | * language.c: White space. | |
2866 | * libunwind-frame.c: White space. | |
2867 | * linespec.c: White space. | |
2868 | * linux-nat.c: White space. | |
2869 | * linux-record.c: White space. | |
2870 | * linux-thread-db.c: White space. | |
2871 | ||
abbb1732 MS |
2872 | * infcall.c: White space. |
2873 | * inf-child.c: White space. | |
2874 | * infcmd.c: White space. | |
2875 | * inferior.c: White space. | |
2876 | * inf-loop.c: White space. | |
2877 | * inflow.c: White space. | |
2878 | * inline-frame.c: White space. | |
2879 | * interps.c: White space. | |
2880 | ||
d8734c88 MS |
2881 | * gcore.c: White space. |
2882 | * gdb.c: White space. | |
2883 | * gdbtypes.c: White space. | |
2884 | * gnu-nat.c: White space. | |
2885 | * gnu-v2-abi.c: White space. | |
2886 | * gnu-v3-abi.c: White space. | |
2887 | ||
bb9bcb69 MS |
2888 | * findcmd.c: White space. |
2889 | * findvar.c: White space. | |
2890 | * fork-child.c: White space. | |
2891 | * frame-base.c: White space. | |
2892 | * frame.c: White space. | |
2893 | * frame-unwind.c: White space. | |
2894 | * f-valprint.c: White space. | |
2895 | ||
d7f9d729 MS |
2896 | * elfread.c: White space. |
2897 | * environ.c: White space. | |
2898 | * eval.c: White space. | |
2899 | * event-loop.c: White space. | |
2900 | * event-top.c: White space. | |
2901 | * exceptions.c: White space. | |
2902 | * exec.c: White space. | |
2903 | * expprint.c: White space. | |
2904 | ||
9a619af0 MS |
2905 | * dbxread.c: White space. |
2906 | * dcache.c: White space. | |
2907 | * disasm.c: White space. | |
2908 | * doublest.c: White space. | |
2909 | * dsrec.c: White space. | |
2910 | * dummy-frame.c: White space. | |
2911 | * dwarf2expr.c: White space. | |
2912 | * dwarf2-frame.c: White space. | |
2913 | * dwarf2loc.c: White space. | |
2914 | * dwarf2read.c: White space. | |
2915 | ||
88d4aea7 PM |
2916 | 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> |
2917 | ||
2918 | PR python/11482 | |
2919 | ||
2920 | * python/py-value.c (valpy_hash): New function. | |
2921 | (value_object_type): Register valpy_hash. | |
2922 | ||
7a298875 | 2923 | 2010-05-14 Hui Zhu <teawater@gmail.com> |
0407b3f1 | 2924 | Michael Snyder <msnyder@vmware.com> |
7a298875 HZ |
2925 | |
2926 | * linux-fork.c (gdbthread.h): New include. | |
2927 | (fork_info): Add parent_ptid. | |
2928 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
2929 | functions. | |
2930 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
2931 | (checkpoint_command): Set parent_ptid. | |
2932 | ||
c14feecc MS |
2933 | 2010-05-13 Michael Snyder <msnyder@vmware.com> |
2934 | ||
6595d32b MS |
2935 | * dictionary.c: Re-indent to GNU coding standard. |
2936 | ||
c5504eaf MS |
2937 | * charset.c: White space. |
2938 | * c-lang.c: White space. | |
2939 | * cli-out.c: White space. | |
2940 | * coffread.c: White space. | |
2941 | * complaints.c: White space. | |
2942 | * completer.c: White space. | |
2943 | * corefile.c: White space. | |
2944 | * corelow.c: White space. | |
2945 | * cp-abi.c: White space. | |
2946 | * cp-namespace.c: White space. | |
2947 | * cp-support.c: White space. | |
2948 | * cp-valprint.c: White space. | |
2949 | * c-typeprint.c: White space. | |
2950 | * c-valprint.c: White space. | |
cc59ec59 MS |
2951 | * blockframe.c: White space. |
2952 | * breakpoint.c: White space. | |
2953 | * buildsym.c: White space. | |
2954 | * blockframe.c: White space. | |
b6de9da4 | 2955 | * bcache.c: White space. |
05c547f6 MS |
2956 | * gdbarch.sh: White space, add blank lines. |
2957 | * arch-utils.c: Ditto. | |
2958 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 2959 | * frame.c: White space, add blank lines. |
f89b749f MS |
2960 | * stack.c: White space, add blank lines. |
2961 | (initialize_stack): Remove long-dead code. | |
c14feecc | 2962 | |
a2d33775 JK |
2963 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2964 | ||
2965 | Code cleanup. | |
2966 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
2967 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
2968 | ||
33ac96f0 JK |
2969 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2970 | ||
2971 | Code cleanup. | |
2972 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
2973 | Remove check of NULL returned by tag_type_to_type. | |
2974 | (die_containing_type): Remove variable type. Remove type_die variable | |
2975 | initialization. Remove check of NULL returned by tag_type_to_type. | |
2976 | ||
f5a010c0 PM |
2977 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
2978 | ||
2979 | PR exp/11530. | |
2980 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
2981 | names of unnamed structures or unions. | |
2982 | ||
bf701c2c PM |
2983 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
2984 | ||
2985 | * procfs.c (proc_watchpoint_address): New function. | |
0407b3f1 | 2986 | (procfs_stopped_by_watchpoint): Remove useless check after |
bf701c2c PM |
2987 | find_procinfo_or_die call. |
2988 | (procfs_stopped_data_address): New function. | |
2989 | (procfs_use_watchpoints): Register new watchpoint related function. | |
2990 | ||
d02691ef TT |
2991 | 2010-05-11 Tom Tromey <tromey@redhat.com> |
2992 | ||
2993 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
2994 | ||
e0627e85 MS |
2995 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
2996 | ||
2997 | * utils.c: White space cleanup. | |
2998 | ||
cc73bb8c TT |
2999 | 2010-05-10 Tom Tromey <tromey@redhat.com> |
3000 | ||
3001 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
3002 | (evaluate_subexp_standard): Update. | |
3003 | (evaluate_subexp_with_coercion): Update. | |
3004 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
3005 | ||
c02866a0 MS |
3006 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
3007 | ||
3008 | * utils.c (do_fclose_cleanup) Restore local variable. | |
3009 | ||
06280d23 DE |
3010 | 2010-05-09 Doug Evans <dje@google.com> |
3011 | ||
3012 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
3013 | ||
fa07e785 JB |
3014 | 2010-05-08 Joel Brobecker <brobecker@adacore.com> |
3015 | ||
3016 | Implement task switching on pa-hpux. | |
3017 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
3018 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
3019 | ||
4c680d1d PM |
3020 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
3021 | ||
3022 | * valops.c (find_overload_match): Add missing i18n markup. | |
3023 | ||
28e176a6 PM |
3024 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
3025 | ||
3026 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
3027 | ||
48cb83fd JK |
3028 | 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3029 | ||
3030 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
3031 | list for the obconcat call. | |
3032 | * mdebugread.c (parse_symbol): Likewise. | |
3033 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
3034 | Likewise. | |
3035 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
3036 | New variable ap. Remove variables len and val. | |
3037 | * symfile.h (obconcat): Likewise for the prototype. | |
3038 | ||
f92adf3c MS |
3039 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
3040 | ||
3041 | * python/python.c (execute_gdb_command): Remove unused variables. | |
3042 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
0407b3f1 | 3043 | * python/py-breakpoint.c (gdbpy_breakpoint_created): |
f92adf3c MS |
3044 | Remove unused variable. |
3045 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
3046 | (cmdpy_completer): Remove unused variable. | |
3047 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
3048 | * python/py-function.c (fnpy_call): Remove unused variable. | |
3049 | * python/py-objfile.c (objfile_to_objfile_object): | |
3050 | Remove unused variable. | |
3051 | * python/py-param.c (parmpy_init): Remove unused variable. | |
0407b3f1 | 3052 | * python/py-prettyprint.c (apply_varobj_pretty_printer): |
f92adf3c MS |
3053 | Remove unused variable. |
3054 | (gdbpy_default_visualizer): Remove unused variable. | |
3055 | * python/py-progspace.c (pspace_to_pspace_object): | |
3056 | Remove unused variable. | |
0407b3f1 | 3057 | * python/py-symtab.c (symtab_and_line_to_sal_object): |
f92adf3c | 3058 | Remove unused variable. |
0407b3f1 | 3059 | * python/py-type.c (typy_template_argument): |
f92adf3c MS |
3060 | Remove unused variable. |
3061 | * python/py-value.c (valpy_string): Remove unused variable. | |
3062 | (convert_value_from_python): Remove unused variables. | |
3063 | ||
d160942f MS |
3064 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
3065 | ||
3066 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
3067 | and use it to compute variable 't1'. | |
3068 | ||
587542ab JB |
3069 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
3070 | ||
3071 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
3072 | ||
7322dca9 SW |
3073 | 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com> |
3074 | ||
3075 | PR C++/7943: | |
3076 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
3077 | Add int no_adl argument. | |
3078 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
3079 | when appropriate. | |
3080 | Add int no_adl argument. | |
3081 | (find_oload_champ_namespace): Add int no_adl argument. | |
3082 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
3083 | expression. | |
3084 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
3085 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
3086 | Evaluate arguments and use them to perform ADL lookup. | |
3087 | Pass no_adl argument to find_overload_match. | |
3088 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
3089 | * cp-support.h: Added prototype for | |
3090 | make_symbol_overload_list_namespace. | |
3091 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
3092 | (make_symbol_overload_list_adl_namespace): New function. | |
3093 | (make_symbol_overload_list_adl): New function. | |
3094 | (make_symbol_overload_list_using): Moved code to add function to | |
3095 | overload set to make_symbol_overload_list_namespace. | |
3096 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
3097 | Add parse rule for ADL functions. | |
3098 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
3099 | ||
3f1f6884 JK |
3100 | 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3101 | ||
3102 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
3103 | sentinel. | |
3104 | ||
3caf13b4 JB |
3105 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
3106 | ||
3107 | Implement task switching on solaris targets. | |
3108 | * sol-thread.c (thread_db_find_thread_from_tid) | |
3109 | (sol_get_ada_task_ptid): New functions. | |
3110 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
3111 | ||
94b0dee1 PA |
3112 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
3113 | ||
3114 | * remote.c (remote_query_supported_append): Use reconcat. | |
3115 | (remote_query_supported): Install a cleanup. Use reconcat. | |
3116 | ||
1408c251 PA |
3117 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
3118 | ||
3119 | * gdbarch.sh (qsupported): Delete. | |
3120 | * gdbarch.h, gdbarch.c: Regenerate. | |
3121 | * remote.c (remote_query_supported): Remove use of | |
3122 | gdbarch_qsupported. | |
3123 | ||
f8e50cfe SDJ |
3124 | 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
3125 | ||
3126 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
3127 | function. | |
3128 | ||
8ea13695 MS |
3129 | 2010-05-06 Michael Snyder <msnyder@vmware.com> |
3130 | ||
c6913b7d MS |
3131 | * xml-support.c (xinclude_start_include): Delete unused variable. |
3132 | (xml_process_xincludes): Delete unused variable. | |
3133 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
3134 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
3135 | (tdesc_find_arch_register): Delete unused variable. | |
3136 | (tdesc_use_registers): Delete unused variable. | |
3137 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
3138 | * inferior.c (print_inferior): Delete unused variable. | |
3139 | * record.c (record_open_1): Delete unused variable. | |
3140 | (record_restore): Delete unused variable. | |
3141 | (cmd_record_save): Delete unused variable. | |
3142 | * gcore.c (derive_heap_segment): Delete unused variable. | |
3143 | (objfile_find_memory_regions): Use unused variable. | |
3144 | * jit.c (jit_inferior_init): Delete unused variable. | |
3145 | * progspace.c (clone_program_space): Delete unused variable. | |
3146 | (pspace_empty_p): Delete unused variable. | |
0407b3f1 AS |
3147 | |
3148 | * frame-unwind.c (frame_unwind_find_by_frame): | |
1c5465ac MS |
3149 | Delete unused variable. |
3150 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
3151 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
3152 | (method_name_from_physname): Delete unused variable. | |
3153 | (cp_func_name): Delete unused variable. | |
3154 | (cp_validate_operator): Delete unused variable. | |
0407b3f1 | 3155 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): |
1c5465ac | 3156 | Delete unused variable. |
0407b3f1 | 3157 | * trad-frame.c (trad_frame_get_prev_register): |
1c5465ac MS |
3158 | Delete unused variable. |
3159 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
3160 | ||
1be757cf MS |
3161 | * serial.c (serial_for_fd): Delete unused variable. |
3162 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
3163 | * top.c (execute_command): Delete unused variable. | |
3164 | (init_main): Delete unused variable. | |
3165 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
3166 | (do_all_inferior_continuations): Delete unused variable. | |
3167 | (initialize_utils): Delete unused variable. | |
3168 | (internal_problem_mode): Delete unused global. | |
3169 | * frame.c (get_prev_frame): Delete unused global. | |
3170 | (get_frame_locals_address): Delete unused global. | |
3171 | (get_frame_args_address): Delete unused global. | |
3172 | ||
9216103f MS |
3173 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
3174 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
3175 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
3176 | (f_type_print_varspec_suffix): Delete unused variable. | |
3177 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
3178 | (m2_long_set): Delete unused variable. | |
3179 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
3180 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
0407b3f1 | 3181 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): |
9216103f MS |
3182 | Delete unused variable. |
3183 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
3184 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
3185 | ||
34fa1d9d MS |
3186 | * ui-out.c (ui_out_field_int): Delete unused variable. |
3187 | (ui_out_field_fmt_int): Delete unused variable. | |
3188 | * varobj.c (varobj_list_children): Delete unused variable. | |
3189 | (varobj_set_value): Delete unused variable. | |
3190 | (install_new_value_visualizer): Delete unused variable. | |
3191 | (varobj_set_visualizer): Delete unused variable. | |
3192 | (varobj_update): Delete unused variable. | |
3193 | (varobj_editable_p): Delete unused variable. | |
3194 | (c_value_of_root): Delete unused variable. | |
3195 | (cplus_describe_child): Delete unused variable. | |
3196 | ||
b5385fc0 MS |
3197 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
3198 | (decode_constrained_packed_array_type): Delete unused variable. | |
3199 | (add_defn_to_vec): Delete unused variable. | |
3200 | (symbol_completion_match): Delete unused variable. | |
3201 | (value_tag_from_contents_and_address): Delete unused variable. | |
3202 | (ada_evaluate_subexp): Delete unused variable. | |
3203 | * c-lang.c (classify_type): Delete unused variable. | |
3204 | * f-lang.c (f_printstr): Delete unused variable. | |
3205 | * objc-lang.c (objc_printstr): Delete unused variable. | |
3206 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
3207 | * jv-lang.c (type_from_class): ifdef unused variable. | |
3208 | (java_class_name_from_physname): Delete unused variable. | |
3209 | * m2-lang.c (m2_printstr): Delete unused variable. | |
3210 | ||
4fc06681 MS |
3211 | * objfiles.c (objfile_relocate): Delete unused variable. |
3212 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
3213 | * demangle.c (_initialize_demangler): Delete unused variable. | |
3214 | * corefile.c (reopen_exec_file): Delete unused variable. | |
3215 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
3216 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
3217 | ||
6b4398f7 MS |
3218 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
3219 | * memattr.c (mem_delete): Delete unused variable. | |
3220 | (invalidate_target_mem_regions): Delete unused variable. | |
3221 | * mem-break.c (default_memory_insert_breakpoint): | |
3222 | Delete unused variable. | |
3223 | * target.c (target_get_osdata): Delete unused variable. | |
3224 | * parse.c (length_of_subexp): Delete unused variable. | |
3225 | (prefixify_subexp): Delete unused variable. | |
3226 | (exp_iterate): Delete unused variable. | |
3227 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
3228 | ||
308d96ed MS |
3229 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
3230 | * macroexp.c (gather_arguments): Delete unused variable. | |
3231 | (substitute_args): Delete unused variable. | |
3232 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
3233 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
3234 | (_initialize_gdbarch): Delete unused variable. | |
3235 | * gdbarch.c, gdbarch.h: Regenerate. | |
0407b3f1 | 3236 | * arch-utils.c (initialize_current_architecture): |
308d96ed MS |
3237 | Delete unused variable. |
3238 | (_initialize_gdbarch_utils): Delete unused variable. | |
3239 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
3240 | (make_type_with_address_space): Delete unused variable. | |
3241 | ||
167e4384 MS |
3242 | * linespec.c (decode_compound): Delete unused variable. |
3243 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
3244 | * infcall.c (call_function_by_hand): Delete unused variable. | |
3245 | * infcmd.c (step_1): Delete unused variable. | |
3246 | (registers_info): Delete unused variable. | |
3247 | (attach_command): Delete unused variable. | |
3248 | * infrun.c (follow_exec): Delete unused variable. | |
3249 | (handle_step_into_function_backwards): Delete unused variable. | |
3250 | (_initialize_infrun): Delete unused variable. | |
3251 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
3252 | (frame_info): Delete unused variable. | |
3253 | (backtrace_command_1): Delete unused variable. | |
3254 | (catch_info): Delete unused variable. | |
3255 | ||
8f78b329 MS |
3256 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
3257 | * valops.c (value_cast_pointers): Delete unused variable. | |
3258 | (value_dynamic_cast): Delete unused variable. | |
3259 | (value_array): Delete unused variable. | |
3260 | (find_overload_match): Delete unused variable. | |
3261 | * valarith.c (value_subscript): Delete unused variable. | |
3262 | (value_binop): Delete unused variable. | |
3263 | * valprint.c (_initialize_valprint): Delete unused variable. | |
3264 | * printcmd.c (print_command_1): Delete unused variable. | |
3265 | (address_info): Delete unused variable. | |
3266 | (printf_command): Delete unused variable. | |
3267 | ||
8ea13695 MS |
3268 | * auxv.c (target_auxv_search): Delete unused variable. |
3269 | * blockframe.c (get_frame_block): Delete unused variable. | |
3270 | * regcache.c (regcache_cpy): Delete unused variable. | |
3271 | (regcache_cpy_no_passthrough): Delete unused variable. | |
3272 | * charset.c (wchar_iterate): Delete unused variable. | |
3273 | (find_charset_names): Delete unused variable. | |
3274 | (_initialize_charset): Delete unused variable. | |
0407b3f1 | 3275 | * disasm.c (do_mixed_source_and_assembly): |
8ea13695 | 3276 | Delete unused variable. |
0407b3f1 | 3277 | * source.c (set_default_source_symtab_and_line): |
8ea13695 MS |
3278 | Delete unused variable. |
3279 | (set_substitute_path_command): Delete unused variable. | |
3280 | * value.c (preserve_values): Delete unused variable. | |
3281 | (value_from_double): Delete unused variable. | |
3282 | ||
afe38095 MS |
3283 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
3284 | ||
952a6d41 MS |
3285 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
3286 | (find_last_source_symtab_from_partial): Delete unused variable. | |
3287 | * symfile.c (place_section): Delete unused variable. | |
3288 | (default_symfile_offsets): Delete unused variable. | |
3289 | (get_debug_link_info): Delete unused variable. | |
3290 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
3291 | (add_symbol_file_command): Delete unused variable. | |
3292 | (symfile_find_segment_sections): Delete unused variable. | |
3293 | * symmisc.c (free_symtab): Delete unused variable. | |
3294 | (dump_symtab_1): Delete unused variable. | |
3295 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
3296 | (find_pc_sect_symtab): Delete unused variable. | |
3297 | (skip_prologue_using_lineinfo): Delete unused variable. | |
3298 | (sources_info): Delete unused variable. | |
3299 | (completion_list_add_name): Delete unused variable. | |
3300 | (expand_line_sal): Delete unused variable. | |
3301 | ||
0407b3f1 | 3302 | * breakpoint.c (validate_commands_for_breakpoint): |
afe38095 MS |
3303 | Delete unused variables. |
3304 | (insert_catchpoint): Delete unused variable. | |
3305 | (update_watchpoint): Delete unused variable. | |
3306 | (insert_bp_location): Delete unused variable. | |
3307 | (insert_breakpoint_locations): Delete unused variable. | |
3308 | (remove_breakpoint_1): Delete unused variable. | |
3309 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
3310 | (watchpoints_triggered): Delete unused variable. | |
3311 | (bpstat_check_watchpoint): Delete unused variable. | |
3312 | (bpstat_stop_status): Delete unused variable. | |
3313 | (print_one_breakpoint_location): Delete unused variable. | |
3314 | (allocate_bp_location): Delete unused variable. | |
3315 | (create_breakpoint): Delete unused variable. | |
3316 | (watch_command_1): Delete unused variable. | |
3317 | (catch_exception_command_1): Delete unused variable. | |
3318 | (catch_ada_exception_command): Delete unused variable. | |
3319 | (delete_breakpoint): Delete unused variable. | |
3320 | (breakpoint_re_set_one): Delete unused variable. | |
3321 | (do_enable_breakpoint): Delete unused variable. | |
3322 | ||
eda5a4d7 PA |
3323 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
3324 | ||
3325 | * amd64-tdep.c: Include disasm.h. | |
3326 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
3327 | (amd64_insn_length): Moved to disasm.c and renamed. | |
3328 | (fixup_riprel): Adjust. | |
3329 | * disasm.c (do_ui_file_delete): New. | |
3330 | (gdb_insn_length): New. | |
3331 | (gdb_buffered_insn_length_fprintf) | |
3332 | (gdb_buffered_insn_length_init_dis) | |
3333 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
3334 | renamed. | |
3335 | * disasm.h (gdb_insn_length): Declare. | |
3336 | (gdb_buffered_insn_length): Declare. | |
3337 | ||
02357a4a PA |
3338 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
3339 | ||
3340 | * remote.c (clear_threads_parsing_context): New. | |
3341 | (remote_threads_info): Delete unused null_cleanup. Install a | |
3342 | cleanup to clear the threads_parsing_context in case parsing | |
3343 | throws. | |
3344 | ||
8c5630cb MS |
3345 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
3346 | ||
3347 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
3348 | (c_lex): Delete unused variable. | |
3349 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
3350 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
3351 | (write_var_or_type): Delete unused variable. | |
3352 | * jv-exp.y (java_parse): Delete unused variable. | |
3353 | (push_expression_name): Delete unused variable. | |
3354 | * p-exp.y (pascal_lex): Delete unused variable. | |
3355 | ||
46c162d4 PA |
3356 | 2010-05-05 Pedro Alves <pedro@codesourcery.com> |
3357 | ||
3358 | * remote.c (remote_threads_info): Really revert previous previous | |
3359 | change. | |
3360 | ||
0043e6a5 MS |
3361 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
3362 | ||
fa238c03 MS |
3363 | * elfread.c (elf_symtab_read): Delete unused variable. |
3364 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
3365 | (elf_symfile_read): Delete unused variable. | |
3366 | ||
3367 | * coffread.c (coff_symfile_read): Delete unused variables. | |
3368 | ||
3369 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
3370 | (read_pe_exported_syms): Delete unused variable. | |
3371 | ||
3372 | * stabsread.c (define_symbol): Delete unused variable. | |
3373 | ||
3374 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
3375 | (process_psymtab_comp_unit): Delete unused variable. | |
3376 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
3377 | (load_partial_comp_unit): Delete unused variable. | |
3378 | (create_all_comp_units): Delete unused variable. | |
3379 | (scan_partial_symbols): Delete unused variable. | |
3380 | (add_partial_symbol): Delete unused variable. | |
3381 | (add_partial_namespace): Delete unused variable. | |
3382 | (add_partial_enumeration): Delete unused variable. | |
3383 | (load_full_comp_unit): Delete unused variable. | |
3384 | (process_full_comp_unit): Delete unused variable. | |
3385 | (read_file_scope): Delete unused variable. | |
3386 | (read_type_unit_scope): Delete unused variable. | |
3387 | (process_structure_scope): Delete unused variable. | |
3388 | (process_enumeration_scope): Delete unused variable. | |
3389 | (read_tag_ptr_to_member_type): Delete unused variable. | |
3390 | (read_typedef): Delete unused variable. | |
3391 | (read_partial_die): Delete unused variable. | |
3392 | (decode_locdesc): Delete unused variable. | |
3393 | (zeroed_partial_die): Delete unused global variable. | |
3394 | ||
0407b3f1 | 3395 | * tui/tui-interp.c (_initialize_tui_interp): |
0043e6a5 | 3396 | Delete unused variable. |
0407b3f1 | 3397 | * tui/tui-regs.c tui_display_registers_from): |
0043e6a5 MS |
3398 | Delete unused variable. |
3399 | (tui_check_register_values): Delete unused variable. | |
3400 | (tui_register_format): Delete unused variable. | |
3401 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
0407b3f1 | 3402 | * tui/tui-windata.c (tui_display_data_from_line): |
0043e6a5 MS |
3403 | Delete unused variables. |
3404 | (tui_vertical_data_scroll): Delete unused variables. | |
3405 | ||
75721c66 MS |
3406 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
3407 | ||
c31a71f4 MS |
3408 | * remote.c (remote_threads_info): Revert questionable part of |
3409 | the previous change. | |
3410 | ||
3411 | 2010-05-05 Michael Snyder <msnyder@vmware.com> | |
3412 | ||
3413 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
3414 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
3415 | (mi_cmd_var_list_children): Delete unused variable. | |
3416 | (varobj_update_one): Delete unused variable. | |
3417 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
0407b3f1 | 3418 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): |
c31a71f4 MS |
3419 | Delete unused variable. |
3420 | (mi_cmd_stack_list_variables): Delete unused variable. | |
3421 | (list_args_or_locals): Delete unused variable. | |
0407b3f1 | 3422 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): |
c31a71f4 MS |
3423 | Delete unused variables. |
3424 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
0407b3f1 | 3425 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): |
c31a71f4 MS |
3426 | Delete unused variable. |
3427 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
3428 | (mi_cmd_interpreter_exec): Delete unused variable. | |
3429 | (mi_on_normal_stop): Delete unused variable. | |
3430 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
3431 | (print_one_inferior): Delete unused variables. | |
3432 | (mi_execute_command): Delete unused variable. | |
3433 | (mi_cmd_execute): Delete unused variable. | |
3434 | (timestamp): Delete unused variable. | |
3435 | ||
3436 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 3437 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
3438 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
3439 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
3440 | (recurse_read_control_structure): Delete unused variable. |
3441 | (script_from_file): Delete unused variable. | |
c31a71f4 | 3442 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
3443 | (disassemble_command): Delete unused variable. |
3444 | ||
3445 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
0407b3f1 | 3446 | * tracepoint.c (delete_trace_variable_command): |
d36fc00b MS |
3447 | Delete unused variables. |
3448 | (encode_actions_1): Delete unused variables. | |
3449 | (start_tracing): Delete unused variable. | |
3450 | (trace_status_mi): Delete unused variable. | |
3451 | (tfind_1): Delete unused variable. | |
3452 | (trace_find_pc_command): Delete unused variable. | |
3453 | (trace_find_line_command): Delete unused variables. | |
3454 | (trace_find_range_command): Delete unused variables. | |
3455 | (trace_find_outside_command): Delete unused variables. | |
3456 | (parse_tracepoint_definition): Delete unused variables. | |
3457 | (tfile_fetch_registers): Delete unused variable. | |
3458 | ||
9128a503 MS |
3459 | * dcache.c (dcache_init): Delete unused variable. |
3460 | (dcache_info): Delete unused variable. | |
3461 | ||
aa369b55 | 3462 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 3463 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
3464 | (remote_get_trace_status): Delete unused variables. |
3465 | ||
9e9547e4 MS |
3466 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
3467 | (thread_from_lwp): Delete unused variable. | |
3468 | (enable_thread_event_reporting): Delete unused variable. | |
3469 | (check_for_thread_db): Delete unused variables. | |
3470 | (thread_db_find_new_threads_2): Delete unused variable. | |
0407b3f1 | 3471 | |
9e9547e4 MS |
3472 | * linux-fork.c (info_checkpoints_command): Delete unused variables. |
3473 | (checkpoint_command): Delete unused variable. | |
3474 | (linux_fork_context): Delete unused variables. | |
3475 | ||
fa238c03 | 3476 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
3477 | (linux_tracefork_child): Delete unused variable. |
3478 | (linux_child_follow_fork): Delete unused variable. | |
3479 | (linux_nat_detach): Delete unused variable. | |
3480 | (linux_handle_extended_wait): Delete unused variable. | |
3481 | (linux_nat_has_pending_sigint): Delete unused variable. | |
3482 | (linux_nat_find_memory_regions): Delete unused variable. | |
3483 | (linux_nat_make_corefile_notes): Delete unused variables. | |
3484 | (linux_nat_info_proc_cmd): Delete unused variable. | |
3485 | (linux_proc_pending_signals): Delete unused variable. | |
3486 | (linux_nat_stop_lwp): Delete unused variables. | |
3487 | (_initialize_linux_nat): Delete unused variable. | |
3488 | ||
fa238c03 | 3489 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 3490 | |
0407b3f1 | 3491 | * linux-record.c (record_linux_system_call): |
e0f069a3 MS |
3492 | Delete unused variables. |
3493 | ||
789d24f0 MS |
3494 | * corelow.c (core_xfer_partial): Delete unused variables. |
3495 | ||
1cd337a5 | 3496 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
0407b3f1 | 3497 | (svr4_solib_create_inferior_hook): Add ifdef around |
1cd337a5 MS |
3498 | conditionally-used variable declarations. |
3499 | ||
b00e3f56 MS |
3500 | * solib.c (solib_find): Delete unused variable. |
3501 | (free_so_symbols): Delete unused variable. | |
3502 | (info_sharedlibrary_command): Delete unused variable. | |
3503 | (reload_shared_libraries_1): Delete unused variable. | |
3504 | (_initialize_solib): Delete unused variable. | |
3505 | ||
90f62196 MS |
3506 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
3507 | (i386_collect_xstateregset): Delete unused variable. | |
3508 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
3509 | ||
75721c66 MS |
3510 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
3511 | Delete unused variable 'type'. | |
3512 | ||
af33db37 JB |
3513 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
3514 | ||
90f62196 | 3515 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
3516 | ada-lang.c: Remove comment mentioning these macros. |
3517 | * m2-exp.y: Delete commented out code. | |
af33db37 | 3518 | |
0497f5b0 JB |
3519 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
3520 | ||
3521 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
3522 | for array types. | |
3523 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
3524 | ||
6e39997a PM |
3525 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
3526 | ||
3527 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
0407b3f1 | 3528 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove |
6e39997a PM |
3529 | ATTRIBUTE_UNUSED. |
3530 | (cleanup_kernel_helper_return): Likewise. | |
3531 | * arm-tdep.c (copy_unmodified): Likewise. | |
3532 | (copy_preload): Likewise. | |
3533 | (copy_copro_load_store): Likewise. | |
3534 | (cleanup_branch): Likewise. | |
3535 | (copy_b_bl_blx): Likewise. | |
3536 | (copy_bx_blx_reg): Likewise. | |
3537 | (copy_alu_imm): Likewise. | |
3538 | (copy_alu_reg): Likewise. | |
3539 | (copy_alu_shifted_reg): Likewise. | |
3540 | (cleanup_load): Likewise. | |
3541 | (cleanup_store): Likewise. | |
3542 | (cleanup_block_load_pc): Likewise. | |
3543 | (cleanup_svc): Likewise. | |
3544 | (copy_undef): Likewise. | |
3545 | (copy_unpred): Likewise. | |
3546 | * remote.c (register_remote_support_xml): Likewise. | |
3547 | ||
1412f70b HZ |
3548 | 2010-05-05 Hui Zhu <teawater@gmail.com> |
3549 | ||
3550 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
3551 | ||
c4f7c687 MK |
3552 | 2010-05-04 Mark Kettenis <kettenis@gnu.org> |
3553 | ||
3554 | * remote.c (register_remote_support_xml) | |
3555 | (remote_query_supported_append, remote_query_supported): Add cast | |
3556 | to NULL used as sentinel. | |
3557 | * tracepoint.c (tvariables_info_1): Likewise. | |
3558 | * utils.c (add_internal_problem_command): Likewise. | |
3559 | ||
63b4f126 MGD |
3560 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
3561 | ||
3562 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
3563 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
3564 | registers gracefully. | |
3565 | ||
2f1bdd26 MGD |
3566 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
3567 | ||
0407b3f1 | 3568 | * exec.c (print_section_info): Display entry point without arch |
2f1bdd26 MGD |
3569 | specific parts. |
3570 | ||
e1c34c5d PM |
3571 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
3572 | ||
3573 | PR exp/11349. | |
3574 | * printcmd.c (x_command): Only dereference once implicitly for | |
3575 | TYPE_CODE_REF. | |
3576 | ||
ae462839 DE |
3577 | 2010-05-03 Doug Evans <dje@google.com> |
3578 | ||
3579 | * event-loop.c (gdb_timer): Delete unused global. | |
3580 | (create_timer): Update. | |
3581 | ||
1ac77ea1 JK |
3582 | 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3583 | ||
3584 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
3585 | CURRENT->DECLARATION case. | |
3586 | * cp-support.h (struct using_direct): Provide extended comment. | |
3587 | ||
7c54a108 MK |
3588 | 2010-05-03 Mark Kettenis <kettenis@gnu.org> |
3589 | ||
3590 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
3591 | HPPABSD_SIZEOF_GREGS. | |
3592 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
3593 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
3594 | (hppaobsd_supply_fpregset): New function. | |
3595 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
3596 | (hppaobsd_fpregset): New variable. | |
3597 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
3598 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
3599 | ||
278582cb PM |
3600 | 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
3601 | ||
3602 | PR pascal/11349. | |
3603 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
3604 | type code TYPE_CODE_REF. | |
0407b3f1 | 3605 | |
f0223081 PA |
3606 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
3607 | ||
3608 | * remote.c (remote_notice_signals): New. | |
3609 | (remote_start_remote): In non-stop mode, update the remote end on | |
3610 | which signals it can silently pass. | |
3611 | (init_remote_ops): Install remote_notice_signals. | |
3612 | ||
c25c4a8b JK |
3613 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3614 | ||
3615 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
3616 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
3617 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3618 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
3619 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
3620 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
3621 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3622 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
3623 | (throw_vfatal, throw_error): Remove NORETURN. | |
3624 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3625 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
3626 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
3627 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3628 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
3629 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
3630 | NORETURN. | |
3631 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
3632 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
3633 | ATTRIBUTE_NORETURN. | |
3634 | * target.c (tcomplain): Likewise. | |
3635 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
3636 | ATTRIBUTE_NORETURN. | |
3637 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
3638 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
3639 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
3640 | ATTRIBUTE_NORETURN. | |
3641 | ||
a0b31db1 JK |
3642 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3643 | ||
3644 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3645 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
3646 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
3647 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3648 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
3649 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3650 | * complaints.h (complaint, internal_complaint): Likewise. | |
3651 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
3652 | (ATTR_FORMAT): Remove. | |
3653 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
3654 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
3655 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
3656 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
3657 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
3658 | (internal_error, internal_vwarning, internal_warning, warning) | |
3659 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3660 | * disasm.c (fprintf_disasm): Likewise. | |
3661 | * exceptions.c (throw_it): Likewise. | |
3662 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
3663 | (throw_error): Likewise. | |
3664 | * language.h (type_error, range_error): Likewise. | |
3665 | * linespec.c (cplusplus_error): Likewise. | |
3666 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
3667 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
3668 | * monitor.c (monitor_debug): Likewise. | |
3669 | * parser-defs.h (parser_fprintf): Likewise. | |
3670 | * serial.h (serial_printf): Likewise. | |
3671 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
3672 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
3673 | (uo_message): Likewise. | |
3674 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
3675 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
3676 | Likewise. | |
3677 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
3678 | ||
02a45ac0 PA |
3679 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
3680 | ||
3681 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
3682 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
3683 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
3684 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
3685 | Delete forward declarations. | |
3686 | (cli_ui_out_impl): Move below the callbacks. | |
3687 | (_initialize_cli_out): Delete. | |
3688 | ||
1915ef4f PA |
3689 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
3690 | ||
3691 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
3692 | ||
0dfb946f JK |
3693 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3694 | ||
3695 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
3696 | ||
4d533103 PA |
3697 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
3698 | ||
3699 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
3700 | the thread that got the event before handling the event. | |
3701 | ||
705b5767 TT |
3702 | 2010-04-30 Tom Tromey <tromey@redhat.com> |
3703 | ||
3704 | * symtab.c (symbol_set_names): Fix typo. | |
3705 | ||
3c0ee1a4 PM |
3706 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
3707 | ||
3708 | * python/py-param.c (parm_constants): Avoid ARI warning | |
3709 | by adding ARI comment. | |
3710 | (parmpy_init): Likewise. | |
3711 | ||
ea1fae46 PM |
3712 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
3713 | ||
3714 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
3715 | and created type for re-use. | |
3716 | ||
c24d0242 PM |
3717 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
3718 | ||
3719 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
3720 | ||
a26d8d11 DE |
3721 | 2010-04-29 Doug Evans <dje@google.com> |
3722 | ||
3723 | * ser-base.h (reschedule): Delete prototype. | |
3724 | * ser-base.c (reschedule): Make static. | |
3725 | ||
f8624c62 MGD |
3726 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
3727 | ||
3728 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
3729 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
0407b3f1 | 3730 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for |
f8624c62 | 3731 | EABI. |
0407b3f1 | 3732 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in |
f8624c62 MGD |
3733 | use. |
3734 | ||
e66408ed PA |
3735 | 2010-04-29 Pedro Alves <pedro@codesourcery.com> |
3736 | ||
3737 | PR gdb/11557 | |
3738 | ||
3739 | * regcache.c (registers_changed): Rename to ... | |
3740 | (registers_changed_ptid): ... this, and only delete register cache | |
3741 | entries matching the ptid filter argument. | |
3742 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
3743 | * regcache.h (registers_changed_ptid): Declare. | |
3744 | * target.c (target_resume): Flush register caches. | |
3745 | ||
d7b32ed3 | 3746 | 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> |
0407b3f1 AS |
3747 | Tom Tromey <tromey@redhat.com> |
3748 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3749 | ||
3750 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
3751 | (SUBDIR_PYTHON_SRCS): Likewise. | |
3752 | (py-parameter.o): New rule. | |
3753 | * python/py-parameter.c: New file. | |
3754 | * python/python-internal.h (gdbpy_initialize_parameter) | |
3755 | (gdbpy_parameter, gdbpy_parameter_value) | |
3756 | (gdbpy_parse_command_name): Declare. | |
3757 | * python/py-cmd.c (parse_command_name): Rename to | |
3758 | gdbpy_parse_command_name. | |
3759 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
3760 | use over cmdlist. | |
3761 | (cmdpy_init): Use gdbpy_parse_command_name. | |
3762 | * python/python.c (parameter_to_python): Rename to | |
3763 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
3764 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
3765 | (_initialize_python): Call gdbpy_initialize_parameters. | |
d7b32ed3 | 3766 | |
ce72ce41 MGD |
3767 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
3768 | ||
3769 | * MAINTAINERS: Add myself for write after approval privileges. | |
3770 | ||
6aecb9c2 JB |
3771 | 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com> |
3772 | ||
3773 | D language support. | |
3774 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
3775 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
3776 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
3777 | * NEWS: Mention D language support. | |
3778 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
3779 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
3780 | * d-lang.c: New file. | |
3781 | * d-lang.h: New file. | |
3782 | * d-valprint.c: New file. | |
3783 | * defs.h (enum language): Add language_d. | |
3784 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
3785 | * language.c (binop_result_type, integral_type, character_type) | |
3786 | (string_type, boolean_type, structured_type): Add language_d. | |
3787 | * symfile.c (init_filename_language_table): Add language_d. | |
3788 | * symtab.c: Include d-lang.h. | |
3789 | (symbol_init_language_specific, symbol_find_demangled_name) | |
3790 | (symbol_natural_name, lookup_symbol_in_language) | |
3791 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
3792 | ||
6f992fbf JB |
3793 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
3794 | ||
3795 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
3796 | ||
dde59185 JB |
3797 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
3798 | ||
3799 | * symfile.c (init_filename_language_table): Register .dg files | |
3800 | with language_ada. | |
3801 | ||
d09ce91e JB |
3802 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
3803 | ||
3804 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
3805 | field. | |
3806 | ||
67f1675e JB |
3807 | 2010-04-27 Pedro Alves <pedro@codesourcery.com> |
3808 | Tristan Gingold <gingold@adacore.com> | |
02aeec7b JB |
3809 | |
3810 | * symfile.c (reread_symbols): Also search for file in libraries. | |
3811 | Update comment. | |
3812 | ||
dfd0fe27 JB |
3813 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
3814 | ||
3815 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
3816 | in terms of configuration. | |
3817 | ||
0133421a JK |
3818 | 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3819 | ||
3820 | * objfiles.c: Include solist.h. | |
3821 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
3822 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
3823 | and no_shared_libraries. | |
3824 | ||
e78f4312 JB |
3825 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
3826 | ||
3827 | ARI warning fix. | |
3828 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
3829 | new-line in i18n string. | |
3830 | ||
9214d371 DE |
3831 | 2010-04-26 Doug Evans <dje@google.com> |
3832 | ||
3833 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
3834 | ||
3f172e24 TT |
3835 | 2010-04-26 Tom Tromey <tromey@redhat.com> |
3836 | ||
3837 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
3838 | command list. | |
3839 | ||
e790e06e PM |
3840 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
3841 | ||
3842 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
3843 | * config/i386/nm-i386sol2.h: Remove file. | |
3844 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
3845 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
3846 | * config/djgpp/fnchange.lst: Remove reference to that file. |
3847 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 3848 | |
b7da9e9f PM |
3849 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
3850 | ||
3851 | PR breakpoints/11531. | |
3852 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
3853 | macro definition and related comment. | |
3854 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
3855 | (resume): Remove code and comment related to this macro. | |
3856 | ||
72f6eb52 JK |
3857 | 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3858 | ||
3859 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
3860 | Fix whitespace. | |
3861 | ||
ab38a727 PA |
3862 | 2010-04-24 Pedro Alves <pedro@codesourcery.com> |
3863 | ||
3864 | * defs.h: Adjust comment. | |
3865 | * filesystem.h, filesystem.c: New files. | |
3866 | * Makefile.in (SFILES): Add filesystem.c. | |
3867 | (COMMON_OBS): Add filesystem.o. | |
3868 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
3869 | different target and host path flavours. | |
3870 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
3871 | has_dos_based_file_system on the gdbarch. | |
3872 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
3873 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
3874 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
3875 | * gdbarch.sh (has_dos_based_file_system): New. | |
3876 | * gdbarch.h, gdbarch.c: Regenerate. | |
3877 | * NEWS: Mention improved support for remote targets with DOS-based | |
3878 | filesystems. Mention new `set/show target-file-system-kind' | |
3879 | commands. | |
3880 | ||
35c9c7ba SS |
3881 | 2010-04-23 Stan Shebs <stan@codesourcery.com> |
3882 | ||
3883 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
3884 | comments. | |
3885 | (struct agent_reqs): Remove. | |
3886 | (ax_reg_mask): Declare. | |
3887 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
3888 | (free_agent_expr): Free reg_mask. | |
3889 | (ax_print): Add scope and register mask info. | |
3890 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
3891 | fields, and move part of register mask computation to... | |
3892 | (ax_reg_mask): New function. | |
3893 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
3894 | (gen_traced_pop): Ditto. | |
3895 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
3896 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
3897 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
3898 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
3899 | (agent_command): Call ax_reqs. | |
3900 | (agent_eval_command): Ditto. | |
3901 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
3902 | (validate_action_line): Ditto. | |
3903 | (collect_symbol): Ditto. | |
3904 | (encode_actions_1): Ditto. | |
3905 | ||
492928e4 JK |
3906 | 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
3907 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
3908 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3909 | ||
3910 | Fix deadlock on looped list of loaded shared objects. | |
3911 | * solib-svr4.c (LM_PREV): New function. | |
3912 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
3913 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
3914 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
3915 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
3916 | ||
66d09542 DE |
3917 | 2010-04-23 Doug Evans <dje@google.com> |
3918 | ||
88a1906b DE |
3919 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
3920 | python. | |
3921 | * configure: Regenerate. | |
3922 | * main.c: #include "python/python.h". | |
3923 | (captured_main): Defer loading auto-loaded scripts until after | |
3924 | local_gdbinit has been sourced. | |
3925 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
3926 | (load_auto_scripts_for_objfile): New function. | |
3927 | (auto_load_new_objfile): Call it. | |
3928 | * python/python.h (gdbpy_global_auto_load): Declare. | |
3929 | (load_auto_scripts_for_objfile): Declare. | |
3930 | ||
66d09542 DE |
3931 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
3932 | * NEWS: Add entry for .debug_gdb_scripts. | |
3933 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
3934 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
3935 | (py-auto-load.o): New rule. | |
3936 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
3937 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
3938 | * python/py-auto-load.c: New file. | |
3939 | * python/python-internal.h: #include <stdio.h>. | |
3940 | (set_python_list, show_python_list): Declare. | |
3941 | (gdbpy_initialize_auto_load): Declare. | |
3942 | (source_python_script_for_objfile): Declare. | |
3943 | * python/python.c: Remove #include of observer.h. | |
3944 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
3945 | (GDBPY_AUTO_FILENAME): Ditto. | |
3946 | (gdbpy_new_objfile): Delete. | |
3947 | (source_python_script_for_objfile): New function. | |
3948 | (set_python_list, show_python_list): Make externally visible. | |
3949 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
3950 | and observer_attach_new_objfile to py-auto-load.c. | |
3951 | ||
3a48e6ff | 3952 | 2010-04-23 Jerome Guitton <guitton@adacore.com> |
0407b3f1 | 3953 | |
3a48e6ff JG |
3954 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) |
3955 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
3956 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
3957 | New constants. | |
3958 | (alpha_heuristic_analyze_probing_loop): New function. | |
3959 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
3960 | and handle cases when a stack probe loop is generated. | |
3961 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
3962 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
3963 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
3964 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
3965 | Return 0 when the maximum debuggable frame size has been exceeded. | |
3966 | ||
e4166a49 JB |
3967 | 2010-04-23 Joel Brobecker <brobecker@adacore.com> |
3968 | ||
3969 | Fix ARI warning. | |
3970 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
3971 | ||
8bd10a10 CM |
3972 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
3973 | ||
3974 | PR 10179 | |
3975 | ||
3976 | * symtab.c (rbreak_command): Added code to include a filename | |
3977 | specification in the rbreak argument. | |
3978 | * NEWS: Added a brief description of filename-qualified rbreak. | |
3979 | ||
c0201579 JK |
3980 | 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3981 | ||
3982 | Fix crashes on dangling display expressions. | |
3983 | * ada-lang.c (ada_operator_check): New function. | |
3984 | (ada_exp_descriptor): Fill-in the field operator_check. | |
3985 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
3986 | * jv-lang.c (exp_descriptor_java): Likewise. | |
3987 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
3988 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
3989 | * parse.c (exp_descriptor_standard): Likewise. | |
3990 | (operator_check_standard): New function. | |
3991 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
3992 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
3993 | (operator_check_standard, exp_uses_objfile): New declarations. | |
3994 | * printcmd.c: Remove the inclusion of solib.h. | |
3995 | (display_uses_solib_p): Remove the function. | |
3996 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
3997 | and exp_uses_objfile instead of display_uses_solib_p. | |
3998 | * solist.h (struct so_list) <objfile>: New comment. | |
3999 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
4000 | * symtab.h (lookup_objfile_from_block): New declaration. | |
4001 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
4002 | ||
6ffbb7ab TJB |
4003 | 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
4004 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
4005 | ||
4006 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
4007 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
4008 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
4009 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
4010 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
4011 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
4012 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
4013 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
4014 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
4015 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
4016 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
4017 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
4018 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
4019 | Define, in case <ptrace.h> doesn't provide it. | |
4020 | (booke_debug_info): New variable. | |
4021 | (max_slots_number): Ditto. | |
4022 | (hw_break_tuple): New struct. | |
4023 | (thread_points): Ditto. | |
4024 | (ppc_threads): New variable. | |
4025 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
4026 | (have_ptrace_new_debug_booke): New function. | |
4027 | (ppc_linux_check_watch_resources): Renamed to ... | |
4028 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
4029 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
4030 | (booke_cmp_hw_point): New function. | |
4031 | (booke_find_thread_points_by_tid): Ditto. | |
4032 | (booke_insert_point): Ditto. | |
4033 | (booke_remove_point): Ditto. | |
4034 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
4035 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
4036 | (get_trigger_type): Ditto. | |
4037 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
4038 | (ppc_linux_remove_watchpoint): Ditto. | |
4039 | (ppc_linux_new_thread): Ditto. | |
4040 | (ppc_linux_thread_exit): New function.. | |
4041 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
4042 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
4043 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
4044 | to_remove_hw_breakpoint fields of the target operations struct. | |
4045 | Add observe for the thread_exit event. | |
4046 | ||
be0d2954 L |
4047 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
4048 | ||
4049 | * i386-linux-nat.c (regmap): Removed. | |
4050 | (fetch_register): Replace regmap with | |
4051 | i386_linux_gregset_reg_offset. | |
4052 | (store_register): Likewise. | |
4053 | (supply_gregset): Likewise. | |
4054 | (fill_gregset): Likewise. | |
4055 | ||
4056 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
4057 | global. | |
4058 | ||
4059 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
4060 | ||
f56dcb88 CM |
4061 | 2010-04-22 Chris Moller <cmoller@redhat.com> |
4062 | ||
4063 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
4064 | method of popping recursion-detection stack with a method based on |
4065 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
4066 | the static array obstack rather than the static member obstack.) |
4067 | ||
6cd6a2ae L |
4068 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
4069 | ||
4070 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
4071 | (_initialize_amd64_linux_nat): Replace | |
4072 | amd64_linux_gregset64_reg_offset with | |
4073 | amd64_linux_gregset_reg_offset. | |
4074 | ||
4075 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
4076 | global. | |
4077 | ||
4078 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
4079 | ||
621791b8 PM |
4080 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
4081 | ||
4082 | PR stabs/11479. | |
4083 | * stabsread.c (set_length_in_type_chain): New function. | |
4084 | (read_struct_type): Call set_length_in_type_chain function. | |
4085 | (read_enum_type): Idem. | |
4086 | ||
105c2d85 SS |
4087 | 2010-04-21 Stan Shebs <stan@codesourcery.com> |
4088 | Nathan Sidwell <nathan@codesourcery.com> | |
4089 | ||
4090 | * tracepoint.c (trace_save): Open in binary mode. | |
4091 | ||
9a22f0d0 PM |
4092 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
4093 | ||
4094 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
4095 | fields. | |
0407b3f1 | 4096 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and |
9a22f0d0 PM |
4097 | builtin_char32 fields. |
4098 | * printcmd.c (decode_format): Set char size to '\0' | |
4099 | for strings unless explicit size is given. | |
4100 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
4101 | for 16 or 32 bit strings. | |
4102 | (do_examine): Do not force byte size for strings. | |
4103 | Use builtin_char16 and builtin_char32 types to display | |
0407b3f1 | 4104 | 16 or 32 bit-wide strings. |
9a22f0d0 PM |
4105 | (x_command): Set LAST_SIZE to 'b' for string type. |
4106 | ||
f335d1b3 L |
4107 | 2010-04-21 H.J. Lu <hongjiu.lu@intel.com> |
4108 | ||
4109 | PR corefiles/11523 | |
4110 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
4111 | XCR0 first. | |
4112 | ||
4113 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
4114 | there is no .reg-xstate section. | |
4115 | (i386_linux_core_read_description): Check XCR0 first. | |
4116 | ||
a9789a6b MF |
4117 | 2010-04-21 Mike Frysinger <vapier@gentoo.org> |
4118 | ||
4119 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
4120 | for len <= 8. | |
4121 | ||
0b66f317 CM |
4122 | 2010-04-21 Chris Moller <cmoller@redhat.com> |
4123 | ||
4124 | PR 9167 | |
4125 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
4126 | method of popping recursion-detection stack with a method based on |
4127 | obstack_object_size(). | |
0b66f317 | 4128 | |
6e354e5e PM |
4129 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4130 | ||
4131 | PR pascal/11492. | |
4132 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
4133 | arrays. | |
4134 | ||
57174f31 PM |
4135 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4136 | ||
4137 | Fix compilation warning on gcc-4.1.2. | |
4138 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
4139 | local variable`pc' to zero. | |
4140 | ||
6fbc7cd8 JB |
4141 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4142 | ||
4143 | Implement thread support with core files on alpha-tru64. | |
4144 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
4145 | extracted from resync_thread_list. | |
4146 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
4147 | code by call to dec_thread_find_new_threads. | |
4148 | (dec_thread_wait): Update call to resync_thread_list. | |
4149 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
4150 | ||
438c98a1 JB |
4151 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4152 | ||
4153 | * ada-lang.c (value_pointer): New function. | |
4154 | (make_array_descriptor): Call value_pointer to convert addresses to | |
4155 | pointers. | |
4156 | ||
2971b56b JB |
4157 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4158 | ||
4159 | * rs6000-aix-tdep.c: #include exceptions.h. | |
4160 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
4161 | while reading the memory at ADDR, then ADDR cannot be a function | |
4162 | descriptor. | |
4163 | ||
be942545 JB |
4164 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4165 | ||
4166 | * ada-typeprint.c (ada_print_typedef): New function. | |
4167 | * ada-lang.h (ada_print_typedef): Add declaration. | |
4168 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
4169 | to ada_print_typedef. | |
4170 | ||
1ca8fce0 JB |
4171 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4172 | ||
4173 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
4174 | ||
e9ef4f39 JB |
4175 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4176 | ||
4177 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
4178 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
4179 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
4180 | Adjust accordingly. | |
4181 | ||
e294797a JB |
4182 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4183 | ||
4184 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
4185 | a compiler warning. | |
4186 | ||
a223f1e7 JB |
4187 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4188 | ||
4189 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
4190 | these functions down to define them only when used. | |
4191 | ||
0c3acc09 JB |
4192 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
4193 | ||
4194 | * valprint.c (common_val_print): Fix the value before extracting | |
4195 | its contents. | |
4196 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
4197 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
4198 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
4199 | to avoid code duplication and fix a bug in the handling of | |
4200 | fixed types contents. | |
4201 | ||
31ef98ae TT |
4202 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
4203 | ||
4204 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
4205 | (read_partial_die): Likewise. | |
4206 | (dwarf_attr_name): Likewise. | |
4207 | ||
ec31cde5 | 4208 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
0407b3f1 | 4209 | |
ec31cde5 CM |
4210 | PR 10867 |
4211 | ||
4212 | * cp-valprint.c (global): Adding new static array recursion | |
4213 | detection obstack. | |
4214 | (cp_print_value_fields, cp_print_static_field): Added new static | |
4215 | array recursion detection code. | |
4216 | ||
e0e0e543 MK |
4217 | 2010-04-20 Mark Kettenis <kettenis@gnu.org> |
4218 | ||
4219 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
4220 | general-purpose register set should be 68 instead of 144. | |
4221 | (i386_linux_sse_regset_sections): Likewise. | |
4222 | (i386_linux_avx_regset_sections): Likewise. | |
4223 | ||
08922a10 SS |
4224 | 2010-04-20 Stan Shebs <stan@codesourcery.com> |
4225 | Nathan Sidwell <nathan@codesourcery.com> | |
4226 | ||
4227 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
4228 | (dwarf2_tracepoint_var_loc): New function. | |
4229 | (dwarf2_tracepoint_var_access): New function. | |
4230 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
4231 | with DW_OP_piece. | |
4232 | (locexpr_describe_location_piece): New function. | |
4233 | (locexpr_describe_location_1): New function. | |
4234 | (locexpr_describe_location): Call it, update signature. | |
4235 | (loclist_describe_location): Rewrite to loop over locations, | |
4236 | update signature. | |
4237 | * symtab.h (struct symbol_computed_ops): Add address to | |
4238 | describe_location arguments, return void. | |
4239 | * printcmd.c (address_info): Get context PC, pass to computed | |
4240 | location description. | |
4241 | * tracepoint.c (scope_info): Ditto. | |
4242 | * ax-gdb.c (trace_kludge): Export. | |
4243 | ||
2dc7f7b3 TT |
4244 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
4245 | ||
4246 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
4247 | (struct dwarf2_cie) <segment_size>: New field. | |
4248 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
4249 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
4250 | DW_FORM_exprloc. | |
4251 | (read_attribute_value): Handle DW_FORM_flag_present, | |
4252 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
4253 | (dump_die_shallow): Likewise. | |
4254 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
4255 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
4256 | (attr_form_is_block): Likewise. | |
4257 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
4258 | (dwarf_decode_line_header): Set new field. | |
4259 | (dwarf_decode_lines): Handle new field. | |
4260 | ||
ce4b0682 SDJ |
4261 | 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
4262 | ||
4263 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
4264 | (LOGICAL_S8_KEYWORD): New token. | |
4265 | * f-lang.c (enum f_primitive_types) | |
4266 | <f_primitive_type_logical_s8>: New field. | |
4267 | (f_language_arch_info): Handling `logical*8' type. | |
4268 | (build_fortran_types): Building `logical*8' type. | |
4269 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
4270 | ||
ff9f22f1 DE |
4271 | 2010-04-19 Doug Evans <dje@google.com> |
4272 | ||
4273 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
4274 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
4275 | (pipe_close): Ditto. | |
4276 | ||
437125bd PM |
4277 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4278 | ||
4279 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
4280 | ||
e8e6c82e PM |
4281 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4282 | ||
4283 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
4284 | type to void function. | |
4285 | ||
4136fdd2 SS |
4286 | 2010-04-19 Stan Shebs <stan@codesourcery.com> |
4287 | Vladimir Prus <vladimir@codesourcery.com> | |
4288 | ||
4289 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
4290 | tfind mode as such. | |
4291 | * target.c (update_current_target): Make default | |
4292 | to_trace_find return -1. | |
4293 | ||
0c4b2e63 MF |
4294 | 2010-04-19 Mike Frysinger <vapier@gentoo.org> |
4295 | ||
4296 | * objc-lang.c (find_methods): Move symname check up. | |
4297 | ||
78076abc PA |
4298 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
4299 | ||
4300 | * ada-lang.c (print_recreate_exception) | |
4301 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
4302 | not "catch unhandled". | |
4303 | ||
6149aea9 PA |
4304 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
4305 | ||
4306 | PR breakpoints/8554. | |
4307 | ||
4308 | Implement `save-breakpoints'. | |
4309 | ||
4310 | * breakpoint.c (save_cmdlist): New. | |
4311 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
4312 | to save_cmdlist. | |
4313 | (print_recreate_catch_fork): New. | |
4314 | (catch_fork_breakpoint_ops): Install it. | |
4315 | (print_recreate_catch_vfork): New. | |
4316 | (catch_vfork_breakpoint_ops): Install it. | |
4317 | (print_recreate_catch_syscall): New. | |
4318 | (catch_syscall_breakpoint_ops): Install it. | |
4319 | (print_recreate_catch_exec): New. | |
4320 | (catch_exec_breakpoint_ops): Install it. | |
4321 | (print_recreate_exception_catchpoint): New. | |
4322 | (gnu_v3_exception_catchpoint_ops): Install it. | |
4323 | (save_breakpoints): New, based on tracepoint_save_command, but | |
4324 | handle all breakpoint types. | |
4325 | (save_breakpoints_command): New. | |
4326 | (tracepoint_save_command): Rename to... | |
4327 | (save_tracepoints_command): ... this, and reimplement using | |
4328 | save_breakpoints. | |
4329 | (save_command): New. | |
4330 | (_initialize_breakpoints): Install the "save" command prefix. | |
4331 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
4332 | deprecated alias for "save tracepoints". | |
4333 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
4334 | * ada-lang.c (print_recreate_exception): New. | |
4335 | (print_recreate_catch_exception): New. | |
4336 | (catch_exception_breakpoint_ops): Install it. | |
4337 | (print_recreate_catch_exception_unhandled): New. | |
4338 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
4339 | (print_recreate_catch_assert): New. | |
4340 | (catch_assert_breakpoint_ops): Install it. | |
4341 | ||
4342 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
4343 | new `save tracepoints' alias and that `save-tracepoints' is now | |
4344 | deprecated. | |
4345 | ||
0a8fce9a PA |
4346 | 2010-04-18 Pedro Alves <pedro@codesourcery.com> |
4347 | ||
4348 | PR tui/9217 | |
4349 | ||
4350 | * tui/tui-out.c: Include cli-out.h. | |
4351 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
4352 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
4353 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
4354 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
4355 | declarations. | |
4356 | (struct ui_out_data): Rename to... | |
4357 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
4358 | `suppress_output' fields, and inherit cli_ui_out_data. | |
4359 | (tui_out_data): New typedef. | |
4360 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
4361 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
4362 | (tui_begin, tui_end): Delete. | |
4363 | (tui_field_int): Adjust to delegate most work to the base type. | |
4364 | (tui_field_skip): Delete. | |
4365 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
4366 | delegate most work to the base type. | |
4367 | (tui_spaces): Delete. | |
4368 | (tui_text): Adjust to delegate most work to the base type. | |
4369 | (tui_message): Delete. | |
4370 | (tui_wrap_hint): Delete. | |
4371 | (tui_flush): Delete. | |
4372 | (out_field_fmt): Delete. | |
4373 | (field_separator): Delete. | |
4374 | (tui_out_new): Adjust to initialize the base type. | |
4375 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
4376 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
4377 | cli_ui_out_data. | |
4378 | (cli_out_data): Adjust. | |
4379 | (cli_ui_out_impl): Make extern. | |
4380 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
4381 | uo_field_string instead of cli_field_string. | |
4382 | (cli_redirect): Adjust to use cli_out_data. | |
4383 | (cli_out_data_ctor): New. | |
4384 | (cli_out_new): Use it. | |
4385 | * cli-out.h (struct ui_file): Remove forward declaration. | |
4386 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
4387 | (cli_ui_out_impl): Declare. | |
4388 | (cli_out_data_ctor): Declare. | |
4389 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
4390 | (uo_field_string): No longer static. | |
4391 | (ui_out_data): Change return type to void pointer. | |
4392 | (ui_out_new): Change `data' parameter type to void pointer. | |
4393 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
4394 | (ui_out_data): Change return type to void pointer. | |
4395 | (ui_out_new): Change `data' parameter type to void pointer. | |
4396 | (uo_field_string): Declare. | |
4397 | ||
172240dd PA |
4398 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
4399 | ||
4400 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
4401 | instead of always false. | |
4402 | ||
ed41462c L |
4403 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
4404 | ||
4405 | PR corefiles/11511 | |
4406 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
4407 | orig_rax. | |
4408 | ||
cc60f2e3 PA |
4409 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
4410 | ||
4411 | * breakpoint.c (watchpoints_triggered): Use | |
4412 | is_hardware_watchpoint. | |
4413 | (watchpoints_triggered): Ditto. | |
4414 | (bpstat_check_location): Use is_watchpoint and | |
4415 | is_hardware_watchpoint. | |
4416 | (bpstat_check_watchpoint): Use is_watchpoint and | |
4417 | is_hardware_watchpoint. | |
4418 | (bpstat_stop_status): Fix comment. | |
4419 | (user_settable_breakpoint): Use is_watchpoint. | |
4420 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
4421 | (disable_watchpoints_before_interactive_call_start): Use | |
4422 | is_watchpoint. | |
4423 | (enable_watchpoints_after_interactive_call_stop): Use | |
4424 | is_watchpoint. | |
4425 | (clear_command): Use is_watchpoint. | |
4426 | (do_enable_breakpoint): Use is_watchpoint. | |
4427 | ||
cb7db0f2 MF |
4428 | 2010-04-16 Mike Frysinger <vapier@gentoo.org> |
4429 | ||
4430 | * solib-frv.c (enable_break1_done): Delete. | |
4431 | (enable_break2): Do not check enable_break1_done. Move the | |
4432 | enable_break2_done setting and call to | |
4433 | remove_solib_event_breakpoints() to the end. Return without | |
4434 | warning when the contents of _dl_debug_addr are 0. | |
4435 | (enable_break): Do not set enable_break1_done. | |
4436 | (frv_clear_solib): Likewise. | |
4437 | ||
d77b48cf KB |
4438 | 2010-04-16 Kevin Buettner <kevinb@redhat.com> |
4439 | ||
4440 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
4441 | instead of an error if no PLT entry is found. Return a | |
4442 | potentially useful result. | |
4443 | (m32c_m16c_pointer_to_address): Add code to search for function | |
4444 | address when no .plt entry is found. | |
4445 | ||
f90824dc SS |
4446 | 2010-04-16 Stan Shebs <stan@codesourcery.com> |
4447 | ||
4448 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
4449 | ||
9b79b476 PM |
4450 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4451 | ||
4452 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
4453 | ||
711e434b PM |
4454 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4455 | ||
4456 | Support for Windows OS Thread Information Block. | |
4457 | * NEWS: Document new feature. | |
4458 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
4459 | (remote_get_tib_address): New function. | |
4460 | (init_remote_ops): Set to_get_tib_address field | |
4461 | to remote_get_tib_address. | |
4462 | (_initialize_remote): Add add_packet_config_cmd | |
4463 | for PACKET_qGetTIBAddr. | |
4464 | * target.c (update_current_target): Set default value for | |
4465 | new to_get_tib_address field. | |
4466 | * target.h (target_ops): New field to_get_tib_address. | |
4467 | (target_get_tib_address): New macro. | |
4468 | * windows-nat.c (thread_info): Add thread_local_base field. | |
4469 | (windows_add_thread): Add tlb argument of type 'void *'. | |
4470 | (fake_create_process): Adapt windows_add_thread call. | |
4471 | (get_windows_debug_event): Idem. | |
4472 | (windows_get_tib_address): New function. | |
4473 | (init_windows_ops): Set to_get_tib_address field | |
4474 | to remote_get_tib_address. | |
4475 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
4476 | initialization by a call to init_w32_command_list. | |
4477 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
4478 | to windows-tdep.c file. | |
4479 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
0407b3f1 | 4480 | (init_w32_command_list): New external function |
711e434b PM |
4481 | declaration. |
4482 | * windows-tdep.c: Add several headers. | |
4483 | (info_w32_cmdlist): to here, made global. | |
4484 | (thread_information_32): New struct. | |
4485 | (thread_information_64): New struct. | |
4486 | (TIB_NAME): New char array. | |
4487 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
4488 | (maint_display_all_tib): New static variable. | |
4489 | (windows_get_tlb_type): New function. | |
4490 | (tlb_value_read, tlb_value_write): New functions. | |
4491 | (tlb_value_funcs): New static struct. | |
4492 | (tlb_make_value): New function. | |
4493 | (display_one_tib): New function. | |
4494 | (display_tib): New function. | |
4495 | (show_maint_show_all_tib):New function. | |
4496 | (info_w32_command): Moved from windows-nat.c. | |
4497 | (init_w32_command_list): New function. | |
4498 | (_initialize_windows_tdep): New function. | |
4499 | New "maint set/show show-all-tib" command | |
4500 | New "$_tlb" internal variable. | |
4501 | ||
cae3f17b JB |
4502 | 2010-04-16 Joel Brobecker <brobecker@adacore.com> |
4503 | ||
4504 | * tui/tui-regs.c (tui_display_register): Add comment about | |
4505 | a couple of casts. | |
4506 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
4507 | ||
2ce6d6bf SS |
4508 | 2010-04-15 Stan Shebs <stan@codesourcery.com> |
4509 | ||
4510 | * frame.c: Include tracepoint.h. | |
4511 | (get_current_frame): Allow a trace frame to be an alternate source | |
4512 | of stack frame data. | |
4513 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
4514 | it won't succeed. | |
4515 | ||
7e559477 PA |
4516 | 2010-04-15 Pedro Alves <pedro@codesourcery.com> |
4517 | ||
4518 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
4519 | flags. | |
4520 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
4521 | ||
3f7b2faa DE |
4522 | 2010-04-15 Doug Evans <dje@google.com> |
4523 | ||
fa33c3cd DE |
4524 | * NEWS: Add entry for python program space support. |
4525 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
4526 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
4527 | (py-progspace.o): New rule. | |
4528 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
4529 | function. | |
4530 | (find_pretty_printer_from_progspace): New function. | |
4531 | (find_pretty_printer_from_gdb): New function. | |
4532 | (find_pretty_printer): Rewrite. | |
4533 | * python/py-progspace.c: New file. | |
4534 | * python/python-internal.h (program_space): Add forward decl. | |
4535 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
4536 | (gdbpy_initialize_pspace): Declare. | |
4537 | * python/python.c: #include "progspace.h". | |
4538 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
4539 | (_initialize_python): Call gdbpy_initialize_pspace. | |
4540 | (GdbMethods): Add current_progspace, progspaces. | |
4541 | ||
3f7b2faa DE |
4542 | Add -s option to source command. |
4543 | * NEWS: Document new option. | |
4544 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
4545 | Delete from_tty and cleanupp args. Split filep arg into file and | |
4546 | full_pathp. New arg search_path. | |
4547 | (source_script_from_stream): New function. | |
4548 | (source_script_with_search): New function. | |
4549 | (source_script): Rewrite. | |
4550 | (source_command): Parse "-s" option. | |
4551 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
4552 | * python/python.c (source_python_script): Make file arg a const char *. | |
4553 | Don't call fclose, leave for caller. | |
4554 | * python/python.h (source_python_script): Update. | |
4555 | ||
a86988f2 PA |
4556 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
4557 | Pedro Alves <pedro@codesourcery.com> | |
4558 | ||
4559 | Avoid rereading shared libraries that haven't changed. | |
4560 | ||
4561 | * solib.c (free_so_symbols): New function, from ... | |
4562 | (free_so): ... here. Call it. | |
4563 | (solib_read_symbols): Don't warn here if symbols have already been | |
4564 | loaded. | |
4565 | (solib_add): Warn here instead, if a pattern was specified. | |
4566 | (reload_shared_libraries_1): New. | |
4567 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
4568 | ||
e6d9b9c2 DE |
4569 | 2010-04-14 Doug Evans <dje@google.com> |
4570 | ||
589390d6 | 4571 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
4572 | concatenating string to search path. |
4573 | ||
516ba659 PA |
4574 | 2010-04-14 Pedro Alves <pedro@codesourcery.com> |
4575 | ||
4576 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
4577 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
4578 | * corelow.c: Include objfiles.h | |
4579 | (core_close): Use gdb_bfd_close_or_warn. | |
4580 | * elfread.c (build_id_verify): Ditto. | |
4581 | * exec.c (exec_close, exec_close_1): Ditto. | |
4582 | ||
048d532d PA |
4583 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
4584 | Pedro Alves <pedro@codesourcery.com> | |
4585 | ||
4586 | Group errors for many missing shared libraries. | |
4587 | ||
4588 | * solist.h (struct so_list): Remove from_tty. | |
4589 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
4590 | (solib_map_sections): Take so_list argument. Return 0 if we | |
4591 | failed to open a BFD. Add target sections here. | |
4592 | (symbol_add_stub): Delete. | |
4593 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
4594 | not from_tty copied from the so_list. Don't warn a second time | |
4595 | for a missing library. | |
4596 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
4597 | add to the section table here. Print out a single warning for all | |
4598 | missing libraries. | |
4599 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
4600 | flags. | |
4601 | ||
044c0f87 PM |
4602 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
4603 | ||
4604 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
4605 | error/warning messages. Capitalize and use complete sentences. | |
4606 | (blpy_block_syms_iternext): Likewise. | |
4607 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
4608 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
4609 | (frame_info_to_frame_object, frapy_read_var) | |
4610 | (gdbpy_frame_stop_reason_string): Likewise. | |
4611 | * python/py-lazy-string.c (stpy_convert_to_value) | |
4612 | (gdbpy_create_lazy_string_object): Likewise. | |
4613 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
4614 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
4615 | * python/python.c (parameter_to_python): Likewise. | |
4616 | * python/py-type.c (typy_range, typy_target): Likewise. | |
4617 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
4618 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
4619 | ||
4620 | ||
79f283fe PM |
4621 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
4622 | ||
4623 | PR python/11381 | |
4624 | ||
4625 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
4626 | Py_None. | |
4627 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
4628 | Return value depending on return type. | |
4629 | (print_children): Take a value indicating whether data was printed | |
4630 | before this function was called. Alter output accordingly. | |
4631 | (apply_val_pretty_printer): Capture return value from | |
4632 | print_string_repr and pass to print_children. | |
4633 | ||
4ac5d44e MK |
4634 | 2010-04-13 Mark Kettenis <kettenis@gnu.org> |
4635 | ||
e1caee70 | 4636 | PR corefiles/11481 |
4ac5d44e MK |
4637 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
4638 | register note sections. | |
4639 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
4640 | New variables. | |
4641 | (i386_linux_init_abi): Install list of supported register note | |
4642 | sections that matches the target description. | |
4643 | ||
ad91cd99 PA |
4644 | 2010-04-13 Pedro Alves <pedro@codesourcery.com> |
4645 | ||
4646 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
4647 | replies. | |
4648 | (remote_start_remote): Update and merge tracepoints and trace | |
4649 | state variables as long as the target supports tracepoints. | |
4650 | (remote_trace_init): Fix prototype. | |
4651 | (remote_download_trace_state_variable): Validate reply. | |
4652 | (remote_trace_set_readonly_regions): Fix prototype. | |
4653 | (remote_trace_start): Fix prototype. Check for empty reply. | |
4654 | (remote_get_trace_status): Small cleanup. | |
4655 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
4656 | (remote_trace_find): Check for empty reply. | |
4657 | (remote_save_trace_data): Validate reply. | |
4658 | (remote_set_disconnected_tracing): Check for empty reply, and | |
4659 | validate reply. | |
4660 | (remote_set_circular_trace_buffer): Ditto. | |
4661 | ||
ae3bccd4 PM |
4662 | 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr> |
4663 | ||
4664 | Suppress unused value warning during compilation. | |
4665 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
4666 | calls to void. | |
4667 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
4668 | ||
523136f2 SS |
4669 | 2010-04-12 Stan Shebs <stan@codesourcery.com> |
4670 | ||
4671 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
4672 | ||
0d18d720 MF |
4673 | 2010-04-12 Mike Frysinger <vapier@gentoo.org> |
4674 | ||
4675 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
4676 | * remote-sim.c (gdbsim_files_info): Likewise. | |
4677 | ||
3b273a55 RE |
4678 | 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
4679 | ||
4680 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
4681 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
4682 | variable. | |
4683 | (fetch_vfp_registers): New function to fetch VFP registers. | |
4684 | (store_vfp_registers): New function to store VFP registers. | |
4685 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
4686 | registers. | |
4687 | (arm_linux_store_inferior_registers): Likewise. | |
4688 | (arm_linux_read_description): Likewise. | |
4689 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
4690 | until we need it. | |
4691 | ||
778c7095 L |
4692 | 2010-04-11 H.J. Lu <hongjiu.lu@intel.com> |
4693 | ||
4694 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
4695 | tdep. | |
4696 | (amd64_collect_xstateregset): Likewise. | |
4697 | ||
2114d44c SS |
4698 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
4699 | ||
87290684 SS |
4700 | * tracepoint.c (trace_status_mi): Report frames created. |
4701 | ||
2114d44c SS |
4702 | * tracepoint.c (trace_dump_command): Include default-collect |
4703 | expressions. | |
4704 | ||
86da934b UW |
4705 | 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com> |
4706 | ||
4707 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
4708 | before function start address, even if line info is missing. | |
4709 | ||
2d6e647a | 4710 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
d337e9f0 PA |
4711 | |
4712 | * NEWS: Mention tracepoints support. | |
4713 | ||
a97153c7 PA |
4714 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4715 | ||
4716 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
4717 | circular trace buffer statuses. | |
4718 | ||
7a66d603 JK |
4719 | 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
4720 | ||
4721 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
4722 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
4723 | ||
2566ad2d PA |
4724 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4725 | ||
4726 | * breakpoint.c (condition_command): Pass condition expression to | |
4727 | set_breakpoint_condition stripped from breakpoint number. | |
4728 | ||
adc36818 PM |
4729 | 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> |
4730 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2566ad2d | 4731 | Tom Tromey <tromey@redhat.com> |
adc36818 PM |
4732 | |
4733 | * breakpoint.c (condition_command): Simplify. Move condition | |
4734 | setting code to ... | |
4735 | (set_breakpoint_condition): ... here. New function. | |
4736 | * breakpoint.h (set_breakpoint_condition): Declare. | |
4737 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
4738 | (SUBDIR_PYTHON_SRCS): Likewise. | |
4739 | (py-breakpoint.o): New rule. | |
4740 | * python/py-breakpoint.c: New file. | |
4741 | * python/python-internal.h (gdbpy_breakpoints) | |
4742 | (gdbpy_initialize_breakpoints): Declare. | |
4743 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
4744 | ||
219f2f23 PA |
4745 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4746 | ||
4747 | * regformats/regdat.sh: Include server.h. Don't include | |
4748 | regcache.h. | |
4749 | ||
33da3f1c SS |
4750 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
4751 | Pedro Alves <pedro@codesourcery.com> | |
4752 | ||
4753 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
4754 | and circular_buffer. | |
4755 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
4756 | * tracepoint.c (trace_status_command): Display target's status for | |
4757 | disconnected tracing and circular buffer. | |
4758 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
4759 | query for non-disconnected-tracing case, remove the stop_tracing | |
4760 | call. | |
4761 | (tfile_open): Clear disconnected and circular buffer status. | |
4762 | (trace_save): Save disconnected and circular buffer status. | |
4763 | (parse_trace_status): Parse disconnected and circular buffer status, | |
4764 | also recognize disconnected as a stop reason. | |
4765 | * remote.c (remote_set_disconnected_tracing): Only set | |
4766 | QTDisconnected if the remote end supports disconnected tracing. | |
4767 | Warn otherwise, if trying to enable disconnected tracing. | |
4768 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
4769 | * cli/cli-cmds.c (quit_command): Ditto. | |
4770 | ||
4e4d8374 L |
4771 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
4772 | ||
4773 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
4774 | internal_error. | |
4775 | ||
ad443146 SS |
4776 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
4777 | ||
4778 | * breakpoint.c (default_collect_info): New function. | |
4779 | (breakpoints_info): Call it. | |
4780 | (maintenance_info_breakpoints): Ditto. | |
4781 | (tracepoints_info): Ditto. | |
4782 | ||
40936b0d L |
4783 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
4784 | ||
4785 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
4786 | ||
3a13a53b L |
4787 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
4788 | ||
4789 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
4790 | if HAVE_PTRACE_GETFPXREGS is defined. | |
4791 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
4792 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
4793 | ||
4794 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
4795 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
4796 | if .reg-xfp section doesn't exist. | |
4797 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
4798 | ||
4799 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
4800 | ||
4801 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
4802 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
4803 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
4804 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
4805 | (i386_gdbarch_init): Update comments. | |
4806 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
4807 | ||
4808 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
4809 | ||
4810 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
4811 | ||
4812 | * features/Makefile (i386/i386-mmx-expedite): New. | |
4813 | (i386/i386-mmx-linux-expedite): Likewise. | |
4814 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
4815 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
4816 | ||
4817 | * features/i386/i386-mmx-linux.c: New. | |
4818 | * features/i386/i386-mmx-linux.xml: Likewise. | |
4819 | * features/i386/i386-mmx.c: Likewise. | |
4820 | * features/i386/i386-mmx.xml: Likewise. | |
4821 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
4822 | * regformats/i386/i386-mmx.dat: Likewise. | |
4823 | ||
4824 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
4825 | i386/i386-mmx-linux. | |
4826 | ||
08001717 DE |
4827 | 2010-04-08 Doug Evans <dje@google.com> |
4828 | ||
4829 | * source.c (openp): Skip $cdir in PATH. | |
4830 | ||
fff5cc64 PM |
4831 | 2010-04-08 Phil Muldoon <pmuldoon@redhat.com> |
4832 | ||
4833 | PR python/11417 | |
fff5cc64 | 4834 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
4835 | a NULL address. |
4836 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
4837 | address and a zero length. | |
fff5cc64 | 4838 | |
f8c4f480 HZ |
4839 | 2010-04-08 Hui Zhu <teawater@gmail.com> |
4840 | ||
4841 | * i386-tdep.c (i386_process_record): Add support for insn | |
4842 | rdtsc. | |
4843 | ||
eb5cda86 DE |
4844 | 2010-04-07 Doug Evans <dje@google.com> |
4845 | ||
4846 | * python/python.c (source_python_script): Use ensure_python_env | |
4847 | to prepare environment for script. | |
4848 | ||
a055a187 L |
4849 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4850 | ||
4851 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
4852 | <sys/uio.h> and "i386-xstate.h". | |
4853 | (PTRACE_GETREGSET): New. | |
4854 | (PTRACE_SETREGSET): Likewise. | |
4855 | (have_ptrace_getregset): Likewise. | |
4856 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
4857 | registers. | |
4858 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
4859 | registers. | |
4860 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
4861 | (amd64_linux_store_inferior_registers): Likewise. | |
4862 | (amd64_linux_read_description): Check and enable AVX target | |
4863 | descriptions. | |
4864 | ||
4865 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
4866 | and "features/i386/amd64-avx-linux.c". | |
4867 | (amd64_linux_regset_sections): New. | |
4868 | (amd64_linux_core_read_description): Check and enable AVX | |
4869 | target description. | |
4870 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
4871 | set_gdbarch_core_regset_sections. | |
4872 | (_initialize_amd64_linux_tdep): Call | |
4873 | initialize_tdesc_amd64_avx_linux. | |
4874 | ||
4875 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
4876 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
4877 | (tdesc_amd64_avx_linux): New. | |
4878 | (amd64_linux_update_xstateregset): Likewise. | |
4879 | ||
4880 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
4881 | (amd64_ymm_names): New. | |
4882 | (amd64_ymmh_names): Likewise. | |
4883 | (amd64_register_name): Likewise. | |
4884 | (amd64_supply_xstateregset): Likewise. | |
4885 | (amd64_collect_xstateregset): Likewise. | |
4886 | (amd64_supply_xsave): Likewise. | |
4887 | (amd64_collect_xsave): Likewise. | |
4888 | (AMD64_NUM_REGS): Removed. | |
4889 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
4890 | %xmmN if AVX is available. | |
4891 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
4892 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
4893 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
4894 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
4895 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
4896 | ||
4897 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
4898 | AMD64_YMM15H_REGNUM. | |
4899 | (AMD64_NUM_REGS): New. | |
4900 | (amd64_supply_xsave): Likewise. | |
4901 | (amd64_collect_xsave): Likewise. | |
4902 | (amd64_register_name): Removed. | |
4903 | (amd64_register_type): Likewise. | |
4904 | ||
31aeac78 L |
4905 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4906 | ||
4907 | * i387-tdep.c: Include "i386-xstate.h". | |
4908 | (XSAVE_XSTATE_BV_ADDR): New. | |
4909 | (xsave_avxh_offset): Likewise. | |
4910 | (XSAVE_AVXH_ADDR): Likewise. | |
4911 | (i387_supply_xsave): Likewise. | |
4912 | (i387_collect_xsave): Likewise. | |
4913 | ||
4914 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
4915 | (I387_YMM0H_REGNUM): Likewise. | |
4916 | (I387_YMMENDH_REGNUM): Likewise. | |
4917 | (i387_supply_xsave): Likewise. | |
4918 | (i387_collect_xsave): Likewise. | |
4919 | ||
c131fcee L |
4920 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4921 | ||
4922 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
4923 | <sys/uio.h> and "i386-xstate.h". | |
4924 | (PTRACE_GETREGSET): New. | |
4925 | (PTRACE_SETREGSET): Likewise. | |
4926 | (fetch_xstateregs): Likewise. | |
4927 | (store_xstateregs): Likewise. | |
4928 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
4929 | (regmap): Include 8 upper YMM registers. | |
4930 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
4931 | state. | |
4932 | (i386_linux_store_inferior_registers): Likewise. | |
4933 | (i386_linux_read_description): Check and enable AVX target | |
4934 | descriptions. | |
4935 | ||
4936 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
4937 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
4938 | (i386_linux_regset_sections): Add ".reg-xstate". | |
4939 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
4940 | (i386_linux_core_read_xcr0): New. | |
4941 | (i386_linux_core_read_description): Check and enable AVX target | |
4942 | description. | |
4943 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
4944 | (_initialize_i386_linux_tdep): Call | |
4945 | initialize_tdesc_i386_avx_linux. | |
4946 | ||
4947 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
4948 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
4949 | (i386_linux_core_read_xcr0): New. | |
4950 | (tdesc_i386_avx_linux): Likewise. | |
4951 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
4952 | ||
4953 | * i386-tdep.c: Include "i386-xstate.h" and | |
4954 | "features/i386/i386-avx.c". | |
4955 | (i386_ymm_names): New. | |
4956 | (i386_ymmh_names): Likewise. | |
4957 | (i386_ymmh_regnum_p): Likewise. | |
4958 | (i386_ymm_regnum_p): Likewise. | |
4959 | (i386_xmm_regnum_p): Likewise. | |
4960 | (i386_register_name): Likewise. | |
4961 | (i386_ymm_type): Likewise. | |
4962 | (i386_supply_xstateregset): Likewise. | |
4963 | (i386_collect_xstateregset): Likewise. | |
4964 | (i386_sse_regnum_p): Removed. | |
4965 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
4966 | (i386_pseudo_register_type): Likewise. | |
4967 | (i386_pseudo_register_read): Likewise. | |
4968 | (i386_pseudo_register_write): Likewise. | |
4969 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
4970 | %xmmN if AVX is available. | |
4971 | (i386_regset_from_core_section): Support .reg-xstate section. | |
4972 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
4973 | (i386_process_record): Replace i386_sse_regnum_p with | |
4974 | i386_xmm_regnum_p. | |
4975 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
4976 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 4977 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
4978 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
4979 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
4980 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
4981 | Set ymm0_regnum. | |
4982 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
4983 | ||
4984 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
4985 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
4986 | i386_ymm_type. | |
4987 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
4988 | (I386_AVX_NUM_REGS): New. | |
4989 | (i386_xmm_regnum_p): Likewise. | |
4990 | (i386_ymm_regnum_p): Likewise. | |
4991 | (i386_ymmh_regnum_p): Likewise. | |
4992 | ||
4993 | * common/i386-xstate.h: New. | |
4994 | ||
98adf0f3 L |
4995 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4996 | ||
4997 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
4998 | ||
4999 | * features/Makefile (WHICH): Add i386/i386-avx, | |
5000 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
5001 | (i386/i386-avx-expedite): New. | |
5002 | (i386/i386-avx-linux-expedite): Likewise. | |
5003 | (i386/x86-64-avx-expedite):Likewise. | |
5004 | (i386/x86-64-avx-linux-expedite): Likewise. | |
5005 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
5006 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
5007 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
5008 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
5009 | ||
5010 | * features/i386/32bit-avx.xml: New. | |
5011 | * features/i386/64bit-avx.xml: Likewise. | |
5012 | * features/i386/i386-avx-linux.c: Likewise. | |
5013 | * features/i386/i386-avx-linux.xml: Likewise. | |
5014 | * features/i386/i386-avx.c: Likewise. | |
5015 | * features/i386/i386-avx.xml: Likewise. | |
5016 | * features/i386/x86-64-avx-linux.c: Likewise. | |
5017 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
5018 | * features/i386/x86-64-avx.c: Likewise. | |
5019 | * features/i386/x86-64-avx.xml: Likewise. | |
5020 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
5021 | * regformats/i386/i386-avx.dat: Likewise. | |
5022 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
5023 | * regformats/i386/x86-64-avx.dat: Likewise. | |
5024 | ||
05159abe DE |
5025 | 2010-04-07 Doug Evans <dje@google.com> |
5026 | ||
5027 | * top.c (source_file_name): Make const char *. | |
5028 | * top.h (source_file_name): Update. | |
5029 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
5030 | const char *. | |
5031 | (script_from_file): Change `file' arg to const char *. | |
5032 | * cli/cli-script.h (script_from_file): Update. | |
5033 | ||
96e39866 DE |
5034 | 2010-04-06 Doug Evans <dje@google.com> |
5035 | ||
5036 | * cli/cli-cmds.c (source_command): Run cleanups. | |
5037 | ||
3149d8c1 SS |
5038 | 2010-04-06 Stan Shebs <stan@codesourcery.com> |
5039 | ||
5040 | * defs.h (char_ptr): Move typedef here from... | |
5041 | * ada-lang.c (char_ptr): Remove. | |
5042 | * charset.c (char_ptr): Remove. | |
5043 | * tracepoint.h (struct uploaded_string): Remove. | |
5044 | (struct uploaded_tp): Use vectors for string arrays. | |
5045 | * tracepoint.c (trace_save): Use vectors of actions. | |
5046 | (parse_tracepoint_definition): Ditto. | |
5047 | (get_uploaded_tp): Clear vectors. | |
5048 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
5049 | (next_cmd): Change to an int. | |
5050 | (read_next_cmd): Use vector of command strings. | |
5051 | ||
4cc23ede DE |
5052 | 2010-04-06 Doug Evans <dje@google.com> |
5053 | ||
5054 | * top.h (source_script, cd_command): Delete. | |
5055 | * main.c: #include "cli/cli-cmds.h" | |
5056 | ||
bd333fb7 KB |
5057 | 2010-04-06 Kevin Buettner <kevinb@redhat.com> |
5058 | ||
5059 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
5060 | type in bytes, not bits. | |
5061 | ||
ec8a089a PM |
5062 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
5063 | ||
5064 | * stabsread.c (define_symbol): Add support for char | |
5065 | and string constants. | |
5066 | ||
2244ba2e PM |
5067 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
5068 | ||
5069 | Remove remaining "%ll" uses. | |
5070 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
5071 | hex_string call. | |
5072 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
5073 | * solib-pa64.c (pa64_current_sos): Idem. | |
5074 | * solib-spu.c (spu_current_sos): Idem. | |
5075 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
5076 | plongest call. | |
5077 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
5078 | phex (VAR, 8) call. | |
5079 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
5080 | ||
fce3c1f0 SS |
5081 | 2010-04-05 Stan Shebs <stan@codesourcery.com> |
5082 | ||
5083 | * tracepoint.c: Include gdbcore.h. | |
5084 | (tfile_xfer_partial): Return partial results, also try reading | |
5085 | from executable. | |
5086 | (tfile_has_all_memory): New function. | |
5087 | (init_tfile_ops): Use it. | |
5088 | ||
626ea16d SDJ |
5089 | 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
5090 | ||
5091 | PR gdb/10736: | |
5092 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
5093 | the changes in data-directory. | |
5094 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
5095 | has changed. | |
5096 | ||
1f7ccab2 JK |
5097 | 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
5098 | ||
5099 | Code cleanup. | |
5100 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
5101 | ||
d77f58be SS |
5102 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
5103 | Nathan Sidwell <nathan@codesourcery.com> | |
5104 | ||
5105 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
5106 | breakpoints printed. | |
5107 | (is_hardware_watchpoint): Make argument const. | |
5108 | (is_watchpoint): Ditto. | |
5109 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
5110 | use it everywhere. | |
5111 | (breakpoints_info): Pass NULL to breakpoint_1. | |
5112 | (maintenance_info_breakpoints): Ditto. | |
5113 | (watchpoints_info): New function. | |
5114 | (tracepoints_info): Use breakpoint_1 filter. | |
5115 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
5116 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
5117 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
5118 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
5119 | ||
af54718e SS |
5120 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
5121 | ||
5122 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
5123 | ||
74d1f91e JK |
5124 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
5125 | ||
5126 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
5127 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
5128 | ||
91d91ceb JK |
5129 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
5130 | ||
5131 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
5132 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
5133 | ||
60531b24 JK |
5134 | 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5135 | ||
5136 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
5137 | code form. | |
5138 | ||
a3c4230a HZ |
5139 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
5140 | ||
5141 | * i386-tdep.c (OT_DQUAD): New enum. | |
5142 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
5143 | SSE3, SSSE3 and SSE4. | |
5144 | ||
b15758fe HZ |
5145 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
5146 | ||
5147 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
5148 | "*addr = 0". | |
5149 | ||
afd02f27 PA |
5150 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
5151 | ||
5152 | * tracepoint.c (trace_dump_actions): New, factored out from | |
5153 | trace_dump_command, and adjusted to recurse into while-stepping's | |
5154 | action list. | |
5155 | (trace_dump_command): Use it. | |
5156 | ||
5cea2a26 PA |
5157 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
5158 | ||
5159 | * breakpoint.h (struct counted_command_line): Moved definition to | |
5160 | breakpoint.c, and forward declare. | |
5161 | (breakpoint_commands): Declare. | |
5162 | * breakpoint.c (struct counted_command_line): Moved here. | |
5163 | (breakpoint_commands): New. | |
5164 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
5165 | * remote.c (remote_download_tracepoint): Ditto. | |
5166 | ||
7c47795c L |
5167 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
5168 | ||
5169 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
5170 | of phex_nz for error. | |
5171 | ||
fff87407 SS |
5172 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
5173 | Nathan Sidwell <nathan@codesourcery.com> | |
5174 | ||
5175 | * tracepoint.h (enum actionline_type): Remove. | |
5176 | (validate_actionline): Change return to void. | |
5177 | * tracepoint.c (report_agent_reqs_errors): New function. | |
5178 | (validate_actionline): Call it, change return to void, report errors | |
5179 | more consistently. | |
5180 | (collect_symbol): Call report_agent_reqs_errors. | |
5181 | (encode_actions_1): Ditto. | |
5182 | (encode_actions): Don't expect a result from validate_actionline. | |
5183 | ||
615bcdef SS |
5184 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
5185 | ||
5186 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
5187 | (trace_stop_command): Error if trace not running. | |
5188 | ||
fe01d668 L |
5189 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
5190 | ||
5191 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
5192 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
5193 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
5194 | (amd64_pseudo_register_write): Likewise. | |
5195 | (amd64_init_abi): Set num_byte_regs to 20. | |
5196 | ||
86b17b60 PA |
5197 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
5198 | ||
5199 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
5200 | (prev_breakpoint_count): New. | |
5201 | (set_breakpoint_count): Adjust. | |
5202 | (rbreak_start_breakpoint_count): New. | |
5203 | (start_rbreak_breakpoints): Adjust. | |
5204 | (end_rbreak_breakpoints): Adjust. | |
5205 | (struct commands_info) <arg>: New field. | |
5206 | (do_map_commands_command): Tweak output to include breakpoint spec | |
5207 | range. | |
5208 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
5209 | ARG was empty on entry. Set INFO's arg. | |
5210 | (create_breakpoint): Adjust. | |
5211 | ||
5212 | * NEWS: Clarify `commands' changes. | |
5213 | ||
2c58c0a9 PA |
5214 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
5215 | ||
5216 | * tracepoint.c: Include stack.h. | |
5217 | (struct add_local_symbols_data): New. | |
5218 | (do_collect_symbol): New. | |
5219 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
5220 | iterate_over_block_local_vars. | |
5221 | * stack.c (print_block_frame_locals): Rewrite as ... | |
5222 | (iterate_over_block_locals): ... this. Take a callback function | |
5223 | pointer and generic data pointer, and call that instead of | |
5224 | print_variable_and_value. | |
5225 | (struct print_variable_and_value_data): New. | |
5226 | (do_print_variable_and_value): New. | |
5227 | (iterate_over_block_local_vars): New, abstracted out from | |
5228 | print_frame_local_vars. | |
5229 | (print_frame_local_vars): Rewrite using | |
5230 | iterate_over_block_local_vars. | |
5231 | (iterate_over_block_arg_vars): New, abstracted out from | |
5232 | print_frame_arg_vars. | |
5233 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
5234 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
5235 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
5236 | ||
d476da0e RE |
5237 | 2010-03-31 Richard Earnshaw <rearnsha@arm.com> |
5238 | ||
5239 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 5240 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
5241 | PC register. |
5242 | ||
8072405b JK |
5243 | 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
5244 | ||
5245 | Fix crash on reading wrong function declaration DWARF. | |
5246 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
5247 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
5248 | more close to their use. | |
5249 | ||
8bf6485c SS |
5250 | 2010-03-31 Stan Shebs <stan@codesourcery.com> |
5251 | ||
5252 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 5253 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
5254 | * tracepoint.c (save_trace_state_variables): New function. |
5255 | * tracepoint.h (save_trace_state_variables): Declare it. | |
5256 | ||
2ae2a0b7 PM |
5257 | 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr> |
5258 | ||
1a161f72 | 5259 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 5260 | |
86ffb506 KS |
5261 | 2010-03-30 Keith Seitz <keiths@redhat.com> |
5262 | ||
5263 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
5264 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
5265 | Use the passed-in language instead of current_language. | |
5266 | (c_type_print_varspec_suffix): Use current_language instead | |
5267 | of assuming language_c. | |
5268 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
5269 | any return type specifier from the physname. | |
5270 | ||
956c2c8b PA |
5271 | 2010-03-30 Pedro Alves <pedro@codesourcery.com> |
5272 | ||
5273 | * tui/tui-interp.c (tui_is_toplevel): New. | |
5274 | (tui_init): Set it. | |
5275 | (tui_allowed_p): New. | |
5276 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
5277 | enabling it. | |
5278 | * tui/tui.h (tui_allowed_p): Declare. | |
5279 | ||
98e5a990 TT |
5280 | 2010-03-30 Ozkan Sezer <sezeroz@gmail.com> |
5281 | ||
5282 | * serial.h: Include winsock2.h before windows.h. | |
5283 | ||
c8d5aac9 L |
5284 | 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> |
5285 | ||
5286 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
5287 | ||
5288 | * i386-tdep.c: Include "remote.h". | |
5289 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
5290 | ||
5291 | * remote.c (remote_support_xml): New. | |
5292 | (register_remote_support_xml): Likewise. | |
5293 | (remote_query_supported_append): Likewise. | |
5294 | (remote_query_supported): Support remote_support_xml. | |
5295 | ||
5296 | * remote.h (register_remote_support_xml): New. | |
5297 | ||
76a2b958 SS |
5298 | 2010-03-29 Stan Shebs <stan@codesourcery.com> |
5299 | ||
42e08e69 SS |
5300 | * tracepoint.c (trace_find_line_command): Remove dead code. |
5301 | ||
409873ef SS |
5302 | * tracepoint.h (struct uploaded_string): New struct. |
5303 | (struct uploaded_tp): New fields for source strings. | |
5304 | * breakpoint.c (this_utp, next_cmd): New globals. | |
5305 | (read_uploaded_action): New function. | |
5306 | (create_tracepoint_from_upload): Fill in more parts | |
5307 | of a tracepoint. | |
5308 | * tracepoint.c (encode_source_string): New function. | |
5309 | (trace_save): Write out source strings, fix error checks. | |
5310 | (parse_tracepoint_definition): Add source string parsing. | |
5311 | * remote.c (PACKET_TracepointSource): New packet type. | |
5312 | (remote_download_command_source): New function. | |
5313 | (remote_download_tracepoint): Download source pieces also. | |
5314 | (_initialize_remote): Add packet config command. | |
5315 | ||
a0405854 SS |
5316 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
5317 | expression handler. | |
5318 | ||
76a2b958 SS |
5319 | * tracepoint.c (start_tracing): Check tracepoints before sending |
5320 | commands to target, don't start if all tracepoints disabled. | |
5321 | ||
d350db38 PA |
5322 | 2010-03-28 Pedro Alves <pedro@codesourcery.com> |
5323 | ||
12f2d601 | 5324 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 5325 | |
8b9b7ef8 SS |
5326 | 2010-03-26 Stan Shebs <stan@codesourcery.com> |
5327 | ||
5328 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
5329 | ||
9766ced4 SS |
5330 | 2010-03-26 Tom Tromey <tromey@redhat.com> |
5331 | ||
5332 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
5333 | ||
059acae7 UW |
5334 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
5335 | ||
5336 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
5337 | (skip_prologue_sal): Remove local definition. | |
5338 | (resolve_sal_pc): Remove now unnecessary code. | |
5339 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
5340 | * symtab.c (find_function_start_pc): Remove. | |
5341 | (find_function_start_sal): Extract prologue skipping into ... | |
5342 | (skip_prologue_sal): ... this new function. Handle code both | |
5343 | with and without debug info. Respect SAL's explicit_pc and | |
5344 | explicit_line flags. Inline old find_function_start_pc. | |
5345 | * symtab.h (find_function_start_pc): Remove. | |
5346 | (skip_prologue_sal): Add prototype. | |
5347 | ||
4a811a97 UW |
5348 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
5349 | ||
5350 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
5351 | for DW_TAG_imported_module children. | |
5352 | ||
907af001 UW |
5353 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
5354 | ||
5355 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
5356 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
5357 | * completer.c (add_struct_fields): Fix inverted logic. | |
5358 | ||
dde2d684 UW |
5359 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
5360 | ||
5361 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
5362 | ||
a609a0c8 PA |
5363 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
5364 | ||
5365 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
5366 | is non-NULL here. | |
5367 | (parse_trace_status): Release a previous error_desc string, and | |
5368 | set it to NULL by default. If stop reason is tracepoint_error, | |
5369 | make sure error_desc is not left NULL. | |
5370 | ||
610197fd PA |
5371 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
5372 | ||
5373 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
5374 | description. | |
5375 | ||
99b5e152 PA |
5376 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
5377 | ||
5378 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
5379 | the terror description. Don't expect an X prefix. | |
5380 | ||
6c28cbf2 SS |
5381 | 2010-03-25 Stan Shebs <stan@codesourcery.com> |
5382 | ||
5383 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
5384 | (struct trace_status): New field error_desc. | |
5385 | * tracepoint.c (stop_reason_names): Add terror. | |
5386 | (current_trace_status): Ensure non-NULL error description. | |
5387 | (trace_status_command): Add error report. | |
5388 | (trace_status_mi): Ditto. | |
5389 | (trace_save): Add special case for error description. | |
5390 | (parse_trace_status): Add case for errors. | |
5391 | ||
418835cc KS |
5392 | 2010-03-25 Keith Seitz <keiths@redhat.com> |
5393 | ||
5394 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
5395 | language is Java, mark any formal parameter named "this" as | |
5396 | artificial (GCC/43521). | |
5397 | (dwarf2_name): Add special handling for Java constructors. | |
5398 | ||
aa7d318d TT |
5399 | 2010-03-25 Tom Tromey <tromey@redhat.com> |
5400 | ||
5401 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
5402 | * infrun.c (handle_inferior_event): Change initialization of | |
5403 | stop_stack_dummy. | |
5404 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
5405 | (normal_stop): Update use of stop_stack_dummy. | |
5406 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
5407 | * inferior.h (stop_stack_dummy): Update. | |
5408 | * infcmd.c (stop_stack_dummy): Change type. | |
5409 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
5410 | function. | |
5411 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
5412 | Rewrite std::terminate handling. | |
5413 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
5414 | bp_std_terminate_master>: New. | |
5415 | (enum stop_stack_kind): New. | |
5416 | (struct bpstat_what) <call_dummy>: Change type. | |
5417 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
5418 | Declare. | |
5419 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
5420 | function. | |
5421 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
5422 | Call create_std_terminate_master_breakpoint. | |
5423 | (print_it_typical): Handle new breakpoint kinds. | |
5424 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
5425 | (bpstat_what): Correctly set call_dummy field. Handle | |
5426 | bp_std_terminate_master and bp_std_terminate. | |
5427 | (print_one_breakpoint_location): Update. | |
5428 | (allocate_bp_location): Update. | |
5429 | (set_std_terminate_breakpoint): New function. | |
5430 | (delete_std_terminate_breakpoint): Likewise. | |
5431 | (create_thread_event_breakpoint): Update. | |
5432 | (delete_command): Update. | |
5433 | (breakpoint_re_set_one): Update. | |
5434 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
5435 | ||
82ccf5a5 JK |
5436 | 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
5437 | ||
5438 | * symfile.c (build_section_addr_info_from_bfd): New. | |
5439 | (build_section_addr_info_from_objfile): Base it on | |
5440 | build_section_addr_info_from_bfd. | |
5441 | (addrs_section_compar, addrs_section_sort): New. | |
5442 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
5443 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
5444 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
5445 | ||
737c4c52 MS |
5446 | 2010-03-24 Michael Snyder <msnyder@localhost.localdomain> |
5447 | ||
8d95cc3b | 5448 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
5449 | Remove unused local variable. |
5450 | ||
95a42b64 TT |
5451 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
5452 | ||
5453 | PR breakpoints/9352: | |
5454 | * NEWS: Mention changes to `commands' and `rbreak'. | |
5455 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
5456 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
5457 | end_rbreak_breakpoints. | |
5458 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
5459 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
5460 | (multi_start, multi_end, last_was_multi): New globals. | |
5461 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
5462 | functions. | |
5463 | (struct commands_info): New | |
5464 | (do_map_commands_command): New function. | |
5465 | (commands_command_1): New function. | |
5466 | (commands_command): Use it. | |
5467 | (commands_from_control_command): Likewise. | |
5468 | (do_delete_breakpoint): New function. | |
5469 | (delete_command): Use it. | |
5470 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
5471 | (do_map_disable_breakpoint): New function. | |
5472 | (disable_command): Use it. | |
5473 | (do_map_enable_breakpoint): New function. | |
5474 | (enable_command): Use it. | |
5475 | (enable_once_breakpoint): Add argument. | |
5476 | (enable_once_command): Update. | |
5477 | (enable_delete_breakpoint): Add argument. | |
5478 | (enable_delete_command): Update. | |
5479 | (break_command_really): Set last_was_multi when needed. | |
5480 | (check_tracepoint_command): Fix formatting. | |
5481 | (validate_commands_for_breakpoint): New function. | |
5482 | (breakpoint_set_commands): Use it. | |
5483 | (tracepoint_save_command): Update. | |
5484 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
5485 | Declare. | |
5486 | ||
9add0f1b TT |
5487 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
5488 | ||
5489 | * breakpoint.h (struct counted_command_line): New struct. | |
5490 | (struct breakpoint) <commands>: Change type. | |
5491 | (struct bpstats) <commands>: Change type. | |
5492 | <commands_left>: New field. | |
5493 | * breakpoint.c (alloc_counted_command_line): New function. | |
5494 | (incref_counted_command_line): Likewise. | |
5495 | (decref_counted_command_line): Likewise. | |
5496 | (do_cleanup_counted_command_line): Likewise. | |
5497 | (make_cleanup_decref_counted_command_line): Likewise. | |
5498 | (breakpoint_set_commands): Use decref_counted_command_line and | |
5499 | alloc_counted_command_line. | |
5500 | (commands_command): Don't error if breakpoint commands are | |
5501 | executing. | |
5502 | (commands_from_control_command): Likewise. | |
5503 | (bpstat_free): Update. | |
5504 | (bpstat_copy): Likewise. | |
5505 | (bpstat_clear_actions): Likewise. | |
5506 | (bpstat_do_actions_1): Likewise. | |
5507 | (bpstat_stop_status): Likewise. | |
5508 | (print_one_breakpoint_location): Likewise. | |
5509 | (delete_breakpoint): Likewise. | |
5510 | (bpstat_alloc): Initialize new field. | |
5511 | (tracepoint_save_command): Update. | |
5512 | * tracepoint.c (encode_actions): Update. | |
5513 | (trace_dump_command): Update. | |
5514 | ||
a6c727b2 DJ |
5515 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
5516 | ||
5517 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
5518 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
5519 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
5520 | no byte size and no children. | |
5521 | (read_subroutine_type): Mark functions as prototyped by default. | |
5522 | * symtab.c (producer_is_realview): New function. | |
5523 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
5524 | (producer_is_realview): Declare. | |
5525 | ||
0d39a070 DJ |
5526 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
5527 | ||
5528 | * arm-tdep.c (skip_prologue_function): New function. | |
5529 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
5530 | (thumb_analyze_prologue): Document return value. Recognize more | |
5531 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
5532 | Add debug output. | |
5533 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
5534 | for non-GNU compilers. | |
5535 | (arm_instruction_changes_pc): New function. | |
5536 | (arm_analyze_prologue): New function, broken out from | |
5537 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
5538 | calls. Update comments. Handle NULL cache. Return the address | |
5539 | of the first unrecognized instruction. Do not skip past other | |
5540 | instructions which change control flow. Add debug output. | |
5541 | (arm_scan_prologue): Use arm_analyze_prologue. | |
5542 | (ARM_PC_32): Delete. | |
5543 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
5544 | ||
4baf5cf4 VP |
5545 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5546 | ||
5547 | * tracepoint.c (tvariables_info_1): Actually compute | |
5548 | the number of rows in the result. | |
5549 | ||
4a5e7a5b PA |
5550 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
5551 | ||
5552 | * remote.c (crc32): Constify `buf' parameter. | |
5553 | (remote_verify_memory): New, abstracted out from... | |
5554 | (compare_sections_command): ... this. Remove hardcoded target | |
5555 | checks. | |
5556 | (init_remote_ops): Install remote_verify_memory. | |
5557 | * target.c (target_verify_memory): New. | |
5558 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
5559 | (target_verify_memory): Declare. | |
5560 | ||
011aacb0 VP |
5561 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5562 | ||
5563 | Implement -trace-save. | |
5564 | ||
5565 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
5566 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
5567 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
5568 | * remote.c (remote_save_trace_data): Take const parameter. | |
5569 | * target.h (struct target_ops::to_save_trace_data): Take | |
5570 | const parameter. | |
5571 | * target.c (update_current_target): Adjust to the above. | |
5572 | * tracepoint.c (trave_save): New, extracted from | |
5573 | (trace_save_command): ...this. | |
5574 | (tfile_trace_find): Remove message that is unnecessary now | |
5575 | that 'tfind' reports found frame. | |
5576 | * tracepoint.h (trace_save): Declare. | |
5577 | ||
f197e0f1 VP |
5578 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5579 | ||
5580 | Implement -trace-find. | |
5581 | ||
5582 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
5583 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
5584 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
5585 | * target.h (struct target_ops): Document to_trace_find. | |
5586 | * tracepoint.h (tfind_1): Declare. | |
5587 | * tracepoint.c (finish_tfind_command): Rename to... | |
5588 | (tfind_1): ...this. | |
5589 | * remote.c (remote_trace_find): Return -1 if target say | |
5590 | there's no frame. Improve error diagnostics. | |
5591 | ||
40e1c229 VP |
5592 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5593 | ||
5594 | -trace-define-variable and -trace-list-variables. | |
5595 | ||
5596 | * tracepoint.c (create_trace_state_variable): Make | |
5597 | private copy of name, as opposed to assuming the | |
5598 | pointer lives forever. | |
5599 | (tvariables_info_1): New. | |
5600 | (tvariables_info): Use the above. | |
5601 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
5602 | Declare. | |
5603 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
5604 | and -trace-list-variables. | |
5605 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
5606 | (mi_cmd_trace_list_variables): New. | |
5607 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
5608 | (mi_cmd_trace_list_variables): New. | |
5609 | ||
9b4c786c VP |
5610 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5611 | ||
5612 | Implement -break-passcount. | |
5613 | ||
5614 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
5615 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
5616 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
5617 | ||
f224b49d VP |
5618 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5619 | ||
5620 | -trace-start/-trace-end/-trace-status. | |
5621 | ||
5622 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
5623 | and -trace-stop. | |
5624 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
5625 | (mi_cmd_trace_stop): Declare. | |
5626 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
5627 | (mi_cmd_trace_stop): New. | |
5628 | * tracepoint.c (start_tracing): New, extracted from... | |
5629 | (trace_start_command): ...this. | |
5630 | (trace_status_mi): New. | |
5631 | * tracepoint.h (struct trace_status): Document | |
5632 | stopping_tracepoint. | |
5633 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
5634 | ||
6534d786 VP |
5635 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5636 | ||
5637 | Implement creating tracepoints with -break-insert. | |
5638 | ||
5639 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
5640 | to mean that tracepoint should be created. | |
5641 | ||
51661e93 VP |
5642 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5643 | ||
5644 | * breakpoint.c (check_no_tracepoint_commands): Use | |
5645 | current spelling of 'teval'. | |
5646 | ||
a7bdde9e VP |
5647 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
5648 | ||
5649 | Unify actions and commands | |
5650 | ||
5651 | * defs.h (read_command_lines, read_command_lines_1): New | |
5652 | parameters validator and closure. | |
5653 | * tracepoint.h (struct action_line): Remove. | |
5654 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
5655 | field. | |
5656 | * defs.h (enum command_control_type): New value | |
5657 | while_stepping_control. | |
5658 | (struct command_line): Add comments. | |
5659 | * breakpoint.c (breakoint_is_tracepoint): New. | |
5660 | (breakpoint_set_commands): For tracepoints, | |
5661 | verify the commands are permissible. | |
5662 | (check_tracepoint_commands): New. | |
5663 | (commands_command): Require that each new line is validated using | |
5664 | check_tracepoint_command, if we set commands for a tracepoint. | |
5665 | (create_tracepoint_from_upload): Likewise. | |
5666 | (print_one_breakpoint_location): Remove the code to print | |
5667 | actions specifically. | |
5668 | (tracepoint_save_command): Relay to print_command_lines. | |
5669 | * cli/cli-script.c (process_next_line): New parameters validator | |
5670 | and closure. Handle 'while-stepping'. Call validator if not null. | |
5671 | (read_command_lines, read_command_lines1): Likewise. | |
5672 | (recurse_read_control_structure): New parameters validator and | |
5673 | closure. Handle while_stepping_control. | |
5674 | (print_command_lines): Handle while-stepping. | |
5675 | (get_command_line, define_command, document_command): Adjust. | |
5676 | * remote.c (remote_download_tracepoint): Adjust. | |
5677 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
5678 | (free_actions, do_free_actions_cleanup): Remove. | |
5679 | (trace_actions_command): Use read_command_lines. | |
5680 | (validate_actionline): Use error in one place. | |
5681 | (encode_actions_1): New, extracted from... | |
5682 | (encode_actions): ...this. Also use cleanups for exception | |
5683 | safety. | |
5684 | (trace_dump_command): Adjust. | |
5685 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
5686 | it's tracepoint. | |
5687 | ||
64e3cf3d MF |
5688 | 2010-03-23 Mike Frysinger <vapier@gentoo.org> |
5689 | ||
5690 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
5691 | ||
52e9fde8 SS |
5692 | 2010-03-22 Stan Shebs <stan@codesourcery.com> |
5693 | ||
5694 | * value.c (value_static_field): Be lazy about the field's value. | |
5695 | ||
508ccb1f TT |
5696 | 2010-03-22 Reid Kleckner <reid@kleckner.net> |
5697 | ||
5698 | PR gdb/11094 | |
5699 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
5700 | bp_jit_event. | |
5701 | (disable_breakpoints_in_shlibs): Likewise. | |
5702 | ||
acebe513 UW |
5703 | 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com> |
5704 | ||
5705 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
5706 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
5707 | (determine_prefix): Likewise. | |
5708 | ||
957b8b5a DJ |
5709 | 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com> |
5710 | ||
5711 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
5712 | get_current_arch. | |
5713 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
5714 | ||
3b11a015 SS |
5715 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
5716 | ||
5717 | * ax-gdb.c (gen_fetch): Handle bool. | |
5718 | (gen_usual_unary): Ditto. | |
5719 | (gen_cast): Ditto. | |
5720 | (gen_equal): New function. | |
5721 | (gen_less): New function. | |
5722 | (gen_expr_binop_rest): Call them, also return integer type from | |
5723 | logical operations. | |
5724 | (gen_expr): Ditto. | |
5725 | ||
20781792 TT |
5726 | 2010-03-19 Tom Tromey <tromey@redhat.com> |
5727 | ||
5728 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
5729 | (jv_type_objfile_data_key): New globals. | |
5730 | (class_symtab): Move earlier. | |
5731 | (jv_per_objfile_free): New function. | |
5732 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
5733 | parameter. | |
5734 | Remove ancient #if 1. | |
5735 | (add_class_symbol): Remove redundant declaration. | |
5736 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
5737 | (java_link_class_type): Mark as static. Update. | |
5738 | (jv_clear_object_type): New function. | |
5739 | (set_java_object_type): Likewise. | |
5740 | (get_java_object_type): Use set_java_object_type. | |
5741 | (is_object_type): Likewise. | |
5742 | (_initialize_java_language): Register new objfile keys. | |
5743 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
5744 | (add_class_symtab_symbol): Update. | |
5745 | (type_from_class): Update. | |
5746 | ||
cf3e25ca SS |
5747 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
5748 | ||
8d95cc3b | 5749 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 5750 | |
f1ae44c9 | 5751 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
5752 | ||
5753 | GDB 7.1 released. | |
5754 | ||
4daf5ac0 SS |
5755 | 2010-03-18 Stan Shebs <stan@codesourcery.com> |
5756 | Pedro Alves <pedro@codesourcery.com> | |
5757 | ||
5758 | * target.h (struct target_ops): New method | |
5759 | to_set_circular_trace_buffer. | |
5760 | (target_set_circular_trace_buffer): New macro. | |
5761 | * target.c (update_current_target): Add | |
5762 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
5763 | default behavior. | |
5764 | * remote.c (remote_set_circular_trace_buffer): New function. | |
5765 | (init_remote_ops): Add it to vector. | |
5766 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
5767 | change buffer_size and buffer_free to int. | |
5768 | * tracepoint.c (circular_trace_buffer): New global. | |
5769 | (start_tracing): Send values of disconnected tracing and circular | |
5770 | trace buffer settings. | |
5771 | (set_circular_trace_buffer): New function. | |
5772 | (parse_trace_state): Handle total space and frames created. | |
5773 | (trace_status_command): Display total space and total frames | |
5774 | created. | |
5775 | (trace_save): Write out new status values. | |
5776 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
5777 | buffer_free and buffer_size to -1 by default. | |
5778 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
5779 | * NEWS: Mention the circular trace buffer option. | |
5780 | ||
40c549d6 TT |
5781 | 2010-03-18 Tom Tromey <tromey@redhat.com> |
5782 | ||
5783 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
5784 | in TRY_CATCH. | |
5785 | ||
e8d05480 JB |
5786 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
5787 | ||
5788 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
5789 | DIE has a name before creating the associated partial symbol. | |
5790 | (read_func_scope): Emit a complaint if the subprogram does not | |
5791 | have a name or when we can't extract the subprogram PC bounds. | |
5792 | ||
441b986a UW |
5793 | 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com> |
5794 | ||
5795 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
5796 | instead of selected frame architecture. | |
5797 | ||
4247603b PA |
5798 | 2010-03-18 Pedro Alves <pedro@codesourcery.com> |
5799 | ||
5800 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
5801 | a valid selected thread, and that it is not running. | |
5802 | (advance_command): Ditto. | |
5803 | (finish_command): Ditto. | |
5804 | ||
400c6af0 SS |
5805 | 2010-03-17 Stan Shebs <stan@codesourcery.com> |
5806 | ||
3a96536b SS |
5807 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
5808 | ||
573cda03 SS |
5809 | * infcall.c: Include tracepoint.h. |
5810 | (call_function_by_hand): Disallow calls in tfind mode. | |
5811 | * infcmd.c: Include tracepoint.h. | |
5812 | (ensure_not_tfind_mode): New function. | |
5813 | (continue_1): Call it. | |
5814 | (step_1) Ditto. | |
5815 | (jump_command): Ditto. | |
5816 | (signal_command): Ditto. | |
5817 | (advance_command): Ditto. | |
5818 | (until_command): Ditto. | |
5819 | (finish_command): Ditto. | |
5820 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
5821 | ||
400c6af0 SS |
5822 | * ax-gdb.h (struct axs_value): New field optimized_out. |
5823 | (gen_trace_for_var): Add gdbarch argument. | |
5824 | * ax-gdb.c (gen_trace_static_fields): New function. | |
5825 | (gen_traced_pop): Call it, add gdbarch argument. | |
5826 | (gen_trace_for_expr): Update call to it. | |
5827 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
5828 | (gen_struct_ref_recursive): Check for optimized-out value. | |
5829 | (gen_struct_elt_for_reference): Ditto. | |
5830 | (gen_static_field): Pass gdbarch instead of expression, assume | |
5831 | optimization if field not found. | |
5832 | (gen_var_ref): Set the optimized_out flag. | |
5833 | (gen_expr): Error on optimized-out variable. | |
5834 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
5835 | expressions, skip optimized-out variables with computed locations. | |
5836 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
5837 | erroring out if location expression missing. | |
5838 | (loclist_tracepoint_var_ref): Don't error out here. | |
5839 | ||
a3b2a86b TT |
5840 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
5841 | ||
5842 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
5843 | DWARF data is available. | |
5844 | ||
38963c97 DJ |
5845 | 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
5846 | ||
5847 | * symfile.c (generic_load): Reset breakpoints after loading. | |
5848 | ||
ddabfc73 TT |
5849 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
5850 | ||
5851 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
5852 | ||
d8c09fb5 JK |
5853 | 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
5854 | ||
5855 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
5856 | create_breakpoint call, adjust the parameters. | |
5857 | ||
bbb0eef6 JK |
5858 | 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
5859 | Chandru <chandru@in.ibm.com> | |
5860 | ||
5861 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
5862 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
5863 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
5864 | ||
46956e39 HZ |
5865 | 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org> |
5866 | ||
5867 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
5868 | ||
b8d088ac JB |
5869 | 2010-03-16 Joel Brobecker <brobecker@adacore.com> |
5870 | ||
5871 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
5872 | before doing the associated thread switch. | |
5873 | ||
322be962 DJ |
5874 | 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com> |
5875 | ||
5876 | * MAINTAINERS: Update my email address. | |
5877 | ||
8cdf0e15 VP |
5878 | 2010-03-16 Vladimir Prus <vladimir@codesourcery.com> |
5879 | ||
5880 | Simplify MI breakpoint setting. | |
5881 | ||
5882 | * breakpoint.c (break_command_really): Make nonstatic and | |
5883 | rename to... | |
5884 | (create_breakpoint): ...this. Rename prior function by this name | |
5885 | to... | |
5886 | (create_breakpoint_sal): ...this. | |
5887 | (create_breakpoints): Rename to... | |
5888 | (create_breakpoints_sal): ...this. | |
5889 | (set_breakpoint): Remove. | |
5890 | * breakpoint.h: Adjust to above changes. | |
5891 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
5892 | ||
b6e7192f SS |
5893 | 2010-03-15 Stan Shebs <stan@codesourcery.com> |
5894 | ||
5895 | * ax-gdb.c: Include cp-support.h. | |
5896 | (find_field): Remove. | |
5897 | (gen_primitive_field): New function. | |
5898 | (gen_struct_ref_recursive): New function. | |
5899 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
5900 | of find_field. | |
5901 | (gen_static_field): New function. | |
5902 | (gen_struct_elt_for_reference): New. | |
5903 | (gen_namespace_elt): New. | |
5904 | (gen_maybe_namespace_elt): New. | |
5905 | (gen_aggregate_elt_ref): New. | |
5906 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
5907 | ||
1054b214 TT |
5908 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
5909 | ||
5910 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
5911 | DW_TAG_subprogram. | |
5912 | ||
13387711 SW |
5913 | 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> |
5914 | ||
5915 | PR c++/7936: | |
5916 | * cp-support.h: Added char *declaration element to using_direct | |
5917 | data struct. | |
5918 | (cp_add_using): Added char *declaration argument. | |
5919 | (cp_add_using_directive): Ditto. | |
5920 | (cp_lookup_symbol_imports): made extern. | |
5921 | * cp-namespace.c: Updated with the above changes. | |
5922 | * dwarf2read.c (read_import_statement): Ditto. | |
5923 | (read_namespace): Ditto. | |
5924 | (read_import_statement): Support import declarations. | |
5925 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
5926 | declarations. | |
5927 | Added support for 'declaration_only' search. | |
5928 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
5929 | is before consideration of imports. | |
5930 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
5931 | search at every block level search. | |
5932 | Now takes language argument. | |
5933 | (lookup_symbol_aux): Updated. | |
5934 | ||
6e31430b TT |
5935 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
5936 | ||
5937 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
5938 | ||
4dea3bb7 | 5939 | 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change) |
bf307134 JB |
5940 | |
5941 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
5942 | * configure: Regenerate. | |
5943 | ||
4d9743af JK |
5944 | 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5945 | ||
5946 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
5947 | and ".sdynbss". Update the comment. | |
5948 | ||
f75150fe JZ |
5949 | 2010-03-15 Jie Zhang <jie@codesourcery.com> |
5950 | ||
5951 | * MAINTAINERS: Update my email address. | |
5952 | ||
3c13bc11 DJ |
5953 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
5954 | ||
5955 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
5956 | ||
43484f03 DJ |
5957 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
5958 | ||
5959 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
5960 | (_initialize_charset): Correct type of w32_host_default_charset. | |
5961 | ||
5f25d77d PA |
5962 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
5963 | ||
5964 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
5965 | ||
1c809c68 TT |
5966 | 2010-03-12 Tom Tromey <tromey@redhat.com> |
5967 | ||
5968 | PR c++/9708: | |
5969 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
5970 | in a lexical block does not need a namespace. | |
5971 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
5972 | list_in_scope in all cases. | |
5973 | ||
948103cf SS |
5974 | 2010-03-12 Stan Shebs <stan@codesourcery.com> |
5975 | ||
5976 | * ax-gdb.c (gen_expr): Add shift expressions. | |
5977 | (gen_expr_binop_rest): Ditto. | |
5978 | ||
00ae8fef SW |
5979 | 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> |
5980 | ||
5981 | * buildsym.c (finish_block): Reset using_directives pointer | |
5982 | after block initialization. | |
5983 | ||
9cad29ac L |
5984 | 2010-03-12 H.J. Lu <hongjiu.lu@intel.com> |
5985 | ||
5986 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
5987 | * i386-tdep.c (i386_word_names): Likewise. | |
5988 | ||
2f4d8875 PA |
5989 | 2010-03-12 Pedro Alves <pedro@codesourcery.com> |
5990 | ||
5991 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
5992 | inspecting trace frames. | |
5993 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
5994 | dcache. | |
5995 | ||
ccf26247 JK |
5996 | 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
5997 | ||
5998 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
5999 | for the PIC displacement, print also the displacement value. | |
6000 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
6001 | ||
477c84a7 KB |
6002 | 2010-03-10 Kevin Buettner <kevinb@redhat.com> |
6003 | ||
6004 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
6005 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
6006 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
6007 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
6008 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
6009 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
6010 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
6011 | comments describing each of these functions. | |
6012 | (mips_enter_debug, mips_exit_debug, common_open) | |
6013 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
6014 | blank line after the comment describing the function. | |
6015 | ||
01c30d6e JK |
6016 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
6017 | ||
6018 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
6019 | parameter displacementp. Update comment. | |
6020 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
6021 | element exists. Return if svr4_exec_displacement was not successful. | |
6022 | Update comment. | |
6023 | ||
09919ac2 JK |
6024 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
6025 | Daniel Jacobowitz <dan@codesourcery.com> | |
6026 | ||
6027 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
6028 | all program headers. | |
6029 | (read_program_headers_from_bfd): New function. | |
6030 | (svr4_static_exec_displacement): Remove and move the comment ... | |
6031 | (svr4_exec_displacement): ... here. Remove variable found. New | |
6032 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
6033 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
6034 | targets using read_program_headers_from_bfd. Remove the call of | |
6035 | svr4_static_exec_displacement. | |
6036 | ||
d146bf1e TT |
6037 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
6038 | ||
6039 | * dwarf2read.c (struct pubnames_header): Remove. | |
6040 | (_PUBNAMES_HEADER): Remove. | |
6041 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
6042 | (struct aranges_header): Remove. | |
6043 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
6044 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
6045 | (PUBNAMES_SECTION): Remove. | |
6046 | (ARANGES_SECTION): Remove. | |
6047 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
6048 | (dwarf2_build_psymtabs): Remove dead code. | |
6049 | (dwarf2_build_psymtabs_easy): Remove. | |
6050 | ||
be391dca TT |
6051 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
6052 | ||
6053 | * elfread.c (elf_symfile_read): Don't call | |
6054 | dwarf2_build_frame_info. | |
6055 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
6056 | (struct dwarf2_per_objfile) <objfile>: New field. | |
6057 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
6058 | (dwarf2_read_section): Check and set readin field. Call | |
6059 | posix_madvise. | |
6060 | (dwarf2_build_psymtabs): Don't read all sections. | |
6061 | (read_type_comp_unit_head): Read types section. | |
6062 | (create_debug_types_hash_table): Likewise. | |
6063 | (init_cu_die_reader): Add asserts. | |
6064 | (process_type_comp_unit): Add assert. | |
6065 | (dwarf2_build_psymtabs_hard): Read info section. | |
6066 | (load_partial_comp_unit): Add assert. | |
6067 | (create_all_comp_units): Read info section. | |
6068 | (load_full_comp_unit): Likewise. | |
6069 | (dwarf2_ranges_read): Read ranges section. | |
6070 | (dwarf2_record_block_ranges): Add assert. | |
6071 | (dwarf2_read_abbrevs): Read abbrev section. | |
6072 | (read_indirect_string): Read str section. | |
6073 | (dwarf_decode_line_header): Read line section. | |
6074 | (read_signatured_type_at_offset): Read types section. | |
6075 | (dwarf_decode_macros): Read macinfo section. | |
6076 | (dwarf2_symbol_mark_computed): Read loc section. | |
6077 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
6078 | dwarf2_build_frame_info. | |
6079 | (dwarf2_build_frame_info): Unconditionally set | |
6080 | dwarf2_frame_objfile_data on the objfile. | |
6081 | * configure.ac: Check for posix_madvise. | |
6082 | * config.in, configure: Rebuild. | |
6083 | ||
ccefe4c4 TT |
6084 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
6085 | ||
e38df1d0 TT |
6086 | * xcoffread.c (xcoff_start_psymtab): Update. |
6087 | (xcoff_end_psymtab): Update. | |
6088 | * psymtab.c (allocate_psymtab): Remove dead code. | |
6089 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
6090 | void*. | |
6091 | * mdebugread.c (parse_partial_symbols): Update. | |
6092 | (new_psymtab): Likewise. | |
6093 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
6094 | (psymtab_to_symtab_1): Update. | |
6095 | * dbxread.c (start_psymtab): Update. | |
6096 | (end_psymtab): Likewise. | |
6097 | ||
be391dca | 6098 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
e38df1d0 | 6099 | |
ccefe4c4 TT |
6100 | * xcoffread.c: Include psymtab.h. |
6101 | (xcoff_sym_fns): Update. | |
6102 | * symtab.h (struct partial_symbol): Remove. | |
6103 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
6104 | (struct partial_symtab): Remove. | |
6105 | (PSYMTAB_TO_SYMTAB): Remove. | |
6106 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
6107 | (find_pc_sect_psymtab): Remove. | |
6108 | (find_pc_sect_symtab_via_partial): Declare. | |
6109 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
6110 | (find_main_psymtab): Remove. | |
6111 | (find_main_filename): Declare. | |
6112 | (fixup_psymbol_section): Remove. | |
6113 | (fixup_section): Declare. | |
6114 | * symtab.c: Include psymtab.h. | |
6115 | (lookup_symtab): Use lookup_symtab method. | |
6116 | (lookup_partial_symtab): Remove. | |
6117 | (find_pc_sect_psymtab_closer): Remove. | |
6118 | (find_pc_sect_psymtab): Remove. | |
6119 | (find_pc_sect_symtab_via_partial): New function. | |
6120 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
6121 | (fixup_section): No longer static. | |
6122 | (fixup_psymbol_section): Remove. | |
6123 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
6124 | (lookup_global_symbol_from_objfile): Likewise. | |
6125 | (lookup_symbol_aux_psymtabs): Remove. | |
6126 | (lookup_symbol_aux_quick): New function. | |
6127 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
6128 | (lookup_partial_symbol): Remove. | |
6129 | (basic_lookup_transparent_type_quick): New function. | |
6130 | (basic_lookup_transparent_type): Use it. | |
6131 | (find_main_psymtab): Remove. | |
6132 | (find_main_filename): New function. | |
6133 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
6134 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
6135 | (output_partial_symbol_filename): New function. | |
6136 | (sources_info): Use map_partial_symbol_filenames. | |
6137 | (struct search_symbols_data): New type. | |
6138 | (search_symbols_file_matches): New function. | |
6139 | (search_symbols_name_matches): Likewise. | |
6140 | (search_symbols): Use expand_symtabs_matching method. | |
6141 | (struct add_name_data): Rename from add_macro_name_data. | |
6142 | (add_macro_name): Update. | |
6143 | (add_partial_symbol_name): New function. | |
6144 | (default_make_symbol_completion_list): Use | |
6145 | map_partial_symbol_names. | |
6146 | (struct add_partial_symbol_name): New type. | |
6147 | (maybe_add_partial_symtab_filename): New function. | |
6148 | (make_source_files_completion_list): Use | |
6149 | map_partial_symbol_filenames. | |
6150 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
6151 | * symmisc.c: Include psymtab.h. | |
6152 | (print_objfile_statistics): Use print_stats method. | |
6153 | (dump_objfile): Use dump method. | |
6154 | (dump_psymtab, maintenance_print_psymbols) | |
6155 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
6156 | (extend_psymbol_list): Remove. | |
6157 | * symfile.h (struct quick_symbol_functions): New struct. | |
6158 | (struct sym_fns) <qf>: New field. | |
6159 | (sort_pst_symbols): Remove. | |
6160 | (increment_reading_symtab): Declare. | |
6161 | * symfile.c: Include psymtab.h. | |
6162 | (compare_psymbols, sort_pst_symbols): Remove. | |
6163 | (psymtab_to_symtab): Remove. | |
6164 | (increment_reading_symtab): New function. | |
6165 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
6166 | method. | |
6167 | (set_initial_language): Use find_main_filename. | |
6168 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
6169 | (free_named_symtabs): Remove unused code. | |
6170 | (start_psymtab_common, add_psymbol_to_bcache) | |
6171 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
6172 | Remove. | |
6173 | * stack.c: Include psymtab.h, symfile.h. | |
6174 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
6175 | * source.h (psymtab_to_fullname): Don't declare. | |
6176 | * source.c: Include psymtab.h. | |
6177 | (select_source_symtab): Use find_last_source_symtab method. | |
6178 | (forget_cached_source_info): Use forget_cached_source_info | |
6179 | method. | |
6180 | (find_and_open_source): No longer static. | |
6181 | (psymtab_to_fullname): Remove. | |
6182 | * somread.c: Include psymtab.h. | |
6183 | (som_sym_fns): Update. | |
6184 | * psympriv.h: New file. | |
6185 | * psymtab.h: New file. | |
6186 | * psymtab.c: New file. | |
6187 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
6188 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
6189 | * objfiles.c: Include psymtab.h. | |
6190 | (objfile_relocate1): Use relocate method. | |
6191 | (objfile_has_partial_symbols): Use has_symbols method. | |
6192 | * mipsread.c: Include psymtab.h. | |
6193 | (ecoff_sym_fns): Update. | |
6194 | * mi/mi-cmd-file.c: Include psymtab.h. | |
6195 | (print_partial_file_name): New function. | |
6196 | (mi_cmd_file_list_exec_source_files): Use | |
6197 | map_partial_symbol_filenames. | |
6198 | * mdebugread.c: Include psympriv.h. | |
6199 | * machoread.c: Include psympriv.h. | |
6200 | (macho_sym_fns): Update. | |
6201 | * m2-exp.y (yylex): Use lookup_symtab. | |
6202 | * elfread.c: Include psympriv.h. | |
6203 | (elf_sym_fns): Update. | |
6204 | * dwarf2read.c: Include psympriv.h. | |
6205 | * dbxread.c: Include psympriv.h. | |
6206 | (aout_sym_fns): Update. | |
6207 | * cp-support.c: Include psymtab.h. | |
6208 | (read_in_psymtabs): Remove. | |
6209 | (make_symbol_overload_list_qualified): Use | |
6210 | expand_symtabs_for_function method. | |
6211 | * coffread.c: Include psympriv.h. | |
6212 | (coff_sym_fns): Update. | |
6213 | * blockframe.c: Include psymtab.h. | |
6214 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
6215 | * ada-lang.h (ada_update_initial_language): Update. | |
6216 | * ada-lang.c: Include psymtab.h. | |
6217 | (ada_update_initial_language): Remove 'main_pst' argument. | |
6218 | (ada_lookup_partial_symbol): Remove. | |
6219 | (struct ada_psym_data): New type. | |
6220 | (ada_add_psyms): New function. | |
6221 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
6222 | (struct add_partial_datum): New type. | |
6223 | (ada_add_partial_symbol_completions): New function. | |
6224 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
6225 | (ada_exception_support_info_sniffer): Update. | |
6226 | * Makefile.in (SFILES): Add psymtab.c. | |
6227 | (COMMON_OBS): Add psymtab.o. | |
6228 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
6229 | ||
7d8500b7 PM |
6230 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
6231 | ||
6232 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
6233 | ||
c0cc3a76 SW |
6234 | 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com> |
6235 | ||
6236 | PR C++/11236: | |
6237 | * cp-namespace.c (cp_add_using): Deleted. | |
6238 | (cp_add_using_directive): Use obstack allocations. | |
6239 | Merged the function cp_add_using into this one. | |
6240 | Added 'struct obstack *' argument. | |
6241 | (cp_scan_for_anonymous_namespaces): Updated. | |
6242 | * cp-support.h: Updated. | |
6243 | * dwarf2read.c (read_import_statement): Updated. | |
6244 | (read_namespace): Updated. | |
6245 | ||
452fa064 CF |
6246 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
6247 | ||
6248 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
6249 | ||
60e1c644 PA |
6250 | 2010-03-10 Pedro Alves <pedro@codesourcery.com> |
6251 | ||
6252 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
6253 | (is_hardware_watchpoint): Add comment. | |
6254 | (is_watchpoint): New. | |
6255 | (update_watchpoint): Don't reparse the watchpoint's condition | |
6256 | unless necessary. | |
6257 | (WP_IGNORE): New. | |
6258 | (watchpoint_check): Use it. | |
6259 | (bpstat_check_watchpoint): Handle it. | |
6260 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
6261 | conditions in a frame where it makes sense. | |
6262 | (watch_command_1): Store the innermost block of the condition | |
6263 | expression. | |
6264 | (delete_breakpoint): Delete the watchpoint condition expression. | |
6265 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
6266 | (struct breakpoint): New field `cond_exp_valid_block'. | |
6267 | ||
af6b7be1 JB |
6268 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
6269 | ||
6270 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
6271 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
6272 | ||
60c5c021 CF |
6273 | 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx> |
6274 | Pierre Muller <muller@ics.u-strasbg.fr> | |
6275 | ||
6276 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
6277 | from/to posix/win32. | |
6278 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
6279 | (windows_create_inferior): Make sure that cygallargs points to | |
6280 | original args in non Cygwin 1.7. case. | |
6281 | ||
60a1502a MS |
6282 | 2010-03-09 Michael Snyder <msnyder@vmware.com> |
6283 | ||
6284 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
6285 | after target_read_memory to get host byte order. | |
6286 | (i386_process_record): Ditto. | |
6287 | ||
94af9270 KS |
6288 | 2010-03-09 Keith Seitz <keiths@redhat.com> |
6289 | ||
6290 | Based on work from Daniel Jacobowitz <dan@codesourcery.com> | |
6291 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
6292 | print out const or volatile qualifiers, too. | |
6293 | (c_type_print_args): Add parameters show_artificial and language. | |
6294 | Skip artificial parameters when requested. | |
6295 | Use the appropriate language printer. | |
6296 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
6297 | parameters and pass language_c. | |
6298 | * dwarf2read.c (die_list): New file global. | |
6299 | (struct partial_die_info): Update comments for name field. | |
6300 | (pdi_needs_namespace): Renamed to ... | |
6301 | (die_needs_namespace): ... this. Rewrite. | |
6302 | (dwarf2_linkage_name): Remove. | |
6303 | (add_partial_symbol): Do not predicate the call to | |
6304 | partial_die_full_name based on pdi_needs_namespace. | |
6305 | Remove call to cp_check_possible_namespace_symbols and associated | |
6306 | outdated comments. | |
6307 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
6308 | (dwarf2_fullname): Update comments. | |
6309 | Use die_needs_namespace to assist in computing the name. | |
6310 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
6311 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
6312 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
6313 | dwarf2_linkage_name. | |
6314 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
6315 | (determine_class): Remove. | |
6316 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
6317 | except Ada. | |
6318 | (new_symbol): Unconditionally call dwarf2_name. | |
6319 | Compute the "linkage name" using dwarf2_physname. | |
6320 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
6321 | When determining to scan for anonymous C++ namespaces, ignore | |
6322 | the linkage name. | |
6323 | (dwarf2_physname): New function. | |
6324 | (dwarf2_full_name): Move content to new function and call | |
6325 | that. | |
6326 | (dwarf2_compute_name): "New" function. | |
6327 | (_initialize_dwarf2_read): Initialize die_list. | |
6328 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
6329 | physname. | |
6330 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
6331 | without a demangled name. | |
6332 | Print out type information for non-virtual methods. | |
c8d5aac9 | 6333 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 6334 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
6335 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
6336 | (decode_compound): Stop consuming at an open parenthesis. | |
6337 | Keep template parameters. | |
6338 | Keep any overload information. | |
6339 | Keep keywords like "const". | |
6340 | Remove paren_pointer. | |
6341 | Move is_quoted check from set_flags to here. | |
6342 | Remove #if 0 code from 2000. Ten years is long enough. | |
6343 | (find_method): Before comparing symbol names, canonicalize the string | |
6344 | from the user. | |
6345 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
6346 | (find_method_overload_end): New function. |
6347 | (set_flags): Remove. | |
c8d5aac9 L |
6348 | (decode_compound): Assume that parentheses are matched. |
6349 | It's a lot easier. | |
94af9270 KS |
6350 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
6351 | to cplus_demangle. | |
6352 | * linespec.c (decode_line_1): Keep important keywords like | |
6353 | "const" and "volatile". | |
6354 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
6355 | * typeprint.h (c_type_print_args): Add declaration. | |
6356 | * ui-file.c (do_ui_file_obsavestring): New function. | |
6357 | (ui_file_obsavestring): New function. | |
6358 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
6359 | * valops.c (find_overload_match): Resolve the object to | |
6360 | a non-pointer type. | |
6361 | If the object is a data member, search the object for the member | |
6362 | and return with staticp set. | |
6363 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
6364 | Do not attempt to extract a function name from non-function types. | |
6365 | If the extracted function name and the original name are the same, | |
6366 | we don't have a C++ method. | |
6367 | ||
8d95cc3b PA |
6368 | From Jan Kratochvil <jan.kratochvil@redhat.com>: |
6369 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
6370 | |
6371 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
6372 | and arguments from symbol lookups. | |
6373 | * ax-gdb.c (gen_expr): Likewise. | |
6374 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
6375 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
6376 | lookup_possible_namespace_symbol): Likewise. | |
6377 | * cp-support.c (read_in_psymtabs): Likewise. | |
6378 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
6379 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
6380 | * scm-valprint.c (scm_inferior_print): Likewise. | |
6381 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
6382 | * solib-svr.c (elf_lookup_lib): Likewise. | |
6383 | * solib.c (show_auto_solib_add): Likewise. | |
6384 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
6385 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
6386 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
6387 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
6388 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
6389 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
6390 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
6391 | basic_lookup_transparent_type, find_main_psymtab, | |
6392 | lookup_block_symbol): Likewise. | |
6393 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
6394 | lookup_symbol_global, lookup_symbol_aux_block, | |
6395 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
6396 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
6397 | ||
9cb74f47 PM |
6398 | 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr> |
6399 | ||
6400 | * python/python-internal.h: Include symtab.h. | |
6401 | ||
af6b7be1 JB |
6402 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
6403 | Pierre Muller <muller@ics.u-strasbg.fr> | |
e13eedd5 PM |
6404 | |
6405 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
6406 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
6407 | indentation. | |
6408 | ||
bad56014 TT |
6409 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
6410 | ||
6411 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
6412 | ||
08105857 PA |
6413 | 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com> |
6414 | Pedro Alves <pedro@codesourcery.com> | |
6415 | ||
6416 | * solib.c (solib_find): Replace extension if | |
6417 | solib_symbols_extension is set in the target gdbarch. | |
6418 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
6419 | solib_symbols_extension to "sym". | |
6420 | * gdbarch.sh (solib_symbols_extension): New variable. | |
6421 | (pstring): New function. | |
6422 | * gdbarch.h, gdbarch.c: Regenerate. | |
6423 | ||
7c953934 TT |
6424 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
6425 | ||
6426 | PR cli/9591: | |
6427 | * NEWS: Update. | |
6428 | * utils.c: Include main.h. | |
6429 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
6430 | (defaulted_query): Use default answer if `batch_flag'. | |
6431 | * main.h (batch_flag): Declare. | |
6432 | * main.c (batch_flag): New global. | |
6433 | (captured_main): Remove 'batch'. Update. | |
6434 | ||
bbd2783e KB |
6435 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
6436 | ||
6437 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
6438 | and Kevin Buettner: | |
6439 | ||
6440 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
6441 | (MON_ROCKHOPPER): New mips_monitor_type. | |
6442 | (read_hex_value): New function. | |
6443 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 6444 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
6445 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
6446 | (rockhopper_open): New function. | |
6447 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
6448 | read_hex_value to parse them and mips_set_register to commit them. | |
6449 | (mips_set_register): New function. | |
6450 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
6451 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
6452 | (mips_store_registers): Use a 'T' packet to set registers when | |
6453 | using MON_ROCKHOPPER. | |
6454 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
6455 | and expect the total to be printed before the entry address. | |
6456 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
6457 | ||
566f3d17 KB |
6458 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
6459 | ||
6460 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
6461 | Change return value to int. Store value fetched in location | |
6462 | addressed by `val'. Use function's return value as success | |
6463 | or failure indicator. Adjust all callers. | |
6464 | ||
9c8ee2ab | 6465 | 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr> |
f72d4b77 PM |
6466 | |
6467 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
6468 | ||
7155de5a HZ |
6469 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
6470 | Hui Zhu <teawater@gmail.com> | |
6471 | ||
6472 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
6473 | tmp_to_stopped_data_address. | |
6474 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
6475 | tmp_to_stopped_data_address. | |
6476 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
6477 | to_stopped_data_address. | |
6478 | ||
580879fc HZ |
6479 | 2010-03-08 Hui Zhu <teawater@gmail.com> |
6480 | ||
6481 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
6482 | ||
b0fcb67f JK |
6483 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
6484 | ||
6485 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
6486 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
6487 | ||
08597104 JB |
6488 | 2010-03-08 Joel Brobecker <brobecker@adacore.com> |
6489 | ||
6490 | Memory error when reading wrong core file. | |
6491 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
6492 | errors while reading the inferior memory, and return zero if | |
6493 | an exception was raised. | |
6494 | ||
425b824a MS |
6495 | 2010-03-07 Michael Snyder <msnyder@vmware.com> |
6496 | ||
ec6dbf37 MS |
6497 | * record.c (record_restore): Rename tmpu8 to rectype. |
6498 | ||
648d0c8b MS |
6499 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
6500 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
6501 | ||
6502 | (i386_record_push): Rename local tmpulongest to addr. | |
6503 | ||
6504 | (i386_process_record): Rename local tmpulongest to addr. | |
6505 | ||
6506 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
6507 | addr64. | |
955db0c0 MS |
6508 | |
6509 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 6510 | |
10760264 JB |
6511 | 2010-03-07 Joel Brobecker <brobecker@adacore.com> |
6512 | ||
6513 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 6514 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 6515 | |
b3c613f2 CF |
6516 | 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx> |
6517 | ||
6518 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
6519 | block. Define helper macros to reduce ifdefs in code. | |
6520 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
6521 | size. Call unadorned GetModuleFileNameEx rather than | |
6522 | GetModuleFileNameEx*. | |
6523 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
6524 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
6525 | appropriate. | |
6526 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
6527 | (handle_load_dll): Likewise. | |
6528 | (windows_pid_to_exec_file): Likewise. | |
6529 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
6530 | non-Cygwin. | |
6531 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
6532 | __USEWIDE conditional. | |
6533 | (bad_GetModuleFileNameExA): Likewise. | |
6534 | (_initialize_loadable): Just use real function names without the dyn_ | |
6535 | part since they are defined earlier. | |
6536 | ||
f870a310 TT |
6537 | 2010-03-05 Corinna Vinschen <vinschen@redhat.com> |
6538 | Tom Tromey <tromey@redhat.com> | |
6539 | ||
6540 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
6541 | (parse_escape): Likewise. | |
6542 | * python/py-utils.c (unicode_to_target_string): Update. | |
6543 | (unicode_to_target_python_string): Update. | |
6544 | (target_string_to_unicode): Update. | |
6545 | * printcmd.c (printf_command): Update. | |
6546 | * p-exp.y (yylex): Update. | |
6547 | * objc-exp.y (yylex): Update. | |
6548 | * mi/mi-parse.c: Include charset.h. | |
6549 | (mi_parse_escape): New function. | |
6550 | (mi_parse_argv): Use it. | |
6551 | * jv-exp.y (yylex): Update. | |
6552 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
6553 | function. | |
6554 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
6555 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
6556 | * gdbarch.c: Rebuild. | |
6557 | * gdbarch.h: Rebuild. | |
6558 | * defs.h (parse_escape): Update. | |
6559 | * cli/cli-setshow.c: Include arch-utils.h. | |
6560 | (do_setshow_command): Update. | |
6561 | * cli/cli-cmds.c (echo_command): Update. | |
6562 | * charset.h (target_charset, target_wide_charset): Update. | |
6563 | * charset.c: Include arch-utils.h. | |
6564 | (target_charset_name): Default to "auto". | |
6565 | (target_wide_charset_name): Likewise. | |
6566 | (show_target_charset_name): Handle "auto". | |
6567 | (show_target_wide_charset_name): Likewise. | |
6568 | (be_le_arch): New global. | |
6569 | (set_be_le_names): Add 'gdbarch' argument. | |
6570 | (validate): Likewise. Don't call set_be_le_names. | |
6571 | (set_charset_sfunc, set_host_charset_sfunc) | |
6572 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
6573 | Update. | |
6574 | (target_charset): Add 'gdbarch' argument. | |
6575 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
6576 | (auto_target_charset_name): New global. | |
6577 | (default_auto_charset, default_auto_wide_charset): New functions. | |
6578 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
6579 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
6580 | USE_WIN32API. | |
6581 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
6582 | remove 'byte_order' argument. Update. | |
6583 | (classify_type): Likewise. | |
6584 | (c_emit_char): Update. | |
6585 | (c_printchar): Update. | |
6586 | (c_printstr): Update. | |
6587 | (c_get_string): Update. | |
6588 | (evaluate_subexp_c): Update. | |
6589 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
6590 | Declare. | |
6591 | * python/python.c (gdbpy_target_charset): New function. | |
6592 | (gdbpy_target_wide_charset): Likewise. | |
6593 | (GdbMethods): Update. | |
6594 | * NEWS: Update. | |
6595 | ||
4e7386b0 UW |
6596 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
6597 | ||
6598 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
6599 | off high address bits. | |
6600 | ||
aab48ede UW |
6601 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
6602 | ||
6603 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
6604 | address as UnsignedLongLong, not LongLong. | |
6605 | ||
8eeafb51 | 6606 | 2010-03-05 Kevin Buettner <kevinb@redhat.com> |
c8d5aac9 | 6607 | Pedro Alves <pedro@codesourcery.com> |
8eeafb51 KB |
6608 | |
6609 | * remote-mips.c (gdbthread.h): Include. | |
6610 | (remote_mips_ptid): Declare. | |
6611 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
6612 | (common_open): Set inferior_ptid, add it as an inferior, and | |
6613 | as a thread too. Delete FIXME comment regarding start_remote(). | |
6614 | (mips_close): Invoke generic_mourn_inferior(). | |
6615 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
6616 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
6617 | it's now invoked from mips_close(). | |
6618 | (mips_load): Don't null out inferior_ptid. Don't call | |
6619 | clear_symtab_users(). | |
6620 | (mips_thread_alive, mips_pid_to_str): New functions. | |
6621 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
6622 | to_thread_alive and to_pid_to_str operations. | |
6623 | ||
ae411497 TT |
6624 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
6625 | ||
6626 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
6627 | in DWARF 3 and later. | |
6628 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
6629 | ||
0e0b460e KS |
6630 | 2010-03-04 Keith Seitz <keiths@redhat.com> |
6631 | ||
6632 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
6633 | If the filename portion of the linespec was quoted, recheck the | |
6634 | remainder for additional quoting. | |
6635 | (locate_first_half): Skip over completer chars, too. | |
6636 | ||
1b93ff13 TT |
6637 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
6638 | ||
6639 | * printcmd.c (printf_command): Pass dummy argument to | |
6640 | printf_filtered. | |
6641 | ||
fc36e839 DE |
6642 | 2010-03-04 Doug Evans <dje@google.com> |
6643 | ||
111f853c DE |
6644 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
6645 | unwound_fp. | |
6646 | ||
fc36e839 DE |
6647 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
6648 | ||
c7437ca6 PA |
6649 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
6650 | ||
6651 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
6652 | the software watchpoint isn't watching any memory. | |
6653 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
6654 | ||
58dadb1b PA |
6655 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
6656 | ||
6657 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
6658 | level interpreter before dereferencing it. If there isn't one, | |
6659 | don't paginate either. | |
6660 | ||
50e98be4 DJ |
6661 | 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
6662 | ||
6663 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
6664 | the state right when single stepping. | |
6665 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
6666 | Get the next PC along with the instruction state. | |
6667 | (thumb_get_next_pc): Remove. | |
6668 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
6669 | ||
2e3ceee9 HZ |
6670 | 2010-03-04 Hui Zhu <teawater@gmail.com> |
6671 | ||
6672 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
6673 | ||
390a8aca PA |
6674 | 2010-03-03 Pedro Alves <pedro@codesourcery.com> |
6675 | ||
6676 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
6677 | top level interpreter is MI. | |
6678 | ||
9355b391 SS |
6679 | 2010-03-03 Stan Shebs <stan@codesourcery.com> |
6680 | ||
6681 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
6682 | * tracepoint.c (validate_actionline): Ditto. | |
6683 | (encode_actions): Add location argument. | |
6684 | (trace_dump_command): Check all locations to see if stepping | |
6685 | frame. | |
390a8aca | 6686 | |
8685c86f L |
6687 | 2010-03-03 H.J. Lu <hongjiu.lu@intel.com> |
6688 | Eli Zaretskii <eliz@gnu.org> | |
6689 | ||
6690 | * NEWS: Add X86 general purpose registers section. | |
6691 | ||
e8f781e2 TT |
6692 | 2010-03-03 Tom Tromey <tromey@redhat.com> |
6693 | ||
6694 | PR mi/11098: | |
6695 | * varobj.c (install_new_value): Handle case where new print_value | |
6696 | is NULL. | |
6697 | ||
a0e0ef55 TT |
6698 | 2010-03-03 Dainis Jonitis <jonitis@gmail.com> |
6699 | ||
6700 | PR gdb/11345: | |
6701 | * printcmd.c (printf_command): Print end of format string using | |
6702 | printf_filtered. | |
6703 | ||
a58d7472 TT |
6704 | 2010-03-02 Tom Tromey <tromey@redhat.com> |
6705 | ||
6706 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
6707 | * defs.h (read_command_lines_1): Add missing 'void'. | |
6708 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
6709 | 'void'. | |
6710 | (read_next_line): Likewise. | |
6711 | (read_command_lines_1): Likewise. | |
6712 | ||
ce50d78b UW |
6713 | 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com> |
6714 | ||
6715 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
6716 | store backchain as part of prologue. | |
6717 | ||
7e9af34a DJ |
6718 | 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com> |
6719 | ||
6720 | * progspace.c (update_address_spaces): Update inferior address spaces | |
6721 | also. | |
6722 | ||
01637564 DE |
6723 | 2010-03-02 Doug Evans <dje@google.com> |
6724 | ||
6725 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
6726 | lowpc,highpc args to addrmap_set_empty. | |
6727 | ||
1ba53b71 L |
6728 | 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> |
6729 | ||
6730 | * amd64-tdep.c (amd64_byte_names): New. | |
6731 | (amd64_word_names): Likewise. | |
6732 | (amd64_dword_names): Likewise. | |
6733 | (amd64_pseudo_register_name): Likewise. | |
6734 | (amd64_pseudo_register_read): Likewise. | |
6735 | (amd64_pseudo_register_write): Likewise. | |
6736 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
6737 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
6738 | set_gdbarch_pseudo_register_write and | |
6739 | set_tdesc_pseudo_register_name. Don't call | |
6740 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
6741 | ||
6742 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
6743 | (i386_num_pseudo_regs): Likewise. | |
6744 | (i386_byte_names): New. | |
6745 | (i386_word_names): Likewise. | |
6746 | (i386_byte_regnum_p): Likewise. | |
6747 | (i386_word_regnum_p): Likewise. | |
6748 | (i386_mmx_regnum_p): Updated. | |
6749 | (i386_pseudo_register_name): Make it global. Handle byte and | |
6750 | word pseudo-registers. | |
6751 | (i386_pseudo_register_read): Likewise. | |
6752 | (i386_pseudo_register_write): Likewise. | |
6753 | (i386_pseudo_register_type): Handle byte, word and dword | |
6754 | pseudo-registers | |
6755 | (i386_register_reggroup_p): Don't include pseudo | |
6756 | registers, except for MXX, in any register groups. Don't | |
6757 | include pseudo byte, word, dword registers in general_reggroup. | |
6758 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
6759 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
6760 | pseudo-registers after word pseudo-registers. Call | |
6761 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
6762 | ||
6763 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
6764 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
6765 | eax_regnum. | |
6766 | (i386_byte_regnum_p): New. | |
6767 | (i386_word_regnum_p): Likewise. | |
6768 | (i386_dword_regnum_p): Likewise. | |
6769 | (i386_pseudo_register_name): Likewise. | |
6770 | (i386_pseudo_register_read): Likewise. | |
6771 | (i386_pseudo_register_write): Likewise. | |
6772 | ||
a6f5ef51 L |
6773 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
6774 | ||
6775 | * target-descriptions.c (tdesc_type): Remove | |
6776 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
6777 | (tdesc_predefined_types): Likewise. | |
6778 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
6779 | if flag name is empty. | |
6780 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
6781 | ||
6782 | * features/i386/32bit-core.xml: Define i386_eflags. | |
6783 | * features/i386/64bit-core.xml: Likewise. | |
6784 | ||
6785 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
6786 | * features/i386/64bit-sse.xml: Likewise. | |
6787 | ||
6788 | * features/i386/amd64-linux.c: Regenerated. | |
6789 | * features/i386/amd64.c: Likewise. | |
6790 | * features/i386/i386-linux.c: Likewise. | |
6791 | * features/i386/i386.c: Likewise. | |
6792 | ||
f5dff777 DJ |
6793 | 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com> |
6794 | ||
6795 | * gdbtypes.c (append_composite_type_field_raw): New. | |
6796 | (append_composite_type_field_aligned): Use the new function. | |
6797 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
6798 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
6799 | (struct tdesc_type_flag): New type. | |
6800 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
6801 | kind. Add size to u.u. Add u.f for flags. | |
6802 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
6803 | (tdesc_free_type): Likewise. | |
6804 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
6805 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
6806 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
6807 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
6808 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
6809 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
6810 | current_type. Add current_type_size and current_type_is_flags. | |
6811 | (tdesc_start_union): Clear the new fields. | |
6812 | (tdesc_start_struct, tdesc_start_flags): New. | |
6813 | (tdesc_start_field): Handle struct fields, including bitfields. | |
6814 | (field_attributes): Make type optional. Add start and end. | |
6815 | (union_children): Rename to struct_union_children. | |
6816 | (union_attributes): Rename to struct_union_attributes. Add optional | |
6817 | size. | |
6818 | (flags_attributes): New. | |
6819 | (feature_children): Add struct and flags. | |
6820 | * features/gdb-target.dtd: Add flags and struct to features. | |
6821 | Make field type optional. Add field start and end. | |
6822 | ||
90884b2b L |
6823 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
6824 | ||
6825 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
6826 | (amd64_linux_read_description): Likewise. | |
6827 | (_initialize_amd64_linux_nat): Set to_read_description to | |
6828 | amd64_linux_read_description. | |
6829 | ||
6830 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
6831 | (amd64_linux_register_name): Removed. | |
6832 | (amd64_linux_register_type): Likewise. | |
6833 | (amd64_linux_core_read_description): New. | |
6834 | (amd64_linux_init_abi): Set target description to | |
6835 | tdesc_amd64_linux if needed. Support orig_rax in target | |
6836 | description. Don't call set_gdbarch_register_name nor | |
6837 | set_gdbarch_register_type. Call | |
6838 | set_gdbarch_core_read_description. | |
6839 | (_initialize_amd64_linux_tdep): Call | |
6840 | initialize_tdesc_amd64_linux. | |
6841 | ||
6842 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
6843 | ||
6844 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
6845 | (amd64_register_names): Removed. | |
6846 | (amd64_register_name): Likewise. | |
6847 | (amd64_register_type): Likewise. | |
6848 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 6849 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
6850 | set_gdbarch_register_name nor set_gdbarch_register_type. |
6851 | (_initialize_amd64_tdep): New. | |
6852 | ||
6853 | * i386-linux-nat.c (i386_linux_read_description): New. | |
6854 | (_initialize_i386_linux_nat): Set to_read_description to | |
6855 | i386_linux_read_description. | |
6856 | ||
6857 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
6858 | (i386_linux_register_name): Removed. | |
6859 | (i386_linux_core_read_description): New. | |
6860 | (i386_linux_read_description): Likewise. | |
6861 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
6862 | Set target description to tdesc_i386_linux if needed. Support | |
6863 | orig_eax. Set register_reggroup_p. Call | |
6864 | set_gdbarch_core_read_description. | |
6865 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
6866 | ||
6867 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
6868 | ||
6869 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
6870 | with I387_NUM_REGS. | |
6871 | ||
6872 | * i386-tdep.c: Include "features/i386/i386.c". | |
6873 | (i386_register_names): Make it const. | |
6874 | (i386_mmx_names): Likewise. | |
6875 | (i386_num_register_names): Removed. | |
6876 | (i386_register_name): Likewise. | |
6877 | (i386_eflags_type): Likewise. | |
6878 | (i386_mxcsr_type): Likewise. | |
6879 | (i386_sse_type): Likewise. | |
6880 | (i386_register_type): Likewise. | |
6881 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
6882 | (i386_pseudo_register_name): New. | |
6883 | (i386_pseudo_register_type): Likewise. | |
6884 | (i386_mmx_type): Make it static. | |
6885 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
6886 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
6887 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
6888 | Set register_reggroup_p. Set target description to tdesc_i386 | |
6889 | if needed. Call set_tdesc_pseudo_register_type, | |
6890 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
6891 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
6892 | initialize_tdesc_x86_64. | |
6893 | ||
6894 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
6895 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
6896 | register_names, tdesc and register_reggroup_p. | |
6897 | (I386_NUM_FREGS): Removed. | |
6898 | (i386_eflags_type): Likewise. | |
6899 | (i386_mxcsr_type): Likewise. | |
6900 | (i386_mmx_type): Likewise. | |
6901 | (i386_sse_type): Likewise. | |
6902 | (i386_register_name): Likewise. | |
6903 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
6904 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
6905 | ||
6906 | * i387-tdep.h (I387_NUM_REGS): New. | |
6907 | ||
6908 | * regformats/i386/i386-linux.dat: Generated. | |
6909 | * regformats/i386/i386.dat: Likewise. | |
6910 | * regformats/i386/amd64-linux.dat: Likewise. | |
6911 | * regformats/i386/amd64.dat: Likewise. | |
6912 | ||
6913 | * regformats/reg-i386-linux.dat: Removed. | |
6914 | * regformats/reg-i386.dat: Likewise. | |
6915 | * regformats/reg-x86-64-linux.dat: Likewise. | |
6916 | * regformats/reg-x86-64.dat: Likewise. | |
6917 | ||
d0d0ab16 CV |
6918 | 2010-03-01 Corinna Vinschen <vinschen@redhat.com> |
6919 | ||
6920 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
6921 | cygwin_conv_path API rather than the deprecated | |
6922 | cygwin_conv_to_full_posix_path. | |
6923 | * windows-nat.c: | |
6924 | (GetModuleFileNameExA): Undefine for Cygwin. | |
6925 | (GetModuleFileNameExW): Define for Cygwin. | |
6926 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
6927 | Call GetModuleFileNameExW and convert path to POSIX using | |
6928 | cygwin_conv_path. | |
6929 | (windows_make_so): Always define p. Drop unused variable m. | |
6930 | Don't use Win32 functions to check file existance, rather use | |
6931 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
6932 | Use canonicalize_file_name to get full path. | |
6933 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
6934 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
6935 | use correct target buffer size in call to WideCharToMultiByte. | |
6936 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
6937 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
6938 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
6939 | and use CreateProcessW on Cygwin. | |
6940 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
6941 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
6942 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
6943 | (_initialize_loadable): Load GetModuleFileNameExW into | |
6944 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
6945 | ||
dc00d89f PM |
6946 | 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> |
6947 | ||
6948 | PR python/11036 | |
6949 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
6950 | to cope with user provided blocks. | |
6951 | ||
0e095b7e JK |
6952 | 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
6953 | ||
6954 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
6955 | New comment. | |
6956 | ||
2f9e05b4 CV |
6957 | 2010-02-28 Corinna Vinschen <vinschen@redhat.com> |
6958 | ||
6959 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
6960 | (COMMON_OBS): ... to here since it's used unconditionally. | |
6961 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
6962 | (SFILES): To here. | |
6963 | ||
eb195664 DD |
6964 | 2010-02-26 David Daney <ddaney@caviumnetworks.com> |
6965 | ||
6966 | * mips-linux-tdep.c: Update struct sigframe comments. | |
6967 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
6968 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
6969 | this_frame's sp. | |
6970 | (mips_linux_n32n64_sigframe_init): Same. | |
6971 | ||
97b0f3e2 KB |
6972 | 2010-02-26 Kevin Buettner <kevinb@redhat.com> |
6973 | ||
6974 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
6975 | invalidating regcache. | |
6976 | ||
4069ebbe DJ |
6977 | 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
6978 | ||
6979 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
6980 | ||
05071a4d PA |
6981 | 2010-02-26 Pedro Alves <pedro@codesourcery.com> |
6982 | ||
6983 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
6984 | support. | |
6985 | ||
6063c216 UW |
6986 | 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com> |
6987 | ||
6988 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
6989 | add ADDR_SIZE member. | |
6990 | (allocate_piece_closure): Update. | |
6991 | (copy_pieced_value_closure): Likewise. | |
6992 | (dwarf2_evaluate_loc_desc): Likewise. | |
6993 | (read_pieced_value): Use DWARF address size instead of | |
6994 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
6995 | ||
5107b149 | 6996 | 2010-02-26 Phil Muldoon <pmuldoon@redhat.com> |
c8d5aac9 | 6997 | Tom Tromey <tromey@redhat.com> |
5107b149 PM |
6998 | |
6999 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
7000 | If provided restrict lookup to specified blocks. | |
7001 | (gdbpy_lookup_type): Likewise. | |
7002 | (typy_lookup_type): Likewise. | |
7003 | ||
78664fa3 | 7004 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8d95cc3b | 7005 | |
78664fa3 PA |
7006 | Symbian config |
7007 | ||
7008 | gdb/ | |
7009 | * arm-symbian-tdep.c: New. | |
7010 | * configure.tgt (arm*-*-symbianelf*): New target. | |
7011 | (*-*-symbianelf*): New OS. | |
7012 | * osabi.c (gdb_osabi_names): Add Symbian. | |
7013 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
7014 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
7015 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
7016 | ||
eb73e134 DJ |
7017 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
7018 | ||
7019 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
7020 | ||
46ef47e5 PA |
7021 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7022 | ||
7023 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
7024 | ||
f3e9a817 | 7025 | 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> |
8d95cc3b | 7026 | Tom Tromey <tromey@redhat.com> |
f3e9a817 PM |
7027 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
7028 | ||
7029 | * python/python.c (_initialize_python): Call | |
7030 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
7031 | gdbpy_initialize_blocks. | |
7032 | * python/python-internal.h: Declare struct symbol, block and | |
7033 | symtab_and_line. Declare block_object_type and | |
7034 | symbol_object_type | |
7035 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
7036 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
7037 | (symbol_to_symbol_object, block_to_block_object) | |
7038 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
7039 | (gdbpy_initialize_blocks ): Declare. | |
7040 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
7041 | (frapy_select): Add methods. | |
7042 | (frapy_read_var): Add symbol branch. | |
7043 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
7044 | py-block. | |
7045 | (SUBDIR_PYTHON_SRCS): Likewise. | |
7046 | (py-symbol.o): New rule. | |
7047 | (py-symtab.o): Likewise. | |
7048 | (py-block.o): Likewise. | |
7049 | * python/py-symbol.c: New file. | |
7050 | * python/py-symtab.c: Likewise. | |
7051 | * python/py-block.c: Likewise. | |
7052 | ||
24291992 PA |
7053 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7054 | ||
7055 | PR gdb/11321 | |
7056 | ||
7057 | * inferior.h (prepare_for_detach): Declare. | |
7058 | (struct inferior) <detaching>: New field. | |
7059 | * infrun.c (prepare_for_detach): New. | |
7060 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
7061 | * target.c (target_detach): Call prepare_for_detach. | |
7062 | ||
fc1cf338 PA |
7063 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7064 | ||
7065 | Per-process displaced stepping queue. | |
7066 | ||
7067 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
7068 | (displaced_step_gdbarch, displaced_step_closure, | |
7069 | (displaced_step_original, displaced_step_copy): Move globals to | |
7070 | this... | |
7071 | (struct displaced_step_inferior_state): ... new structure. | |
7072 | (displaced_step_inferior_states): New global. | |
7073 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
7074 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
7075 | functions. | |
7076 | (displaced_step_clear): Add displaced_step_inferior_state | |
7077 | parameter, and adjust to handle it. | |
7078 | (displaced_step_clear_cleanup): Parameter is now a | |
7079 | displaced_step_inferior_state. Adjust. | |
7080 | (displaced_step_prepare): Adjust. | |
7081 | (displaced_step_fixup, displaced_step_fixup) | |
7082 | (infrun_thread_ptid_changed, resume): Adjust. | |
7083 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
7084 | (infrun_thread_stop_requested): Rewrite. | |
7085 | (_initialize_infrun): Install infrun_inferior_exit as | |
7086 | inferior_exit observer. | |
7087 | ||
0723dbf5 PA |
7088 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7089 | ||
7090 | * inferior.h (ptid_match): Declare. | |
7091 | * infrun.c (ptid_match): New. | |
7092 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
7093 | (handle_notification): Add debug output. | |
7094 | * linux-nat.c (ptid_match): Delete. | |
7095 | ||
09de9781 DM |
7096 | 2010-02-24 David S. Miller <davem@davemloft.net> |
7097 | ||
7098 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
7099 | * syscalls/sparc-linux.xml: New. | |
7100 | * syscalls/sparc64-linux.xml: New. | |
7101 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
7102 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
7103 | (sparc32_linux_get_syscall_number): New function. | |
7104 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
7105 | syscall number fetcher. | |
7106 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
7107 | (sparc64_linux_get_syscall_number): New function. | |
7108 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
7109 | syscall number fetcher. | |
7110 | ||
a79b8f6e VP |
7111 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
7112 | ||
7113 | Multiexec MI | |
7114 | ||
7115 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
7116 | * inferior.c (add_inferior_silent): Notify inferior_added | |
7117 | observer. | |
7118 | (delete_inferior_1): Notify inferior_removed observer. | |
7119 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
7120 | (inferior_appeared): Likewise. | |
7121 | (add_inferior_with_spaces): New. | |
7122 | (add_inferior_command): Use the above. | |
7123 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
7124 | Declare. | |
7125 | ||
7126 | * inflow.c (inflow_inferior_exit): Likewise. | |
7127 | * jit.c (jit_inferior_exit_hook): Likewise. | |
7128 | ||
7129 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
7130 | remove-inferior. | |
7131 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
7132 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
7133 | (report_initial_inferior): New. | |
7134 | (mi_inferior_removed): Register the above. Make sure | |
7135 | inferior_added observer is called on the first inferior. | |
7136 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
7137 | inferior number, not pid. | |
7138 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
7139 | affected. | |
7140 | * mi/mi-main.c (current_context): New. | |
7141 | (proceed_thread_callback): Use typed closure. | |
7142 | Proceed everything if pid is 0. Most implementation split into | |
7143 | (proceed_thread): ... this. | |
7144 | (run_one_inferior): New. | |
7145 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
7146 | Adjust for multiexec behaviour. | |
7147 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
7148 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
7149 | Do some extra checks. | |
7150 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
7151 | options. | |
7152 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
7153 | ||
115d30f9 VP |
7154 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
7155 | ||
7156 | Make -exec-run a proper MI commands. | |
7157 | ||
7158 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
7159 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
7160 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
7161 | ||
06cd862c PA |
7162 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7163 | Stan Shebs <stan@codesourcery.com> | |
7164 | ||
7165 | * tracepoint.h (set_traceframe_number) | |
7166 | (cleanup_restore_current_traceframe): Declare. | |
7167 | * tracepoint.c (set_traceframe_number): New. | |
7168 | (struct current_traceframe_cleanup): New. | |
7169 | (do_restore_current_traceframe_cleanup) | |
7170 | (restore_current_traceframe_cleanup_dtor) | |
7171 | (make_cleanup_restore_current_traceframe): New. | |
7172 | * infrun.c: Include tracepoint.h. | |
7173 | (fetch_inferior_event): Switch out and in of tfind mode. | |
7174 | ||
ab92d69b PA |
7175 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
7176 | ||
7177 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
7178 | bp_shlib_event breakpoints. | |
7179 | * solib-frv.c (enable_break): Remove call to | |
7180 | remove_solib_event_breakpoints. | |
7181 | * solib-svr4.c (enable_break): Ditto. | |
7182 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
7183 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
7184 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
7185 | * solib-spu.c (spu_enable_break): Ditto. | |
7186 | ||
e707a91d PA |
7187 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
7188 | ||
7189 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
7190 | ||
cfce2ea2 PA |
7191 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
7192 | ||
7193 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
7194 | ||
05566b3b TT |
7195 | 2010-02-23 Tom Tromey <tromey@redhat.com> |
7196 | ||
7197 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
7198 | handle big-endian values. | |
7199 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
7200 | ||
85d721b8 PA |
7201 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
7202 | ||
7203 | PR9605 | |
7204 | ||
7205 | gdb/ | |
7206 | * breakpoint.c (insert_bp_location): If inserting the read | |
7207 | watchpoint failed, fallback to an access watchpoint. | |
7208 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
7209 | if the value changed, if not watching the same memory for writes. | |
7210 | (watchpoint_locations_match): Add comment. | |
7211 | (update_global_location_list): Copy the location's watchpoint type. | |
7212 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
7213 | handle read watchpoints here. | |
7214 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
7215 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
7216 | packets. | |
7217 | * target.h (target_insert_watchpoint): Update description. | |
7218 | ||
48ea67a7 TT |
7219 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
7220 | ||
7221 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
7222 | * m2-typeprint.c (m2_print_type): Update. | |
7223 | * gdbtypes.c (recursive_dump_type): Update. | |
7224 | (copy_type_recursive): Update. | |
7225 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
7226 | (c_type_print_base): Update. | |
7227 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
7228 | Remove. | |
7229 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
7230 | <struct template_arg>: Remove. | |
7231 | <is_dynamic>: Move earlier. | |
7232 | (TYPE_TEMPLATE_ARGS): Remove. | |
7233 | (TYPE_NTEMPLATE_ARGS): Remove. | |
7234 | (TYPE_TEMPLATE_ARG): Remove. | |
7235 | ||
48e32051 TT |
7236 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
7237 | ||
7238 | PR c++/8693, PR c++/9496: | |
7239 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
7240 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
7241 | write_dollar_variable. Don't try to classify NAME tokens. | |
7242 | (token_and_value): New type. | |
7243 | (token_fifo, popping, name_obstack): New globals. | |
7244 | (classify_name): New function. | |
7245 | (classify_inner_name): Likewise. | |
7246 | (yylex): Likewise. | |
7247 | (VARIABLE): Now has type sval. | |
7248 | (exp : VARIABLE): Call write_dollar_variable. | |
7249 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
7250 | multiple "::" instances. | |
7251 | (variable): Use name_not_typename. | |
7252 | (qualified_type): Remove. | |
7253 | (typebase): Update. | |
7254 | ||
672d9c23 JK |
7255 | 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
7256 | ||
7257 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
7258 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
7259 | found by bfd_get_section_by_name. | |
7260 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
7261 | ||
bfbf3774 JB |
7262 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
7263 | ||
7264 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
7265 | 7.0 section" into "Changes in 7.1". | |
7266 | ||
6756b09b | 7267 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
7268 | ||
7269 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
7270 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
7271 | ||
202b96c1 PA |
7272 | 2010-02-18 Harald Koenig <H.Koenig@science-computing.de> |
7273 | ||
7274 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
7275 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
7276 | ||
de2e5182 TT |
7277 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
7278 | ||
7279 | * NEWS: Add Python API Improvements section. | |
7280 | ||
7280022e DJ |
7281 | 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com> |
7282 | ||
7283 | * NEWS: Correct typo. | |
7284 | ||
6f451e5e TT |
7285 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
7286 | ||
7287 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
7288 | ||
012836ea JK |
7289 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7290 | ||
7291 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
7292 | only if they are SEC_ALLOC or SEC_LOAD. | |
7293 | ||
d182d057 L |
7294 | 2010-02-17 H.J. Lu <hongjiu.lu@intel.com> |
7295 | ||
7296 | PR shlibs/11293 | |
7297 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
7298 | of ULONGEST for address size. | |
7299 | ||
4eef138c TT |
7300 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
7301 | ||
7302 | * NEWS: Add C++ improvements section. | |
7303 | ||
548a926a UW |
7304 | 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
7305 | ||
7306 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
7307 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
7308 | ||
ad3a0e5b JK |
7309 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7310 | ||
7311 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
7312 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
7313 | ||
243e2c5d | 7314 | 2010-02-17 Tristan Gingold <gingold@adacore.com> |
b2319725 | 7315 | Petr Hluzin <petr.hluzin@gmail.com> |
243e2c5d TG |
7316 | |
7317 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
7318 | gdb_assert. Fix info->size for SIG prologue. | |
7319 | ||
275f2e57 DJ |
7320 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7321 | ||
7322 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
7323 | Correct output message. | |
7324 | ||
791dfb64 DJ |
7325 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7326 | ||
7327 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
7328 | FUNCTION contains parentheses. Improve removal of a trailing | |
7329 | single quote. | |
7330 | ||
14d1346b DJ |
7331 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7332 | ||
7333 | * gcore.c (do_bfd_delete_cleanup): New function. | |
7334 | (gcore_command): Use it. Discard the cleanup after success. | |
7335 | (gcore_copy_callback): Delete dead code. | |
7336 | ||
e76ab67f DJ |
7337 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7338 | ||
7339 | * symfile.c (addr_info_make_relative): Always use | |
7340 | find_lowest_section. | |
7341 | ||
71dee663 SW |
7342 | 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com> |
7343 | ||
7344 | * NEWS: Added entry for namespace fixes. | |
7345 | ||
a9854bd5 TT |
7346 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
7347 | ||
7348 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
7349 | objfile obstack. | |
7350 | ||
fd9e29b5 TT |
7351 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
7352 | ||
7353 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
7354 | ||
4e1fc9c9 JK |
7355 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7356 | ||
7357 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
7358 | initialize it from ELF BFD. Extend the prelink condition by it. | |
7359 | ||
74164c56 JK |
7360 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7361 | ||
7362 | * defs.h (parse_pid_to_attach): New. | |
7363 | * utils.c (parse_pid_to_attach): New. | |
7364 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
7365 | * gnu-nat.c (gnu_attach): Likewise. | |
7366 | * nto-procfs.c (procfs_attach): Likewise. | |
7367 | * procfs.c (procfs_attach): Likewise. | |
7368 | * windows-nat.c (windows_attach): Likewise. | |
7369 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
7370 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
7371 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
7372 | check. | |
7373 | ||
bf6adea8 MM |
7374 | 2010-02-14 Masaki Muranaka <monaka@monami-software.com> |
7375 | ||
7376 | * MAINTAINERS: Add myself for write after approval privileges. | |
7377 | ||
28f34a8f JK |
7378 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
7379 | ||
7380 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
7381 | block. | |
7382 | ||
701ed6dc JK |
7383 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
7384 | ||
7385 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
7386 | only if INFO_VERBOSE. | |
7387 | ||
e5829bee MS |
7388 | 2010-02-12 Tomas Holmberg <th@virtutech.com> |
7389 | ||
7390 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
7391 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
7392 | exec-next-instruction, exec-step-instruction. This is to | |
7393 | support reverse execution over the MI interface to gdb. | |
7394 | ||
081dfbf7 PA |
7395 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
7396 | ||
7397 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
7398 | range of `tfind outsize' is exclusive, and that the address range | |
7399 | of `tfind range' is inclusive, in the commands' help strings. | |
7400 | ||
ecc13e53 JB |
7401 | 2010-02-12 Joel Brobecker <brobecker@adacore.com> |
7402 | ||
7403 | Spurious "dll not found" error messages on x64-windows. | |
7404 | * windows-nat.c: Add include of complaints.h. | |
7405 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
7406 | ||
15c3d785 PA |
7407 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
7408 | ||
7409 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
7410 | bp_tracepoint and bp_fast_tracepoint, not | |
7411 | bp_loc_software_breakpoint. | |
7412 | (update_global_location_list): Tracepoints are never duplicates of | |
7413 | anything. | |
7414 | ||
fd9b8c24 PA |
7415 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
7416 | ||
7417 | * breakpoint.c (break_command_really): Change return type to int. | |
7418 | Return false if no breakpoint was created, true otherwise. | |
7419 | (trace_command): Don't set the tracepoint count if no tracepoint | |
7420 | was created. | |
7421 | (ftrace_command): Ditto. | |
7422 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
7423 | created in the breakpoints table. | |
7424 | ||
5c0d192f JK |
7425 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
7426 | Ulrich Weigand <uweigand@de.ibm.com> | |
7427 | ||
7428 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
7429 | ||
5d5b640e PA |
7430 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
7431 | ||
7432 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
7433 | the offset value isn't of integral type. | |
7434 | ||
e5a0a904 JK |
7435 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
7436 | ||
7437 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
7438 | New. | |
7439 | ||
be636754 PA |
7440 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
7441 | ||
7442 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
7443 | non-subscriptable types. | |
7444 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
7445 | from ... | |
7446 | (binop_user_defined_p): ... this. | |
7447 | * value.h (binop_types_user_defined_p): Declare. | |
7448 | ||
10ef8d6a PA |
7449 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
7450 | ||
7451 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
7452 | Merge uploaded TSVs before merging uploaded tracepoints. | |
7453 | ||
b1028c8e PA |
7454 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
7455 | ||
7456 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
7457 | ||
7a93fb82 | 7458 | 2010-02-11 Vladimir Prus <vladimir@codesourcery.com> |
84d90c10 | 7459 | |
7a93fb82 VP |
7460 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
7461 | whitespace character after a dot in comment. | |
7462 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
7463 | Likewise. | |
7464 | (list_args_or_locals): For the 'all' (that is | |
7465 | -stack-list-variables) case, always output list of tuples. | |
7466 | Output 'arg' field if variable is argument. | |
84d90c10 | 7467 | |
92981e24 TT |
7468 | 2010-02-10 Tom Tromey <tromey@redhat.com> |
7469 | ||
7470 | * parser-defs.h (parser_debug): Declare. | |
7471 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
7472 | command. | |
7473 | (parser_debug): New global. | |
7474 | (show_parserdebug): New function. | |
7475 | * c-exp.y (c_parse): Set yydebug. | |
7476 | ||
9fd3625f L |
7477 | 2010-02-10 H.J. Lu <hongjiu.lu@intel.com> |
7478 | ||
7479 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
7480 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
7481 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
7482 | i386_mxcsr. | |
7483 | (tdesc_find_type): New. | |
7484 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
7485 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
7486 | ||
7487 | * target-descriptions.h (tdesc_find_type): New. | |
7488 | ||
2fe842e5 MS |
7489 | 2010-02-10 Michael Snyder <msnyder@vmware.com> |
7490 | ||
7491 | * gdb-gdb.py: Comment fix. | |
7492 | ||
f18b4cab TG |
7493 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
7494 | ||
7495 | * machoread.c (macho_symfile_relocate): New function. | |
7496 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
7497 | default_symfile_relocate. | |
7498 | (macho_oso_data): New type. | |
7499 | (current_oso): New variable. | |
7500 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
7501 | instead set vma of sections. | |
7502 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
7503 | Set and clear current_oso. | |
7504 | ||
31dbc1c5 JB |
7505 | 2010-02-09 Joel Brobecker <brobecker@adacore.com> |
7506 | ||
7507 | Wrong type description for tagged type parameter. | |
7508 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
7509 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
7510 | reference to a tagged type. | |
7511 | ||
399f313b TG |
7512 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
7513 | ||
7514 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
7515 | brothers of the parent. | |
7516 | ||
714f19d5 TT |
7517 | 2010-02-08 Tom Tromey <tromey@redhat.com> |
7518 | ||
7519 | PR c++/8017: | |
7520 | * value.h: Update. | |
7521 | * valops.c (search_struct_field): Make 'name' const. | |
7522 | (search_struct_method): Likewise. | |
7523 | (find_method_list): Make 'method' const. | |
7524 | (value_struct_elt): Make 'name' and 'err' const. | |
7525 | (value_find_oload_method_list): Make 'method' const. | |
7526 | (find_overload_match): Make 'name' const. | |
7527 | * eval.c (evaluate_subexp_standard): New locals function, | |
7528 | function_name. | |
7529 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
7530 | ||
de0a0249 UW |
7531 | 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
7532 | ||
7533 | * infrun.c (handle_inferior_event): Do not look up regcache | |
7534 | for exited processes. | |
7535 | ||
8d95cc3b | 7536 | 2010-02-08 Chris Moller <moller@mollerware.com> |
83b10087 CM |
7537 | |
7538 | PR gdb/10728 | |
7539 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 7540 | warn if found, and assume length = 1. |
83b10087 | 7541 | |
99903ae3 CM |
7542 | 2010-02-08 Chris Moller <cmoller@redhat.com> |
7543 | ||
7544 | PR gdb/9067 | |
7545 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
6036c742 | 7546 | (cp_print_static_field) Fix use of obstacks. |
8d95cc3b | 7547 | |
e3e9f5a2 PA |
7548 | 2010-02-08 Pedro Alves <pedro@codesourcery.com> |
7549 | ||
7550 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
7551 | resumed LWPs as resumed. | |
7552 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
7553 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
7554 | of throwing an internal error. If an LWP of a process we're not | |
7555 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
7556 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
7557 | go through all LWPs cancelling breakpoints in non-stop mode. | |
7558 | (resume_stopped_resumed_lwps): New. | |
7559 | (linux_nat_wait): Use it. | |
7560 | ||
46763423 L |
7561 | 2010-02-07 H.J. Lu <hongjiu.lu@intel.com> |
7562 | ||
7563 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
7564 | i386/amd64 and i386/amd64-linux. | |
7565 | (i386/i386-expedite): New. | |
7566 | (i386/i386-linux-expedite): Likewise. | |
7567 | (i386/amd64-expedite):Likewise. | |
7568 | (i386/amd64-linux-expedite): Likewise. | |
7569 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
7570 | ($(outdir)/i386/amd64.dat): Likewise. | |
7571 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
7572 | ||
7573 | * features/i386/32bit-core.xml: New. | |
7574 | * features/i386/32bit-linux.xml: Likewise. | |
7575 | * features/i386/32bit-sse.xml: Likewise. | |
7576 | * features/i386/64bit-core.xml: Likewise. | |
7577 | * features/i386/64bit-linux.xml: Likewise. | |
7578 | * features/i386/64bit-sse.xml: Likewise. | |
7579 | * features/i386/i386-linux.xml: Likewise. | |
7580 | * features/i386/i386.xml: Likewise. | |
7581 | * features/i386/amd64-linux.xml: Likewise. | |
7582 | * features/i386/amd64.xml: Likewise. | |
7583 | * features/i386/i386-linux.c: Likewise. | |
7584 | * features/i386/i386.c: Likewise. | |
7585 | * features/i386/amd64-linux.c: Likewise. | |
7586 | * features/i386/amd64.c: Likewise. | |
7587 | ||
82856980 SW |
7588 | 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> |
7589 | ||
7590 | PR c++/7935: | |
7591 | * cp-support.h: Added char* alias element to using_direct data | |
7592 | struct. | |
7593 | (cp_add_using): Added char* alias argument. | |
7594 | (cp_add_using_directive): Ditto. | |
7595 | * cp-namespace.c: Updated with the above changes. | |
7596 | (cp_lookup_symbol_imports): Check for aliases. | |
7597 | * dwarf2read.c (read_import_statement): Figure out local alias | |
7598 | for the import and pass it on to cp_add_using. | |
7599 | (read_namespace): Pass alias argument to cp_add_using. | |
7600 | ||
d18b8b7a HZ |
7601 | 2010-02-05 Hui Zhu <teawater@gmail.com> |
7602 | ||
7603 | * defs.h (gdb_bfd_errmsg): New extern. | |
7604 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
7605 | gdb_bfd_errmsg. | |
7606 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
7607 | (AMBIGUOUS_MESS2): New macro. | |
7608 | (gdb_bfd_errmsg): New function. | |
7609 | ||
48379de6 DE |
7610 | 2010-02-04 Doug Evans <dje@google.com> |
7611 | ||
7612 | * solib-svr4.c (enable_break): Add comment. | |
7613 | ||
4ee73e90 AG |
7614 | 2010-02-04 Anthony Green <green@moxielogic.com> |
7615 | ||
7616 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
7617 | gracefully. | |
7618 | ||
1a334831 TT |
7619 | 2010-02-04 Tom Tromey <tromey@redhat.com> |
7620 | ||
7621 | * valops.c (search_struct_field): Account for | |
7622 | value_embedded_offset. Fix check for virtual base past the end of | |
7623 | the object. Use value_copy when making a slice of the value. | |
7624 | ||
1180b2c8 L |
7625 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
7626 | ||
7627 | PR tui/9622 | |
7628 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
7629 | only if gdb_stdout is a tty. | |
7630 | ||
c3f08eb7 L |
7631 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
7632 | ||
7633 | * target-descriptions.c: Include "osabi.h". | |
7634 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
7635 | OSABI. | |
7636 | ||
2d33f7b8 TG |
7637 | 2010-02-04 Tristan Gingold <gingold@adacore.com> |
7638 | ||
7639 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
7640 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
7641 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
7642 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
7643 | (macho_new_init): Move this function after declarations. | |
7644 | (macho_symfile_init): Ditto. | |
7645 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
7646 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
7647 | ||
11334b82 VP |
7648 | 2010-02-04 Vladimir Prus <vladimir@codesourcery.com> |
7649 | ||
7650 | Include MI command in remotelog. | |
7651 | ||
7652 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
7653 | ||
ff97be06 L |
7654 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
7655 | ||
7656 | * remote.c (remote_state): Remove gdbarch. | |
7657 | (init_remote_state): Don't set gdbarch. | |
7658 | (remote_query_supported): Pass target_gdbarch instead of | |
7659 | rs->gdbarch to gdbarch_qsupported. | |
7660 | ||
75cebea9 L |
7661 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
7662 | ||
7663 | * gdbarch.sh: Add qsupported. | |
7664 | ||
7665 | * gdbarch.c: Regenerated. | |
7666 | * gdbarch.h: Likewise. | |
7667 | ||
7668 | * remote.c (remote_state): Add gdbarch. | |
7669 | (init_remote_state): Set gdbarch. | |
7670 | (remote_query_supported): Support gdbarch_qsupported. | |
7671 | ||
c1dec97b DJ |
7672 | 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com> |
7673 | ||
7674 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
7675 | __FreeBSD_kernel_version. | |
7676 | ||
ac8035ab TG |
7677 | 2010-02-03 Tristan Gingold <gingold@adacore.com> |
7678 | ||
7679 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
7680 | (default_symfile_relocate): New prototype. | |
7681 | (symfile_relocate_debug_section): First argument is now an objfile. | |
7682 | * symfile.c (default_symfile_relocate): Rename from | |
7683 | symfile_relocate_debug_section, first argument is now an objfile. | |
7684 | (symfile_relocate_debug_section): New function. | |
7685 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
7686 | * somread.c (som_sym_fns): Ditto. | |
7687 | * mipsread.c (ecoff_sym_fns): Ditto. | |
7688 | * machoread.c (macho_sym_fns): Ditto. | |
7689 | * elfread.c (elf_sym_fns): Ditto. | |
7690 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
7691 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
7692 | * dbxread.c (aout_sym_fns): Ditto. | |
7693 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
7694 | (elfstab_build_psymtabs): Ditto. | |
7695 | ||
be52b756 L |
7696 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
7697 | ||
7698 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
7699 | ||
9c3c02fd TT |
7700 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
7701 | ||
7702 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
7703 | type. | |
7704 | ||
f23f4c59 TT |
7705 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
7706 | ||
7707 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
7708 | (gnuv2_baseclass_offset): Now static. | |
7709 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
7710 | * gnu-v2-abi.h: Remove. | |
7711 | ||
0cc2414c TT |
7712 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
7713 | ||
7714 | * m2-typeprint.c (m2_record_fields): Don't use | |
7715 | TYPE_DECLARED_TYPE. | |
7716 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
7717 | (struct main_type) <flag_declared_class>: New field. | |
7718 | (struct cplus_struct_type) <declared_type>: Remove. | |
7719 | <ntemplate_args>: Move earlier. | |
7720 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
7721 | (DECLARED_TYPE_TEMPLATE): Remove. | |
7722 | (TYPE_DECLARED_TYPE): Remove. | |
7723 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
7724 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
7725 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
7726 | TYPE_DECLARED_TYPE. | |
7727 | ||
edf3d5f3 TT |
7728 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
7729 | ||
7730 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
7731 | * valops.c (search_struct_field): Compute nbases after calling | |
7732 | CHECK_TYPEDEF. | |
7733 | (check_field): Call CHECK_TYPEDEF. | |
7734 | * cp-valprint.c (cp_print_value): Pass correct address to | |
7735 | baseclass_offset. Fix check for virtual base past the end of the | |
7736 | object. Don't offset address passed to cp_print_value_fields or | |
7737 | apply_val_pretty_printer. | |
7738 | (cp_print_value_fields): Fix call to val_print. | |
7739 | (cp_print_value_fields_rtti): New function. | |
7740 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
7741 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
7742 | val_print. | |
7743 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
7744 | offset to address. | |
7745 | * language.h (struct language_defn) <la_val_print>: Document. | |
7746 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
7747 | ||
e4b7f41c JK |
7748 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7749 | ||
7750 | PR libc/11214: | |
7751 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
7752 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
7753 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
7754 | ||
7618e12b DJ |
7755 | 2010-02-01 Michael Matz <matz@suse.de> |
7756 | Daniel Jacobowitz <dan@codesourcery.com> | |
7757 | ||
e4b7f41c | 7758 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
7759 | functions use a frame pointer. |
7760 | ||
b381ea14 JK |
7761 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7762 | ||
7763 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
7764 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
7765 | * config/djgpp/fnchange.lst: Add translations for | |
7766 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
7767 | ||
0e05dfcb DJ |
7768 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7769 | ||
7770 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
7771 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
7772 | * gdbarch.c: Regenerated. | |
7773 | ||
f9d67f43 DJ |
7774 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7775 | ||
7776 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
7777 | arm_pc_is_thumb. | |
7778 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
7779 | (extend_buffer_earlier): New function. | |
7780 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
7781 | (arm_adjust_breakpoint_address): New function. | |
7782 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
7783 | ||
177321bd DJ |
7784 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7785 | ||
7786 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
7787 | (arm_linux_thumb2_le_breakpoint): New constants. | |
7788 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
7789 | thumb2_breakpoint_size. | |
7790 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
7791 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
7792 | Implement support for single stepping through IT blocks if | |
7793 | a 32-bit Thumb breakpoint instruction is available. | |
7794 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
7795 | is available, use it when needed. | |
7796 | (arm_remote_breakpoint_from_pc): New function. | |
7797 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
7798 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
7799 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
7800 | ||
a1dcb23a DJ |
7801 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7802 | ||
7803 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
7804 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
7805 | * gdbarch.c, gdbarch.h: Regenerated. | |
7806 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
7807 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
7808 | gdbarch_remote_breakpoint_from_pc. | |
7809 | ||
2b009048 DJ |
7810 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
7811 | ||
7812 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
7813 | match a breakpoint. | |
7814 | (handle_inferior_event): Move the check for unusual breakpoint | |
7815 | signals earlier. | |
7816 | ||
e4e2711a JB |
7817 | 2010-01-29 Paul Hilfinger <hilfinger@adacore.com> |
7818 | ||
7819 | amd64 - function returning record with field straddling 2 registers. | |
7820 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
7821 | a record of length <= 16 in which a field straddles the two | |
7822 | eightbytes. | |
7823 | ||
cba6fab5 JB |
7824 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
7825 | ||
7826 | Implement return values on amd64-windows. | |
7827 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
7828 | (amd64_windows_return_value): New function. | |
7829 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
7830 | amd64_windows_return_value. | |
7831 | ||
3af6ddfe JB |
7832 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
7833 | ||
7834 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 7835 | parameter registers. |
3af6ddfe JB |
7836 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
7837 | integer_param_regs_saved_in_caller_frame. | |
7838 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
7839 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
7840 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
7841 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
7842 | ||
80d19a06 JB |
7843 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
7844 | ||
7845 | amd64-windows: memory args passed by pointer during function calls. | |
7846 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
7847 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
7848 | where tdep->memory_args_by_pointer is non-zero. | |
7849 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
7850 | tdep->memory_args_by_pointer to 1. | |
7851 | ||
ba581dc1 JB |
7852 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
7853 | ||
4966b6c2 | 7854 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
7855 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
7856 | amd64-tdep.c. | |
7857 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
7858 | call_dummy_integer_regs, and classify. | |
7859 | * amd64-tdep.h (amd64_classify): Add declaration. | |
7860 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
7861 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
7862 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
7863 | Replace call to amd64_classify by call to tdep->classify. | |
7864 | (amd64_push_arguments): Get the list of registers to use for | |
7865 | passing integer parameters from the gdbarch tdep structure, | |
7866 | rather than using a hardcoded one. Replace calls to amd64_classify | |
7867 | by calls to tdep->classify. | |
7868 | (amd64_push_dummy_call): Get the register number used for | |
7869 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
7870 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
7871 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
7872 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
7873 | (amd64_windows_dummy_call_integer_regs): New static global. | |
7874 | (amd64_windows_classify): New function. | |
7875 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
7876 | tdep->call_dummy_integer_regs and tdep->classify. | |
7877 | ||
d37346f0 DJ |
7878 | 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
7879 | ||
7880 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
7881 | for the new regcache. All callers updated. | |
7882 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
7883 | (get_thread_arch_regcache): Do not set aspace here. | |
7884 | * regcache.h (regcache_xmalloc): Update declaration. | |
7885 | ||
7886 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
7887 | regcache_xmalloc updated. | |
7888 | ||
7434dadd JB |
7889 | 2010-01-28 Joel Brobecker <brobecker@adacore.com> |
7890 | ||
7891 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
7892 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
7893 | Only define if SYS_syssgi is defined. | |
7894 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
7895 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
7896 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
7897 | is itself defined. | |
7898 | ||
16d905e2 CF |
7899 | 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx> |
7900 | ||
7901 | * windows-nat.c (windows_initialization_done): New variable. | |
7902 | (get_windows_debug_event): Issue error when process dies before | |
7903 | completely initializing. | |
7904 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
7905 | the initial steps of attaching to the child. | |
7906 | ||
cd55e50f JK |
7907 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
7908 | ||
7909 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
7910 | ||
99cc78aa DE |
7911 | 2010-01-27 Doug Evans <dje@google.com> |
7912 | ||
4c7dcb84 DE |
7913 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
7914 | ||
99cc78aa DE |
7915 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
7916 | ||
52334bf5 JK |
7917 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
7918 | ||
7919 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
7920 | objfile via SYMBOL_SYMTAB. | |
7921 | ||
708ead4e TT |
7922 | 2010-01-26 Tom Tromey <tromey@redhat.com> |
7923 | ||
7924 | PR exp/7643: | |
7925 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
7926 | coerce_array on result. | |
7927 | ||
b14e635e SW |
7928 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
7929 | ||
7930 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
7931 | search_parent argument. | |
7932 | (cp_add_using): Initialize 'searched' field. | |
7933 | (reset_directive_searched): New function. | |
7934 | * cp-support.h: Add 'searched' field to using_direct struct. | |
7935 | (cp_lookup_symbol_imports): Ditto. | |
7936 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
7937 | Perform recursive search. | |
7938 | Implement non parent search. | |
7939 | * valops.c (value_maybe_namespace_elt): Updated. | |
7940 | ||
8540c487 SW |
7941 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
7942 | ||
7943 | PR gdb/10929: | |
7944 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
7945 | scopes which contain using directives even if they contain no | |
7946 | declarations. | |
7947 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
7948 | la_lookup_symbol_nonlocal. | |
7949 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
7950 | cp_lookup_symbol_namespace. | |
7951 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
7952 | block level. | |
7953 | (cp_lookup_symbol_imports): New function. | |
7954 | (cp_lookup_symbol_in_namespace): New function. | |
7955 | ||
421d5d99 TT |
7956 | 2010-01-25 Tom Tromey <tromey@redhat.com> |
7957 | ||
7958 | PR gdb/11049: | |
7959 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
7960 | result. | |
7961 | ||
6bcc772d RO |
7962 | 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7963 | ||
7964 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
7965 | Use test to check variables, prefix strings with x. | |
7966 | * configure: Regenerate. | |
7967 | ||
7968 | * solib-osf.c (osf_current_sos): Initialize tail. | |
7969 | ||
1c1238a5 TG |
7970 | 2010-01-25 gingold <gingold@adacore.com> |
7971 | ||
c8d5aac9 L |
7972 | * windows-nat.c (windows_continue): Use %x to print thread id. |
7973 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 7974 | |
0b92b5bb TT |
7975 | 2010-01-22 Tom Tromey <tromey@redhat.com> |
7976 | ||
7977 | PR symtab/11199: | |
7978 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
7979 | type and arguments. Use smash_to_methodptr_type. | |
7980 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
7981 | later. | |
7982 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
7983 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
7984 | (lookup_methodptr_type): Use it. | |
7985 | ||
0d5392b8 TT |
7986 | 2010-01-21 Tom Tromey <tromey@redhat.com> |
7987 | ||
7988 | PR symtab/11198: | |
7989 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
7990 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
7991 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
7992 | (glibc_skip_solib_resolver): Use | |
7993 | lookup_minimal_symbol_and_objfile. | |
7994 | ||
e6d088ec KT |
7995 | 2010-01-21 Kai Tietz <kai.tietz@onevision.com> |
7996 | ||
7997 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
7998 | WIN32 targets. | |
7999 | ||
b966cb8a TT |
8000 | 2010-01-20 Tom Tromey <tromey@redhat.com> |
8001 | ||
8002 | PR backtrace/10770: | |
8003 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
8004 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
8005 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
8006 | dwarf_stack_values, not CORE_ADDRs. | |
8007 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
8008 | use signed operands. | |
8009 | ||
3f81c18a VP |
8010 | 2010-01-20 Vladimir Prus <vladimir@codesourcery.com> |
8011 | ||
8012 | Per-inferior args and tty and environment. | |
8013 | ||
8014 | * infcmd.c (inferior_args): Rename to ... | |
8015 | (inferior_args_scratch): ... this. | |
8016 | (inferior_io_terminal): Rename to ... | |
8017 | (inferior_io_terminal_scratch): ... this. | |
8018 | (inferior_argc, inferior_argv): Remove. | |
8019 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
8020 | inside current_inferior(). | |
8021 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
8022 | (get_inferior_args, set_inferior_args): Store inside | |
8023 | current_inferior(). | |
8024 | (notice_args_set): Likewise and rename to... | |
8025 | (set_args_command): ... this. | |
8026 | (set_inferior_args_vector): Likewise. | |
8027 | (notice_args_read): Rename to... | |
8028 | (show_args_command): ...new. | |
8029 | (tty_command): Remove. | |
8030 | (run_command_1): Don't free old args, as they are freed by | |
8031 | set_inferior_arg now. | |
8032 | (run_no_args_command): Likewise. | |
8033 | (inferior_environ): Remove. | |
8034 | (run_command_1): Use environment of the current inferior. | |
8035 | (environment_info, set_environment_command) | |
8036 | (unset_environment_command, path_info, path_command): Likewise. | |
8037 | (_initialize_infcmd): Adjust for function and variable renames. | |
8038 | Do not init inferior_environ. | |
8039 | * inferior.h (set_inferior_arg): Adjust prototype. | |
8040 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
8041 | (inferior_environ): Remove declaration. | |
8042 | * inferior.c (free_inferior): Free new fields. | |
8043 | (add_inferior_silent): Initialize 'environment' field. | |
8044 | * main.c (captured_main): Set arguments only after the initial | |
8045 | inferior has been created. Set set_inferior_io_terminal, | |
8046 | not tty_command. | |
8047 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
8048 | inferior. | |
8049 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
8050 | inferior_environ. | |
8051 | * solib.c (solib_find): Use environment of the current inferior. | |
8052 | ||
d8b65138 JK |
8053 | 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
8054 | ||
8055 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
8056 | HAVE_PYTHON. | |
8057 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
8058 | ||
692465f1 JB |
8059 | 2010-01-20 Joel Brobecker <brobecker@adacore.com> |
8060 | ||
8061 | Get rid of ada-lang.c:function_name_from_pc. | |
8062 | * ada-lang.c: Add "stack.h" #include. | |
8063 | (function_name_from_pc): Delete. | |
8064 | (is_known_support_routine): Replace call to function_name_from_pc | |
8065 | by call to find_frame_funname. | |
8066 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
8067 | ||
95519e0e TT |
8068 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
8069 | ||
8070 | PR c++/11026: | |
8071 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
8072 | objfile obstack. | |
8073 | ||
95c11dc7 TT |
8074 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
8075 | ||
8076 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
8077 | ||
a0f49112 JK |
8078 | 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
8079 | ||
8080 | * breakpoint.c (watchpoint_check): Check the call | |
8081 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
8082 | Extend the comment. | |
8d95cc3b | 8083 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
8084 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
8085 | watchpoint-cond-gone-stripped.c. | |
8086 | ||
ceeb3d5a TT |
8087 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
8088 | ||
8089 | PR c++/8000: | |
8090 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
8091 | into parent scope, and enumerator into grandparent scope. | |
8092 | ||
2b71fc8e JB |
8093 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8094 | ||
8095 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
8096 | ||
03564ed9 JB |
8097 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8098 | ||
8099 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
8100 | i[34567]86-*-solaris2.1[0-9]*. | |
8101 | * configure.tgt: Likewise. | |
8102 | ||
fb2e7cb4 JB |
8103 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8104 | ||
8105 | * NEWS: Document the source command enhancement allowing it | |
8106 | to load Python scripts. Document the "set/show script-extension" | |
8107 | commands. | |
8108 | ||
1cb5e2a4 JB |
8109 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8110 | ||
8111 | Add -Wunused-function to compile flags. | |
8112 | * configure.ac: Add -Wunused-function to build_warnings. | |
8113 | * configure: Regenerate. | |
8114 | ||
0ec6cd0c JB |
8115 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8116 | ||
8117 | "delete" ada-lex.c:input function, not used. | |
8118 | * ada-lex.l: #define YY_NO_INPUT. | |
8119 | ||
b74845da JB |
8120 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8121 | ||
8122 | Delete free_named_symtabs and associated cleanup. | |
8123 | * symfile.h (free_named_symtabs): Delete declaration. | |
8124 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
8125 | (cashier_psymtab): Comment function out. | |
8126 | Delete declaration. | |
8127 | (free_named_symtabs): Delete. | |
8128 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
8129 | * dbxread.c (end_psymtab): Likewise. | |
8130 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
8131 | * exec.c (exec_close_1): Ditto. | |
8132 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
8133 | ||
65c06092 JB |
8134 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8135 | ||
8136 | * stack.c (print_block_frame_labels): Comment function out. | |
8137 | ||
d5cd6034 JB |
8138 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
8139 | ||
8140 | Delete unused or undefined functions. | |
8141 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
8142 | * dcache.c (dcache_write_line): Remove declaration. | |
8143 | * infrun.c (build_infrun): Remove declaration. | |
8144 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
8145 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
8146 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
8147 | * infrun.c (init_execution_control_state): Delete. | |
8148 | (proceed): Update comment to avoid mentioning | |
8149 | init_execution_control_state. | |
8150 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
8151 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
8152 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
8153 | * cp-namespace.c (cp_copy_usings): Delete. | |
8154 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
8155 | * progspace.c (find_program_space_by_num): Delete. | |
8156 | * inflow.c (handle_sigio): Delete declaration. | |
8157 | * hppa-tdep.c (hppa_alignof): Delete. | |
8158 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
8159 | (mipsnbsd_core_osabi_sniffer): Delete. | |
8160 | ||
4e8f195d TT |
8161 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
8162 | ||
8163 | PR c++/9680: | |
8164 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
8165 | (CONST_CAST): New tokens. | |
8166 | (exp): Add new productions. | |
8167 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
8168 | reinterpret_cast. | |
8169 | (is_cast_operator): New function. | |
8170 | (yylex): Handle cast operators specially. | |
8171 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
8172 | UNOP_REINTERPRET_CAST>: New cases. | |
8173 | * expprint.c (print_subexp_standard): Likewise. | |
8174 | (op_name_standard): Likewise. | |
8175 | (dump_subexp_body_standard): Likewise. | |
8176 | * parse.c (operator_length_standard): Likewise. | |
8177 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
8178 | UNOP_REINTERPRET_CAST. | |
8179 | * gdbtypes.c (class_types_same_p): New function. | |
8180 | (is_ancestor): Use it. | |
8181 | (is_public_ancestor): New function. | |
8182 | (is_unique_ancestor_worker): Likewise. | |
8183 | (is_unique_ancestor): Likewise. | |
8184 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
8185 | (is_unique_ancestor): Declare. | |
8186 | * valops.c (value_reinterpret_cast): New function. | |
8187 | (dynamic_cast_check_1): Likewise. | |
8188 | (dynamic_cast_check_2): Likewise. | |
8189 | (value_dynamic_cast): Likewise. | |
8190 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
8191 | ||
d9c57d9f JB |
8192 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
8193 | ||
8194 | Fix build failure when building without Python support. | |
8195 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
8196 | is not defined. | |
8197 | ||
f80d3ff2 JB |
8198 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
8199 | ||
8200 | Use XVS field type instead of doing a parallel lookup. | |
8201 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
8202 | if it is a reference type instead of doing a type lookup using | |
8203 | the XVS field name. | |
8204 | ||
5bf03f13 JB |
8205 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
8206 | ||
8207 | Trust PAD types instead of using PAD___XVS. | |
8208 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
8209 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
8210 | parallel XVS type, follow the XVS type instead of the PAD type. | |
8211 | (unwrap_value): Make sure that there is no parallel XVE type | |
8212 | before returning the value as is. | |
8213 | (set_ada_list, show_ada_list): New static variables. | |
8214 | (set_ada_command, show_ada_command): New functions. | |
8215 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
8216 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
8217 | ||
973817a3 JB |
8218 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
8219 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
8220 | ||
8221 | Allow "source" to load python scripts. | |
8222 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
8223 | * python/python.c (source_python_script): New function. | |
8224 | * python/python.h (source_python_script): Add declaration. | |
8225 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
8226 | (script_ext_off, script_ext_soft, script_ext_strict) | |
8227 | (script_ext_enums, script_ext_mode): New static constants. | |
8228 | (show_script_ext_mode, find_and_open_script): New functions. | |
8229 | (source_script): Enhance to handle Python scripts. | |
8230 | (init_cli_cmds): Add set/show script-extension commands. | |
8231 | ||
98e03262 SS |
8232 | 2010-01-16 Stan Shebs <stan@codesourcery.com> |
8233 | ||
8234 | * tracepoint.h (struct trace_status): Use unsigned long long | |
8235 | instead of size_t. | |
8236 | * tracepoint.c (trace_status_command): Fix printf directive. | |
8237 | (trace_save_command): Check fwrite returns, fix printf directive. | |
8238 | (trace_filename): New global. | |
8239 | (tfile_open): Set it, check read returns. | |
8240 | (tfile_close): Free trace_filename. | |
8241 | (tfile_get_traceframe_address): Check read returns. | |
8242 | (tfile_trace_find): Ditto. | |
8243 | (tfile_fetch_registers): Ditto. | |
8244 | (tfile_xfer_partial): Ditto. | |
8245 | (tfile_get_trace_state_variable_value): Ditto. | |
8246 | ||
00bf0b85 SS |
8247 | 2010-01-15 Stan Shebs <stan@codesourcery.com> |
8248 | ||
8249 | Add trace file support. | |
8250 | * tracepoint.h (enum trace_stop_reason): New enum. | |
8251 | (struct trace_status): New struct. | |
8252 | (parse_trace_status): Declare. | |
8253 | (struct uploaded_tp): Move here from remote.c, | |
8254 | add fields for actions. | |
8255 | (struct uploaded_tsv): New struct. | |
8256 | * tracepoint.c (tfile_ops): New target vector. | |
8257 | (trace_fd): New global. | |
8258 | (tfile_open): New function. | |
8259 | (tfile_close): New function. | |
8260 | (tfile_files_info): New function. | |
8261 | (tfile_get_trace_status): New function. | |
8262 | (tfile_get_traceframe_address): New function. | |
8263 | (tfile_trace_find): New function. | |
8264 | (tfile_fetch_registers): New function. | |
8265 | (tfile_xfer_partial): New function. | |
8266 | (tfile_get_trace_state_variable_value): New function. | |
8267 | (init_tfile_ops): New function. | |
8268 | (_initialize_tracepoint): Call it, add tfile target. | |
8269 | (trace_status): New global. | |
8270 | (current_trace_status): New function. | |
8271 | (trace_running_p): Remove, change all users to get from | |
8272 | current_trace_status()->running. | |
8273 | (get_trace_status): Remove. | |
8274 | (trace_status_command): Call target_get_trace_status directly, | |
8275 | report more detail including tracing stop reasons. | |
8276 | (trace_find_command): Always allow tfind on a file. | |
8277 | (trace_find_pc_command): Ditto. | |
8278 | (trace_find_tracepoint_command): Ditto. | |
8279 | (trace_find_line_command): Ditto. | |
8280 | (trace_find_range_command): Ditto. | |
8281 | (trace_find_outside_command): Ditto. | |
8282 | (trace_frames_offset, cur_offset): Declare as off_t. | |
8283 | (trace_regblock_size): Rename from reg_size, update users. | |
8284 | (parse_trace_status): New function. | |
8285 | (tfile_interp_line): New function. | |
8286 | (disconnect_or_stop_tracing): Ensure current trace | |
8287 | status before asking what to do. | |
8288 | (stop_reason_names): New global. | |
8289 | (trace_save_command): New command. | |
8290 | (get_uploaded_tp): Move here from remote.c. | |
8291 | (find_matching_tracepoint): Ditto. | |
8292 | (merge_uploaded_tracepoints): New function. | |
8293 | (parse_trace_status): Use stop_reason_names. | |
8294 | (_initialize_tracepoint): Define tsave command. | |
8295 | * target.h (target_ops): New fields to_save_trace_data, | |
8296 | to_upload_tracepoints, to_upload_trace_state_variables, | |
8297 | to_get_raw_trace_data, change to_get_trace_status | |
8298 | to take a pointer to a status struct. | |
8299 | (target_save_trace_data): New macro. | |
8300 | (target_upload_tracepoints): New macro. | |
8301 | (target_upload_trace_state_variables): New macro. | |
8302 | (target_get_raw_trace_data): New macro. | |
8303 | * target.c (update_current_target): Add new methods, change | |
8304 | signature of to_get_trace_status. | |
8305 | * remote.c (hex2bin): Make globally visible. | |
8306 | (bin2hex): Ditto. | |
8307 | (remote_download_trace_state_variable): Download name also. | |
8308 | (remote_get_trace_status): Update parameter, use | |
8309 | parse_trace_status. | |
8310 | (remote_save_trace_data): New function. | |
8311 | (remote_upload_tracepoints): New function. | |
8312 | (remote_upload_trace_state_variables): New function. | |
8313 | (remote_get_raw_trace_data): New function. | |
8314 | (remote_start_remote): Use them. | |
8315 | (_initialize_remote_ops): Add operations. | |
8316 | * ax-gdb.c: Include breakpoint.h. | |
8317 | * breakpoint.c (create_tracepoint_from_upload): Use | |
8318 | break_command_really, return tracepoint, warn about unimplemented | |
8319 | parts. | |
8320 | * NEWS: Mention trace file addition. | |
8321 | ||
d904de5b JK |
8322 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8323 | ||
8324 | Fix compilation warning on gcc-3.4. | |
8325 | * exec.c (print_section_info): Move the `displacement' variable | |
8326 | initialization to its declaration. | |
8327 | ||
64aa9731 JK |
8328 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8329 | ||
8330 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
8331 | comparison. | |
8332 | ||
ca1f5def | 8333 | 2010-01-15 Eric Botcazou <botcazou@adacore.com> |
9f0dec2d JB |
8334 | |
8335 | "info tasks" broken by typedefs in ATCB type definitions. | |
8336 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
8337 | ada_check_typedef before retrieving the length of the type for | |
8338 | regular fields. | |
8339 | ||
12ab9e09 JB |
8340 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
8341 | ||
8342 | Do not use name-based lookup for unconstrained packed arrays. | |
8343 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
8344 | Limit the fallback to name-based lookups to the case where | |
8345 | the type is a constrained packed array. | |
8346 | ||
c389c3dc JB |
8347 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
8348 | ||
8349 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
8350 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
8351 | ||
7991dee7 JK |
8352 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8353 | ||
8354 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
8355 | * configure: Regenerate. | |
8356 | * config.in: Regenerate. | |
8357 | * utils.c: Include sys/resource.h. | |
8358 | (dump_core, can_dump_core): New. | |
8359 | (internal_vproblem): Update the comment. Check can_dump_core while | |
8360 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
8361 | ||
93c26624 JK |
8362 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8363 | Eli Zaretskii <eliz@gnu.org> | |
8364 | ||
8365 | * NEWS: Document the PIE support. | |
8366 | ||
55235ad7 JK |
8367 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8368 | ||
8369 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
8370 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
8371 | ||
41752192 JK |
8372 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8373 | ||
8374 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
8375 | Replace exec_entry_point call by bfd_get_start_address. | |
8376 | ||
9f2982ff JK |
8377 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8378 | ||
8379 | Support Valgrind attachments broken by the PIE support. | |
8380 | * auxv.c: Include gdbcore.h. | |
8381 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
8382 | parameters ops, object and annex. Remove their assertions. | |
8383 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
8384 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
8385 | (memory_xfer_auxv): ... here. | |
8386 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
8387 | memory_xfer_auxv. | |
8388 | * procfs.c (procfs_xfer_partial): Likewise. | |
8389 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
8390 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
8391 | (svr4_solib_create_inferior_hook): Conditionalize the | |
8392 | svr4_relocate_main_executable call. | |
8393 | ||
61f0d762 JK |
8394 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8395 | ||
8396 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
8397 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
8398 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
8399 | New variable abfd. | |
8400 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
8401 | of separate debug info file. | |
8402 | ||
51bee8e9 JK |
8403 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8404 | ||
8405 | Support PIEs with no symfile_objfile. | |
8406 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
8407 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
8408 | ||
b8040f19 JK |
8409 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
8410 | ||
8411 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
8412 | code part to ... | |
8413 | (svr4_static_exec_displacement): ... a new function. | |
8414 | (svr4_exec_displacement): New function. | |
8415 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
8416 | new_offsets using alloca now. Remove variable old_chain and changed. | |
8417 | Call objfile_relocate unconditionally now. | |
8418 | ||
eb90ce83 DE |
8419 | 2010-01-14 Doug Evans <dje@google.com> |
8420 | ||
8421 | * gdbtypes.c (arch_flags_type): Fix comment. | |
8422 | * gdbtypes.h (arch_composite_type): Fix comment. | |
8423 | ||
bdfed3bc TG |
8424 | 2009-01-14 Tristan Gingold <gingold@adacore.com> |
8425 | ||
8426 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
8427 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
8428 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
8429 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
8430 | macho_add_oso_symfile. | |
8431 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
8432 | ||
1596ad23 JB |
8433 | 2010-01-14 Joel Brobecker <brobecker@adacore.com> |
8434 | ||
8435 | Tru64: Dead threads are never deleted. | |
8436 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
8437 | (dec_thread_count_gdb_threads): Fix counter increment. | |
8438 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
8439 | (resync_thread_list): Fix bug in deletion of dead threads that | |
8440 | caused all threads to be deleted, instead of just the dead ones. | |
8441 | ||
be759fcf PM |
8442 | 2010-01-13 Phil Muldoon <pmuldoon@redhat.com> |
8443 | ||
8444 | PR python/10705 | |
8445 | ||
8446 | * python/python-internal.h: Add lazy_string_object_type | |
8447 | definition. | |
8448 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
8449 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
8450 | * python/py-value.c (valpy_lazy_string): New function. | |
8451 | (convert_value_from_python): Add lazy string conversion. | |
8452 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
8453 | return is also a lazy string. | |
8454 | (print_string_repr): Add lazy string printing branch. | |
8455 | (print_children): Likewise. | |
8456 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
8457 | * python/python.c (_initialize_python): Call | |
8458 | gdbpy_initialize_lazy_string. | |
8459 | * varobj.c (value_get_print_value): Add lazy string printing | |
8460 | branch. Account for encoding. | |
8461 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
8462 | encoding is NULL, find encoding suited for type, otherwise use | |
8463 | user encoding. | |
8464 | * language.h (language_defn): Add encoding argument. | |
8465 | (LA_PRINT_STRING): Likewise. | |
8466 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
8467 | argument to language_defn. | |
8468 | * ada-lang.h (ada_printstr): Likewise. | |
8469 | * c-lang.h (c_printstr): Likewise. | |
8470 | * p-lang.h (pascal_printstr); | |
8471 | * f-lang.c (f_printstr): Likewise. | |
8472 | * m2-lang.c (m2_printstr): Likewise. | |
8473 | * objc-lang.c (objc_printstr): Likewise. | |
8474 | * p-lang.c (pascal_printstr): Likewise. | |
8475 | * scm-lang.c (scm_printstr): Likewise. | |
8476 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
8477 | encoding argument. | |
8478 | * ada-valprint.c (ada_printstr): Likewise. | |
8479 | * f-valprint.c (f_val_print): Likewise | |
8480 | * m2-valprint.c (m2_val_print): Likewise. | |
8481 | * p-valprint.c (pascal_val_print): Likewise. | |
8482 | * expprint.c (print_subexp_standard): Likewise. | |
8483 | * valprint.c (val_print_string): Likewise. | |
8484 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
8485 | (SUBDIR_PYTHON_SRCS): Likewise. | |
8486 | (py-lazy-string.o): New rule. | |
8487 | ||
1fe72117 | 8488 | 2010-01-13 Doug Evans <dje@google.com> |
8eee9c5a DE |
8489 | |
8490 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
8491 | uninitialized" warning from gcc on local `tree'. | |
8492 | ||
dc146f7c VP |
8493 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
8494 | ||
8495 | Implement core awareness. | |
8496 | ||
8497 | * bcache.c (compare_ints): Remove | |
8498 | (print_percentage): Use compare_positive_ints. | |
8499 | * defs.h (compare_positive_ints): Declare. | |
8500 | * linux-nat.h (struct lin_lwp): New field core. | |
8501 | (linux_nat_core_of_thread_1): Declare. | |
8502 | * linux-nat.c (add_lwp): Init the 'core' field. | |
8503 | (linux_nat_wait_1): Record the core. | |
8504 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
8505 | (linux_nat_add_target): Register the above. | |
8506 | * linux-thread-db.c (update_thread_core): New. | |
8507 | (thread_db_find_new_threads): Update core information for | |
8508 | every thread. | |
8509 | * remote.c (struct private_thread_info): New. | |
8510 | (free_private_thread_info, demand_private_info): New. | |
8511 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
8512 | (struct thread_item, threads_parsing_context | |
8513 | (start_thread, end_thread, thread_attributes) | |
8514 | (thread_children, threads_children, threads_elements): New. | |
8515 | (remote_threads_info): Try qXfer:threads before anything | |
8516 | else. | |
8517 | (remote_protocol_packets): Register qXfer:threads. | |
8518 | (remote_open_1): Init use_osdata_threads. | |
8519 | (struct stop_reply): New field 'core'. | |
8520 | (remote_parse_stop_reply): Parse core number. | |
8521 | (process_stop_reply): Record core number. | |
8522 | (remote_xfer_partial): Handle qXfer:threads. | |
8523 | (remote_core_of_thread): New. | |
8524 | (init_remote_ops): Register remote_core_of_thread. | |
8525 | (_initialize_remote): Register qXfer:read. | |
8526 | * target.c (target_core_of_thread): New | |
8527 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
8528 | (struct target_ops): New field to_core_of_threads. | |
8529 | (target_core_of_thread): Declare. | |
8530 | * gdbthread.h (struct thread_info): New field private_dtor. | |
8531 | * thread.c (print_thread_info): Report the core. | |
8532 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
8533 | * utils.c (compare_positive_ints): New. | |
8534 | * features/threads.dtd: New. | |
8535 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
8536 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
8537 | (do_nothing, free_vector_of_osdata_items) | |
8538 | (splay_tree_int_comparator, free_splay_tree): New. | |
8539 | (print_one_inferior_data): Implemented printing of selected | |
8540 | inferiors. Collect and print cores. | |
8541 | (output_cores): New. | |
8542 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
8543 | thread groups together with --available. | |
8544 | ||
d30c5336 JK |
8545 | 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
8546 | ||
8547 | * configure: Regenerate (for _STRUCTURED_PROC). | |
8548 | ||
02893727 JB |
8549 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
8550 | ||
8551 | Delete dead function. | |
8552 | * ada-lang.c (extract_string): Delete. No longer used. | |
8553 | ||
46ed2d6f JB |
8554 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
8555 | ||
8556 | Fix -Wunused warning in dec-thread.c. | |
8557 | * dec-thread.c (dec_thread_count_gdb_threads) | |
8558 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
8559 | ||
606b8d1a JB |
8560 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
8561 | ||
8562 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
8563 | ||
b4ba55a1 JB |
8564 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
8565 | ||
8566 | Add support for DW_AT_GNAT_descriptive_type. | |
8567 | * gdbtypes.h (enum type_specific_kind): New enum. | |
8568 | (struct main_type) [type_specific_field]: New component. | |
8569 | [type_specific]: Add new component "gnat_stuff". | |
8570 | (struct gnat_aux_type): New type. | |
8571 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
8572 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
8573 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
8574 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
8575 | (TYPE_SPECIFIC_FIELD): New macros. | |
8576 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
8577 | type does not hold any cplus-specific data. | |
8578 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
8579 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
8580 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
8581 | cplus-specific data. | |
8582 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
8583 | Set new component TYPE_SPECIFIC_FIELD (type). | |
8584 | (gnat_aux_default): New constant. | |
8585 | (allocate_gnat_aux_type): New function. | |
8586 | (init_type): Add initialization the type-specific stuff for | |
8587 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
8588 | (print_gnat_stuff): New function. | |
8589 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
8590 | specific data. Adjust code that prints the contents of the | |
8591 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
8592 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
8593 | the type cplus stuff for Ada types. | |
8594 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
8595 | Error out if these routines are called with an Ada type. | |
8596 | (read_structure_type, read_array_type, read_subrange_type): | |
8597 | Add call to set_descriptive_type. | |
8598 | (set_die_type): Initialize the gnat-specific data if necessary. | |
8599 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
8600 | New functions. | |
8601 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
8602 | decode_constrained_packed_array_type instead of doing a standard | |
8603 | lookup to locate a parallel type. | |
8604 | (find_parallel_type_by_descriptive_type): New function. | |
8605 | (ada_find_parallel_type_with_name): New function. | |
8606 | (ada_find_parallel_type): Reimplement using | |
8607 | ada_find_parallel_type_with_name. | |
8608 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
8609 | to check if type has a cplus stuff. | |
8610 | * linespec.c (total_number_of_methods): Likewise. | |
8611 | * mdebugread.c (new_type): Likewise. | |
8612 | ||
b0f02ee9 JK |
8613 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8614 | ||
8615 | * NEWS: Document the 0b binary number prefix parsing. | |
8616 | ||
b260e109 JK |
8617 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8618 | ||
8619 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
8620 | Describe the new return value. Return non-zero if data changed. | |
8621 | (objfile_relocate): New variable changed. Set it. Call | |
8622 | breakpoint_re_set depending on CHANGED. | |
8623 | ||
b5cfddf5 JK |
8624 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8625 | ||
8626 | Implement binary numbers parsing. | |
8627 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
8628 | ||
e0ae4240 JK |
8629 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8630 | Tristan Gingold <gingold@adacore.com> | |
8631 | ||
8632 | * solib.c (info_sharedlibrary_command): Replace | |
8633 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
8634 | objfile_has_symbols. | |
8635 | ||
6e0e5977 JB |
8636 | 2010-01-10 Joel Brobecker <brobecker@adacore.com> |
8637 | ||
8638 | * NEWS: Document the improvements made to the mips-irix port. | |
8639 | ||
7348c5e1 JB |
8640 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8641 | ||
8642 | Fix the documentation of valprint.c:value_print. | |
8643 | * valprint.c (value_print): Update the function description to | |
8644 | mention that the syntax of the output follows the current_language, | |
8645 | not necessarily C. | |
8646 | ||
567995e1 JK |
8647 | 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
8648 | ||
8649 | Fix displacement of separate debug info files. | |
8650 | * objfiles.c (objfile_relocate): Rename to ... | |
8651 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
8652 | (objfile_relocate): New function. | |
8653 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
8654 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
8655 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
8656 | allocated using alloca. | |
8657 | * symfile.c (copy_section_addr_info): Remove. | |
8658 | (build_section_addr_info_from_objfile): Make it global. New variables | |
8659 | addr_bit and mask, use them. | |
8660 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
8661 | (copy_section_addr_info): Remove. | |
8662 | ||
6d8eadbd JB |
8663 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8664 | ||
8665 | Signal unwinder for mips-irix N32. | |
8666 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
8667 | tramp-frame.h. | |
8668 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
8669 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
8670 | (SIGCONTEXT_LO_OFF): New macros. |
8671 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
8672 | (mips_irix_n32_tramp_frame): New static constant. |
8673 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
8674 | ||
27087a3d JB |
8675 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8676 | ||
8677 | Breakpoint in shared library does not work on mips-irix. | |
8678 | * procfs.c: #include "observer.h". | |
8679 | (procfs_inferior_created): New function, moving here the code | |
8680 | which unsets the syssgi syscall-exit notifications. | |
8681 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
8682 | syscall-exit notifications. It is too early to do this here. | |
8683 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
8684 | ||
f08877ba JB |
8685 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8686 | ||
8687 | Wrong return convention for arrays (mips-irix). | |
8688 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
8689 | 128 bits or smaller are returned the same way as structs | |
8690 | and unions of the the same size. | |
8691 | ||
e4b97d48 JB |
8692 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8693 | ||
8694 | Cannot set the PC on mips-irix. | |
8695 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
8696 | register number, no the cooked one. | |
8697 | ||
11377e68 JB |
8698 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8699 | ||
8700 | Error while loading core file on mips-irix. | |
8701 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
8702 | if debugging from a core file. | |
8703 | ||
b2391021 JB |
8704 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8705 | ||
8706 | GDB hangs when attaching to process on mips-irix. | |
8707 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
8708 | attaching to a process. | |
8709 | ||
f2ec0ecf JB |
8710 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8711 | ||
8712 | Use the correct breakpoint instruction on mips-irix. | |
8713 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
8714 | containing the correct breakpoint instruction to use on mips-irix. | |
8715 | Use it when the osabi is GDB_OSABI_IRIX. | |
8716 | ||
3c95f01c JB |
8717 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8718 | ||
8719 | -Wunused warning in procfs.c (mips-irix only). | |
8720 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
8721 | throughout instead of using praddset and prdelset respectively. | |
8722 | ||
4b7703ad JB |
8723 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8724 | ||
8725 | GDB crash while stepping into function. | |
8726 | * infrun.c (handle_inferior_event): Refetch the current frame | |
8727 | after handling what.main_action, in case that pointer became | |
8728 | dangling. | |
8729 | ||
12c89474 JB |
8730 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
8731 | ||
8732 | Fix build failure of solaris-hosted cross debuggers. | |
8733 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
8734 | ||
1a3fd262 | 8735 | 2010-01-09 Daniel Gutson <dgutson@codesourcery.com> |
4c490650 JB |
8736 | |
8737 | Fix build failure on sparc-solaris. | |
8738 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
8739 | ||
75242ef4 JK |
8740 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8741 | ||
8742 | Move some symfile code into subroutines. | |
8743 | * symfile.h (relative_addr_info_to_section_offsets) | |
8744 | (addr_info_make_relative): New prototypes. | |
8745 | * symfile.c (default_symfile_offsets): Move a part to ... | |
8746 | (relative_addr_info_to_section_offsets): ... this new function. | |
8747 | (default_symfile_offsets): Call it. | |
8748 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
8749 | this part to ... | |
8750 | (addr_info_make_relative): ... this new function. | |
8751 | ||
268a4a75 JK |
8752 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8753 | ||
8754 | Add from_tty to solib_create_inferior_hook. | |
8755 | * infcmd.c (post_create_inferior): Move solib_add after | |
8756 | solib_create_inferior_hook. Pass from_tty to | |
8757 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
8758 | 0 from_tty and comment why. | |
8759 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
8760 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
8761 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
8762 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
8763 | from_tty. | |
8764 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
8765 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
8766 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
8767 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
8768 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
8769 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
8770 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
8771 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
8772 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
8773 | from_tty. | |
8774 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
8775 | solib_add. | |
8776 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
8777 | enable_break. | |
8778 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
8779 | parameter from_tty. | |
8780 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
8781 | it to ops->solib_create_inferior_hook. | |
8782 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
8783 | Move solib_add after solib_create_inferior_hook, call it now with | |
8784 | from_tty as 0. New comment there. | |
8785 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
8786 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
8787 | Likewise. | |
8788 | ||
cf00dfa7 VP |
8789 | 2010-01-08 Vladimir Prus <vladimir@codesourcery.com> |
8790 | ||
8791 | Fix multiexec race. | |
8792 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
8793 | with events ptid, not get_current_regcache. | |
8794 | ||
f91e5ac3 JB |
8795 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
8796 | ||
8797 | GDB crash with empty executable name (MinGW). | |
8798 | * source.c (openp): Add assert that parameter string is not NULL. | |
8799 | if parameter string is an empty string, then return with a failure | |
8800 | immediately. | |
8801 | ||
92b9ce5b JB |
8802 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
8803 | ||
8804 | Get rid of support for VAX Floats. | |
8805 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
8806 | (ada_vax_float_print_function): Delete. | |
8807 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
8808 | (ada_vax_float_print_function): Delete. | |
8809 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
8810 | (ada_print_type): Remove support for VAX floats. | |
8811 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
8812 | ||
268a4a75 | 8813 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
d24d8548 JK |
8814 | |
8815 | * stabsread.c (read_args): Handle zero arguments. | |
8816 | ||
f0f20949 JB |
8817 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
8818 | ||
8819 | Cannot find in-tree libiconv.a after reconfigure. | |
8820 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
8821 | that we can use, then cache the path to this archive. | |
8822 | * configure: Regenerate. | |
8823 | ||
6b6218c5 SS |
8824 | 2010-01-07 Stan Shebs <stan@codesourcery.com> |
8825 | ||
35b1e5cc SS |
8826 | Make tracepoint operations go through target vector. |
8827 | * target.h (enum trace_find_type): New enum. | |
8828 | (struct target_ops): New fields to_trace_init, | |
8829 | to_download_tracepoint, to_download_trace_state_variable, | |
8830 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
8831 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
8832 | to_set_disconnected_tracing. | |
8833 | (target_trace_init): New macro. | |
8834 | (target_download_tracepoint): New macro. | |
8835 | (target_download_trace_state_variable): New macro. | |
8836 | (target_trace_start): New macro. | |
8837 | (target_trace_set_readonly_regions): New macro. | |
8838 | (target_get_trace_status): New macro. | |
8839 | (target_trace_stop): New macro. | |
8840 | (target_trace_find): New macro. | |
8841 | (target_get_trace_state_variable_value): New macro. | |
8842 | (target_set_disconnected_tracing): New macro. | |
8843 | * target.c (update_current_target): Inherit and set defaults for | |
8844 | tracepoint operations. | |
8845 | * tracepoint.c (default_collect): Make globally visible. | |
8846 | (target_is_remote): Remove, along with all calls. | |
8847 | (tvariables_info): Call target_get_trace_state_variable_value. | |
8848 | (remote_set_transparent_ranges): Remove. | |
8849 | (trace_start_command): Call target_trace_init, | |
8850 | target_download_tracepoint, etc. | |
8851 | (download_tracepoint): Remove. | |
8852 | (trace_stop_command): Simplify. | |
8853 | (stop_tracing): Call target_trace_stop. | |
8854 | (get_trace_status): Call target_get_trace_status. | |
8855 | (trace_status_command): Add case for targets that cannot trace. | |
8856 | (finish_tfind_command): Change to take numerical arguments, call | |
8857 | target_trace_find. | |
8858 | (trace_find_command): Update call to finish_tfind_command. | |
8859 | (trace_find_pc_command): Ditto. | |
8860 | (trace_find_tracepoint_command): Ditto. | |
8861 | (trace_find_line_command): Ditto. | |
8862 | (trace_find_range_command): Ditto. | |
8863 | (trace_find_outside_command): Ditto. | |
8864 | (set_disconnected_tracing_value): Call | |
8865 | target_set_disconnected_tracing. | |
8866 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
8867 | (trace_error): Move from tracepoint.c. | |
8868 | (remote_get_noisy_reply): Ditto. | |
8869 | (free_actions_list_cleanup_wrapper): Ditto. | |
8870 | (free_actions_list): Ditto. | |
8871 | (remote_trace_init): New function. | |
8872 | (remote_download_tracepoint): New function. | |
8873 | (remote_download_trace_state_variable): New function. | |
8874 | (remote_trace_set_readonly_regions): New function. | |
8875 | (remote_trace_start): New function. | |
8876 | (remote_get_trace_status): New function. | |
8877 | (remote_trace_stop): New function. | |
8878 | (remote_trace_find): New function. | |
8879 | (remote_download_trace_state_variable): New function. | |
8880 | (remote_set_disconnected_tracing): New function. | |
8881 | (init_remote_ops): Add tracepoint operations. | |
8882 | ||
6b6218c5 SS |
8883 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
8884 | ||
089b4803 TG |
8885 | 2010-01-07 Tristan Gingold <gingold@adacore.com> |
8886 | ||
8887 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
8888 | (symbol_file_add_separate): Don't use offsets from objfile but | |
8889 | built an addr info. | |
8890 | ||
d5551862 SS |
8891 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
8892 | ||
8893 | Support disconnected tracing. | |
8894 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
8895 | * cli/cli-cmds.c (quit_command): Ditto. | |
8896 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
8897 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
8898 | (get_tracepoint_by_number_on_target): New function. | |
8899 | * remote.c (struct remote): New field disconnected_tracing. | |
8900 | (remote_disconnected_tracing_feature): New function. | |
8901 | (remote_protocol_features): Add DisconnectedTracing. | |
8902 | (struct uploaded_tp): New struct. | |
8903 | (uploaded_tps): New global. | |
8904 | (get_uploaded_tp): New function. | |
8905 | (find_matching_tracepoint): New function. | |
8906 | (remote_get_tracing_state): New function. | |
8907 | (remote_start_remote): Call it. | |
8908 | * tracepoint.c (disconnected_tracing): New global. | |
8909 | (trace_start_command): Initialize number_on_target. | |
8910 | (stop_tracing): New function, split out from... | |
8911 | (trace_stop_command): Call stop_tracing. | |
8912 | (get_trace_status): New function, split out from... | |
8913 | (trace_status_command): Call get_trace_status, add info on | |
8914 | disconnection behavior. | |
8915 | (disconnect_or_stop_tracing): New function. | |
8916 | (finish_tfind_command): Translate from number on target. | |
8917 | (trace_find_tracepoint_command): Translate to number on target. | |
8918 | (send_disconnected_tracing_value): New function. | |
8919 | (set_disconnected_tracing): New function. | |
8920 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
8921 | * NEWS: Mention disconnected tracing. | |
8922 | ||
15d123c9 TG |
8923 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
8924 | ||
8925 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
8926 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
8927 | * symfile.h (symbol_file_add_separate) | |
8928 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
8929 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
8930 | (reread_symbols): Use free_objfile_separate_debug. | |
8931 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
8932 | Adjust comment. | |
8933 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
8934 | (free_objfile_separate_debug): New prototypes. | |
8935 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
8936 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
8937 | functions. | |
8938 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
8939 | multiple separate debug objfile. | |
8940 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
8941 | debug objfiles. | |
8942 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
8943 | debug objfile. | |
8944 | (lookup_minimal_symbol_text): Ditto. | |
8945 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
8946 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
8947 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
8948 | debug objfiles. | |
8949 | ||
7a697b8d SS |
8950 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
8951 | ||
8952 | Add fast tracepoints. | |
8953 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
8954 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
8955 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
8956 | * breakpoint.c (tracepoint_type): New function. | |
8957 | (ALL_TRACEPOINTS): Use it. | |
8958 | (should_be_inserted): Ditto. | |
8959 | (bpstat_check_location): Ditto. | |
8960 | (print_one_breakpoint_location): Ditto. | |
8961 | (user_settable_breakpoint): Ditto. | |
8962 | (set_breakpoint_location_function): Ditto. | |
8963 | (disable_breakpoints_in_shlibs): Ditto. | |
8964 | (delete_trace_command): Ditto. | |
8965 | (print_it_typical): Add bp_fast_tracepoint case. | |
8966 | (bpstat_what): Ditto. | |
8967 | (print_one_breakpoint_location): Ditto. | |
8968 | (allocate_bp_location): Ditto. | |
8969 | (mention): Ditto. | |
8970 | (breakpoint_re_set_one): Ditto. | |
8971 | (disable_command): Ditto. | |
8972 | (enable_command): Ditto. | |
8973 | (check_fast_tracepoint_sals): New function. | |
8974 | (break_command_really): Call it. | |
8975 | (ftrace_command): New function. | |
8976 | (_initialize_breakpoint): Add ftrace command. | |
8977 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
8978 | * gdbarch.h, gdbarch.c: Regenerate. | |
8979 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
8980 | (i386_gdbarch_init): Use it. | |
8981 | * remote.c (struct remote_state): New field fast_tracepoints. | |
8982 | (PACKET_FastTracepoints): New packet config type. | |
8983 | (remote_fast_tracepoint_feature): New function. | |
8984 | (remote_protocol_features): Add FastTracepoints. | |
8985 | (remote_supports_fast_tracepoints): New function. | |
8986 | (_initialize_remote): Add FastTracepoints. | |
8987 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
8988 | * NEWS: Mention fast tracepoints. | |
8989 | ||
737a160e JB |
8990 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
8991 | ||
8992 | * gdb-gdb.py: New file. | |
8993 | ||
ce6cca6d MS |
8994 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
8995 | ||
8996 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
8997 | ||
0d15807d JK |
8998 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
8999 | ||
9000 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
9001 | ||
7803799a UW |
9002 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
9003 | ||
c8d5aac9 | 9004 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
9005 | and s390x-linux64. |
9006 | (s390-linux32-expedite): Define. | |
9007 | (s390-linux64-expedite): Define. | |
9008 | (s390x-linux64-expedite): Define. | |
9009 | * features/s390-acr.xml: New file. | |
9010 | * features/s390-fpr.xml: New file. | |
9011 | * features/s390-core32.xml: New file. | |
9012 | * features/s390-core64.xml: New file. | |
9013 | * features/s390x-core64.xml: New file. | |
9014 | * features/s390-linux32.xml: New file. | |
9015 | * features/s390-linux64.xml: New file. | |
9016 | * features/s390x-linux64.xml: New file. | |
9017 | * features/s390-linux32.c: New generated file. | |
9018 | * features/s390-linux64.c: New generated file. | |
9019 | * features/s390x-linux64.c: New generated file. | |
9020 | ||
9021 | * regformats/s390-linux32.dat: New generated file. | |
9022 | * regformats/s390-linux64.dat: New generated file. | |
9023 | * regformats/s390x-linux64.dat: New generated file. | |
9024 | * regformats/reg-s390.dat: Remove. | |
9025 | * regformats/reg-s390x.dat: Remove. | |
9026 | ||
9027 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
9028 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
9029 | (s390_target_wordsize): New function. | |
9030 | (s390_auxv_parse): Likewise. | |
9031 | (s390_get_hwcap): Likewise. | |
9032 | (s390_read_description): Likewise. | |
9033 | (_initialize_s390_nat): Install s390_auxv_parse and | |
9034 | s390_read_description. | |
9035 | ||
9036 | * s390-tdep.c: Include "features/s390-linux32.c", | |
9037 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
9038 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
9039 | (s390_register_call_saved): New function. | |
9040 | (s390_register_name): Remove. | |
9041 | (s390_register_type): Remove. | |
9042 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
9043 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
9044 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
9045 | (s390_pseudo_register_name): New function. | |
9046 | (s390_pseudo_register_type): New function. | |
9047 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
9048 | Handle full GPR pesudos and varying pseudo register numbers. | |
9049 | (s390_pseudo_register_write): Likewise | |
9050 | (s390x_pseudo_register_read): Remove. | |
9051 | (s390x_pseudo_register_write): Likewise. | |
9052 | (s390_register_group): Remove. | |
9053 | (s390_pseudo_register_group): New function. | |
9054 | (s390_regmap_gregset): Add GPR upper halves. | |
9055 | (s390x_regmap_gregset): Likewise. | |
9056 | (s390_regmap_fpregset): Likewise. | |
9057 | (s390_regmap_upper): New global variable. | |
9058 | (s390_upper_regset): New global variable. | |
9059 | (s390_upper_regset_sections): New global variable. | |
9060 | (s390_regset_from_core_section): Handle GPR upper halves. | |
9061 | (s390_core_read_description): New function. | |
9062 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
9063 | register information. Handle varying pseudo register numbers. | |
9064 | (s390_backchain_frame_unwind_cache): Likewise. | |
9065 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
9066 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
9067 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
9068 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
9069 | Handle varying pseudo register numbers. | |
9070 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
9071 | (s390_dwarf2_prev_register): New function. | |
9072 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
9073 | register information. Handle varying pseudo register numbers. | |
9074 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
9075 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
9076 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
9077 | (_initialize_s390_tdep): Initialize target descriptions. | |
9078 | ||
9079 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
9080 | (S390_NUM_REGS): Redefine to include upper half registers. | |
9081 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
9082 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
9083 | (tdesc_s390_linux32): Add declaration. | |
9084 | (tdesc_s390_linux64): Likewise. | |
9085 | (tdesc_s390x_linux64): Likewise. | |
9086 | ||
1b1818e4 UW |
9087 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
9088 | ||
9089 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
9090 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
9091 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
9092 | (ppc_linux_vmx_regset_sections): Likewise. | |
9093 | (ppc_linux_fp_regset_sections): Likewise. | |
9094 | ||
9095 | * corelow.c (get_core_register_section): Constify arguments. | |
9096 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
9097 | of hard-coded platform-specific register section names. | |
9098 | ||
dcbf108f UW |
9099 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
9100 | ||
9101 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 9102 | a register, assume the least-significant part is used. |
dcbf108f UW |
9103 | (write_pieced_value): Likewise. |
9104 | ||
704e9165 UW |
9105 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
9106 | ||
9107 | * printcmd.c: Include "arch-utils.h". | |
9108 | (do_one_display): Re-parse expression if current architecture changed. | |
9109 | ||
c54eabfa JK |
9110 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
9111 | Joel Brobecker <brobecker@adacore.com> | |
9112 | ||
9113 | * gdbtypes.c (check_typedef): New comment on type length. | |
9114 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
9115 | comment on type length. | |
9116 | (value_primitive_field): Keep the original TYPE value, new comment. | |
9117 | ||
50cb2941 JK |
9118 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9119 | ||
9120 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
9121 | p_start. Change != comparisons to > and < comparisons. | |
9122 | ||
be66db07 JK |
9123 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9124 | ||
9125 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
9126 | ||
abd775ce JB |
9127 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
9128 | ||
9129 | Update the copyright hearder to add year 2010 for most GDB files. | |
9130 | ||
6479260d JB |
9131 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
9132 | ||
9133 | Fix build failure in inf-ptrace.c. | |
9134 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
9135 | ||
4a70f654 JB |
9136 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
9137 | ||
9138 | * top.c (print_gdb_version): Update copyright year. | |
9139 | ||
595939de | 9140 | 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com> |
b9ee2233 JB |
9141 | |
9142 | Fix break *FUN'address thread NUM. | |
9143 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
9144 | ||
70575d34 JB |
9145 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
9146 | ||
9147 | Fix break *FUN'address task NUM. | |
9148 | * ada-lex.l (task): New rule. | |
9149 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
9150 | been built before using it. | |
9151 | ||
e1e4d4a4 | 9152 | For older changes see ChangeLog-2009. |
c906108c SS |
9153 | \f |
9154 | Local Variables: | |
9155 | mode: change-log | |
9156 | left-margin: 8 | |
9157 | fill-column: 74 | |
9158 | version-control: never | |
57da7796 | 9159 | coding: utf-8 |
c906108c | 9160 | End: |