Commit | Line | Data |
---|---|---|
93f2a35e JK |
1 | 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
2 | ||
3 | Fix compilation --without-expat. | |
4 | * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here | |
5 | from ... | |
6 | [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here. | |
7 | ||
2268b414 JK |
8 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
9 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10 | ||
11 | * Makefile.in (XMLFILES): Add library-list-svr4.dtd. | |
12 | * features/library-list-svr4.dtd: New file. | |
13 | * remote.c (PACKET_qXfer_libraries_svr4): New. | |
14 | (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4. | |
15 | (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4. | |
16 | * solib-svr4.c (struct svr4_library_list): New. | |
17 | [HAVE_LIBEXPAT]: Include xml-support.h. | |
18 | [HAVE_LIBEXPAT] (svr4_library_list_start_library) | |
19 | [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes) | |
20 | [HAVE_LIBEXPAT] (svr4_library_list_children) | |
21 | [HAVE_LIBEXPAT] (svr4_library_list_attributes) | |
22 | [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries) | |
23 | [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries) | |
24 | [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New. | |
25 | (svr4_read_so_list): Extend the corruption message by addresses. | |
26 | (svr4_current_sos): New variable library_list, call | |
27 | svr4_current_sos_via_xfer_libraries. | |
28 | * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4. | |
29 | ||
585861ea JK |
30 | 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
31 | ||
32 | PR threads/13448 | |
33 | * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u. | |
34 | For DW_OP_GNU_push_tls_address increment the value, new comment for it. | |
35 | ||
9750bca9 JK |
36 | 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
37 | ||
38 | PR breakpoints/13346 | |
39 | * dwarf2read.c (process_psymtab_comp_unit): Set | |
40 | PSYMTABS_ADDRMAP_SUPPORTED. | |
41 | * psympriv.h (struct partial_symtab): Comment textlow and texthigh | |
42 | validity. New field psymtabs_addrmap_supported. | |
43 | * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on | |
44 | psymtabs_addrmap_supported. | |
45 | (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for | |
46 | !PSYMTABS_ADDRMAP_SUPPORTED. | |
47 | (dump_psymtab, maintenance_info_psymtabs): Print also | |
48 | psymtabs_addrmap_supported. | |
49 | ||
f28c316a DE |
50 | 2011-12-01 Doug Evans <dje@google.com> |
51 | ||
52 | * python/py-type.c (type_object_methods): Fix "array" doc string. | |
53 | ||
fc0ae648 AB |
54 | 2011-12-01 Andrew Burgess <aburgess@broadcom.com> |
55 | ||
56 | * source.c (print_source_lines_base): Fix missing braces on else | |
57 | clause leading to additional output. | |
58 | ||
d6db1fab UW |
59 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
60 | ||
61 | * s390-nat.c (SUBOFF): Remove. | |
62 | (s390_native_supply, s390_native_collect): New functions. | |
63 | (supply_gregset, supply_fpregset): Use s390_native_supply. | |
64 | (fill_gregset, fill_fpregset): Use s390_native_collect. | |
65 | ||
66 | * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment. | |
67 | (s390_unwind_pseudo_register): New function. | |
68 | (s390_prologue_frame_unwind_cache): Unwind PSW address and mask | |
69 | registers instead of PC and CC. | |
70 | (s390_backchain_frame_unwind_cache): Likewise. | |
71 | (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or | |
72 | full GPR pseudos. | |
73 | (s390_trad_frame_prev_register): New function. | |
74 | (s390_frame_prev_register): Use it. | |
75 | (s390_sigtramp_frame_prev_register): Likewise. | |
76 | (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register. | |
77 | (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use | |
78 | special callback to unwind any pseudo. | |
79 | ||
80 | * features/s390-core32.xml: Add pswm/pswa to save/restore group. | |
81 | * features/s390-core64.xml: Likewise. | |
82 | * features/s390x-core64.xml: Likewise. | |
83 | * features/s390-linux32.c: Regenerate. | |
84 | * features/s390-linux64.c: Likewise. | |
85 | * features/s390x-linux64.c: Likewise. | |
86 | ||
1dd635ac UW |
87 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
88 | ||
89 | * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type. | |
90 | ||
0161e4b9 UW |
91 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
92 | ||
93 | * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL | |
94 | instruction. Add more diagnostic output. | |
95 | ||
0c36327f AS |
96 | 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com> |
97 | ||
98 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
99 | ||
b4264740 SD |
100 | 2011-11-29 Sanjoy Das <sdas@igalia.com> |
101 | ||
102 | * jit.c (add_objfile_entry, jit_reader_try_read_symtab) | |
103 | (jit_bfd_try_read_symtab): Fix comments. | |
104 | ||
87326c78 DD |
105 | 2011-11-28 DJ Delorie <dj@redhat.com> |
106 | ||
107 | * NEWS: Mention RL78 simulator. | |
108 | ||
1e3a8f45 JB |
109 | 2011-11-28 Joel Brobecker <brobecker@adacore.com> |
110 | ||
111 | * symfile.h (struct quick_symbol_functions): Fix the documentation | |
112 | of field map_matching_symbols, as symbols are sorted using | |
113 | strcmp_iw_ordered, not strcmp_iw. | |
114 | ||
265e52c3 JB |
115 | 2011-11-28 Paul Hilfinger <hilfinger@adacore.com> |
116 | ||
117 | * symfile.h (struct quick_symbol_functions): Update the | |
118 | documentation for field map_matching_symbols. | |
119 | ||
1a1d5513 JB |
120 | 2011-11-28 Joel Brobecker <brobecker@adacore.com> |
121 | ||
122 | * ada-lang.c (compare_names): Fix wrong return value in case | |
123 | string1 starts with the same contents as string2, followed | |
124 | by an underscore that do not start a symbol name suffix. | |
125 | ||
5d9c5995 PM |
126 | 2011-11-28 Phil Muldoon <pmuldoon@redhat.com> |
127 | ||
128 | PR python/13369 | |
129 | PR python/13374 | |
130 | ||
131 | * python/python.c (gdbpy_decode_line): Do not acquire GIL. | |
132 | * python/py-inferior.c (inferior_to_inferior_object): Ditto. | |
133 | * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB | |
134 | exceptions. | |
135 | * python/py-type.c (typy_strip_typedefs): Ditto. | |
136 | (typy_legacy_template_argument): Ditto. | |
137 | * python/py-inferior.c (inferior_to_inferior_object): Ditto. | |
138 | * python/py-breakpoint.c (bppy_set_ignore_count): Ditto. | |
139 | ||
2bf50f6f JB |
140 | 2011-11-27 Joel Brobecker <brobecker@acacore.com> |
141 | ||
142 | * remote.c (remote_get_tracepoint_status): Delete addrbuf | |
143 | local variable. Avoid use of sprintf_vma. | |
144 | ||
744ab88c SD |
145 | 2011-11-27 Sanjoy Das <sdas@igalia.com> |
146 | ||
147 | Fix regression in jit.exp. | |
148 | * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) | |
149 | (jit_register_code): Set the jit_objfile_data field to the correct | |
150 | value. | |
151 | ||
46ad3598 UW |
152 | 2011-11-25 Uros Bizjak <ubizjak@gmail.com> |
153 | ||
154 | * alpha-tdep.c (br_opcode): New. | |
155 | (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto. | |
156 | (alpha_deal_with_atomic_sequence): New function. | |
157 | (alpha_gdbarch_init): Handle single stepping of atomic sequences | |
158 | with alpha_deal_with_atomic_sequence. | |
159 | ||
e4c5f296 TG |
160 | 2011-11-24 Tristan Gingold <gingold@adacore.com> |
161 | ||
162 | * machoread.c (oso_el): Remove num_Sections, symbols, offsets | |
163 | fields. Add oso_sym, end_sym and nbr_syms. | |
164 | (macho_register_oso): Change interface. | |
165 | (macho_symtab_add_minsym): New function. | |
166 | (macho_symtab_read): Rewritten. | |
167 | (get_archive_prefix_len): Remove trailing blanks. | |
168 | (oso_el_compare_name): Add comment. | |
169 | (struct macho_sym_hash_entry): New structure. | |
170 | (macho_relocate_common_syms): Remove. | |
171 | (macho_sym_hash_newfunc): New function. | |
172 | (macho_resolve_oso_sym_with_minsym): Likewise. | |
173 | (macho_add_oso_symfile): Rewritten. | |
174 | (macho_symfile_read_all_oso): Remove trailing blanks. | |
175 | Adjust code to free oso vector. | |
176 | (macho_symfile_read): Likewise. | |
177 | Move code to initialize minimal symbol | |
178 | ||
130854df MR |
179 | 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com> |
180 | ||
181 | * mips-tdep.c (extended_offset): Fix formatting. | |
182 | ||
3d7bb9d9 DE |
183 | 2011-11-23 Doug Evans <dje@google.com> |
184 | ||
185 | * dwarf2read.c (dw2_lookup_symtab): Add comment. | |
186 | (dw2_expand_symtabs_with_filename): Ditto. | |
187 | (dw2_expand_symtabs_matching): Ditto. | |
188 | (dw2_map_symbol_filenames): Ditto. | |
189 | ||
1fbf5ada JB |
190 | 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com> |
191 | ||
192 | * ada-lang.c (assign_aggregate): Minor reformatting. | |
193 | ||
d984108d JB |
194 | 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com> |
195 | ||
196 | * ada-lang.c (assign_aggregate): Remove declaration of local | |
197 | variable `i' which is shadowing another variable with the same | |
198 | name declared in the outer scope. | |
199 | ||
18af8284 JB |
200 | 2011-11-23 Joel Brobecker <brobecker@adacore.com> |
201 | ||
202 | * ada-lang.c (get_base_type): Renames base_type. Adjust all | |
203 | calls throughout this file. | |
204 | ||
1fc7b5d7 JB |
205 | 2011-11-23 Joel Brobecker <brobecker@adacore.com> |
206 | ||
207 | * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to | |
208 | FormatMessage. | |
209 | ||
36dfb11c TT |
210 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
211 | ||
212 | PR mi/8444: | |
213 | * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK) | |
214 | (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY) | |
215 | (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants. | |
216 | * mi/mi-common.c (async_reason_string_lookup): Add new reasons. | |
217 | * breakpoint.c (print_it_catch_fork, print_it_catch_vfork) | |
218 | (print_it_catch_syscall, print_it_catch_exec) | |
219 | (internal_bkpt_print_it): Use ui_out. Emit stop reason. | |
220 | (bpstat_print): Add 'kind' argument. Handle | |
221 | TARGET_WAITKIND_LOADED. | |
222 | * infrun.c (normal_stop): Update for bpstat_print change. Don't | |
223 | handle TARGET_WAITKIND_LOADED here. | |
224 | * breakpoint.h (bpstat_print): Update. | |
225 | ||
5bd6aa83 TT |
226 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
227 | ||
228 | * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print. | |
229 | ||
f5afdc18 TT |
230 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
231 | ||
232 | * mi/mi-common.c (_initialize_gdb_mi_common): Remove. | |
233 | Use static_assert to check the size of | |
234 | async_reason_string_lookup. | |
235 | * common/gdb_assert.h (static_assert): New macro. | |
236 | ||
a3769e0c AM |
237 | 2011-11-22 Alan Modra <amodra@gmail.com> |
238 | ||
239 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch | |
240 | destination calculation. Don't expect >> to sign extend. Don't | |
241 | add a break if branch lands inside the sequence anywhere. | |
242 | ||
56767571 KS |
243 | 2011-11-21 Keith Seitz <keiths@redhat.com> |
244 | ||
245 | * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51, | |
246 | -var-evaluate-expression of an enumeration and fix expected result. | |
247 | * gdb.mi/mi2-varvdisplay.exp: Likewise. | |
248 | ||
8443c207 KY |
249 | 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com> |
250 | ||
251 | * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle | |
252 | the case where osdata->items is empty. Rename column names to a | |
253 | canonical form to avoid problems with unusual column names. | |
254 | ||
97643830 YQ |
255 | 2011-11-21 Yao Qi <yao@codesourcery.com> |
256 | ||
257 | * MAINTAINERS (Write After Approval): Keep list in alphabetical order. | |
258 | ||
f196051f SS |
259 | 2011-11-20 Stan Shebs <stan@codesourcery.com> |
260 | ||
261 | * NEWS: Mention tracepoint additions. | |
262 | * breakpoint.h (struct tracepoint): New field traceframe_usage. | |
263 | * breakpoint.c (print_one_breakpoint_location): Identify | |
264 | tracepoints as such when reporting hit counts, report | |
265 | trace buffer usage. | |
266 | (create_tracepoint_from_upload): Copy status info. | |
267 | * tracepoint.h (struct trace_status): Rename error_desc to stop_desc, | |
268 | add fields user_name, notes, start_time, stop_time. | |
269 | (struct uploaded_tp): Add fields hit_count, traceframe_usage. | |
270 | * tracepoint.c (trace_user): New global. | |
271 | (trace_notes): New global. | |
272 | (trace_stop_notes): New global. | |
273 | (start_tracing): Add argument and trace note handling. | |
274 | (stop_tracing): Ditto. | |
275 | (trace_start_command): Add notes argument. | |
276 | (trace_stop_command): Ditto. | |
277 | (trace_status_command): Report additional status info. | |
278 | (trace_status_mi): Similarly. | |
279 | (trace_save): Update, record tracepoint status. | |
280 | (set_disconnected_tracing): Call target method directly. | |
281 | (send_disconnected_tracing_value): Remove. | |
282 | (set_trace_user): New function. | |
283 | (set_trace_notes): New function. | |
284 | (set_trace_stop_notes): New function. | |
285 | (parse_trace_status): Handle additional status. | |
286 | (parse_tracepoint_status): New function. | |
287 | (parse_tracepoint_definition): Call it. | |
288 | (tfile_get_tracepoint_status): New function. | |
289 | (init_tfile_ops): Use it. | |
290 | (_initialize_tracepoint): Add new setshows. | |
291 | * target.h (struct target_ops): New methods to_get_tracepoint_status | |
292 | and to_set_trace_notes. | |
293 | (target_get_tracepoint_status): New macro. | |
294 | (target_set_trace_notes): New macro. | |
295 | * target.c (update_current_target): Add new methods. | |
296 | * remote.c (remote_get_tracepoint_status): New function. | |
297 | (remote_set_trace_notes): New function. | |
298 | (init_remote_ops): Add them. | |
299 | * mi/mi-main.c (mi_cmd_trace_start): Add argument to call. | |
300 | (mi_cmd_trace_stop): Ditto. | |
301 | ||
3623dc3a SD |
302 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
303 | ||
304 | * jit.c: Include regcache.h. | |
305 | (jit_gdbarch_data, jit_frame_unwind): New static variables. | |
306 | (jit_unwind_reg_set_impl, free_reg_value_impl) | |
307 | (jit_unwind_reg_get_impl, jit_frame_sniffer) | |
308 | (jit_frame_unwind_stop_reason, jit_frame_this_id) | |
309 | (jit_frame_prev_register, jit_dealloc_cache) | |
310 | (jit_prepend_unwinder, jit_gdbarch_data_init): New functions. | |
311 | (jit_inferior_init): Prepend (new) pseudo unwinder by calling | |
312 | jit_prepend_unwinder. | |
313 | (_initialize_jit): Register new gdbarch data jit_gdbarch_data. | |
314 | ||
1825a88d SD |
315 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
316 | ||
317 | * jit.c: Include block.h, dictionary.h and frame-unwind.h. | |
318 | (add_objfile_entry, jit_target_read_impl, jit_object_open_impl) | |
319 | (jit_symtab_open_impl, compare_block, jit_block_open_impl) | |
320 | (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl) | |
321 | (finalize_symtab, jit_object_close_impl) | |
322 | (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) | |
323 | (free_objfile_data): New functions. | |
324 | (_initialize_jit): Register jit_objfile_data with a proper cleanup | |
325 | function. | |
326 | ||
784c47ee SD |
327 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
328 | ||
329 | * jit.c: Include gdb-dlfcn.h. | |
330 | (loaded_jit_reader, reader_init_fn_sym): New static variables. | |
331 | (jit_reader_load, jit_reader_load_command) | |
332 | (jit_reader_unload_command): New functions. | |
333 | (_initialize_jit): Add commands "jit-reader-load" and | |
334 | "jit-reader-unload". | |
335 | ||
a2d08b9e SD |
336 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
337 | ||
338 | * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system. | |
339 | * config.in: Add new #define HAVE_LIBDL. | |
340 | * configure.ac: Add check for -ldl. | |
341 | * configure: Re-generated by autoconf. | |
342 | * gdb-dlfcn.c: New file. | |
343 | * gdb-dlfcn.h: New file. | |
344 | ||
b8e0a31c SD |
345 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
346 | ||
347 | * config.in: Add new #defines: JIT_READER_DIR and | |
348 | JIT_READER_DIR_RELOCATABLE. | |
349 | * configure.ac: New GDB directory entry for jit-reader-dir. | |
350 | * configure: Re-generated by autoconf. | |
351 | * jit.c: New static variable: const char *jit_reader_dir. | |
352 | (_initialize_jit): Relocate jit_reader_dir. | |
353 | ||
f997c383 SD |
354 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
355 | ||
356 | * Makefile.in: Add jit-reader.h as a header. Have it installed in | |
357 | $(includedir)/gdb. | |
358 | * configure.ac: Generate a correct value for TARGET_PTR for | |
359 | jit-reader.h. Tell configure to generate jit-reader.h from | |
360 | jit-reader.in. | |
361 | * configure: Re-generated by autoconf. | |
362 | * jit-reader.in: New file. | |
363 | * jit.c: Include jit-reader.h. | |
364 | ||
dc8c0494 SD |
365 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
366 | ||
367 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
368 | ||
01efb936 UW |
369 | 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com> |
370 | ||
371 | * findvar.c (read_frame_register_value): Respect value_offset | |
372 | of the register value. Remove big-endian special case. | |
373 | ||
732f3f12 TT |
374 | 2011-11-18 Tom Tromey <tromey@redhat.com> |
375 | ||
376 | PR build/7196: | |
377 | * remote.c (putpkt_for_catch_errors): New function. | |
378 | (remote_kill): Use it. | |
379 | ||
bfccc43c YQ |
380 | 2011-11-18 Yao Qi <yao@codesourcery.com> |
381 | ||
382 | * breakpoint.c (create_breakpoint): Produce query message according to | |
383 | breakpoint's type. | |
384 | Allocate tracepoint per correct type. | |
385 | Don't check SALs for pending fast tracepoints. | |
386 | * tracepoint.c (process_tracepoint_on_disconnect): New. | |
387 | (disconnect_tracing): Call process_tracepoint_on_disconnect. | |
388 | ||
3ea46bff YQ |
389 | 2011-11-18 Yao Qi <yao@codesourcery.com> |
390 | ||
391 | * breakpoint.c (install_breakpoint): Add one more parameter so that | |
392 | update_global_location_list is called conditionally. | |
393 | (create_fork_vfork_event_catchpoint): Update. | |
394 | (create_syscall_event_catchpoint): Update. | |
395 | (create_breakpoint_sal): Update. | |
396 | (create_breakpoint_sal): Update. Call do_cleanups before | |
397 | install_breakpoint. | |
398 | * ada-lang.c (create_ada_exception_catchpoint): Update. | |
399 | * breakpoint.h (install_breakpoint): Update declaration. | |
400 | ||
598cfb71 UW |
401 | 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
402 | ||
403 | * spu-tdep.c (spu_return_value): Fix handling of | |
404 | TYPE_CALLING_CONVENTION annotation. | |
405 | ||
caf4328c UW |
406 | 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
407 | ||
408 | * skip.c (skip_function_command): Work around uninitialized | |
409 | variable warning. | |
410 | ||
2b54dda2 DM |
411 | 2011-11-16 David S. Miller <davem@davemloft.net> |
412 | ||
413 | * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and | |
414 | 'tv_usec' to long for printf since these fields have a type which | |
415 | varies. | |
416 | ||
93bf33fd DE |
417 | 2011-11-15 Doug Evans <dje@google.com> |
418 | ||
419 | * buildsym.c (add_symbol_to_list): Delete outdated comment. | |
420 | ||
9cc10fd1 PK |
421 | 2011-11-15 Paul Koning <paul_koning@dell.com> |
422 | ||
423 | * python/py-type.c (typy_get_composite): New function. | |
424 | (typy_nonzero): New function. | |
425 | (typy_values): Rename from typy_fields. | |
426 | (typy_fields): New function. | |
427 | (typy_length): Raise exception if not struct, union, or enum type. | |
428 | (typy_getitem): Ditto. | |
429 | (typy_has_key): Ditto. | |
430 | (typy_make_iter): Ditto. | |
431 | ||
c011a4f4 DE |
432 | 2011-11-15 Doug Evans <dje@google.com> |
433 | ||
434 | * NEWS: Mention new parameter basenames-may-differ. | |
435 | * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if | |
436 | ! basenames_may_differ. | |
437 | * psymtab.c (lookup_partial_symtab): Ditto. | |
438 | * symtab.c (lookup_symtab): Ditto. | |
439 | (basenames_may_differ): New global. | |
440 | (_initialize_symtab): New parameter basenames-may-differ. | |
441 | * symtab.h (basenames_may_differ): Declare. | |
442 | ||
865ecab4 LM |
443 | 2011-11-15 Pedro Alves <pedro@codesourcery.com> |
444 | Luis Machado <lgustavo@codesourcery.com> | |
445 | ||
446 | * auxv.c: Include observer.h. | |
447 | (auxv_inferior_data_cleanup): New. | |
448 | (invalidate_auxv_cache_inf): New. | |
449 | (invalidate_auxv_cache): New. | |
450 | (get_auxv_inferior_data): New. | |
451 | (auxv_inferior_data): New static global. | |
452 | (auxv_info): New structure. | |
453 | (target_auxv_search): Use get_auxv_inferior_data instead of | |
454 | target_read_alloc and don't free cached buffers. | |
455 | (fprint_target_auxv): Likewise | |
456 | (_initialize_auxv): Register per-inferior auxv cache and register | |
457 | observers to invalidate auxv cache when needed. | |
458 | ||
ed59ded5 DE |
459 | 2011-11-14 Doug Evans <dje@google.com> |
460 | ||
461 | Make "!" an alias for "shell". | |
462 | * NEWS: Add mention. | |
463 | * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on | |
464 | adding "!" command, always add it. | |
465 | * cli/cli-decode.c (find_command_name_length): Recognize "!" as a | |
466 | command of length one. | |
467 | ||
405f8e94 SS |
468 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
469 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
470 | ||
471 | * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet. | |
472 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for | |
473 | the minimum instruction size for fast tracepoints. | |
474 | * target.h (struct target_ops): Add new method | |
475 | to_get_min_fast_tracepoint_insn_len. | |
476 | (target_get_min_fast_tracepoint_insn_len): New. | |
477 | * target.c (update_current_target): Set up new target operation. | |
478 | * remote.c (remote_write_bytes_aux): Fix typo. | |
479 | (remote_get_min_fast_tracepoint_insn_len): New. | |
480 | (init_remote_ops): Initialize new field. | |
481 | ||
3e05895e TT |
482 | 2011-11-14 Tom Tromey <tromey@redhat.com> |
483 | ||
484 | * tracepoint.c (encode_actions_1): Use the location's gdbarch. | |
485 | (encode_actions): Likewise. | |
486 | ||
1e4d1764 YQ |
487 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
488 | ||
489 | * remote.c (struct remote_state): <install_in_trace> new field. | |
490 | (PACKET_InstallInTrace): New enum value. | |
491 | (remote_install_in_trace_feature): Support InstallInTrace. | |
492 | (remote_supports_install_in_trace): Likewise. | |
493 | (remote_protocol_features): Likewise. | |
494 | (_initialize_remote): Likewise. | |
495 | (remote_can_download_tracepoint): New. | |
496 | * target.h (struct target): New field | |
497 | `to_can_download_tracepoint'. | |
498 | (target_can_download_tracepoint): New macro. | |
499 | * target.c (update_current_target): Update. | |
500 | * breakpoint.h (struct bp_location): Add comment on field | |
501 | `duplicate'. | |
3ccd4ac6 YQ |
502 | * breakpoint.c (should_be_inserted): Don't differentiate breakpoint |
503 | and tracepoint. | |
1e4d1764 YQ |
504 | (remove_breakpoints): Don't remove tracepoints. |
505 | (tracepoint_locations_match ): New. | |
506 | (breakpoint_locations_match): Call it. | |
507 | (disable_breakpoints_in_unloaded_shlib): Handle tracepoint. | |
508 | (download_tracepoint_locations): New. | |
509 | (update_global_location_list): Call it. | |
510 | * tracepoint.c (find_matching_tracepoint): Delete. | |
511 | (find_matching_tracepoint_location): Renamed from | |
512 | find_matching_tracepoint. Return bp_location rather than | |
513 | tracepoint. | |
514 | (merge_uploaded_tracepoints): Set `inserted' field to 1 if | |
515 | tracepoint is found. | |
516 | ||
e8ba3115 YQ |
517 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
518 | ||
519 | * target.h (struct target): <to_download_tracepoint> Change type | |
520 | of parameter from tracepoint to bp_location. | |
521 | * target.c (update_current_target): Update. | |
522 | * tracepoint.c (start_tracing): Update. | |
523 | * remote.c (remote_download_tracepoint): Remove loop for each location | |
524 | of a tracepoint. | |
525 | ||
edcc485a MR |
526 | 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com> |
527 | ||
528 | * i386-nat.c (i386_insert_hw_breakpoint): Call | |
529 | i386_update_inferior_debug_regs. | |
530 | (i386_remove_hw_breakpoint): Likewise. | |
531 | ||
3742cc8b YQ |
532 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
533 | ||
534 | * breakpoint.c (init_raw_breakpoint): Call | |
535 | add_location_to_breakpoint to replace duplicated code. | |
536 | (add_location_to_breakpoint): Adjust the breakpoint's | |
537 | address prior to allocating a location. | |
538 | ||
71eba9c2 | 539 | 2011-11-12 Matt Rice <ratmice@gmail.com> |
540 | ||
541 | * macrocmd.c (macro_no_macro_info): New function. | |
542 | (macro_expand_command): Use macro_no_macro_info. | |
543 | (macro_expand_once_command): Ditto. | |
544 | (info_macro_command): Add argument processing, | |
545 | move info_definitions_command here. | |
546 | (_initialize_macrocmd): Remove info definitions command. | |
547 | Add arguments to info macro help text. | |
548 | * NEWS: Replace info definitions command with new info macro options. | |
549 | ||
731971ed KS |
550 | 2011-11-11 Keith Seitz <keiths@redhat.com> |
551 | ||
552 | PR gdb/12843 | |
553 | * linespec.c (locate_first_half): Keep ':' if it looks | |
554 | like it could be part of a Windows path starting with | |
555 | a drive letter. | |
556 | ||
6953d224 PA |
557 | 2011-11-10 Pedro Alves <pedro@codesourcery.com> |
558 | ||
559 | * linux-nat.c (linux_nat_wait): Don't force waking up the event | |
560 | loop when returning a TARGET_WAITKIND_NO_RESUMED. | |
561 | ||
0c94aa73 PA |
562 | 2011-11-10 Pedro Alves <pedro@codesourcery.com> |
563 | ||
564 | * target.c (target_waitstatus_to_string): Handle | |
565 | TARGET_WAITKIND_NO_RESUMED. | |
566 | ||
f6b47be4 DE |
567 | 2011-11-10 Doug Evans <dje@google.com> |
568 | ||
74e2f255 DE |
569 | * dwarf2read.c (dw2_map_symbol_filenames): New parameter |
570 | `need_fullname'. | |
571 | * psymtab.c (map_symbol_filenames_psymtab): Ditto. | |
572 | (map_partial_symbol_filenames): Ditto. All callers updated. | |
573 | * psymtab.h (map_partial_symbol_filenames): Update prototype. | |
574 | * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New | |
575 | parameter need_fullname. | |
576 | ||
256f06f3 DE |
577 | * psymtab.c (psymtab_to_fullname): Use cached copy if it exists. |
578 | * source.c (symtab_to_fullname): Ditto. | |
579 | ||
50f182aa DE |
580 | * defs.h (is_cplus_marker, set_demangling_style): Moved to ... |
581 | * gdb-demangle.h: ... here. New file. | |
582 | * demangle.c: #include "gdb-demangle.h". | |
583 | (_initialize_demangler): Use initialize_file_ftype for prototype. | |
584 | Move "set demangle" and "set asm-demangle" parameters here from utils.c | |
585 | (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here | |
586 | from utils.c | |
587 | * utils.c: Update. #include "gdb-demangle.h". | |
588 | * symtab.h (asm_demangle): Delete. | |
589 | (demangle): Move declaration next to use. | |
590 | * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h". | |
591 | * dwarf2read.c: #include "gdb-demangle.h". | |
592 | * gnu-v2-abi.c: Ditto. | |
593 | * jv-typeprint.c: Ditto. | |
594 | * mdebugread.c: Ditto. | |
595 | * p-typeprint.c: Ditto. | |
596 | * stabsread.c: Ditto. | |
597 | * printcmd.c: Ditto. | |
598 | (asm_demangle): Delete declaration. | |
599 | * tui/tui-stack.c: #include "gdb-demangle.h". | |
600 | ||
f6b47be4 DE |
601 | * python/py-type.c (typy_fields_items): Call check_typedef. |
602 | ||
22355c90 JB |
603 | 2011-11-10 Joel Brobecker <brobecker@adacore.com> |
604 | ||
605 | * findvar.c (read_frame_register_value): Read the correct bytes | |
606 | from registers on big-endian architectures. | |
607 | ||
bd119cf1 | 608 | 2011-11-10 Tom Tromey <tromey@redhat.com> |
e28cade7 JB |
609 | |
610 | * procfs.c (load_syscalls): Make a cleanup. | |
611 | (open_procinfo_files): fd==0 is ok. | |
612 | ||
0a86f364 JB |
613 | 2011-11-10 Joel Brobecker <brobecker@adacore.com> |
614 | ||
615 | * procfs.c (iterate_over_mappings): Call do_cleanups before | |
616 | returning. | |
617 | ||
9bc118a5 DE |
618 | 2011-11-09 Doug Evans <dje@google.com> |
619 | ||
620 | * gdbtypes.c (check_typedef): Document that this function can | |
621 | throw an exception. | |
622 | ||
a7860e76 TT |
623 | 2011-11-09 Tom Tromey <tromey@redhat.com> |
624 | ||
625 | PR c++/13342: | |
626 | * valops.c (value_full_object): Return early if real type is | |
627 | smaller than the enclosing type. | |
628 | ||
60965737 YQ |
629 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
630 | ||
631 | * amd64-tdep.c (amd64_relocate_instruction): Make it static. | |
632 | ||
72a2e3dc MI |
633 | 2011-11-08 Meador Inge <meadori@codesourcery.com> |
634 | ||
635 | * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP | |
636 | register when the frame can't be determined. | |
637 | * arm-tdep.c (arm_analyze_prologue): Ditto. | |
638 | ||
ce3b0ff7 SS |
639 | 2011-11-07 Stan Shebs <stan@codesourcery.com> |
640 | ||
641 | * MAINTAINERS: Move Michael Snyder to Past Maintainers. | |
642 | ||
2b914b52 JB |
643 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
644 | ||
645 | * infrun.c (handle_inferior_event): Minor reformatting. | |
646 | ||
6f809020 DE |
647 | 2011-11-05 Doug Evans <dje@google.com> |
648 | ||
649 | * source.c (forget_cached_source_info_for_objfile): Move call to | |
650 | objfile->sf->qf->forget_cached_source_info outside of | |
651 | ALL_OBJFILE_SYMTABS loop. | |
652 | (forget_cached_source_info): Delete unused variable `s'. | |
653 | ||
75d12218 JK |
654 | 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
655 | ||
656 | * i386-nat.c (dr_ref_count): Remove unused variable. | |
657 | ||
e565b837 DE |
658 | 2011-11-05 Doug Evans <dje@google.com> |
659 | ||
660 | * main.c (captured_main): Set lim_at_start before calling | |
661 | make_command_stats_cleanup. | |
662 | ||
0a1c4d10 DE |
663 | 2011-11-04 Doug Evans <dje@google.com> |
664 | ||
665 | * utils.c: #include "timeval-utils.h". | |
666 | (cmd_stats): Rename start_time to start_cpu_time. | |
667 | New member start_wall_time. | |
668 | (report_command_stats): Report wall time. | |
669 | (make_command_stats_cleanup): Record start wall time. | |
670 | ||
a1d705ee TT |
671 | 2011-11-04 Tom Tromey <tromey@redhat.com> |
672 | ||
673 | * cp-namespace.c (cp_lookup_symbol_imports): Reindent. | |
674 | ||
81de56be RO |
675 | 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
676 | ||
677 | * coff-pe-read.c: Include defs.h before bfd.h. | |
678 | ||
3ab1ec27 PM |
679 | 2011-11-04 Phil Muldoon <pmuldoon@redhat.com> |
680 | ||
681 | PR Python/13345 | |
682 | ||
683 | * python/python.c (python_run_simple_file): Expand tilde in path. | |
684 | ||
cd829959 PM |
685 | 2011-11-04 Phil Muldoon <pmuldoon@redhat.com> |
686 | ||
687 | PR Python/13363 | |
688 | ||
689 | * python/py-type.c (typy_lookup_type): Do not return a type in | |
690 | an exception handler. | |
691 | ||
080ad648 JK |
692 | 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
693 | Eli Zaretskii <eliz@gnu.org> | |
694 | ||
695 | * linux-nat.c (_initialize_linux_nat): Improve help | |
696 | for `info proc stat', `info proc status', `info proc cwd', | |
697 | `info proc cmdline' and `info proc exe'. | |
698 | ||
3065dfb6 SS |
699 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
700 | ||
701 | String collection for tracepoints. | |
702 | * NEWS: Mention string collection. | |
703 | * common/ax.def (tracenz): New bytecode. | |
704 | * ax-gdb.h (trace_string_kludge): Declare. | |
705 | * ax-gdb.c: Include valprint.h and c-lang.h. | |
706 | (trace_string_kludge): New global. | |
707 | (gen_traced_pop): Add string case. | |
708 | (agent_command): Add string case. | |
709 | * tracepoint.h (decode_agent_options): Declare. | |
710 | * tracepoint.c: Include cli-utils.h. | |
711 | (decode_agent_options): New function. | |
712 | (validate_actionline): Call it. | |
713 | (encode_actions_1): Ditto. | |
714 | * target.h (struct target_ops): New method to_supports_string_tracing. | |
715 | (target_supports_string_tracing): New macro. | |
716 | * target.c (update_current_target): Add to_supports_string_tracing. | |
717 | * remote.c (struct remote_state): New field string_tracing. | |
718 | (remote_string_tracing_feature): New function. | |
719 | (remote_protocol_features): New feature tracenz. | |
720 | (remote_supports_string_tracing): New function. | |
721 | (init_remote_ops): Set to_supports_string_tracing. | |
722 | ||
f179e162 JK |
723 | 2011-11-02 Pedro Alves <pedro@codesourcery.com> |
724 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
725 | ||
726 | * linux-nat.c: Include cli/cli-utils.h. | |
727 | (enum info_proc_what): New. | |
728 | (linux_nat_info_proc_cmd): Rename to ... | |
729 | (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all. | |
730 | New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f, | |
731 | status_f and stat_f from WHAT. Throw error on extra parameters. | |
732 | (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings) | |
733 | (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status) | |
734 | (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline) | |
735 | (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New. | |
736 | (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info | |
737 | proc mappings', `info proc stat`, `info proc status', `info proc cwd', | |
738 | `info proc cmdline', `info proc exe' and `info proc all' as real | |
739 | subcommands of `info proc'. | |
740 | ||
7b35ec7f | 741 | 2011-11-01 Justin Lebar <justin.lebar@gmail.com> |
1bfeeb0f JL |
742 | |
743 | * Makefile.in: (SFILES): Add skip.c. | |
744 | (HFILES_NO_SRCDIR): Add skip.h. | |
745 | (COMMON_OBS): Add skip.o. | |
746 | * skip.h, skip.c: New. | |
747 | * breakpoint.h (set_default_breakpoint): Remove. | |
748 | (get_sal_arch): Declare. | |
749 | * breakpoint.c: Remove default_breakpoint_valid, | |
750 | default_breakpoint_address, default_breakpoint_symtab, | |
751 | default_breakpoint_line, default_breakpoint_pspace variables. | |
752 | (get_sal_arch): Make public. | |
753 | (set_default_breakpoint): Remove. | |
754 | (parse_breakpoint_sals, create_breakpoint, clear_command, | |
755 | decode_line_spec_1): Remove uses of default_breakpoint variables; | |
756 | replaced with function calls into stack.c. | |
757 | * cli/cli-cmds.h: Add cmd_list_element *skiplist. | |
758 | * cli/cli-cmds.c: Add skiplist. | |
759 | (init_cmd_lists): Initialize skiplist. | |
760 | (init_cli_cmds): Fix comment (classes of commands appear in | |
761 | alphabetical order). | |
762 | * infrun.c (handle_inferior_event): Add check that we don't step into | |
763 | a function whose pc is marked for skip. | |
764 | * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace, | |
765 | last_displayed_addr, last_displayed_symtab, last_displayed_line | |
766 | variables. | |
767 | (set_last_displayed_sal): New static function. | |
768 | (print_frame_info): Switch call to set_default_breakpoint to call to | |
769 | set_last_displayed_sal. | |
770 | (clear_last_displayed_sal, last_displayed_sal_is_valid, | |
771 | get_last_displayed_pspace, get_last_displayed_addr, | |
772 | get_last_displayed_symtab, get_last_displayed_line, | |
773 | get_last_displayed_sal): New public functions. | |
774 | * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid, | |
775 | get_last_displayed_pspace, get_last_displayed_addr, | |
776 | get_last_displayed_symtab, get_last_displayed_line, | |
777 | get_last_displayed_sal): Declare. | |
778 | ||
b60e1588 JL |
779 | 2011-11-01 Justin Lebar <justin.lebar@gmail.com> |
780 | ||
781 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
782 | ||
d31647d2 YQ |
783 | 2011-10-29 Yao Qi <yao@codesourcery.com> |
784 | ||
785 | * infcmd.c (disconnect_command): Call disconnect_tracing. | |
786 | ||
b1d96efd JK |
787 | 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
788 | ||
789 | Code cleanup. | |
790 | * symtab.c (skip_prologue_sal): Code reformatting. | |
791 | ||
4dfb2365 JK |
792 | 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
793 | ||
794 | PR symtab/13208 | |
795 | * jit.c (jit_register_code): Remove unused variable my_cleanups. Check | |
796 | for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and | |
797 | SAI. | |
798 | ||
0e5bf2a8 PA |
799 | 2011-10-28 Pedro Alves <pedro@codesourcery.com> |
800 | ||
801 | * linux-nat.c (linux_nat_filter_event): Remove `options' | |
802 | parameter, and dead code that used it. If we're handling a | |
803 | PTRACE_EVENT_EXEC event, and the thread group leader is no longer | |
804 | in our lwp list, re-add it. | |
805 | (check_zombie_leaders): New. | |
806 | (linux_nat_wait_1): Remove `options' and `pid' locals. Always | |
807 | wait for children with WNOHANG, and always wait for all children. | |
808 | Don't check for no resumed children upfront. Simplify wait loop. | |
809 | Check for zombie thread group leaders after handling all wait | |
810 | statuses. Return TARGET_WAITKIND_NO_RESUMED if there no | |
811 | unwaited-for children left. | |
812 | * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. | |
813 | (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. | |
814 | (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED. | |
815 | * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New. | |
816 | ||
821296b7 SA |
817 | 2011-10-28 Sterling Augustine <saugustine@google.com> |
818 | ||
819 | * psymtab.c (map_symbol_filenames_psymtab): Call QUIT. | |
820 | * symtab.c (free_completion_list): New function. | |
821 | (do_free_completion_list): Likewise. | |
822 | (default_make_symbol_completion_list_break_on): New variable | |
823 | back_to. Call make_cleanup and discard_cleanups. | |
824 | (make_source_files_completion_list): Likewise. | |
825 | ||
03c3051a PK |
826 | 2011-10-28 Paul Koning <paul_koning@dell.com> |
827 | ||
828 | * python/lib/gdb/types.py (deep_items): Rename from deepitems. | |
829 | * NEWS: Mention deep_items. | |
830 | ||
8e7ebaf5 PA |
831 | 2011-10-28 Alen Skondro <askondro@gmail.com> |
832 | ||
8de33dc2 | 833 | * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already |
8e7ebaf5 PA |
834 | defined. |
835 | ||
e0c6ef61 MI |
836 | 2011-10-27 Meador Inge <meadori@codesourcery.com> |
837 | ||
838 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
839 | ||
b56d6f31 JB |
840 | 2011-10-27 Joel Brobecker <brobecker@adacore.com> |
841 | ||
842 | * value.h (read_frame_register_value): Add declaration. | |
843 | * findvar.c (read_frame_register_value): New function. | |
844 | (value_from_register): Use read_frame_register_value | |
845 | instead of get_frame_register_value + value_contents_copy | |
846 | to get value contents. | |
847 | ||
d234ef5c DE |
848 | 2011-10-27 Doug Evans <dje@google.com> |
849 | ||
850 | * cli/cli-cmds.c (source_script_with_search): Pass full path to | |
851 | source_script_from_stream if it may have been found on the search path. | |
852 | * python/py-auto-load.c (source_section_scripts): Pass full path to | |
853 | source_python_script_for_objfile. | |
854 | * python/python.c (source_python_script): Delete stream parameter. | |
855 | All callers updated. | |
856 | (source_python_script_for_objfile): Ditto. | |
857 | * python/python-internal.h (source_python_script_for_objfile): Update. | |
858 | * python/python.h (source_python_script): Update. | |
859 | ||
d849d44f TT |
860 | 2011-10-27 Tom Tromey <tromey@redhat.com> |
861 | ||
862 | * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1) | |
863 | (ada_sals_for_line): Remove declarations. | |
864 | ||
2231f1fb KP |
865 | 2011-10-27 Kevin Pouget <kevin.pouget@st.com> |
866 | ||
867 | Move unwind reasons to an external .def file | |
868 | * frame.c (frame_stop_reason_string): Rewrite using | |
869 | unwind_stop_reasons.def. | |
870 | * frame.h (enum unwind_stop_reason): Likewise. | |
871 | * python/py-frame.c (gdbpy_initialize_frames): Likewise. | |
872 | (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason | |
873 | constants for bound-checking. | |
874 | * unwind_stop_reasons.def: New file. | |
875 | * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias | |
876 | instead of a distinct value. | |
877 | ||
f77b9a5d PM |
878 | 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> |
879 | ||
880 | PR python/13331 | |
881 | ||
882 | * python/py-function.c (fnpy_call): Check 'args' is not NULL. | |
883 | (convert_values_to_python): Return on Python tuple allocation | |
884 | failure. Return NULL on value conversion error. | |
885 | ||
76dce0be PM |
886 | 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> |
887 | ||
888 | * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH. | |
889 | (bppy_set_task): Ditto. | |
890 | (bppy_delete_breakpoint): Ditto. | |
891 | * python/py-symbol.c (gdbpy_lookup_symbol): Ditto. | |
892 | (gdbpy_lookup_global_symbol): Ditto. | |
893 | * python/py-lazy-string.c (stpy_convert_to_value): Ditto. | |
894 | * python/py-frame.c (frapy_is_valid): Ditto. | |
895 | (frame_info_to_frame_object): Ditto. | |
896 | * python/py-type.c (typy_lookup_type): Ditto. | |
897 | (typy_getitem): Ditto. | |
898 | (typy_has_key): Ditto. | |
899 | (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error. | |
900 | ||
f17b6955 JB |
901 | 2011-10-26 Joel Brobecker <brobecker@adacore.com> |
902 | ||
903 | * gdbarch.h: Regenerate. | |
904 | ||
86ba1042 JB |
905 | 2011-10-26 Meador Inge <meadori@codesourcery.com> |
906 | ||
907 | * gdbarch.sh (function_list): Use 'pstring' when printing | |
908 | 'gcore_bfd_target'. | |
909 | * gdbarch.c: Regenerate. | |
910 | ||
c34fd852 UW |
911 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
912 | ||
913 | * regcache.c (registers_changed_ptid): Invalidate thread architecture | |
914 | and frame caches if PTID refers to all threads of a process. | |
915 | ||
931bb47f UW |
916 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
917 | ||
918 | * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops | |
919 | to create_breakpoint. | |
920 | ||
88aed45e UW |
921 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
922 | ||
923 | * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function. | |
924 | (ppc_sysv_abi_push_dummy_call): Use it. | |
925 | (do_ppc_sysv_return_value): Likewise. | |
926 | (ppc64_sysv_abi_push_dummy_call): Likewise. | |
927 | (ppc64_sysv_abi_return_value): Likewise. | |
928 | ||
3eaf3fa2 PK |
929 | 2011-10-26 Paul Koning <paul_koning@dell.com> |
930 | ||
931 | * python/lib/gdb/types.py (deepitems): New function. | |
932 | ||
913460fc PK |
933 | 2011-10-25 Paul Koning <paul_koning@dell.com> |
934 | ||
935 | PR python/13327 | |
936 | ||
937 | * python/py-value.c (value_to_value_object): Remove fetching of | |
938 | the value if it was lazy. | |
939 | (valpy_get_is_lazy): New function. | |
940 | (valpy_fetch_lazy): New function. | |
941 | ||
2b5b9d09 JB |
942 | 2011-10-24 Joel Brobecker <brobecker@adacore.com> |
943 | ||
944 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check | |
945 | FUNC_TYPE's calling convention if FUNC_TYPE is not a function. | |
946 | ||
e21ffe51 PA |
947 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
948 | ||
949 | * linux-nat.c (linux_handle_extended_wait): When handling a clone | |
950 | event, in non-stop, if not stopping, make sure the new lwp has | |
951 | last_resume_kind set to resume_continue. Assert that when we're | |
952 | resuming the new lwp, its last_resume_kind is resume_continue. | |
953 | ||
7aee8dc2 PA |
954 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
955 | ||
956 | * infrun.c (handle_inferior_event): Don't assume inferior_ptid is | |
957 | already set when marking the event thread as not executing in | |
958 | non-stop mode. | |
959 | ||
4b4e080e PA |
960 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
961 | ||
962 | * infrun.c (handle_inferior_event): Add debug output for | |
963 | TARGET_WAITKIND_NO_HISTORY. | |
964 | ||
baacfb07 PM |
965 | 2011-10-24 Phil Muldoon <pmuldoon@redhat.com> |
966 | ||
967 | * NEWS: Move set/show extended-prompt to "New Options". Expand | |
968 | description. Fix typos. | |
969 | ||
8432bc41 PM |
970 | 2011-10-24 Phil Muldoon <pmuldoon@redhat.com> |
971 | ||
972 | PR python/13310 | |
973 | ||
974 | * python/py-param.c (call_doc_function): Correctly deference on | |
975 | function exit. | |
976 | ||
6cda5a20 JB |
977 | 2011-10-21 Joel Brobecker <brobecker@adacore.com> |
978 | ||
979 | * ada-tasks.c (print_ada_task_info): Fix computation of | |
980 | number of tasks displayed in command output. | |
981 | ||
13294f7d JK |
982 | 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
983 | Ulrich Weigand <uweigand@de.ibm.com> | |
984 | ||
985 | * dwarf2-frame-tailcall.c: Include dwarf2-frame.h. | |
986 | (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa. | |
987 | (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace | |
988 | gdbarch_pc_regnum and frame_unwind_register_unsigned by | |
989 | gdbarch_unwind_pc. | |
990 | ||
460c1c54 CC |
991 | 2011-10-20 Cary Coutant <ccoutant@google.com> |
992 | ||
993 | * dwarf2read.c (dw2_get_file_names): Move adjustment for type | |
994 | section to... | |
995 | (partial_read_comp_unit_head): ...here. Add is_debug_type_section | |
996 | flag. Adjust all callers. | |
997 | (process_psymtab_comp_unit): Remove adjustment for type section. | |
998 | ||
a10964d1 AR |
999 | 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com> |
1000 | ||
1001 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function | |
1002 | arguments by adding OBJFILE. Instead of getting objfile from | |
1003 | symbol's symtab, use new argument OBJFILE. | |
1004 | * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function | |
1005 | arguments by adding OBJFILE. | |
1006 | * gdb/dwarf2read.c (new_symbol_full): Change call to | |
1007 | cp_scan_for_anonymous_namespaces to match new signature. | |
1008 | * gdb/stabsread.c (define_symbol): Change call to | |
1009 | cp_scan_for_anonymous_namespaces to match new signature. | |
1010 | ||
27ca1a5b PM |
1011 | 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> |
1012 | ||
1013 | PR python/13308 | |
1014 | PR python/13309 | |
1015 | ||
1016 | * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference | |
1017 | leak. | |
1018 | * python/py-inferior.c (gdbpy_inferiors): Fix List reference | |
1019 | leak. Delete unused variables. | |
1020 | ||
9df2fbc4 PM |
1021 | 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> |
1022 | ||
1023 | PR python/12656 | |
1024 | ||
1025 | * python/py-frame.c (frapy_read_var): Use const struct *block. | |
1026 | * python/py-type.c (typy_lookup_typename): Likewise. | |
1027 | (typy_lookup_type): Likewise. | |
1028 | (typy_legacy_template_argument): Likewise. | |
1029 | (typy_template_argument): Likewise. | |
1030 | (gdbpy_lookup_type): Likewise. | |
1031 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
1032 | * python/py-block.c (blpy_block_object): Likewise. | |
1033 | (blpy_iter): Likewise. | |
1034 | (blpy_get_start): Likewise. | |
1035 | (blpy_get_end): Likewise. | |
1036 | (blpy_get_function): Likewise. | |
1037 | (blpy_get_superblock): Likewise. | |
1038 | (set_block): Likewise. | |
1039 | (block_to_block_object): Likewise. | |
1040 | (block_object_to_block): Likewise. | |
1041 | (blpy_is_valid): Likewise. | |
1042 | (blpy_get_global_block): New function. | |
1043 | (blpy_get_static_block): New function. | |
1044 | (blpy_is_global): New function. | |
1045 | (blpy_is_static): New function. | |
1046 | * blockframe.c (block_innermost_frame): Likewise. | |
1047 | * valops.c (value_of_variable): Likewise. | |
1048 | * frame.h: Update prototypes. | |
1049 | * python/python-internal.h: Likewise. | |
1050 | * value.h: Likewise. | |
1051 | ||
4743b735 CC |
1052 | 2011-10-19 Cary Coutant <ccoutant@google.com> |
1053 | ||
1054 | * dwarf2read.c (create_debug_types_hash_table): Fix size of | |
1055 | type_offset field. | |
1056 | ||
6caca83c CC |
1057 | 2011-10-19 Cary Coutant <ccoutant@google.com> |
1058 | ||
1059 | * dwarf2read.c (peek_abbrev_code): New function. | |
1060 | (dw2_get_file_names): Check for dummy compilation units. | |
1061 | (create_debug_types_hash_table): Likewise. | |
1062 | (process_psymtab_comp_unit): Likewise. | |
1063 | (load_partial_comp_unit): Likewise. | |
1064 | (load_full_comp_unit): Likewise. | |
1065 | ||
43136979 AR |
1066 | 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com> |
1067 | ||
1068 | * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p, | |
1069 | initialize them from target PT_PHDR p_vaddr, relocate sect_addr by | |
1070 | pt_phdr if PT_PHDR was found. | |
1071 | ||
0a07729b TT |
1072 | 2011-10-17 Joost van der Sluis <joost@cnoc.nl> |
1073 | ||
1074 | * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a | |
1075 | type or "<unnamed type"> when there is no name assigned. | |
1076 | * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to | |
1077 | avoid a sigint when no name is assigned. | |
1078 | ||
21ae7a4d JK |
1079 | 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1080 | ||
1081 | Revert: | |
1082 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1083 | * dwarf2expr.c (ctx_no_read_reg): New function. | |
1084 | * dwarf2expr.h (ctx_no_read_reg): New declaration. | |
1085 | * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. | |
1086 | (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. | |
1087 | (decode_locdesc): Replace by a caller of dwarf_expr_eval. | |
1088 | ||
32d1c362 DE |
1089 | 2011-10-16 Doug Evans <dje@google.com> |
1090 | ||
1091 | * NEWS: Document python gdb.printing.register_pretty_printer's new | |
1092 | `replace' parameter. | |
1093 | ||
da096638 KS |
1094 | 2011-10-14 Keith Seitz <keiths@redhat.com> |
1095 | ||
1096 | PR c++/13225 | |
1097 | * eval.c (evaluate_subexp_standard): Do not construct | |
1098 | an array of types; pass the value array directly to | |
1099 | find_overload_match. | |
1100 | * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare. | |
1101 | (rank_function): Take an array of values instead of types. | |
1102 | (rank_one_type): Add struct value * parameter. | |
1103 | * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define. | |
1104 | (rank_function): For each argument, pass the argument's | |
1105 | value to rank_one_type. | |
1106 | (rank_one_type): Add VALUE parameter. | |
1107 | If the parameter type is a pointer and the argument type | |
1108 | is an integer, return NULL_POINTER_CONVERSION_BADNESS if | |
1109 | VALUE is zero. | |
1110 | Update all calls to rank_one_type, passing NULL for new | |
1111 | VALUE parameter. | |
1112 | * valarith.c (value_user_defined_cpp_op): Do not construct | |
1113 | an array of types; pass the value array directly to | |
1114 | find_overload_match. | |
1115 | * valops.c (find_overload_method_list): Take an array of | |
1116 | values instead of types. | |
1117 | Save the type of OBJP for later use. | |
1118 | Update calls to find_oload_champ, and find_oload_champ_namespace. | |
1119 | (find_oload_champ_namespace): Take an array of values instead | |
1120 | of types. | |
1121 | (find_oload_champ_namespace_loop): Likewise. | |
1122 | (find_oload_champ): Likewise. | |
1123 | (classify_oload_match): Inspect all arguments | |
1124 | until INCOMPATIBLE is found. Return the worst badness found | |
1125 | otherwise. | |
1126 | (compare_parameters): Update call to rank_one_type. | |
1127 | * value.h (find_overload_match): Take an array of values instead | |
1128 | of types. | |
1129 | ||
3957565a JK |
1130 | 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
1131 | ||
1132 | Drop lazy lm_info reading. | |
1133 | * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p, | |
1134 | l_addr_inferior, l_ld, l_next, l_prev and l_name. | |
1135 | (lm_info_read): New function. | |
1136 | (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove. | |
1137 | (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and | |
1138 | lm_dynamic_from_link_map. | |
1139 | (lm_next, lm_prev, lm_name): Remove. | |
1140 | (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries | |
1141 | initialization incl. read_memory. No longer use lm_name. | |
1142 | (svr4_free_so): Drop lm_info->lm freeing. | |
1143 | (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop | |
1144 | explicit lm_addr and lm initialization. | |
1145 | (svr4_read_so_list): Use lm_info_read, drop the initailization of | |
1146 | fields by hand, incl. read_memory. No longer use lm_next, lm_prev and | |
1147 | lm_name. | |
1148 | ||
cb08cc53 JK |
1149 | 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
1150 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
1151 | ||
1152 | * defs.h (struct so_list): New forward declaration. | |
1153 | (make_cleanup_free_so): New declaration. | |
1154 | * solib-svr4.c (ignore_first_link_map_entry): Remove. | |
1155 | (svr4_free_so): Move the function here from downwards. Handle NULL | |
1156 | so->lm_info. | |
1157 | (svr4_free_library_list): New. | |
1158 | (svr4_read_so_list): New, moved here code from svr4_current_sos. | |
1159 | Use more cleanups. Use new parameter ignore_first instead of | |
1160 | ignore_first_link_map_entry. | |
1161 | (svr4_current_sos): New variable ignore_first, initialize it. New | |
1162 | variable back_to, use it for svr4_free_library_list protection. | |
1163 | (svr4_free_so): Remove - move upwards. | |
1164 | * utils.c: Include solist.h. | |
1165 | (do_free_so, make_cleanup_free_so): New functions. | |
1166 | ||
22c05d8a JK |
1167 | 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1168 | ||
1169 | Fix internal error regression. | |
1170 | * value.c (value_primitive_field): Handle value_optimized_out. Move | |
1171 | packed bitfields comment. | |
1172 | ||
d930d06e TT |
1173 | 2011-10-13 Tom Tromey <tromey@redhat.com> |
1174 | ||
1175 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is | |
1176 | always released. | |
1177 | ||
2ff6b080 TT |
1178 | 2011-10-13 Tom Tromey <tromey@redhat.com> |
1179 | ||
1180 | * python/py-type.c (typy_has_key): Make 'field' const. | |
1181 | ||
d6c5869f LM |
1182 | 2011-10-13 Luis Machado <lgustavo@codesourcery.com> |
1183 | ||
1184 | * remote.c (remote_save_trace_data): Invert comparison. | |
1185 | ||
a70633a2 LM |
1186 | 2011-10-13 Luis Machado <lgustavo@codesourcery.com> |
1187 | ||
1188 | * tracepoint.c (trace_save_command): Use filename instead of | |
1189 | args when printing. | |
1190 | ||
e103e986 JK |
1191 | 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1192 | ||
1193 | * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even | |
1194 | if .size is 0. | |
1195 | ||
db24da6d YQ |
1196 | 2011-10-13 Yao Qi <yao@codesourcery.com> |
1197 | ||
1198 | PR gdb/12703 | |
1199 | * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check | |
1200 | whether insn is a 32-bit Thumb-2 instruction. | |
1201 | (thumb_in_function_epilogue_p): Likewise. | |
1202 | (thumb_get_next_pc_raw): Likewise. | |
1203 | (arm_breakpoint_from_pc): Likewise. | |
1204 | ||
1d6edc3c JK |
1205 | 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
1206 | ||
1207 | Fix empty DWARF expressions DATA vs. SIZE conditionals. | |
1208 | * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH. | |
1209 | (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH. | |
1210 | (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA. | |
1211 | (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for | |
1212 | zero DATA. | |
1213 | * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE | |
1214 | validity. | |
1215 | * dwarf2read.c (struct dwarf_block): Comment DATA validity. | |
1216 | (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not | |
1217 | clear DATA on zero SIZE. | |
1218 | ||
adabb602 DE |
1219 | 2011-10-12 Doug Evans <dje@google.com> |
1220 | ||
1221 | * dwarf2read.c (partial_read_comp_unit_head): Set header->offset, | |
1222 | header->first_die_offset here. All callers updated. | |
1223 | ||
5048e516 JK |
1224 | 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
1225 | ||
1226 | Fix compatibility with texinfo versions older than 4.12. | |
1227 | * Makefile.in (MAKEINFO): Set to @MAKEINFO@. | |
1228 | (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. | |
1229 | (MAKEHTMLFLAGS): Use MAKEINFO_CMD. | |
1230 | (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS. | |
1231 | * configure: Regenerate. | |
1232 | * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac. | |
1233 | (MAKEINFOFLAGS): Pre-set it to --split-size=5000000. | |
1234 | (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK. | |
1235 | ||
0574c78f GB |
1236 | 2011-10-12 Gary Benson <gbenson@redhat.com> |
1237 | ||
1238 | * breakpoint.h (pc_at_non_inline_function): Declare. | |
1239 | * breakpoint.c (is_non_inline_function, | |
1240 | pc_at_non_inline_function): New functions. | |
1241 | * infrun.c (handle_inferior_event): Don't call skip_inline_frames | |
1242 | if the stop is at a location where functions cannot be inlined. | |
1243 | ||
12d9289a PA |
1244 | 2011-10-12 Pedro Alves <pedro@codesourcery.com> |
1245 | ||
1246 | * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if | |
1247 | the core wanted them stopped, or if they now have a pending event | |
1248 | to report. | |
ecf8e7f5 PA |
1249 | (linux_nat_filter_event): New parameter `new_pending_p'. Pass it |
1250 | down to stop_and_resume_callback. | |
1251 | (linux_nat_wait_1): Always clear `options' when retrying. Handle | |
1252 | having new pending events after calling linux_nat_filter_event. | |
12d9289a | 1253 | |
96408a79 SA |
1254 | 2011-10-11 Sterling Augustine <saugustine@google.com> |
1255 | ||
1256 | * dwarf2read.c: Undo inadvertent changes in previous commit. | |
1257 | ||
9c6c53f7 SA |
1258 | 2011-10-11 Sterling Augustine <saugustine@google.com> |
1259 | ||
1260 | * dwarf2read.c (partial_die_parent_scope): Rearrange conditional | |
1261 | logic. | |
1262 | ||
0e8aefe7 UW |
1263 | 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org> |
1264 | ||
1265 | * symfile.c (separate_debug_file_exists): Fix condition. | |
1266 | ||
349d1385 DM |
1267 | 2011-10-11 David S. Miller <davem@davemloft.net> |
1268 | ||
1269 | * regcache.c (regcache_restore): Do not write unavailable regs, mark | |
1270 | static. | |
1271 | * regcache.h (regcache_restore): Remove declaration. | |
1272 | ||
205c306f DM |
1273 | * gdbarch.sh: New field 'long_long_align_bit'. |
1274 | * gdbarch.c, gdbarch.h: Regenerate. | |
1275 | * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32. | |
1276 | * jit.c (jit_read_code_entry): Use it to determine correct size offset. | |
1277 | ||
941b2081 JK |
1278 | 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1279 | ||
1280 | Revert this part of: | |
1281 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1282 | Support @entry in input expressions. | |
1283 | * c-exp.y (ENTRY, unknown_cpp_name): New. | |
1284 | (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'. | |
1285 | (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY) | |
1286 | (variable: name_not_typename '@' ENTRY, name: ENTRY) | |
1287 | (name_not_typename: ENTRY): New. | |
1288 | (yylex): Recognize ENTRY. | |
1289 | ||
1290 | Reimplement @entry in input expressions. | |
1291 | * c-exp.y (ENTRY): New. | |
1292 | (variable: name_not_typename ENTRY): New. | |
1293 | (lex_one_token): Optionally return ENTRY instead of the '@' lex. | |
1294 | ||
3c4d7e12 PA |
1295 | 2011-10-11 Pedro Alves <pedro@codesourcery.com> |
1296 | ||
1297 | * linux-nat.c (linux_handle_extended_wait): Always dump both the | |
1298 | parent and child's pids as soon as we detect a clone event. | |
1299 | Adjust another debug message. | |
1300 | ||
ea23808b PA |
1301 | 2011-10-11 Pedro Alves <pedro@codesourcery.com> |
1302 | ||
1303 | * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is | |
1304 | not zombie instead of reading the whole file. | |
1305 | ||
904578ed JK |
1306 | 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1307 | ||
1308 | Fix separate debuginfo warning with "remote:" access. | |
1309 | * objfiles.h (struct objfile): New fields crc32 and crc32_p. | |
1310 | * symfile.c (get_file_crc): New function with the code moved from ... | |
1311 | (separate_debug_file_exists): ... this function, specifically variables | |
1312 | buffer and count. New variable verified_as_different, set it. Remove | |
1313 | file_crc initialization. Verify also if both files are not the same | |
1314 | manually, if needed. | |
1315 | ||
51370a33 YQ |
1316 | 2011-10-11 Yao Qi <yao@codesourcery.com> |
1317 | ||
1318 | * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer | |
1319 | to get address. | |
1320 | ||
0838fb57 DE |
1321 | 2011-10-10 Doug Evans <dje@google.com> |
1322 | ||
1323 | * linux-thread-db.c (thread_db_new_objfile): Only try to load | |
1324 | libthread_db when we load libpthread or the main symbol file. | |
1325 | (thread_db_inferior_created): New function. | |
1326 | (_initialize_thread_db): Attach inferior_created observer. | |
1327 | * linux-nat.c (linux_child_post_attach): Remove call to | |
1328 | check_for_thread_db. | |
1329 | (linux_child_post_startup_inferior): Ditto. | |
1330 | * objfiles.h (OBJF_MAINLINE): Define. | |
1331 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to | |
1332 | allocate_objfile when appropriate. | |
1333 | ||
623bd5b7 UW |
1334 | 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org> |
1335 | ||
1336 | PR gdb/13218 | |
1337 | * arm-linux-nat.c (os_version, os_major, os_minor, os_release): | |
1338 | Remove unused variables. | |
1339 | (get_linux_version): Remove function. | |
1340 | (_initialize_arm_linux_nat): Do not call it. | |
1341 | ||
79395f92 PA |
1342 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
1343 | ||
1344 | * linux-nat.c (linux_handle_extended_wait): Don't resume the new | |
1345 | new clone lwp if the core asked it to stop. Don't pass on | |
1346 | unexpected signals to the new clone; leave them pending instead. | |
1347 | ||
eff3df78 PA |
1348 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
1349 | ||
1350 | * linux-nat.c (resume_lwp): Remove redundant debug output. | |
1351 | ||
4b60df3d PA |
1352 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
1353 | ||
1354 | * linux-nat.c (linux_nat_wait_1): Copy the event lwp's | |
1355 | last_resume_kind before clearing it, and use the copy instead to | |
1356 | determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use | |
1357 | resume_clear_callback in the non-stop path too. | |
1358 | ||
6501578c YQ |
1359 | 2011-10-09 Yao Qi <yao@codesourcery.com> |
1360 | ||
1361 | * valprint.c (value_check_printable): Add one parameter OPTIONS. | |
1362 | Honor OPTIONS and VAL's type. | |
1363 | (common_val_print, value_print): Update to pass one more parameter. | |
1364 | ||
5a56e9c5 DE |
1365 | 2011-10-09 Doug Evans <dje@google.com> |
1366 | ||
1367 | Add new "alias" command. | |
1368 | * NEWS: Mention new command. | |
1369 | * command.h (valid_user_defined_cmd_name_p): Declare. | |
1370 | * defs.h (make_cleanup_dyn_string_delete): Declare. | |
1371 | * utils.c: #include "dyn-string.h". | |
1372 | (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions. | |
1373 | * cli/cli-cmds.c: #include "dyn-string.h". | |
1374 | (argv_to_dyn_string, valid_command_p, alias_command): New functions. | |
1375 | (init_cli_cmds): Add new command. | |
1376 | * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function. | |
1377 | ||
509f0fd9 JK |
1378 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1379 | ||
1380 | Fix compatibility with older GCCs. | |
1381 | * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter. | |
1382 | * stack.c (read_frame_arg): Initialize val_deref. | |
1383 | ||
2bda9cc5 JK |
1384 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1385 | ||
1386 | Entry values NEWS entries, DWARF disassembly support. | |
1387 | * NEWS: New entry values entry. | |
1388 | (set print entry-values, show print entry-values) | |
1389 | (set debug entry-values, show debug entry-values): New entries. | |
1390 | * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and | |
1391 | indent. Remove variable start. Move header printing out. Respect | |
1392 | INDENT. Support DW_OP_GNU_entry_value. | |
1393 | (locexpr_describe_location_1): Move the header printing here, extend | |
1394 | the disassemble_dwarf_expression passed parameters. | |
1395 | ||
a471c594 JK |
1396 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1397 | ||
1398 | Display @entry parameter values even for references. | |
1399 | * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also | |
1400 | coerce_ref_if_computed. | |
1401 | * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise. | |
1402 | * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function. | |
1403 | (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the | |
1404 | existing push_dwarf_reg_entry_value call. Add new detection calling | |
1405 | dwarf_block_to_dwarf_reg_deref. Update the error message. | |
1406 | (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size. | |
1407 | * dwarf2expr.h | |
1408 | (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new | |
1409 | parameter deref_size, describe it in the comment. | |
1410 | (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size. | |
1411 | (dwarf_block_to_dwarf_reg_deref): New declaration. | |
1412 | * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter | |
1413 | deref_size, describe it in the function comment. New variables | |
1414 | data_src and size, fetch the alternative block accoring to DEREF_SIZE. | |
1415 | (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size, | |
1416 | describe it in the function comment. Fetch the alternative block | |
1417 | accoring to DEREF_SIZE. | |
1418 | (entry_data_value_coerce_ref, entry_data_value_copy_closure) | |
1419 | (entry_data_value_free_closure, entry_data_value_funcs): New. | |
1420 | (value_of_dwarf_reg_entry): New variables checked_type, target_type, | |
1421 | outer_val, target_val, val and addr. Try to fetch and create also | |
1422 | referenced value content. | |
1423 | (pieced_value_funcs): NULL value for coerce_ref. | |
1424 | (needs_dwarf_reg_entry_value): Add new parameter deref_size. | |
1425 | * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also | |
1426 | coerce_ref_if_computed. | |
1427 | * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref. | |
1428 | * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise. | |
1429 | * stack.c (read_frame_arg): Compare also dereferenced values. | |
1430 | * value.c (value_computed_funcs): Make the parameter v const, use | |
1431 | value_lval_const for it. | |
1432 | (value_lval_const, coerce_ref_if_computed): New function. | |
1433 | (coerce_ref): New variable retval. Call also coerce_ref_if_computed. | |
1434 | * value.h (struct lval_funcs): New field coerce_ref. | |
1435 | (value_computed_funcs): Make the parameter v const. | |
1436 | (value_lval_const, coerce_ref_if_computed): New declarations. | |
1437 | ||
36b11add JK |
1438 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1439 | ||
1440 | Support @entry in input expressions. | |
1441 | * c-exp.y (ENTRY, unknown_cpp_name): New. | |
1442 | (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'. | |
1443 | (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY) | |
1444 | (variable: name_not_typename '@' ENTRY, name: ENTRY) | |
1445 | (name_not_typename: ENTRY): New. | |
1446 | (yylex): Recognize ENTRY. | |
1447 | * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE. | |
1448 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
1449 | Likewise. | |
1450 | * parse.c (operator_length_standard): Likewise. | |
1451 | * std-operator.def: New operator OP_VAR_ENTRY_VALUE. | |
1452 | ||
3343315b JK |
1453 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1454 | ||
1455 | Display referenced values in backtraces. | |
1456 | * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1. | |
1457 | * stack.c (print_frame_arg): Likewise. | |
1458 | ||
ac71a68c JK |
1459 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1460 | ||
1461 | Make some lval_funcs methods to default on NULL. | |
1462 | * valops.c (value_fetch_lazy): Check if lval_computed read method is | |
1463 | NULL. | |
1464 | (value_assign): Check if lval_computed write method is NULL. | |
1465 | * value.h (struct lval_funcs): Comment NULL values for read and write | |
1466 | methods. | |
1467 | ||
e18b2753 JK |
1468 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1469 | ||
1470 | Display @entry parameter values (without references). | |
1471 | * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): | |
1472 | New functions. | |
1473 | * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): | |
1474 | New declarations. | |
1475 | * dwarf2loc.c (dwarf2_find_location_expression): Support location list | |
1476 | entry record. | |
1477 | (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry) | |
1478 | (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New | |
1479 | functions. | |
1480 | (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry. | |
1481 | (loclist_read_variable_at_entry): New function. | |
1482 | (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry. | |
1483 | * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in | |
1484 | DW_AT_location, call dwarf_block_to_sp_offset for it. | |
1485 | * frame.h (print_entry_values_no, print_entry_values_only) | |
1486 | (print_entry_values_preferred, print_entry_values_if_needed) | |
1487 | (print_entry_values_both, print_entry_values_compact) | |
1488 | (print_entry_values_default, print_entry_values): New declarations. | |
1489 | (struct frame_arg): New field entry_kind. | |
1490 | (read_frame_arg): New parameter entryargp. | |
1491 | * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for | |
1492 | arg->entry_kind. Optionally print the `@entry' suffix. | |
1493 | (list_args_or_locals): New variable entryarg, initialize it. | |
1494 | Initialize also entry_kind of arg and entryarg. Conditionalize | |
1495 | list_arg_or_local for arg, add list_arg_or_local for entryarg. Call | |
1496 | xfree for entryarg.error. | |
1497 | * stack.c (print_entry_values_no, print_entry_values_only) | |
1498 | (print_entry_values_preferred, print_entry_values_if_needed) | |
1499 | (print_entry_values_both, print_entry_values_compact) | |
1500 | (print_entry_values_default, print_entry_values_choices) | |
1501 | (print_entry_values): New variables. | |
1502 | (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally | |
1503 | print the `@entry' suffix, possibly in combination for | |
1504 | print_entry_values_compact. | |
1505 | (read_frame_arg): New parameter entryargp, new variables entryval, | |
1506 | entryval_error and val_equal. Read in also entryargp, respect | |
1507 | print_entry_values, compare the values using val_equal, fill in also | |
1508 | argp->entry_kind (together with entryargp->entry_kind). | |
1509 | (print_frame_args): New variable entryarg, initialize it. | |
1510 | Conditionalize print_frame_arg for arg, add print_frame_arg for | |
1511 | entryarg. Call xfree for entryarg.error. | |
1512 | (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'. | |
1513 | * symtab.h (struct symbol_computed_ops): New field | |
1514 | read_variable_at_entry. | |
1515 | ||
93d86cef JK |
1516 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1517 | ||
1518 | Code reshuffle. | |
1519 | * frame.h (struct frame_arg): New definition. | |
1520 | (read_frame_arg): New declaration. | |
1521 | * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ... | |
1522 | (list_args_or_locals): ... the code here. New variable arg, call | |
1523 | read_frame_arg and list_arg_or_local with it. Unify the | |
1524 | PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for | |
1525 | arg.error. | |
1526 | * stack.c (print_frame_arg): New functiom from the code of | |
1527 | print_frame_args. | |
1528 | (read_frame_arg): New function. | |
1529 | (print_frame_args): Remove variable val. New variable arg, call | |
1530 | read_frame_arg and print_frame_arg with it. Call xfree for arg.error. | |
1531 | ||
2d6c5dc2 JK |
1532 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1533 | ||
1534 | Protect entry values against self tail calls. | |
1535 | * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New. | |
1536 | (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall. | |
1537 | ||
111c6489 JK |
1538 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1539 | ||
1540 | Recognize virtual tail call frames. | |
1541 | * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c. | |
1542 | (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h. | |
1543 | (COMMON_OBS): Add dwarf2-frame-tailcall.o. | |
1544 | * dwarf2-frame-tailcall.c: New file. | |
1545 | * dwarf2-frame-tailcall.h: New file. | |
1546 | * dwarf2-frame.c: Include dwarf2-frame-tailcall.h. | |
1547 | (execute_cfa_program): New function comment. Return INSN_PTR. Reset | |
1548 | REGS.PREV only after CIE execution. | |
1549 | (struct dwarf2_frame_cache): New field tailcall_cache. | |
1550 | (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset, | |
1551 | entry_cfa_sp_offset_p and instr. Execute FDE instructions in two | |
1552 | parts, try to find entry_cfa_sp_offset. Call | |
1553 | dwarf2_tailcall_sniffer_first. | |
1554 | (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first | |
1555 | when appropriate. | |
1556 | (dwarf2_frame_dealloc_cache): New function. | |
1557 | (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache. | |
1558 | (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache. | |
1559 | (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache. | |
1560 | (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind. | |
1561 | (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind. | |
1562 | * dwarf2loc.c (func_addr_to_tail_call_list) | |
1563 | (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate) | |
1564 | (call_site_find_chain_1, call_site_find_chain): New. | |
1565 | * dwarf2loc.h (struct call_site_chain): New. | |
1566 | (call_site_find_chain): New declaration. | |
1567 | * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME. | |
1568 | * frame.h (enum frame_type): New entry TAILCALL_FRAME. | |
1569 | * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME. | |
1570 | * stack.c (frame_info): Support also TAILCALL_FRAME. | |
1571 | ||
bb984ff1 JK |
1572 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1573 | ||
1574 | Tail call sites reader implementation. | |
1575 | * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call, | |
1576 | fill in TYPE_TAIL_CALL_LIST. | |
1577 | * gdbtypes.h (struct func_type): New field tail_call_list. | |
1578 | (struct call_site): New field tail_call_next. | |
1579 | (TYPE_TAIL_CALL_LIST): New definition. | |
1580 | ||
8e3b41a9 JK |
1581 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1582 | ||
1583 | Implement basic support for DW_TAG_GNU_call_site. | |
1584 | * block.c: Include gdbtypes.h and exceptions.h. | |
1585 | (call_site_for_pc): New function. | |
1586 | * block.h (call_site_for_pc): New declaration. | |
1587 | * defs.h: Include hashtab.h. | |
1588 | (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New | |
1589 | declarations. | |
1590 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install | |
1591 | ctx_no_push_dwarf_reg_entry_value. | |
1592 | * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL. | |
1593 | (dwarf_block_to_dwarf_reg): New function. | |
1594 | (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it. | |
1595 | (ctx_no_push_dwarf_reg_entry_value): New function. | |
1596 | * dwarf2expr.h (struct dwarf_expr_context_funcs): New field | |
1597 | push_dwarf_reg_entry_value. | |
1598 | (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New | |
1599 | declarations. | |
1600 | * dwarf2loc.c: Include gdbcmd.h. | |
1601 | (dwarf_expr_ctx_funcs): New forward declaration. | |
1602 | (entry_values_debug, show_entry_values_debug, call_site_to_target_addr) | |
1603 | (dwarf_expr_reg_to_entry_parameter) | |
1604 | (dwarf_expr_push_dwarf_reg_entry_value): New. | |
1605 | (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value. | |
1606 | (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR. | |
1607 | (needs_dwarf_reg_entry_value): New function. | |
1608 | (needs_frame_ctx_funcs): Install it. | |
1609 | (_initialize_dwarf2loc): New function. | |
1610 | * dwarf2loc.h (entry_values_debug): New declaration. | |
1611 | * dwarf2read.c (struct dwarf2_cu): New field call_site_htab. | |
1612 | (read_call_site_scope): New forward declaration. | |
1613 | (process_full_comp_unit): Copy call_site_htab. | |
1614 | (process_die): Support DW_TAG_GNU_call_site. | |
1615 | (read_call_site_scope): New function. | |
1616 | (dwarf2_get_pc_bounds): Support NULL HIGHPC. | |
1617 | (dwarf_tag_name): Support DW_TAG_GNU_call_site. | |
1618 | (cleanup_htab): Delete. | |
1619 | (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it. | |
1620 | * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR. | |
1621 | * gdb-gdb.py (StructMainTypePrettyPrinter): Support | |
1622 | FIELD_LOC_KIND_DWARF_BLOCK. | |
1623 | * gdbtypes.h (enum field_loc_kind): New entry | |
1624 | FIELD_LOC_KIND_DWARF_BLOCK. | |
1625 | (struct main_type): New loc entry dwarf_block. | |
1626 | (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK) | |
1627 | (TYPE_FIELD_DWARF_BLOCK): New. | |
1628 | * python/py-type.c: Include dwarf2loc.h. | |
1629 | (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New | |
1630 | internal_error call on unknown FIELD_LOC_KIND. | |
1631 | * symtab.h (struct symtab): New field call_site_htab. | |
1632 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete) | |
1633 | (core_addr_hash, core_addr_eq): New functions. | |
1634 | ||
b6cdc2c1 JK |
1635 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1636 | ||
1637 | Code reshuffle. | |
1638 | * gdb-gdb.py (StructMainTypePrettyPrinter): Change | |
1639 | TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move | |
1640 | calling_convention under func_stuff there. | |
1641 | * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC. | |
1642 | (init_type) <TYPE_CODE_FUNC>: Likewise. | |
1643 | (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to | |
1644 | TYPE_SPECIFIC_FUNC. New comment for tail_call_list. | |
1645 | * gdbtypes.h (enum type_specific_kind): Change | |
1646 | TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. | |
1647 | (struct main_type) <type_specific>: Change calling_convention to | |
1648 | func_stuff. Move calling_convention to ... | |
1649 | (struct func_type): ... this new struct. | |
1650 | (INIT_FUNC_SPECIFIC): New #define. | |
1651 | (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff. | |
1652 | ||
181cebd4 JK |
1653 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1654 | ||
1655 | Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches. | |
1656 | * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size. | |
1657 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use | |
1658 | ctx->ref_addr_size. Handle its invalid value. | |
1659 | * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size. | |
1660 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) | |
1661 | (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size. | |
1662 | * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration. | |
1663 | * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size. | |
1664 | (dwarf2_per_cu_ref_addr_size): New function. | |
1665 | ||
c471e790 JK |
1666 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1667 | ||
1668 | Code cleanup. | |
1669 | * dwarf2read.c (per_cu_header_read_in): New function. | |
1670 | (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new | |
1671 | variables cu_header_local and cu_headerp. | |
1672 | ||
741f5e3c JK |
1673 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1674 | ||
1675 | Fix initial language detection with -readnow. | |
1676 | * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case. | |
1677 | * symfile.h (struct quick_symbol_functions): State find_symbol_file | |
1678 | searches only for global symbols. | |
1679 | ||
a73d2258 JK |
1680 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1681 | ||
1682 | Fix printed anonymous struct name. | |
1683 | * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also | |
1684 | DW_TAG_interface_type. Strip for anonymous structs any prefixes. | |
1685 | (anonymous_struct_prefix): New function. | |
1686 | (determine_prefix): New variables retval. Call anonymous_struct_prefix. | |
1687 | (dwarf2_name): Strip for anonymous structs any prefixes. | |
1688 | ||
749fd4ea DE |
1689 | 2011-10-07 Doug Evans <dje@google.com> |
1690 | ||
1fa57852 DE |
1691 | * python/lib/gdb/printing.py (register_pretty_printer): New argument |
1692 | `replace'. | |
1693 | ||
690a4937 DE |
1694 | * python/lib/gdb/printing.py: Whitespace cleanup. |
1695 | ||
749fd4ea DE |
1696 | * python/py-value.c (valpy_call): Initialize ftype to avoid compiler |
1697 | warning. | |
1698 | ||
4c38200f PA |
1699 | 2011-10-07 Pedro Alves <pedro@codesourcery.com> |
1700 | ||
1701 | * linux-nat.h (ALL_LWPS): Remove the ptid parameter. | |
1702 | * amd64-linux-nat.c (amd64_linux_dr_set_control) | |
1703 | (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust. | |
1704 | * arm-linux-nat.c (arm_linux_insert_hw_breakpoint) | |
1705 | (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint) | |
1706 | (arm_linux_remove_watchpoint): Adjust. | |
1707 | * i386-linux-nat.c (i386_linux_dr_set_control) | |
1708 | (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust. | |
1709 | * ia64-linux-nat.c (ia64_linux_insert_watchpoint) | |
1710 | (ia64_linux_remove_watchpoint): Adjust. | |
1711 | * mips-linux-nat.c (write_watchpoint_regs): Adjust. | |
1712 | * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint) | |
1713 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
1714 | (ppc_linux_insert_mask_watchpoint) | |
1715 | (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint) | |
1716 | (ppc_linux_remove_watchpoint): Adjust. | |
1717 | * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): | |
1718 | Adjust. | |
1719 | ||
b7ff339d CV |
1720 | 2011-10-07 Corinna Vinschen <vinschen@redhat.com> |
1721 | ||
1722 | * windows-nat.c: Include wchar.h to avoid compiler warnings. | |
1723 | (clear_win32_environment): New function for Cygwin to clear out | |
1724 | Win32 environment. | |
1725 | (windows_create_inferior): Prepare new environment from in_env | |
1726 | for Cygwin, too. | |
1727 | ||
f287c1f3 PM |
1728 | 2011-10-07 Phil Muldoon <pmuldoon@redhat.com> |
1729 | ||
5631e596 | 1730 | PR python/13264 |
f287c1f3 PM |
1731 | * python/py-value.c (valpy_call): Check that arguments are |
1732 | a tuple. | |
1733 | (is_intlike): Remove call to CHECK_TYPEDEF. | |
1734 | (valpy_nonzero): Catch GDB exceptions. | |
1735 | (valpy_absolute): Ditto. | |
1736 | (valpy_lazy_string): Ditto. | |
1737 | (valpy_call): Ditto. | |
1738 | (valpy_get_is_optimized_out): Ditto. | |
1739 | (valpy_long): Ditto. | |
1740 | (valpy_float): Ditto. | |
1741 | (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions. | |
1742 | (valpy_richcompare): Ditto. | |
1743 | ||
03583c20 UW |
1744 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
1745 | ||
1746 | * inferior.h (disable_randomization): Declare. | |
1747 | * infrun.c (disable_randomization): New global variable. | |
1748 | (show_disable_randomization): New function. | |
1749 | (set_disable_randomization): Likewise. | |
1750 | (_initialize_infrun): Install set/show disable-randomization | |
1751 | commands. | |
1752 | * linux-nat.c (disable_randomization): Remove. | |
1753 | (show_disable_randomization): Likewise. | |
1754 | (set_disable_randomization): Likewise. | |
1755 | (_initialize_linux_nat): No longer install set/show | |
1756 | disable-randomization commands here. | |
1757 | (linux_nat_supports_disable_randomization): New function. | |
1758 | (linux_nat_add_target): Install it. | |
1759 | * remote.c (PACKET_QDisableRandomization): New enum value. | |
1760 | (remote_protocol_packets): Support QDisableRandomization. | |
1761 | (_initialize_remote): Likewise. | |
1762 | (remote_supports_disable_randomization): New function. | |
1763 | (init_remote_ops): Install it. | |
1764 | (extended_remote_supports_disable_randomization): New function. | |
1765 | (init_extended_remote_ops): Install it. | |
1766 | (extended_remote_disable_randomization): New function. | |
1767 | (extended_remote_create_inferior_1): Call it. | |
1768 | * target.h (struct target_ops): Add to_supports_disable_randomization. | |
1769 | (target_supports_disable_randomization): Add prototype. | |
1770 | * target.c (target_supports_disable_randomization): New function. | |
1771 | (find_default_supports_disable_randomization): Likewise. | |
1772 | (init_dummy_target): Install it. | |
1773 | ||
20c168b5 KP |
1774 | 2011-10-07 Kevin Pouget <kevin.pouget@st.com> |
1775 | ||
1776 | Allow Python notification of new object-file loadings. | |
1777 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c. | |
1778 | (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o. | |
1779 | Add build rule for this file. | |
1780 | * python/py-event.h (emit_new_objfile_event): New prototype. | |
1781 | (newobjfile): New Python event emitter. | |
1782 | * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to | |
1783 | Python event registry. | |
1784 | * python/py-inferior.c: Include objfiles.h | |
1785 | (python_new_objfile): New function. | |
1786 | (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile | |
1787 | observers. | |
1788 | * python/py-newobjfileevent.c: New file. | |
1789 | * python-internal.h (gdbpy_initialize_new_objfile_event): New | |
1790 | prototype. | |
1791 | * python/python.c (_initialize_python): Add | |
1792 | gdbpy_initialize_new_objfile_event call. | |
1793 | * NEWS: Add item for new Python event "gdb.newobjfile" | |
1794 | ||
b1c8db38 TG |
1795 | 2011-10-05 Tristan Gingold <gingold@adacore.com> |
1796 | ||
1797 | * ada-tasks.c (read_atcb): Make ravenscar_task_name static. | |
1798 | Extract the ravenscar task name from the symbol for the atcb. | |
1799 | ||
0dab82e9 PK |
1800 | 2011-10-04 Paul Koning <paul_koning@dell.com> |
1801 | ||
1802 | * python/py-type.c (typy_make_iter): Add forward declaration. | |
1803 | (typy_fields_items): Use the gdb.Type iterator. | |
1804 | ||
84ad80e6 PK |
1805 | 2011-10-04 Paul Koning <paul_koning@dell.com> |
1806 | ||
1807 | * NEWS: Add entry for Python gdb.Type mapping methods. | |
1808 | ||
cb6be26b KP |
1809 | 2011-10-04 Kevin Pouget <kevin.pouget@st.com> |
1810 | ||
1811 | PR python/12691: Add the inferior to Python exited event | |
1812 | * python/py-exitedevent.c (create_exited_event_object): Add inferior | |
1813 | to exited_event. | |
1814 | * python/py-event.h (emit_exited_event): Likewise | |
1815 | * python/-inferior.c (python_inferior_exit): Likewise | |
1816 | ||
6005b210 JB |
1817 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
1818 | ||
1819 | * ada-tasks.c (print_ada_task_info): Add "thread-id" field | |
1820 | in output of -ada-task-info GDB/MI command. | |
1821 | ||
75082e8c JB |
1822 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
1823 | ||
1824 | * ada-lang.h (struct inferior): Declare. | |
1825 | (print_ada_task_info): Add declaration. | |
1826 | * ada-tasks.c (print_ada_task_info): Make non-static. | |
1827 | * mi/mi-cmds.c (mi_cmds): Add "ada-task-info". | |
1828 | * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration. | |
1829 | * mi/mi-main.c: #include "ada-lang.h". | |
1830 | (mi_cmd_list_features): Add "ada-task-info" to the list | |
1831 | of supported features. | |
1832 | (mi_cmd_ada_task_info): New function. | |
1833 | ||
7ed7d719 JB |
1834 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
1835 | ||
1836 | * python/python.c (python_run_simple_file): New function. | |
1837 | (source_python_script, source_python_script_for_objfile): | |
1838 | Replace call to PyRun_SimpleFile by call to | |
1839 | python_run_simple_file. | |
1840 | ||
3fcaed38 PK |
1841 | 2011-10-03 Paul Koning <paul_koning@dell.com> |
1842 | ||
1843 | * python/py-value.c (valpy_get_address): Use Py_XINCREF. | |
1844 | (value_to_value_object): Fetch value if it was lazy. | |
1845 | ||
8e5c319d JK |
1846 | 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1847 | ||
1848 | Code cleanup. | |
1849 | * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. | |
1850 | Rearrange the code for it. | |
1851 | ||
dd11a36c JB |
1852 | 2011-10-02 Joel Brobecker <brobecker@adacore.com> |
1853 | ||
1854 | * breakpoint.c (bkpt_print_recreate): Add call to | |
1855 | print_recreate_thread. | |
1856 | ||
723b724b MF |
1857 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
1858 | ||
1859 | * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC, | |
1860 | PTRACE_GETFDPIC_INTERP): Define. | |
1861 | ||
412946b6 YQ |
1862 | 2011-09-28 Yao Qi <yao@codesourcery.com> |
1863 | ||
1864 | * symfile.c (add_symbol_file_command): Update message on usage. | |
1865 | ||
a73bb892 PK |
1866 | 2011-09-28 Paul Koning <paul_koning@dell.com> |
1867 | ||
1868 | * python/py-type.c (make_fielditem, typy_field_names, typy_items) | |
1869 | (typy_length, typy_get, typy_has_key, typy_make_iter) | |
1870 | (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter) | |
1871 | (typy_iterator_iter, typy_iterator_iternext) | |
1872 | (typy_iterator_dealloc): New functions to implement standard | |
1873 | Python mapping methods on gdb.Type object. | |
1874 | (gdb.TypeIterator): New Python type. | |
1875 | * python/python-internal.h (gdbpy_iter_kind): New enum. | |
a73bb892 | 1876 | |
fe10a582 DM |
1877 | 2011-09-28 David S. Miller <davem@davemloft.net> |
1878 | ||
1879 | * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM, | |
1880 | SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums. | |
1881 | * sparc-tdep.c (sparc_complex_floating_p): New function. | |
1882 | (sparc32_store_arguments): Handle complex floats. | |
1883 | (sparc32_extract_return_value): Likewise. | |
1884 | (sparc32_store_return_value): Likewise. | |
1885 | (sparc32_stabs_argument_has_addr): Likewise. | |
1886 | * sparc64-tdep.c (sparc64_complex_floating_p): New function. | |
1887 | (sparc64_store_floating_fields): Handle complex floats. | |
1888 | (sparc64_store_arguments): Likewise. | |
1889 | (sparc64_store_return_value): Likewise. | |
1890 | ||
c93dbcba EZ |
1891 | 2011-09-28 Eli Zaretskii <eliz@gnu.org> |
1892 | ||
1893 | * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from | |
1894 | before the change on 2006-12-09. | |
1895 | (windows_create_inferior) [!__CYGWIN__]: Restore code that | |
1896 | generates the environment block for CreateProcessA, modulo the | |
1897 | Cygwin-specific parts that are not needed here. | |
1898 | ||
f00c55f8 TG |
1899 | 2011-09-27 Tristan Gingold <gingold@adacore.com> |
1900 | ||
1901 | * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO. | |
1902 | * solib-darwin.c (DYLD_VERSION_MAX): Update number. | |
1903 | (darwin_solib_get_all_image_info_addr_at_init): New function. | |
1904 | (darwin_solib_read_all_image_info_addr): Likewise. | |
1905 | (darwin_solib_create_inferior_hook): Use the above two functions. | |
1906 | * darwin-nat.c (darwin_execvp): Renames retval to res. | |
1907 | (darwin_read_write_inferior): Update comment. | |
1908 | (darwin_read_dyld_info): New function. | |
1909 | (darwin_xfer_partial): Handle DYLD_INFO. | |
1910 | ||
6710bf39 SS |
1911 | 2011-09-27 Stan Shebs <stan@codesourcery.com> |
1912 | ||
1913 | Add return address collection for tracepoints. | |
1914 | * tracepoint.c (encode_actions_1): Add case for $_ret. | |
1915 | (validate_actionline): Check for $_ret. | |
1916 | (trace_dump_actions): Ditto. | |
1917 | * ax-gdb.h (gen_trace_for_return_address): Declare. | |
1918 | * ax-gdb.c: Include arch-utils.h. | |
1919 | (gen_trace_for_return_address): New function. | |
1920 | (agent_command): Add return address special case. | |
1921 | * amd64-tdep.c: Include ax.h and ax-gdb.h. | |
1922 | (amd64_gen_return_address): New function. | |
1923 | (amd64_init_abi): Call it. | |
1924 | * i386-tdep.c: Include ax.h and ax-gdb.h. | |
1925 | (i386_gen_return_address): New function. | |
1926 | (i386_init_abi): Call it. | |
1927 | * arch-utils.h (default_gen_return_address): Declare. | |
1928 | * arch-utils.c (default_gen_return_address): New function. | |
1929 | * gdbarch.sh (gen_return_address): New method. | |
1930 | * gdbarch.h, gdbarch.c: Regenerate. | |
1931 | ||
e04e5beb JM |
1932 | 2011-09-23 Joseph Myers <joseph@codesourcery.com> |
1933 | ||
1934 | PR gdb/13079 | |
1935 | * i386-tdep.c (i386_frame_align): New. | |
1936 | (i386_gdbarch_init): Use i386_frame_align. | |
1937 | ||
f3d6df6d YQ |
1938 | 2011-09-23 Yao Qi <yao@codesourcery.com> |
1939 | ||
1940 | * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer | |
1941 | to get address. | |
1942 | ||
e69860f1 TG |
1943 | 2011-09-22 Tristan Gingold <gingold@adacore.com> |
1944 | ||
1945 | * fork-child.c (fork_inferior): Add exec_fun parameter. | |
1946 | Call exec_fun or execvp. | |
1947 | * inferior.h: Adjust prototype. | |
1948 | * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call. | |
1949 | * inf-ttrace.c (inf_ttrace_create_inferior): Ditto. | |
1950 | * inf-ptrace.c (inf_ptrace_create_inferior): Ditto. | |
1951 | * procfs.c (procfs_create_inferior): Ditto. | |
1952 | * darwin-nat.c (darwin_execvp): New function. | |
1953 | (darwin_create_inferior): Use it. | |
1954 | ||
4b51d87b YQ |
1955 | 2011-09-22 Yao Qi <yao@codesourcery.com> |
1956 | ||
1957 | * infrun.c (context_switch): Print debug message when switching to | |
1958 | a different thread. | |
1959 | ||
56b9d9ac UW |
1960 | 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com> |
1961 | ||
1962 | * s390-tdep.c (s390_function_arg_pass_by_reference): Handle | |
1963 | complex and vector types. | |
1964 | (s390_return_value_convention): Likewise. | |
1965 | ||
1966 | (s390_value_from_register): Call check_typedef. | |
1967 | (extend_simple_arg): Likewise. | |
1968 | (alignment_of): Likewise. | |
1969 | (s390_push_dummy_call): Likewise. | |
1970 | (s390_return_value): Likewise. | |
1971 | ||
b2cd6b29 JM |
1972 | 2011-09-21 Joseph Myers <joseph@codesourcery.com> |
1973 | ||
1974 | * event-top.c (async_disconnect): If an exception is thrown from | |
1975 | quit_cover, call pop_all_targets. Use TRY_CATCH instead of | |
1976 | catch_errors. | |
1977 | * top.c (quit_cover): Return void and take no arguments. | |
1978 | * top.h (quit_cover): Update prototype. | |
1979 | ||
67ba4e42 JM |
1980 | 2011-09-20 Joseph Myers <joseph@codesourcery.com> |
1981 | ||
1982 | * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to | |
1983 | current_uiout, not uiout. | |
1984 | ||
562f943b DE |
1985 | 2011-09-19 Doug Evans <dje@google.com> |
1986 | ||
1987 | * python/py-auto-load.c (source_section_scripts): Fix file | |
1988 | descriptor leak. | |
1989 | * python/python.c (source_python_script_for_objfile): Tweak comments. | |
1990 | ||
34518530 YQ |
1991 | 2011-09-18 Yao Qi <yao@codesourcery.com> |
1992 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
1993 | ||
1994 | Support displaced stepping for Thumb 16-bit insns. | |
1995 | * arm-tdep.c (THUMB_NOP) Define. | |
1996 | (thumb_copy_unmodified_16bit): New. | |
1997 | (thumb_copy_b, thumb_copy_bx_blx_reg): New. | |
1998 | (thumb_copy_alu_reg): New. | |
1999 | (arm_copy_svc): Move some common code to ... | |
2000 | (install_svc): ... here. New. | |
2001 | (thumb_copy_svc): New. | |
2002 | (install_pc_relative): New. | |
2003 | (thumb_copy_pc_relative_16bit): New. | |
2004 | (thumb_decode_pc_relative_16bit): New. | |
2005 | (thumb_copy_16bit_ldr_literal): New. | |
2006 | (thumb_copy_cbnz_cbz): New. | |
2007 | (cleanup_pop_pc_16bit_all): New. | |
2008 | (thumb_copy_pop_pc_16bit): New. | |
2009 | (thumb_process_displaced_16bit_insn): New. | |
2010 | (thumb_process_displaced_32bit_insn): New. | |
2011 | (thumb_process_displaced_insn): process thumb instruction. | |
2012 | ||
2013 | Support displaced stepping for Thumb 32-bit insns. | |
2014 | * arm-tdep.c (thumb_copy_unmodified_32bit): New. | |
2015 | (thumb2_copy_preload): New. | |
2016 | (thumb2_copy_copro_load_store): New. | |
2017 | (thumb2_copy_b_bl_blx): New. | |
2018 | (thumb2_copy_alu_imm): New. | |
2019 | (thumb2_copy_load_reg_imm): New. | |
2020 | (thumb2_copy_load_literal): New | |
2021 | (thumb2_copy_block_xfer): New. | |
2022 | (thumb_32bit_copy_undef): New. | |
2023 | (thumb_32bit_copy_unpred): New. | |
2024 | (thumb2_decode_ext_reg_ld_st): New. | |
2025 | (thumb2_decode_svc_copro): New. | |
2026 | (decode_thumb_32bit_store_single_data_item): New. | |
2027 | (thumb_copy_pc_relative_32bit): New. | |
2028 | (thumb_decode_pc_relative_32bit): New. | |
2029 | (decode_thumb_32bit_ld_mem_hints): New. | |
2030 | (thumb2_copy_table_branch): New | |
2031 | (thumb_process_displaced_32bit_insn): Process Thumb 32-bit | |
2032 | instructions. | |
2033 | ||
2b16b2e3 YQ |
2034 | 2011-09-18 Yao Qi <yao@codesourcery.com> |
2035 | ||
2036 | * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned. | |
2037 | (install_b_bl_blx): Likewise. | |
2038 | ||
0f6f04ba YQ |
2039 | 2011-09-17 Yao Qi <yao@codesourcery.com> |
2040 | ||
2041 | * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ... | |
2042 | (install_load_store): ... this. New. | |
2043 | Change parameter BYTE to SIZE. | |
2044 | (arm_copy_ldr_str_ldrb_strb): Update caller. | |
2045 | (arm_decode_ld_st_word_ubyte): Update caller. | |
2046 | ||
e2d96639 YQ |
2047 | 2011-09-17 Yao Qi <yao@codesourcery.com> |
2048 | ||
2049 | * infrun.c (displaced_step_fixup): Move some code ... | |
2050 | (displaced_step_restore): ... here. New function. | |
2051 | (handle_inferior_event): Cleanup displaced stepping state for both | |
2052 | child and parent when get forked or vforked event. | |
2053 | * regcache.c (get_thread_arch_aspace_regcache): New function. | |
2054 | get_thread_arch_regcache (): Call it. | |
2055 | ||
a8123151 JB |
2056 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2057 | ||
2058 | * ada-tasks.c (print_ada_task_info): New function, merging | |
2059 | short_task_info and info_tasks together. Reimplement using | |
2060 | ui-out instead of printing to stdout directly. Move the code | |
2061 | building and checking the task list here, instead of leaving it | |
2062 | in info_tasks_command. | |
2063 | (info_task): Move the code building and checking the task | |
2064 | list here, instead of leaving it in info_tasks_command. | |
2065 | (info_tasks_command): Delete code building and checking | |
2066 | the task list - moved elsewhere. Update calls to info_tasks | |
2067 | and info_task. | |
2068 | ||
fbf06824 JB |
2069 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2070 | ||
2071 | * ada-tasks.c (info_task): Delete parameter `from_tty'. | |
2072 | ||
34a0bc90 JB |
2073 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2074 | ||
2075 | * ada-tasks.c (info_tasks): Delete parameter `from_tty'. | |
2076 | ||
79779fa9 JB |
2077 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2078 | ||
2079 | * ada-lang.h (ada_build_task_list): Remove parameter | |
2080 | `warn_if_null'. | |
2081 | * ada-tasks.c (ada_build_task_list): Remove parameter | |
2082 | `warn_if_null'. Adjust implementation and documentation. | |
2083 | (valid_task_id, ada_get_environment_task) | |
2084 | iterate_over_live_ada_tasks): Adjust call to ada_build_task_list. | |
2085 | (info_tasks_command): Adjust implementation. | |
2086 | (task_command): Likewise. | |
2087 | * ravenscar-thread.c (ravenscar_find_new_threads): Fix call | |
2088 | to ada_build_task_list. | |
2089 | ||
e225eb91 JB |
2090 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2091 | ||
2092 | * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete. | |
2093 | (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New. | |
2094 | (ada_tasks_inferior_data_handle): New static global. | |
2095 | (get_ada_tasks_inferior_data): New function. | |
2096 | (ada_get_task_number, get_task_number_from_id, valid_task_id) | |
2097 | (ada_get_environment_task, iterate_over_live_ada_tasks) | |
2098 | (add_ada_task, read_known_tasks_array, read_known_tasks_list): | |
2099 | Adjust. | |
2100 | (ada_set_current_inferior_known_tasks_addr): New function. | |
2101 | (read_known_tasks, ada_build_task_list, short_task_info) | |
2102 | (info_tasks, info_task, info_tasks_command, task_command_1) | |
2103 | (task_command, ada_task_list_changed): Adjust. | |
2104 | (ada_tasks_invalidate_inferior_data): New function. | |
2105 | (ada_normal_stop_observer, ada_new_objfile_observer): Adjust. | |
2106 | (_initialize_tasks): Set ada_tasks_inferior_data_handle. | |
2107 | * ada-lang.h (struct inferior): Add declaration. | |
2108 | (ada_task_list_changed): Update profile. | |
2109 | * remote-wtx-pd.c: #include "inferior.h". | |
2110 | (switch_to_pd_internal): Update call to ada_task_list_changed. | |
2111 | ||
6da9ca05 JB |
2112 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2113 | ||
2114 | * ada-tasks.c: #include "progspace.h" and "objfiles.h". | |
2115 | (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type) | |
2116 | (atcb_fieldno): Delete these static globals. | |
2117 | (struct ada_tasks_pspace_data): New struct. | |
2118 | (ada_tasks_pspace_data_handle): New static global. | |
2119 | (get_ada_tasks_pspace_data): New function. | |
2120 | (ada_tasks_invalidate_pspace_data): New function. | |
2121 | (get_tcb_types_info, ptid_from_atcb_common, read_atcb) | |
2122 | (read_known_tasks_list, ada_new_objfile_observer): Adjust. | |
2123 | (_initialize_tasks): Create this module's per-progspace | |
2124 | data handle. | |
2125 | ||
dccd3cbd JB |
2126 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2127 | ||
2128 | * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. | |
2129 | ||
f877b031 TG |
2130 | 2011-09-16 Tristan Gingold <gingold@adacore.com> |
2131 | ||
2132 | * fork-child.c (fork_inferior): Update comment. Use alloca | |
2133 | instead of xmalloc for argv. Move len and shell_command | |
2134 | declarations in the block where they are used. | |
2135 | Only call execvp. Factorize failure code. | |
2136 | ||
ae0c443d JK |
2137 | 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com> |
2138 | ||
2139 | Code cleanup. | |
2140 | * parse.c (write_exp_elt): Change argument to pass a pointer of union | |
2141 | `exp_element' instead of an element of the same and make the function | |
2142 | static. | |
2143 | (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block) | |
2144 | (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst) | |
2145 | (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern): | |
2146 | Change argument of `write_exp_elt' function call. | |
2147 | Remove extra spaces from comments. | |
2148 | * parser-defs.h (write_exp_elt): Remove prototype. | |
2149 | ||
5af65ec0 PK |
2150 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
2151 | ||
2152 | * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference | |
2153 | count of item appended to list. | |
2154 | * python/py-type.c (typy_fields): Likewise. | |
2155 | ||
72be8ccc PK |
2156 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
2157 | ||
883640a8 | 2158 | * MAINTAINERS (Write After Approval): Add myself to the list. |
72be8ccc | 2159 | |
92f6badc KP |
2160 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2161 | ||
2162 | PR threads/12628 | |
2163 | * linux-fork.c (checkpoint_command): Disallow checkpointing of | |
2164 | processes with multiple threads. | |
2165 | (inf_has_multiple_thread_cb): New function. | |
2166 | (inf_has_multiple_threads): New function. | |
2167 | ||
0672bf41 | 2168 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2aa48337 KP |
2169 | |
2170 | PR Python/12692 Add gdb.selected_inferior() to Python interface. | |
2171 | * python/py-inferior.c (GdbMethods): New Python method definition. | |
2172 | ||
6839b47f KP |
2173 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2174 | ||
2175 | Handle multiple breakpoint hits in Python interface: | |
2176 | * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python | |
2177 | variable to breakpoints. | |
2178 | * python/py-stopevent.c (emit_stop_event): Return a Python tuple of | |
2179 | bps instead of single breakpoint. Fix some space typos. | |
2180 | * python/py-stopevent.c (create_breakpoint_event_object): Rename | |
2181 | variable to breakpoints. | |
2182 | ||
672f9b60 KP |
2183 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2184 | ||
2185 | * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate' | |
2186 | note if the breakpoint is internal. | |
2187 | ||
43675ae4 KP |
2188 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2189 | ||
0672bf41 | 2190 | * MAINTAINERS (Write After Approval): Add myself to the list |
43675ae4 | 2191 | |
15148d6a PA |
2192 | 2011-09-14 Pedro Alves <pedro@codesourcery.com> |
2193 | ||
2194 | * infrun.c (prepare_for_detach, wait_for_inferior) | |
2195 | (fetch_inferior_event): Don't flush the register cache. | |
2196 | * remote.c (struct stop_reply) <regcache>: Add comment. | |
2197 | ||
d83e736b JK |
2198 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2199 | ||
2200 | Remove excessive DWARF expressions memory duplication. | |
2201 | * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use | |
2202 | for block.data. | |
2203 | (indirect_pieced_value): Remove variable result. Remove variable | |
2204 | back_to and its use for baton.data. | |
2205 | (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for | |
2206 | block.data. | |
2207 | * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup. | |
2208 | Update the function comment. | |
2209 | ||
c65b3e0d PA |
2210 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
2211 | ||
2212 | * inferior.h (ALL_INFERIORS): New. | |
2213 | * linux-thread-db.c (thread_db_find_new_threads_2): Remove check | |
2214 | for a stopped thread. | |
2215 | (thread_db_find_new_threads): Look for threads in all inferiors. | |
2216 | ||
a1398e0c PA |
2217 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
2218 | ||
2219 | * breakpoint.c (update_watchpoint): Handle the case of the | |
2220 | watchpoint to update not being in the breakpoint list yet. | |
2221 | (hw_watchpoint_use_count): New, factored out from | |
2222 | hw_watchpoint_used_count. | |
2223 | (hw_watchpoint_used_count): Rename to ... | |
2224 | (hw_watchpoint_used_count_others): ... this. Add `except' | |
2225 | parameter. Don't count resources of `except'. Use | |
2226 | hw_watchpoint_use_count. | |
2227 | ||
30596231 PA |
2228 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
2229 | ||
2230 | * gdbthread.h (enum thread_state): Moved here. | |
2231 | (struct thread_info): Rename `executing_' field to `executing' and | |
2232 | `state_' to `state'. | |
2233 | * thread.c (enum thread_state): Moved to gdbthread.h. | |
2234 | (new_thread, add_thread_silent, delete_thread_1) | |
2235 | (any_live_thread_of_process, thread_alive, set_running) | |
2236 | (set_running, is_thread_state, any_running, is_executing) | |
2237 | (set_executing, finish_thread_state, print_thread_info) | |
2238 | (do_captured_thread_select): Adjust. | |
2239 | ||
bede5f5f JK |
2240 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2241 | ||
2242 | Fix compatibility with gcc < 4.3 and non-gcc compilers. | |
2243 | * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants. | |
2244 | ||
4801a9a3 PA |
2245 | 2011-09-12 Pedro Alves <pedro@codesourcery.com> |
2246 | Matt Rice <ratmice@gmail.com> | |
2247 | ||
2248 | PR gdb/13175 | |
2249 | ||
2250 | * interps.c (struct interp) <interpreter_out>: Delete field. | |
2251 | (interp_new): Remove the data and uiout parameters and adjust. | |
2252 | (interp_set): Only set the current_uiout from the interpreter's | |
2253 | uiout after initializing the interpreter. Adjust call to | |
2254 | init_proc. | |
2255 | (interp_ui_out): Adjust to call procs->ui_out_proc. | |
2256 | (interp_data, interp_name): New. | |
2257 | * interps.h (interp_init_ftype): Add `self' parameter. | |
2258 | (interp_ui_out_ftype): New typedef. | |
2259 | (struct interp_procs) <ui_out_proc>: New method pointer. | |
2260 | (interp_new): Remove the data and uiout parameters. | |
2261 | (interp_data, interp_name): Declare. | |
2262 | * tui/tui-interp.c (tui_init): Adjust prototype. | |
2263 | (tui_ui_out): New. | |
2264 | (_initialize_tui_interp): Install tui_ui_out. Don't instanciate | |
2265 | tui_out here. Adjust call to interp_new. | |
2266 | * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here. | |
2267 | * cli/cli-interp.c (cli_interpreter_init): Adjust prototype. | |
2268 | (cli_ui_out): New. | |
2269 | (_initialize_cli_interp): Install it. Adjust call to interp_new. | |
2270 | * mi/mi-common.h (struct mi_interp) <uiout>: New field. | |
2271 | * mi/mi-interp.c (mi_interpreter_init): Adjust prototype. | |
2272 | Initialize mi->uiout depending on the mi_version as extracted from | |
2273 | the interpreter's name. | |
2274 | (mi_ui_out): New. | |
2275 | (_initialize_mi_interp): Install mi_ui_out. Adjust calls to | |
2276 | interp_new. Don't allocate the ui_out's of the interpreters here. | |
2277 | ||
d0afda03 | 2278 | 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com> |
59145f8c | 2279 | |
d0afda03 | 2280 | * solib.c (solib_used): New function. |
59145f8c AR |
2281 | (update_solib_list, reload_shared_libraries_1): Check if objfile is used |
2282 | by another so_list object before freeing it. | |
2283 | ||
bdaf8d4a JK |
2284 | 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2285 | ||
2286 | Code cleanup. | |
2287 | * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter | |
2288 | values. | |
2289 | ||
df15bd07 JK |
2290 | 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2291 | ||
2292 | Code cleanup. | |
2293 | * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ... | |
2294 | (amd64_skip_xmm_prologue): ... this new function. Describe its | |
2295 | parameters. No longer use amd64_prologue_line_bug. | |
2296 | * defs.h (producer_is_gcc_ge_4): New declaration. | |
2297 | * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c. | |
2298 | (process_full_comp_unit): Update its caller. Remove | |
2299 | amd64_prologue_line_bug initialization. | |
2300 | * symtab.h (struct symtab): Remove field amd64_prologue_line_bug. | |
2301 | * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c. | |
2302 | ||
25289eb2 PA |
2303 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
2304 | ||
2305 | * linux-nat.h (enum resume_kind): New. | |
2306 | (struct lwp_info) <last_resume_kind>: New field. | |
ddf17726 PA |
2307 | * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to |
2308 | resume_stop on the new lwp. | |
25289eb2 PA |
2309 | (add_lwp): Set last_resume_kind as resume_continue by default. |
2310 | (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop. | |
2311 | (resume_lwp): New, factored out from resume_callback. Also check | |
2312 | for pending status in lp->waitstatus. | |
2313 | (resume_callback): Reimplement. | |
2314 | (resume_clear_callback): Set last_resume_kind as resume_stop. | |
2315 | (resume_set_callback): Set last_resume_kind as resume_continue. | |
2316 | (linux_nat_resume, linux_handle_extended_wait): Set | |
2317 | last_resume_kind. | |
2318 | (running_callback): Also check lp->waitstatus for pending events. | |
2319 | (select_singlestep_lwp_callback): Check that lp->last_resume_kind | |
2320 | is resume_step. | |
2321 | (stop_and_resume_callback): Don't re-resume if the core wanted the | |
2322 | lwp stopped. Use resume_lwp instead of resume_callback. Avoid | |
2323 | using an invalidated pointer. | |
2324 | (linux_nat_filter_event): Don't discard SIGSTOPs as delayed | |
2325 | SIGSTOPs if the core wanted the LWP to stop. | |
2326 | (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core | |
2327 | wanted the lwp to stop. If the core wanted the lwp to stop, and | |
2328 | the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead | |
2329 | of TARGET_SIGNAL_STOP. | |
2330 | (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop | |
2331 | here. Instead, signal the lwp, and set the last_resume_kind to | |
2332 | resume_stop. | |
2333 | ||
f687d035 PA |
2334 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
2335 | ||
2336 | * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of | |
2337 | -1 (error), if the lwp exits right after attaching. | |
2338 | ||
bc587a6b DE |
2339 | 2011-09-08 Doug Evans <dje@google.com> |
2340 | ||
63d97a20 DE |
2341 | * py-cmd.c: Some minor formatting fixes. |
2342 | (gdbpy_parse_command_name): Rename text arg to name, make const. | |
2343 | All callers updated. | |
2344 | * python-internal.h (gdbpy_parse_command_name): Update. | |
2345 | ||
bc587a6b DE |
2346 | * cli/cli-decode.c (add_cmd): Add comment. |
2347 | ||
08711b9a JK |
2348 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2349 | ||
2350 | PR breakpoints/12435 | |
2351 | * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal, | |
2352 | next_sal, buf, offset and xmmreg. Advance PC if it sees the PR. | |
2353 | * dwarf2read.c (process_full_comp_unit): Initialize | |
2354 | amd64_prologue_line_bug. | |
2355 | * symtab.h (struct symtab): New field amd64_prologue_line_bug. | |
2356 | ||
b2e7f004 JK |
2357 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2358 | ||
2359 | Fix TUI screen corruption. | |
2360 | * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by | |
2361 | batch_flag. | |
2362 | ||
8afd712c JK |
2363 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2364 | ||
2365 | * findvar.c (read_var_value): Never return NULL, throw an error | |
2366 | instead. Update the function comment. State symbol name in the error | |
2367 | messages. | |
2368 | * python/py-frame.c (frapy_read_var): Remove handling of NULL from | |
2369 | read_var_value. | |
2370 | * stack.c (print_frame_args): Likewise. | |
2371 | * valops.c (value_of_variable): Likewise. | |
2372 | ||
b99b5f66 JK |
2373 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2374 | ||
2375 | * stack.c (print_frame_args): New variable except. Wrap | |
2376 | read_var_value and common_val_print into TRY_CATCH. | |
2377 | ||
85bc8cb7 JK |
2378 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2379 | ||
2380 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this | |
2381 | caller to value_of_this. | |
2382 | * p-exp.y: Update the value_of_this caller to value_of_this_silent. | |
2383 | Twice. | |
2384 | * valops.c (value_of_this): Remove parameter complain and variable ret. | |
2385 | Update function comment. Never return NULL by this code. | |
2386 | (value_of_this_silent): New function. | |
2387 | * value.h (value_of_this): Remove parameter complain. | |
2388 | (value_of_this_silent): New declaration. | |
2389 | ||
ede1849f YQ |
2390 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
2391 | ||
2392 | * gdbthread.h (struct thread_info): Remove fields | |
2393 | `stepping_through_solib_after_catch' and | |
2394 | `stepping_through_solib_catchpoints'. | |
2395 | * infrun.c (init_thread_stepping_state): Update. | |
2396 | (process_event_stop_test, currently_stepping): Update. | |
2397 | (currently_stepping_or_nexting_callback): Update. | |
2398 | ||
6aa27652 YQ |
2399 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
2400 | ||
2401 | * gdbthread.h (struct thread_info): Comment on field | |
2402 | `step_after_step_resume_breakpoint'. | |
2403 | ||
00db5b94 PA |
2404 | 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com> |
2405 | ||
2406 | * remote.c (remote_console_output): Reindent. | |
2407 | ||
861152be LM |
2408 | 2011-09-06 Luis Machado <lgustavo@codesourcery.com> |
2409 | ||
2410 | * frame.c (has_stack_frames): Check for currently selected | |
2411 | traceframe. | |
2412 | ||
ab821bc6 PA |
2413 | 2011-09-06 Pedro Alves <pedro@codesourcery.com> |
2414 | ||
2415 | * event-top.h (MAXPROMPTS, struct prompts): Delete. | |
2416 | (set_async_annotation_level, set_async_prompt, pop_prompt) | |
2417 | (push_prompt, new_async_prompt): Delete declarations. | |
2418 | * top.h (get_prompt, set_prompt): Change prototype. | |
2419 | (get_prefix, set_prefix, get_suffix, set_suffix): Delete | |
2420 | declarations. | |
2421 | * top.c (command_loop): | |
2422 | (top_prompt): New global. | |
2423 | (get_prefix, set_prefix, get_suffix, ): Delete. | |
2424 | (get_prompt, set_prompt): Rewrite. | |
2425 | (show_new_async_prompt): Rename to ... | |
2426 | (show_prompt): ... this. | |
2427 | (init_main): Adjust. Don't handle --annotate=2 here. | |
2428 | * event-top.c (new_async_prompt): Delete. | |
2429 | (the_prompts): Delete. | |
2430 | (more_to_come): Make static. | |
2431 | (display_gdb_prompt): Use top_level_prompt() to compute the top | |
2432 | level prompt, and don't notify the before_prompt observers | |
2433 | directly here. Always trick readline into not trying to display | |
2434 | the prompt if sync_execution and displaying the primary prompt. | |
2435 | If displaying a local/secondary prompt, always show it, even if | |
2436 | sync_execution is set. | |
2437 | (change_annotation_level): Delete. | |
2438 | (top_level_prompt): New, based on change_annotation_level. | |
2439 | (push_prompt, pop_prompt): Delete. | |
2440 | (async_disable_stdin): No longer pushes prompt. | |
2441 | (command_line_handler): No longer pushes or pops prompt. If more | |
2442 | input is expected, call display_gdb_prompt with an explicit empty | |
2443 | prompt. | |
2444 | (async_stop_sig): Adjust. | |
2445 | (set_async_annotation_level, set_async_prompt): Delete. | |
2446 | * python/python.c (before_prompt_hook): Adjust. | |
2447 | ||
f1d90504 PA |
2448 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
2449 | ||
2450 | PR cli/13110 | |
2451 | ||
2452 | * infrun.c (fetch_inferior_event): Check if there's a selected | |
2453 | thread before checking if the selected thread is executing. | |
2454 | ||
0f641c01 PA |
2455 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
2456 | ||
2457 | * inf-loop.c (execute_command): Don't check if the current thread | |
2458 | if running before synchronously waiting for command completion. | |
2459 | * infrun.c (fetch_inferior_event): Handle "set exec-done-display" | |
2460 | here. | |
2461 | (normal_stop): Call async_enable_stdin here. | |
2462 | * inf-loop.c (inferior_event_handler): Don't call | |
2463 | async_enable_stdin, nor handle "set exec-done-display" here. | |
2464 | ||
30368258 | 2465 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
2466 | ||
2467 | GDB 7.3.1 released. | |
2468 | ||
31916278 JB |
2469 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
2470 | ||
2471 | * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'. | |
2472 | ||
e8d56f18 JB |
2473 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
2474 | ||
2475 | * NEWS: Add entry for OpenBSD/NetBSD build failure. | |
2476 | ||
5dd05d8c JK |
2477 | 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2478 | ||
2479 | * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency. | |
2480 | ||
7d8e6458 | 2481 | 2011-09-02 Matt Rice <ratmice@gmail.com> |
2482 | ||
2483 | PR gdb/10720 | |
2484 | * event-top.c (cli_command_loop): Replace readline setup with | |
2485 | direct call to display_gdb_prompt. | |
2486 | (display_gdb_prompt): Do not call observer mechanism during | |
2487 | synchronous execution. | |
2488 | ||
84636d28 PA |
2489 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
2490 | ||
2491 | * linux-nat.c (in_pid_list_p): New. | |
2492 | (linux_record_stopped_pid): Delete. | |
2493 | (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're | |
2494 | already attached to the LWP. Return an indication if so. | |
2495 | (linux_nat_filter_event): Adjust. | |
2496 | * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp | |
2497 | returning an indication to ignore this thread. | |
2498 | ||
b4a14fd0 PA |
2499 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
2500 | ||
2501 | * top.c: Include interps.h. | |
2502 | (execute_command): If the target can async, but the interpreter is | |
2503 | in sync mode, synchronously wait for the command to finish before | |
2504 | returning. | |
2505 | (execute_command_to_string): Force the interpreter to sync mode. | |
2506 | * infrun.c: Include interps.h. | |
2507 | (fetch_inferior_event): Don't restore the prompt yet if the | |
2508 | interpreter is in sync mode. | |
2509 | * interps.c (interpreter_async): New global. | |
2510 | * interps.h (interpreter_async): Declare. | |
2511 | * inf-loop.c: Include interps.h. | |
2512 | (inferior_event_handler): Don't print the language change or run | |
2513 | breakpoint commands yet if the interpreter in is sync mode. | |
2514 | * main.c (captured_command_loop): Flip the interpreter to async | |
2515 | mode. | |
2516 | * cli/cli-script.c: Include interps.h. | |
2517 | (execute_user_command, while_command, if_command): Force the | |
2518 | interpreter to sync mode. | |
2519 | * python/python.c: Include interps.h. | |
2520 | (python_command, execute_gdb_command): Force the interpreter to | |
2521 | sync mode. | |
2522 | ||
c709acd1 PA |
2523 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
2524 | ||
2525 | * value.c (show_convenience): Catch errors thrown while printing | |
2526 | each internal variable. | |
2527 | * infrun.c (validate_siginfo_access): New function. | |
2528 | (siginfo_value_read, siginfo_value_write): Call it. | |
2529 | ||
9655e943 JK |
2530 | 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2531 | ||
2532 | Revert: | |
2533 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
2534 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
2535 | attribute. | |
2536 | ||
cb457ae2 YQ |
2537 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
2538 | ||
2539 | * solib-dsbt.c (bfd_lookup_symbol): Removed. | |
2540 | (cmp_name): New. | |
2541 | (enable_break2): Update caller. | |
2542 | * solib-frv.c (bfd_lookup_symbol): Removed. | |
2543 | (cmp_name): New. | |
2544 | (enable_break2): Update caller. | |
2545 | * solib-pa64.c (bfd_lookup_symbol): Removed. | |
2546 | (cmp_name): New. | |
2547 | * solib-svr4.c (bfd_lookup_symbol): Removed. | |
2548 | (cmp_name_and_sec_flags): New. | |
2549 | (enable_break): Update caller. | |
2550 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): New. | |
2551 | (gdb_bfd_lookup_symbol_from_dyn_symtab): New. | |
2552 | (gdb_bfd_lookup_symbol): New. | |
2553 | * solib.h: Functions declarations. | |
2554 | ||
83d1a36a YQ |
2555 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
2556 | ||
2557 | * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o | |
2558 | and solib-dsbt.o. | |
2559 | ||
c04b3e8f JK |
2560 | 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
2561 | ||
2562 | Fix TUI stepi on code without symbols. | |
2563 | * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for | |
2564 | current PC instead. | |
2565 | ||
cb0fd152 JK |
2566 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2567 | ||
2568 | Code cleanup. | |
2569 | * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization | |
2570 | and the static keyword. | |
2571 | * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put): | |
2572 | Make prefix an array. | |
2573 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
2574 | * mi/mi-main.c (get_register): Remove stb initialization and the static | |
2575 | keyword. | |
2576 | ||
91174723 JK |
2577 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2578 | ||
2579 | Code cleanup - make mi_opt const. | |
2580 | * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make | |
2581 | opts const. | |
2582 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
2583 | * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise. | |
2584 | (mi_cmd_env_dir): Likewise. | |
2585 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise. | |
2586 | (mi_cmd_target_file_put): Likewise. | |
2587 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
2588 | * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise. | |
2589 | * mi/mi-getopt.c (mi_getopt): Make opts and opt const. | |
2590 | (mi_valid_noargs): Make opts const. | |
2591 | * mi/mi-getopt.h (mi_getopt): Make opts and opt const. | |
2592 | * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const. | |
2593 | (mi_cmd_data_read_memory): Likewise. | |
2594 | (mi_cmd_data_read_memory_bytes): Likewise. | |
2595 | (mi_cmd_data_write_memory): Likewise. | |
2596 | ||
5068b8e8 | 2597 | 2011-08-26 Matt Rice <ratmice@gmail.com> |
2598 | ||
2599 | * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to | |
2600 | bcache_xmalloc, replace bcache_xmalloc with call to | |
2601 | psymbol_bcache_init for psymbol_cache. | |
2602 | * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc. | |
2603 | ||
a4f2ce05 JK |
2604 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
2605 | ||
2606 | * inf-loop.c (inferior_event_handler): Add exception_print in | |
2607 | INF_EXEC_COMPLETE. | |
2608 | ||
353d1d73 JK |
2609 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
2610 | ||
2611 | * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call | |
2612 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
2613 | * defs.h (make_bpstat_clear_actions_cleanup): New declaration. | |
2614 | * exceptions.c (throw_exception): Remove the bpstat_clear_actions call. | |
2615 | * inf-loop.c (inferior_event_handler): New variable cleanup_if_error, | |
2616 | call make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
2617 | Call bpstat_clear_actions for failed fetch_inferior_event_wrapper. | |
2618 | * infrun.c (fetch_inferior_event): Call | |
2619 | make_bpstat_clear_actions_cleanup. | |
2620 | * top.c (execute_command): New variable cleanup_if_error, call | |
2621 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
2622 | * utils.c (do_bpstat_clear_actions_cleanup) | |
2623 | (make_bpstat_clear_actions_cleanup): New functions. | |
2624 | ||
3ced3da4 PA |
2625 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
2626 | ||
2627 | * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on | |
2628 | either the parent or the child forks. Rename a couple locals. | |
2629 | ||
a9f4bb21 PA |
2630 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
2631 | ||
2632 | * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a | |
2633 | library call. Avoid reading the `status' local if all waitpid | |
2634 | calls failed. | |
2635 | ||
e5798bef PA |
2636 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
2637 | ||
2638 | * common/linux-osdata.c (get_cores_used_by_process): Don't assume | |
2639 | opening /proc/PID/task always succeeds. | |
2640 | ||
edb2aadf AR |
2641 | 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com> |
2642 | ||
2643 | * linespec.c (symtab_from_filename): Check for the end of string. | |
2644 | ||
0d932b2f MK |
2645 | 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com> |
2646 | ||
2647 | PR mi/11912 | |
2648 | * varobj.c (cplus_describe_child): Add the keyword | |
2649 | 'class' to the output of the method when dealing | |
2650 | with a cast to a base class. | |
2651 | ||
e93ca019 JK |
2652 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
2653 | ||
2654 | No functionality change. | |
2655 | * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make | |
2656 | function comment a reference, new variables tp and bs, move here code | |
2657 | from throw_exception. | |
2658 | * breakpoint.h (bpstat_clear_actions): Remove the BS parameter, | |
2659 | describe it in the comment. | |
2660 | * exceptions.c (throw_exception): Remove variable tp, move the code for | |
2661 | bpstat_clear_actions to bpstat_clear_actions. | |
2662 | ||
13da1c97 LM |
2663 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
2664 | ||
2665 | * linux-nat.h (linux_proc_get_tgid): Remove declaration. | |
2666 | * linux-nat.c: Include linux-procfs.h. | |
2667 | (linux_proc_get_tgid): Move to ... | |
2668 | * common/linux-procfs.c: ... here. New file. | |
2669 | * common/linux-procfs.h: New file. | |
2670 | * linux-thread-db.c: Include linux-procfs.h. | |
2671 | * Makefile.in: Update dependencies. | |
2672 | * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency. | |
2673 | * config/arm/linux.mh: Likewise. | |
2674 | * config/i386/linux.mh: Likewise. | |
2675 | * config/i386/linux64.mh: Likewise. | |
2676 | * config/ia64/linux.mh: Likewise. | |
2677 | * config/m32r/linux.mh: Likewise. | |
2678 | * config/m68k/linux.mh: Likewise. | |
2679 | * config/mips/linux.mh: Likewise. | |
2680 | * config/pa/linux.mh: Likewise. | |
2681 | * config/pa/linux.mh: Likewise. | |
2682 | * config/powerpc/linux.mh: Likewise. | |
2683 | * config/powerpc/ppc64-linux.mh: Likewise. | |
2684 | * config/powerpc/spu-linux.mh: Likewise. | |
2685 | * config/sparc/linux.mh: Likewise. | |
2686 | * config/sparc/linux64.mh: Likewise. | |
2687 | * config/xtensa/linux.mh: Likewise. | |
2688 | ||
4e5c165d HZ |
2689 | 2011-08-24 Hui Zhu <teawater@gmail.com> |
2690 | ||
2691 | * tracepoint.c (cond_string_is_same): New function. | |
2692 | (find_matching_tracepoint): Add condition check | |
2693 | by cond_string_is_same. | |
2694 | ||
6e2f5b22 JK |
2695 | 2011-08-23 Josh Matthews <josh@joshmatthews.net> |
2696 | ||
2697 | Fix build error in Darwin port. | |
2698 | * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout. | |
2699 | ||
abf85f46 JK |
2700 | 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
2701 | ||
2702 | Code cleanup. | |
2703 | * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left. | |
2704 | (command_line_is_silent): New function. | |
2705 | (bpstat_do_actions_1): No longer use commands_left, use | |
2706 | command_line_is_silent for commands. | |
2707 | (bpstat_alloc): Remove clearing of commands_left. | |
2708 | (bpstat_stop_status): Remove initialization of commands_left, use | |
2709 | command_line_is_silent. | |
2710 | * breakpoint.h (struct bpstats): Remove commands_left. | |
2711 | ||
3a93a0c2 KS |
2712 | 2011-08-18 Keith Seitz <keiths@redhat.com> |
2713 | ||
2714 | PR c++/12266 | |
2715 | * cp-name-parser.y (struct demangle_info): Remove unused | |
2716 | member PREV. | |
2717 | (d_grab): Likewise. | |
2718 | (allocate_info): Change return type to struct demangle_info *. | |
2719 | Always allocate a new demangle_info. | |
2720 | Remove unused PREV pointer. | |
2721 | (cp_new_demangle_parse_info): New function. | |
2722 | (cp_demangled_name_parse_free): New function. | |
2723 | (do_demangled_name_parse_free_cleanup): New function. | |
2724 | (make_cleanup_cp_demangled_name_parse_free): New function. | |
2725 | (cp_demangled_name_to_comp): Change return type to | |
2726 | struct demangle_parse_info *. | |
2727 | Allocate a new storage for each call. | |
2728 | (main): Update usage for cp_demangled_name_to_comp | |
2729 | API change. | |
2730 | * cp-support.h (struct demangle_parse_info): New structure. | |
2731 | (cp_demangled_name_to_comp): Update API change for | |
2732 | return type. | |
2733 | (cp_new_demangle_parse_info): Declare. | |
2734 | (make_cleanup_cp_demangled_name_parse_free): New declaration. | |
2735 | (cp_demangled_name_parse_free): Declare. | |
2736 | * cp-support.c (cp_canonicalize_string): Update API | |
2737 | change for cp_demangled_name_to_comp. | |
2738 | (mangled_name_to_comp): Likewise. | |
2739 | Return struct demangle_parse_info, too. | |
2740 | (cp_class_name_from_physname): Update mangled_name_to_comp | |
2741 | API change. | |
2742 | (method_name_from_physname): Likewise. | |
2743 | (cp_func_name): Update API change for cp_demangled_name_to_comp. | |
2744 | (cp_remove_params): Likewise. | |
2745 | * python/py-type.c (typy_legacy_template_argument): Likewise. | |
2746 | ||
2747 | * cp-support.h (cp_canonicalize_string_no_typedefs): Declare. | |
2748 | (cp_merge_demangle_parse_infos): Declare. | |
2749 | * cp-support.c (ignore_typedefs): New file global. | |
2750 | (copy_string_to_obstack): New function. | |
2751 | (inspect_type): New function. | |
2752 | (replace_typedefs): New function. | |
2753 | (replace_typedefs_qualified_name): New function. | |
2754 | (cp_canonicalize_string_no_typedefs): New function. | |
2755 | * cp-name-parser.y (cp_merge_demangle_parse_infos): New function. | |
2756 | (cp_new_demangle__parse_info): Allocate and initialize the obstack. | |
2757 | * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs | |
2758 | instead of cp_canonicalize_string. | |
2759 | (find_method): Likewise. | |
2760 | (decode_compound): Before looking up the name, call | |
2761 | cp_canonicalize_string_no_typedefs. | |
2762 | (decode_variable): Likewise. | |
2763 | ||
fa3a4f15 PM |
2764 | 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> |
2765 | Tom Tromey <tromey@redhat.com> | |
2766 | Matt Rice <ratmice@gmail.com> | |
2767 | ||
2768 | * python/lib/gdb/prompt.py: New file. | |
2769 | * python/lib/gdb/command/prompt.py: New file. | |
2770 | * NEWS: Document set extended-prompt and gdb.prompt library | |
2771 | ||
85661b1e YQ |
2772 | 2011-08-16 Yao Qi <yao@codesourcery.com> |
2773 | ||
2774 | * tic6x-linux-tdep.c: Move const arrays definition from here... | |
2775 | * tic6x-tdep.c: to here ... | |
2776 | ||
11315641 YQ |
2777 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
2778 | ||
2779 | * NEWS: New port to Texas Instruments TMS320C6x. | |
2780 | ||
8cd64e00 YQ |
2781 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
2782 | Bernd Schmidt <bernds@codesourcery.com> | |
2783 | Yao Qi <yao@codesourcery.com> | |
2784 | ||
2785 | * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*. | |
2786 | * solib-dsbt.c: New file. Support DSBT shared object. | |
2787 | * tic6x-linux-tdep.c: New file. | |
2788 | * tic6x-tdep.c: New file. | |
2789 | * tic6x-tdep.h: New file. | |
2790 | ||
78d85199 YQ |
2791 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
2792 | Yao Qi <yao@codesourcery.com> | |
2793 | ||
2794 | * remote.c (PACKET_qXfer_fdpic): New enum value. | |
2795 | (remote_protocol_features): Add qXfer:fdpic:read packet. | |
2796 | (remote_xfer_partial): Support TARGET_OBJECT_FDPIC. | |
2797 | (_initialize_remote): Add set/show remote read-fdpic-loadmap command. | |
2798 | * target.h (enum target_object): Add TARGET_OBJECT_FDPIC. | |
2799 | ||
224bbe49 YQ |
2800 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
2801 | ||
2802 | Target description for tic6x. | |
2803 | * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x | |
2804 | tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux. | |
2805 | * features/tic6x-c6xp.xml, features/tic6x-core.xml: New. | |
2806 | * features/tic6x-gp.xml, features/tic6x-c62x.xml: New. | |
2807 | * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New. | |
2808 | * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New. | |
2809 | * features/tic6x-c64xp-linux.xml: New. | |
2810 | * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated. | |
2811 | * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated. | |
2812 | * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated. | |
2813 | * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated. | |
f040079f HZ |
2814 | * regformats/tic6x-c64xp.dat, |
2815 | regformats/tic6x-c62x-linux.dat: Generated. | |
2816 | * regformats/tic6x-c64x-linux.dat, | |
2817 | regformats/tic6x-c64xp-linux.dat: Generated. | |
224bbe49 YQ |
2818 | * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and |
2819 | features/tic6x-*.c files. | |
2820 | Add regformats/tic6x-*.dat files. | |
2821 | ||
457e09f0 DE |
2822 | 2011-08-12 Doug Evans <dje@google.com> |
2823 | ||
2824 | * NEWS: Mention new "type" attribute of python gdb.Symbol objects. | |
2825 | * python/py-symbol.c (sympy_get_type): New function. | |
2826 | (symbol_object_getset): Add "type". | |
2827 | ||
d20c1c3f PA |
2828 | 2011-08-12 Pedro Alves <pedro@codesourcery.com> |
2829 | ||
2830 | PR tui/13073 | |
2831 | ||
2832 | * tui/tui-regs.c (tui_show_register_group): Skip registers with an | |
2833 | empty name. | |
2834 | (tui_show_register_group): Don't store a byte buffer in the data | |
2835 | element's value. | |
2836 | (tui_register_format): Skip registers with an empty name. | |
2837 | (tui_get_register): Store a struct value in the data element's | |
2838 | value field instead of a byte buffer holding the raw register | |
2839 | contents. Account for optimized-out and unavailable registers | |
2840 | when comparing register contents. | |
2841 | ||
9d8fa392 PA |
2842 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
2843 | ||
2844 | * printcmd.c (current_display_number): Update comment. | |
2845 | (disable_current_display_cleanup): Delete. | |
2846 | (do_one_display): Use make_cleanup_restore_integer. Gracefully | |
2847 | catch errors thrown while evaluating and printing the display. | |
2848 | ||
401a70b8 TT |
2849 | 2011-08-09 Tom Tromey <tromey@redhat.com> |
2850 | ||
2851 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo. | |
2852 | ||
7f86f058 PA |
2853 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
2854 | ||
94b71cca | 2855 | * elfread.c (elf_symtab_read): Rework comments. |
7f86f058 PA |
2856 | * maint.c (maintenance_command): Ditto. |
2857 | * somread.c (som_symtab_read): Ditto. | |
2858 | * solib.c (solib_find, solib_map_sections, update_solib_list) | |
2859 | (solib_add, info_sharedlibrary_command, solib_name_from_address) | |
2860 | (solib_create_inferior_hook, in_solib_dynsym_resolve_code) | |
94b71cca | 2861 | (sharedlibrary_command, no_shared_libraries): Ditto. |
7f86f058 PA |
2862 | * solib-irix.c (locate_base, disable_break, enable_break) |
2863 | (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook) | |
2864 | (irix_current_sos, irix_open_symbol_file_object) | |
2865 | (irix_special_symbol_handling): Ditto. | |
2866 | * solib-sunos.c (locate_base, first_link_map_member) | |
2867 | (sunos_current_sos, disable_break, enable_break) | |
2868 | (sunos_special_symbol_handling, sunos_solib_create_inferior_hook): | |
2869 | Ditto. | |
2870 | * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base) | |
2871 | (open_symbol_file_object, svr4_current_sos, enable_break) | |
2872 | (svr4_special_symbol_handling, svr4_solib_create_inferior_hook): | |
2873 | Ditto. | |
2874 | * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object) | |
2875 | (frv_current_sos, enable_break, frv_special_symbol_handling) | |
2876 | (frv_solib_create_inferior_hook): Ditto. | |
2877 | * solist.h (struct target_so_ops): Extend the comments of the | |
2878 | special_symbol_handling, current_sos and open_symbol_file_object | |
2879 | methods. | |
2880 | ||
5e239b84 PM |
2881 | 2011-08-09 Phil Muldoon <pmuldoon@redhat.com> |
2882 | ||
2883 | * python/lib/gdb/__init__.py: Auto-load files in command and | |
2884 | function directories. | |
2885 | * python/python.c (finish_python_initialization): Use | |
2886 | os.path.join. | |
2887 | * python/lib/gdb/command/pretty_printers.py: Self register | |
2888 | command. | |
2889 | * NEWS: Document auto-loading. | |
2890 | ||
b6cede78 JK |
2891 | 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2892 | ||
2893 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK> | |
2894 | (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable | |
2895 | objfile_gdbarch. Fix BFD_ENDIAN_BIG case. | |
2896 | ||
29d0bb3d TT |
2897 | 2011-08-08 Tom Tromey <tromey@redhat.com> |
2898 | ||
2899 | * breakpoint.c (clean_up_filters): Remove. | |
2900 | (catch_syscall_split_args): Use VEC_cleanup. | |
2901 | ||
2f7fb8e4 JK |
2902 | 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2903 | ||
2904 | * cp-name-parser.y (xfree): Wrap the name free by CONCAT2. | |
2905 | (main): Uncomment "Demangling error\n". | |
2906 | ||
d6c10e95 PP |
2907 | 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com> |
2908 | ||
2909 | * solib-target.c (segment_attributes): Make them static. | |
2910 | (section_attributes, library_children, library_attributes): Likewise. | |
2911 | (library_list_children, library_list_attributes): Likesise. | |
2912 | (library_list_elements): Likewise. | |
2913 | ||
af6e93b2 PA |
2914 | 2011-08-05 Pedro Alves <pedro@codesourcery.com> |
2915 | ||
2916 | * exceptions.c (throw_exception): Don't disable the current | |
2917 | display. | |
2918 | * printcmd.c (disable_current_display_cleanup): New function. | |
2919 | (do_one_display): Install a cleanup to disable the current display | |
2920 | if doing the display throws. | |
2921 | ||
6a1b1664 EZ |
2922 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
2923 | ||
2924 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the | |
2925 | initialization of the tp_new member to the corresponding | |
2926 | gdbpy_initialize_* function. | |
2927 | * python/py-cmd.c (gdbpy_initialize_commands): Likewise. | |
2928 | * python/py-frame.c (gdbpy_initialize_frames): Likewise. | |
2929 | * python/py-function.c (gdbpy_initialize_functions): Likewise. | |
2930 | * python/py-inferior.c (gdbpy_initialize_inferior): Likewise. | |
2931 | * python/py-param.c (gdbpy_initialize_parameters): Likewise. | |
2932 | ||
31a0ae49 JK |
2933 | 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2934 | ||
2935 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
2936 | (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist) | |
2937 | (info_spu_dma_command, info_spu_proxydma_command): Rename uiout | |
2938 | references to current_uiout. | |
2939 | ||
e0dd0826 PA |
2940 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
2941 | ||
2942 | * event-loop.c (gdb_do_one_event): Remove `data' parameter. | |
2943 | (start_event_loop): Use TRY_CATCH instead of catch_errors. | |
2944 | * event-loop.h (gdb_do_one_event): Remove `data' parameter. | |
2945 | * top.c (gdb_readline_wrapper): Adjust. | |
2946 | * tui/tui-interp.c (tui_command_loop): | |
2947 | (_initialize_tui_interp): Don't install it. | |
2948 | ||
79a45e25 PA |
2949 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
2950 | ||
2951 | * ui-out.h (uiout): Rename to ... | |
2952 | (current_uiout): ... this. | |
2953 | * ui-out.c (uiout): Rename to ... | |
2954 | (current_uiout): ... this. | |
2955 | * ada-lang.c (print_it_exception, print_one_exception) | |
2956 | (print_mention_exception): Adjust. | |
2957 | * breakpoint.c (watchpoint_check): Adjust. | |
2958 | (print_breakpoint_location, print_one_breakpoint, breakpoint_1) | |
2959 | (default_collect_info, watchpoints_info, print_one_catch_fork) | |
2960 | (print_one_catch_vfork, print_one_catch_syscall) | |
2961 | (print_one_catch_exec, mention, print_it_ranged_breakpoint) | |
2962 | (print_one_ranged_breakpoint, print_mention_ranged_breakpoint) | |
2963 | (print_it_watchpoint, print_mention_watchpoint) | |
2964 | (print_it_masked_watchpoint, print_mention_masked_watchpoint) | |
2965 | (print_it_exception_catchpoint, print_one_exception_catchpoint) | |
2966 | (print_mention_exception_catchpoint, say_where, bkpt_print_it) | |
2967 | (bkpt_print_mention, momentary_bkpt_print_it) | |
2968 | (tracepoint_print_mention, update_static_tracepoint) | |
2969 | (tracepoints_info, save_breakpoints): Adjust. | |
2970 | * cli-out.c (field_separator): Adjust. | |
2971 | * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust. | |
2972 | * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust. | |
2973 | * frame.c (get_current_frame): Adjust. | |
2974 | * infcmd.c (run_command_1, print_return_value): Adjust. | |
2975 | * inferior.c (inferior_command, info_inferiors_command): Adjust. | |
2976 | * infrun.c (print_end_stepping_range_reason): Adjust. | |
2977 | (print_signal_exited_reason, print_exited_reason): Adjust. | |
2978 | (print_signal_received_reason, print_no_history_reason): Adjust. | |
2979 | * interps.c (interp_set): Adjust. | |
2980 | * osdata.c (info_osdata_command): Adjust. | |
2981 | * progspace.c (maintenance_info_program_spaces_command): Adjust. | |
2982 | * remote-fileio.c (remote_fileio_request): Adjust. | |
2983 | * remote.c (show_remote_cmd): Adjust. | |
2984 | * solib.c (info_sharedlibrary_command): Adjust. | |
2985 | * source.c (print_source_lines_base): Adjust. | |
2986 | * stack.c (print_stack_frame): Adjust. | |
2987 | (do_gdb_disassembly, print_frame_info, print_frame): Adjust. | |
2988 | * symfile-mem.c (add_vsyscall_page): Adjust. | |
2989 | * symfile.c (load_progress, generic_load) | |
2990 | (print_transfer_performance): Adjust. | |
2991 | * thread.c (info_threads_command, restore_selected_frame) | |
2992 | (thread_command): Adjust. | |
2993 | * top.c (make_cleanup_restore_ui_file): Adjust. | |
2994 | * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1) | |
2995 | (print_one_static_tracepoint_marker): Adjust. | |
2996 | * cli/cli-cmds.c (print_disassembly): Adjust. | |
2997 | * cli/cli-decode.c (print_doc_line): Adjust. | |
2998 | * cli/cli-interp.c (safe_execute_command): Adjust. | |
2999 | * cli/cli-logging.c (set_logging_redirect, pop_output_files) | |
3000 | (handle_redirections): Adjust. | |
3001 | * cli/cli-script.c (show_user_1): Adjust. | |
3002 | * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust. | |
3003 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
3004 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust. | |
3005 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path) | |
3006 | (mi_cmd_env_dir): Adjust. | |
3007 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
3008 | (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust. | |
3009 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
3010 | (mi_cmd_stack_info_depth, mi_cmd_stack_list_args) | |
3011 | (list_args_or_locals): Adjust. | |
3012 | * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create) | |
3013 | (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen) | |
3014 | (mi_cmd_var_show_format, mi_cmd_var_info_num_children) | |
3015 | (mi_cmd_var_list_children, mi_cmd_var_info_type) | |
3016 | (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression) | |
3017 | (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression) | |
3018 | (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust. | |
3019 | * mi/mi-interp.c (mi_on_normal_stop): Adjust. | |
3020 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select) | |
3021 | (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior) | |
3022 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
3023 | (mi_cmd_data_list_register_names) | |
3024 | (mi_cmd_data_list_changed_registers) | |
3025 | (mi_cmd_data_list_register_values, get_register) | |
3026 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
3027 | (mi_cmd_data_read_memory_bytes, mi_cmd_list_features) | |
3028 | (mi_cmd_list_target_features, mi_cmd_add_inferior) | |
3029 | (mi_execute_command, mi_load_progress): Adjust. | |
3030 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust. | |
3031 | * python/py-auto-load.c (print_script, info_auto_load_scripts): | |
3032 | Adjust. | |
3033 | * python/py-breakpoint.c (bppy_get_commands): Adjust. | |
3034 | * tui/tui-interp.c (tui_command_loop): Adjust. | |
3035 | * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust. | |
3036 | ||
f9679975 PA |
3037 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
3038 | ||
3039 | * exceptions.c (struct catcher): Remove saved_uiout field. | |
3040 | (exceptions_state_mc_init): Remove the `func_uiout' parameter, and | |
3041 | no longer save/resvore the global ui_out builder. | |
3042 | (catch_exceptions_with_msg): Save/override/restore the global | |
3043 | ui_out builder manually instead of relying on TRY_CATCH to do it. | |
3044 | (catch_errors): Save/restore the global ui_out builder manually | |
3045 | instead of relying on TRY_CATCH to do it. | |
3046 | * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout' | |
3047 | parameter. | |
3048 | (TRY_CATCH): Adjust. | |
3049 | * cli/cli-interp.c (safe_execute_command): Save/override/restore | |
3050 | the global ui_out builder manually instead of relying on TRY_CATCH | |
3051 | to do it. | |
3052 | ||
934709f0 PW |
3053 | 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3054 | ||
3055 | * breakpoint.c (update_global_location_list): Ensure | |
3056 | invariant 'first loc marked not duplicated and inserted, | |
3057 | following locs marked duplicated/not inserted' is respected | |
3058 | for multiple locations at the same address. | |
3059 | (unduplicated_should_be_inserted) New function. | |
3060 | (swap_insertion) New function. | |
3061 | ||
2421fe6f JK |
3062 | 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3063 | ||
3064 | * stack.c (print_frame_arguments_choices): Comment typo fix. | |
3065 | ||
3fbb6ffa TJB |
3066 | 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3067 | ||
3068 | Revert: | |
3069 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3070 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
3071 | argument. Update callers. | |
3072 | ||
fbe12357 PP |
3073 | 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com> |
3074 | ||
3075 | PR gdb/13045 | |
3076 | * doublest.c (convert_doublest_to_floatformat): Pass correct | |
3077 | mantissa length to put_field. | |
3078 | ||
b1d288d3 JK |
3079 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3080 | ||
3081 | * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the | |
3082 | exception_print code path. | |
3083 | (backtrace_command): Remove variable e. Protect arg by make_cleanup in | |
3084 | advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree. | |
3085 | (backtrace_full_command): Remove variable e. Remove TRY_CATCH. | |
3086 | ||
311b5970 JK |
3087 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3088 | ||
3089 | Code cleanup. | |
3090 | * stack.c (struct print_stack_frame_args, print_stack_frame_stub): | |
3091 | Remove, merge them into ... | |
3092 | (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove | |
3093 | variable args and its initialization. | |
3094 | (struct print_args_args, print_args_stub): Remove, merge them into | |
3095 | print_frame. | |
3096 | (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge | |
3097 | them into ... | |
3098 | (do_gdb_disassembly): ... here. Remove variable args and its | |
3099 | initialization. | |
3100 | (print_frame): Remove variable args and its initialization, new | |
3101 | variable gdbarch and numargs (from print_args_stub), inline here | |
3102 | print_args_stub with a TRY_CATCH. | |
3103 | (struct backtrace_command_args, backtrace_command_stub): Remove, merge | |
3104 | them into ... | |
3105 | (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH. | |
fbe12357 | 3106 | New variable e, remove variable btargs and its initialization. |
311b5970 | 3107 | |
484a26a8 TG |
3108 | 2011-08-01 Tristan Gingold <gingold@adacore.com> |
3109 | ||
3110 | * darwin-nat.c (darwin_decode_exception_message): Adjust assertion. | |
3111 | ||
c30eee59 TJB |
3112 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3113 | ||
3114 | * breakpoint.c (insert_bp_location): Document return value. | |
3115 | (insert_breakpoint_locations): Fix documentation. | |
3116 | (remove_breakpoints): Add documentation. | |
3117 | ||
f116073b TJB |
3118 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3119 | ||
3120 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
3121 | argument. Update callers. | |
3122 | ||
65aa373f JK |
3123 | 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
3124 | ||
3125 | * stack.c (print_frame_info): Comment typo fix. | |
3126 | ||
a50242fb SA |
3127 | 2011-07-29 Sterling Augustine <saugustine@google.com> |
3128 | ||
3129 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
3130 | ||
267f6504 TT |
3131 | 2011-07-29 Tom Tromey <tromey@redhat.com> |
3132 | ||
3133 | * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O. | |
3134 | (library_list_start_segment): Update. | |
3135 | (library_list_start_section): Update. | |
3136 | ||
00bd41d6 PM |
3137 | 2011-07-28 Phil Muldoon <pmuldoon@redhat.com> |
3138 | ||
3139 | * varobj.c (value_get_print_value): Move hint check later into the | |
3140 | function. Comment function. Free thevalue before reusing it. | |
3141 | ||
18a46dbe JK |
3142 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3143 | Pedro Alves <pedro@codesourcery.com> | |
3144 | ||
3145 | * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of | |
3146 | value_one. | |
3147 | * valops.c (value_one): Remove parameter lv. Do not pass it to itself. | |
3148 | Assert the result kind. | |
3149 | * value.h (value_one): Remove parameter lv. | |
3150 | ||
bb7da2bf JK |
3151 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3152 | ||
3153 | Fix crash on lval_computed values. | |
3154 | * valops.c (value_zero): Use not_lval for lval_computed. | |
3155 | ||
2d5213f8 TT |
3156 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
3157 | ||
3158 | * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for | |
3159 | gdb_assert.h, gdb_locale.h, gdb_dirent.h. | |
3160 | ||
11081198 JK |
3161 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3162 | ||
3163 | * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and | |
3164 | "ptype" by their typedefs difference. | |
3165 | ||
3c6e0cb3 JK |
3166 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3167 | ||
3168 | * dwarf2expr.c (ctx_no_read_reg): New function. | |
3169 | * dwarf2expr.h (ctx_no_read_reg): New declaration. | |
3170 | * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. | |
3171 | (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. | |
3172 | (decode_locdesc): Replace by a caller of dwarf_expr_eval. | |
3173 | ||
523f3620 JK |
3174 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3175 | ||
3176 | * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc) | |
3177 | (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other | |
3178 | file. | |
3179 | (dwarf2_frame_ctx_funcs): Reference the renamed functions. | |
3180 | * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
3181 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
3182 | (ctx_no_get_base_type): Move the functions here. | |
3183 | * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
3184 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
3185 | (ctx_no_get_base_type): New declarations. | |
3186 | ||
24d3216f TT |
3187 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
3188 | ||
3189 | * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel' | |
3190 | entries. | |
3191 | * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field. | |
3192 | * dwarf2read.c (dwarf2_elf_names): Add sentinel entry. | |
3193 | ||
5005c8a9 PP |
3194 | 2011-07-26 Sterling Augustine <saugustine@google.com> |
3195 | ||
3196 | * cli/cli-dump.c (dump_binary_file): Change parameter type to | |
3197 | ULONGEST. | |
3198 | (dump_bfd_file): Likewise. | |
3199 | ||
480a3f21 PW |
3200 | 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3201 | ||
3202 | * remote.c (remote_region_ok_for_hw_watchpoint): New function. | |
3203 | (remote_hw_watchpoint_length_limit): New variable. | |
3204 | (_initialize_remote) add set,show cmds for this new variable. | |
3205 | * gdb.texinfo: document these new commands. | |
3206 | * NEWS: Mention these new commands. | |
3207 | ||
efa80663 PA |
3208 | 2011-07-26 Pedro Alves <pedro@codesourcery.com> |
3209 | ||
3210 | * breakpoint.c (works_in_software_mode_watchpoint): Also return | |
3211 | true for software watchpoints. | |
3212 | ||
dbdaa232 | 3213 | 2011-07-26 Joel Brobecker <brobecker@adacore.com> |
3214 | ||
3215 | GDB 7.3 released. | |
3216 | ||
cf2c3c16 TT |
3217 | 2011-07-26 Tom Tromey <tromey@redhat.com> |
3218 | ||
3219 | * symfile.h (struct dwarf2_debug_sections) <macro>: New field. | |
3220 | * dwarf2read.c (read_indirect_string_at_offset): New function. | |
3221 | (read_indirect_string): Use it. | |
3222 | (dwarf_decode_macro_bytes): New function, taken from | |
3223 | dwarf_decode_macros. Handle DW_MACRO_GNU_*. | |
3224 | (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*. | |
3225 | (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode): | |
3226 | New functions. | |
3227 | (struct dwarf2_per_objfile) <macro>: New field. | |
3228 | (dwarf2_elf_names): Add .debug_macro. | |
3229 | (dwarf2_macros_too_long_complaint): Add 'section' argument. | |
3230 | (dwarf2_locate_sections): Handle new section. | |
3231 | (read_file_scope): Handle DW_AT_GNU_macros. | |
3232 | (dwarf2_per_objfile_free): Unmap the .debug_macro section. | |
3233 | ||
1a532630 PP |
3234 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
3235 | ||
3236 | * NEWS: Mention dcache configuration. | |
3237 | * dcache.c (dcache_set_list, dcache_show_list): New variables. | |
3238 | (dcache_size, dcache_line_size): New variables. | |
3239 | (LINE_SIZE_MASK, XFORM, MASK): Adjust. | |
3240 | (struct dcache_block): Make it expandable. | |
3241 | (struct dcache_struct): New field. | |
3242 | (dcache_invalidate): Discard freelist upon dcache_line_size changes. | |
3243 | (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust. | |
3244 | (dcache_poke_byte, dcache_print_line): Adjust. | |
3245 | (set_dcache_size, set_dcache_line_size): New functions. | |
3246 | (set_dcache_command, show_dcache_command): New functions. | |
3247 | (_initialize_dcache): Add new commands. | |
3248 | ||
2eff07b3 PP |
3249 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
3250 | ||
3251 | * progspace.h (struct program_space): Add solib_add_generation. | |
3252 | * infcmd.c (post_create_inferior): Only call solib_add if not | |
3253 | already done. | |
3254 | * solib.c (solib_add): Increment solib_add_generation. | |
3255 | ||
543305c9 JK |
3256 | 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3257 | ||
3258 | Fix implicit pointer offsets. | |
3259 | * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also | |
3260 | ptr.OFFSET. | |
3261 | ||
c0a91b2b TT |
3262 | 2011-07-25 Tom Tromey <tromey@redhat.com> |
3263 | ||
3264 | * ada-lang.c (ada_exception_breakpoint_ops): Make return type | |
3265 | const. | |
3266 | (ada_exception_sal): Make 'ops' const. | |
3267 | (ada_decode_exception_location): Likewise. | |
3268 | (ada_decode_assert_location): Likewise. | |
3269 | (catch_assert_command): Update. | |
3270 | (catch_ada_exception_command): Update. | |
3271 | (create_ada_exception_catchpoint): Make 'ops' const. | |
3272 | * breakpoint.c (set_raw_breakpoint_without_location) | |
3273 | (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops' | |
3274 | const. | |
3275 | (create_internal_breakpoint): Update. | |
3276 | (init_raw_breakpoint_without_location): Make 'ops' const. | |
3277 | (init_raw_breakpoint, init_catchpoint) | |
3278 | (create_fork_vfork_event_catchpoint) | |
3279 | (create_syscall_event_catchpoint, init_breakpoint_sal) | |
3280 | (create_breakpoint_sal, create_breakpoints_sal) | |
3281 | (create_breakpoint, init_ada_exception_breakpoint): Likewise. | |
3282 | * breakpoint.h (struct breakpoint) <ops>: Now const. | |
3283 | (init_ada_exception_breakpoint, create_breakpoint): Make 'ops' | |
3284 | const. | |
3285 | ||
6cb9b55b PP |
3286 | 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com> |
3287 | ||
3288 | * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique. | |
3289 | ||
d9b3f62e PA |
3290 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3291 | ||
3292 | * breakpoint.h (print_recreate_thread): Declare. | |
3293 | (struct breakpoint): Move step_count, pass_count, | |
3294 | number_on_target, static_trace_marker_id, | |
3295 | static_trace_marker_id_idx ... | |
3296 | (struct tracepoint): ... to this new struct. | |
3297 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
3298 | (get_tracepoint_by_number): Change return type to struct | |
3299 | tracepoint pointer. | |
3300 | * breakpoint.c (is_tracepoint_type): New, factored out from | |
3301 | is_tracepoint. | |
3302 | (is_tracepoint): Adjust. | |
3303 | (print_one_breakpoint_location): Cast to struct tracepoint as | |
3304 | necessary, and adjust. | |
3305 | (print_recreate_catch_fork, print_recreate_catch_vfork) | |
3306 | (print_recreate_catch_syscall, print_recreate_catch_exec): Call | |
3307 | print_recreate_thread. | |
3308 | (init_breakpoint_sal): New, factored out from | |
3309 | create_breakpoint_sal. | |
3310 | (create_breakpoint_sal): Reimplement. | |
3311 | (create_breakpoint): Allocate a struct tracecepoint if the caller | |
3312 | wanted a tracepoint. Use init_breakpoint_sal and | |
3313 | install_breakpoint. | |
3314 | (print_recreate_ranged_breakpoint, print_recreate_watchpoint) | |
3315 | (print_recreate_masked_watchpoint) | |
3316 | (print_recreate_exception_catchpoint): Call print_recreate_thread. | |
3317 | (tracepoint_print_one_detail): Adjust. | |
3318 | (tracepoint_print_recreate): Adjust. Call print_recreate_thread. | |
3319 | Dump the pass count here. | |
3320 | (update_static_tracepoint): Adjust. | |
3321 | (addr_string_to_sals): Adjust. | |
3322 | (create_tracepoint_from_upload): Adjust. Change return type to | |
3323 | struct tracepoint pointer. | |
3324 | (trace_pass_set_count): Change parameter type to struct tracepoint | |
3325 | pointer, and adjust. | |
3326 | (trace_pass_command): Adjust. | |
3327 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
3328 | (get_tracepoint_by_number): Change return type to struct | |
3329 | tracepoint pointer, and adjust. | |
3330 | (print_recreate_thread): New, factored out from save_breakpoints. | |
3331 | (save_breakpoints): Don't print thread and task and passcount | |
3332 | recreation here. | |
3333 | * remote.c (remote_download_tracepoint): Adjust. | |
3334 | * tracepoint.c (trace_actions_command, validate_actionline) | |
3335 | (start_tracing, tfind_1, trace_find_tracepoint_command) | |
3336 | (trace_dump_command): Adjust. | |
3337 | (find_matching_tracepoint): Change return type to struct | |
3338 | tracepoint pointer, and adjust. | |
3339 | (merge_uploaded_tracepoints, tfile_get_traceframe_address) | |
3340 | (tfile_trace_find, tfile_fetch_registers): Adjust. | |
3341 | * tracepoint.h (create_tracepoint_from_upload): Change return type | |
3342 | to struct tracepoint pointer. | |
3343 | * ada-lang.c (print_recreate_exception): Call | |
3344 | print_recreate_thread. | |
3345 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust. | |
3346 | ||
3a5c3e22 PA |
3347 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3348 | ||
3349 | * breakpoint.h (struct breakpoint): Move ops as first field. Move | |
3350 | exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp, | |
3351 | cond_exp_valid_block, val, val_valid, watchpoint_frame, | |
3352 | watchpoint_thread, watchpoint_triggered ... | |
3353 | (struct watchpoint): ... to this new struct. | |
3354 | (is_watchpoint): Declare. | |
3355 | (install_breakpoint): Add new `internal' parameter. | |
3356 | * breakpoint.c (is_watchpoint): Delete declaration. | |
3357 | (set_breakpoint_condition): Handle watchpoints. | |
3358 | (is_watchpoint): Make public. | |
3359 | (watchpoint_in_thread_scope): Change parameter type to struct | |
3360 | watchpoint. | |
3361 | (watchpoint_del_at_next_stop): Change parameter type to struct | |
3362 | watchpoint. Remove assertion. Adjust. | |
3363 | (update_watchpoint): Ditto. | |
3364 | (insert_breakpoints, breakpoint_init_inferior) | |
3365 | (watchpoints_triggered, watchpoint_check) | |
3366 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions) | |
3367 | (bpstat_stop_status, print_one_breakpoint_location) | |
3368 | (print_one_breakpoint_location, watchpoint_locations_match): Cast | |
3369 | to struct watchpoint as necessary, and adjust. | |
3370 | (install_breakpoint): Add `internal' argument. If true, don't | |
3371 | mention the new breakpoint. Use set_breakpoint_number. | |
3372 | (create_fork_vfork_event_catchpoint) | |
3373 | (create_syscall_event_catchpoint): Adjust. | |
3374 | (dtor_watchpoint): New. | |
3375 | (re_set_watchpoint, insert_watchpoint, remove_watchpoint) | |
3376 | (breakpoint_hit_watchpoint, resources_needed_watchpoint) | |
3377 | (print_it_watchpoint, print_mention_watchpoint) | |
3378 | (print_recreate_watchpoint, insert_masked_watchpoint) | |
3379 | (remove_masked_watchpoint, resources_needed_masked_watchpoint) | |
3380 | (print_one_detail_masked_watchpoint) | |
3381 | (print_mention_masked_watchpoint) | |
3382 | (print_recreate_masked_watchpoint): Cast to struct watchpoint as | |
3383 | necessary, and adjust. | |
3384 | (watch_command_1): Allocate and initialize a struct watchpoint | |
3385 | instead of a struct breakpoint. Use install_breakpoint. | |
3386 | (catch_exec_command_1): Adjust. | |
3387 | (base_breakpoint_dtor): Delete accesses to watchpoint specific | |
3388 | fields. | |
3389 | (delete_breakpoint, enable_breakpoint_disp) | |
3390 | (invalidate_bp_value_on_memory_change): Cast to struct watchpoint | |
3391 | as necessary, and adjust. | |
3392 | (initialize_breakpoint_ops): Install dtor_watchpoint as | |
3393 | watchpoints' dtor method. | |
3394 | * ada-lang.c (create_ada_exception_catchpoint): Adjust. | |
3395 | * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint. | |
3396 | to struct watchpoint as necessary, and adjust. | |
3397 | ||
2060206e PA |
3398 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3399 | ||
3400 | * ada-lang.c (dtor_exception, re_set_exception): Indirect through | |
3401 | the the base class ops table. | |
3402 | (catch_exception_breakpoint_ops) | |
3403 | (catch_exception_unhandled_breakpoint_ops) | |
3404 | (catch_assert_breakpoint_ops): Don't statically initialize. | |
3405 | (initialize_ada_catchpoint_ops): New. | |
3406 | (_initialize_ada_language): Call it. | |
3407 | * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops) | |
3408 | (bkpt_breakpoint_ops): Forward declare. | |
3409 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
3410 | (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops) | |
3411 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
3412 | (masked_watchpoint_breakpoint_ops) | |
3413 | (gnu_v3_exception_catchpoint_ops): Don't statically initialize. | |
3414 | (dtor_catch_syscall, dtor_catch_exec): Indirect through the the | |
3415 | base class ops table. | |
3416 | (null_re_set, null_check_status, null_works_in_software_mode) | |
3417 | (null_resources_needed, null_print_one_detail): Delete. | |
3418 | (bkpt_dtor): Rename to ... | |
3419 | (base_breakpoint_dtor): ... this. Make static. | |
3420 | (bkpt_allocate_location): Rename to ... | |
3421 | (base_breakpoint_allocate_location): ... this. Make static. | |
3422 | (base_breakpoint_re_set): New. | |
3423 | (internal_error_pure_virtual_called): New. | |
3424 | (base_breakpoint_insert_location, base_breakpoint_remove_location) | |
3425 | (base_breakpoint_breakpoint_hit, base_breakpoint_check_status) | |
3426 | (base_breakpoint_works_in_software_mode) | |
3427 | (base_breakpoint_resources_needed, base_breakpoint_print_it) | |
3428 | (base_breakpoint_print_one_detail, base_breakpoint_print_mention) | |
3429 | (base_breakpoint_print_recreate): New functions. | |
3430 | (base_breakpoint_ops): New global. | |
3431 | (bkpt_re_set, bkpt_insert_location, bkpt_remove_location) | |
3432 | (bkpt_breakpoint_hit): Make static. | |
3433 | (bkpt_check_status): Delete. | |
3434 | (bkpt_resources_needed): Make static. | |
3435 | (bkpt_works_in_software_mode): Delete. | |
3436 | (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make | |
3437 | static. | |
3438 | (bkpt_breakpoint_ops, internal_breakpoint_ops) | |
3439 | (momentary_breakpoint_ops): Don't statically initialize. | |
3440 | (internal_bkpt_print_recreate, momentary_bkpt_print_recreate): | |
3441 | Delete. | |
3442 | (tracepoint_insert_location, tracepoint_remove_location) | |
3443 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
3444 | (tracepoint_print_it): Delete. | |
3445 | (tracepoint_breakpoint_ops): Don't statically initialize. | |
3446 | (initialize_breakpoint_ops): New. | |
3447 | (_initialize_breakpoint): Call it. | |
3448 | * breakpoint.h (null_re_set, null_works_in_software_mode) | |
3449 | (null_resources_needed, null_check_status, null_print_one_detail): | |
3450 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
3451 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
3452 | (bkpt_check_status, bkpt_resources_needed) | |
3453 | (bkpt_works_in_software_mode, bkpt_print_it) | |
3454 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
3455 | Delete declarations. | |
3456 | (initialize_breakpoint_ops): Declare. | |
3457 | ||
001c8c33 PA |
3458 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3459 | ||
3460 | * breakpoint.c (bkpt_print_it, internal_bkpt_print_it) | |
3461 | (momentary_bkpt_print_it): Simplify. | |
3462 | ||
06edf0c0 PA |
3463 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3464 | ||
3465 | Split internal, momentary and user breakpoints breakpoint_ops | |
3466 | tables. | |
3467 | ||
3468 | * breakpoint.c (internal_breakpoint_ops) | |
3469 | (momentary_breakpoint_ops): Forward declare. | |
3470 | (create_internal_breakpoint): Add new breakpoint_ops parameter. | |
3471 | Pass it down, rather than hardcoding bkpt_breakpoint_ops. | |
3472 | (create_overlay_event_breakpoint) | |
3473 | (create_std_terminate_master_breakpoint) | |
3474 | (create_exception_master_breakpoint): Create breakpoints with | |
3475 | internal_breakpoint_ops vtable. | |
3476 | (set_longjmp_breakpoint): Create momentary breakpoints with | |
3477 | momentary_breakpoint_ops vtable, using | |
3478 | momentary_breakpoint_from_master. | |
3479 | (create_thread_event_breakpoint, create_jit_event_breakpoint) | |
3480 | (create_solib_event_breakpoint): Create breakpoints with | |
3481 | internal_breakpoint_ops vtable. | |
3482 | (set_momentary_breakpoint): Create breakpoints with | |
3483 | momentary_breakpoint_ops vtable. | |
3484 | (momentary_breakpoint_from_master): New, factored out from | |
3485 | clone_momentary_breakpoint. | |
3486 | (clone_momentary_breakpoint): Adjust. | |
3487 | (watch_command_1): Create scope breakpoints with | |
3488 | momentary_breakpoint_ops vtable. | |
3489 | (bkpt_re_set): Remove handling of internal and momentary | |
3490 | breakpoints. | |
3491 | (bkpt_print_mention, bkpt_print_recreate): New. | |
3492 | (bkpt_breakpoint_ops): Adjust. | |
3493 | (internal_bkpt_re_set, internal_bkpt_check_status) | |
3494 | (internal_bkpt_print_it, internal_bkpt_print_mention) | |
3495 | (internal_bkpt_print_recreate, internal_breakpoint_ops): New. | |
3496 | (momentary_bkpt_re_set, momentary_bkpt_check_status) | |
3497 | (momentary_bkpt_print_it, momentary_bkpt_print_mention) | |
3498 | (momentary_bkpt_print_recreate): New. | |
3499 | (momentary_breakpoint_ops): New. | |
3500 | ||
348d480f PA |
3501 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
3502 | ||
3503 | Implement most breakpoint_ops methods for all breakpoint types, | |
3504 | and move the default handlings to the proper callbacks. | |
3505 | ||
3506 | * breakpoint.c (update_watchpoint): Always call the breakpoint's | |
3507 | works_in_software_mode method. | |
3508 | (insert_bp_location): Go through breakpoint_ops->insert_location | |
3509 | for software and hardware watchpoints. | |
3510 | (create_internal_breakpoint): Pass bkpt_breakpoint_ops as | |
3511 | breakpoint_ops. | |
3512 | (remove_breakpoint_1): Go through breakpoint_ops->remove_location | |
3513 | for software and hardware watchpoints. | |
3514 | (print_it_typical): Delete. | |
3515 | (print_bp_stop_message): Always call the breakpoint_ops->print_it | |
3516 | method. | |
3517 | (watchpoint_check): Adjust comment. | |
3518 | (bpstat_check_location): Simply always call the breakpoint's | |
3519 | breakpoint_hit method. | |
3520 | (bpstat_stop_status): Always call the breakpoint's check_status | |
3521 | method. Remove special cases for watchpoints and internal event | |
3522 | breakpoints from here (moved to the check_status implementations). | |
3523 | (print_one_breakpoint_location): Assume b->ops is never NULL. | |
3524 | Remove static tracepoint marker id printing from here (moved to | |
3525 | the print_one_detail callback implementation of tracepoints). | |
3526 | (init_bp_location): Assert OPS is never NULL. | |
3527 | (allocate_bp_location): Always call the breakpoint's | |
3528 | allocate_location method, and remove the default code from here. | |
3529 | (free_bp_location): Always call the location's dtor method, and | |
3530 | remove the default code from here. | |
3531 | (init_raw_breakpoint_without_location): Assert OPS is never NULL. | |
3532 | (set_raw_breakpoint_without_location): Add new breakpoint_ops | |
3533 | parameter. Pass it down. | |
3534 | (set_raw_breakpoint): Ditto. | |
3535 | (print_it_catch_fork): Adjust to take a bpstat as argument. | |
3536 | (catch_fork_breakpoint_ops): Install methods. | |
3537 | (print_it_catch_vfork): Adjust to take a bpstat as argument. | |
3538 | (catch_vfork_breakpoint_ops): Install methods. | |
3539 | (dtor_catch_syscall): Call the base dtor. | |
3540 | (print_it_catch_syscall): Adjust to take a bpstat as argument. | |
3541 | (catch_syscall_breakpoint_ops): Install methods. | |
3542 | (dtor_catch_exec): Call the base dtor. | |
3543 | (print_it_catch_exec): Adjust to take a bpstat as argument. | |
3544 | (catch_exec_breakpoint_ops): Install methods. | |
3545 | (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call | |
3546 | the breakpoint's resources_needed method, and remove the default | |
3547 | code from here. | |
3548 | (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as | |
3549 | breakpoint_ops. | |
3550 | (clone_momentary_breakpoint): Clone the original's ops. | |
3551 | (mention): Always call the breakpoint's print_mention method, and | |
3552 | remove the default code from here. | |
3553 | (create_breakpoint_sal): Adjust to pass the ops to | |
3554 | set_raw_breakpoint rather than setting it manually. | |
3555 | (create_breakpoint): Assert ops is never NULL. Adjust to pass the | |
3556 | ops to set_raw_breakpoint_without_location rather than setting it | |
3557 | manually. | |
3558 | (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops. | |
3559 | (print_it_ranged_breakpoint): Adjust to take a bpstat as argument. | |
3560 | (ranged_breakpoint_ops): Install methods. | |
3561 | (break_range_command): Adjust to pass the ops to | |
3562 | set_raw_breakpoint rather than setting it manually. | |
3563 | (re_set_watchpoint, breakpoint_hit_watchpoint) | |
3564 | (check_status_watchpoint, resources_needed_watchpoint) | |
3565 | (works_in_software_mode_watchpoint, print_it_watchpoint) | |
3566 | (print_mention_watchpoint, print_recreate_watchpoint): New | |
3567 | functions. | |
3568 | (watchpoint_breakpoint_ops): Install new methods. | |
3569 | (print_it_masked_watchpoint): New function. | |
3570 | (masked_watchpoint_breakpoint_ops): Install new methods. | |
3571 | (watch_command_1): Adjust to pass the right breakpoint_ops to | |
3572 | set_raw_breakpoint_without_location rather than setting it | |
3573 | manually later. Record the current pspace. | |
3574 | (print_it_exception_catchpoint): Adjust to take a bpstat as | |
3575 | argument. | |
3576 | (gnu_v3_exception_catchpoint_ops): Install new methods. | |
3577 | (say_where): New function. | |
3578 | (null_re_set, null_check_status, null_works_in_software_mode) | |
3579 | (null_resources_needed, null_print_one_detail, bp_location_dtor): | |
3580 | New functions. | |
3581 | (bp_location_ops): New global. | |
3582 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
3583 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
3584 | (bkpt_check_status, bkpt_resources_needed) | |
3585 | (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention) | |
3586 | (bkpt_print_recreate): New functions. | |
3587 | (bkpt_breakpoint_ops): New global. | |
3588 | (tracepoint_re_set, tracepoint_insert_location) | |
3589 | (tracepoint_remove_location, tracepoint_breakpoint_hit) | |
3590 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
3591 | (tracepoint_print_it, tracepoint_print_one_detail) | |
3592 | (tracepoint_print_mention, tracepoint_print_recreate): New | |
3593 | functions. | |
3594 | (tracepoint_breakpoint_ops): New global. | |
3595 | (delete_breakpoint): Always call the breakpoint's dtor method, and | |
3596 | remove the default handling from here. | |
3597 | (breakpoint_re_set_default): Make static. | |
3598 | (breakpoint_re_set_one): Always call the breakpoints re_set | |
3599 | method, and remove the default handling from here. | |
3600 | (trace_command, ftrace_command, strace_command) | |
3601 | (create_tracepoint_from_upload): Pass appropriate breakpoints_ops | |
3602 | to create_breakpoint. | |
3603 | (save_breakpoints): Always call the breakpoint's print_recreate | |
3604 | method, and remove the default handling from here. | |
3605 | ||
3606 | * ada-lang.c (dtor_exception): Call the base dtor. | |
3607 | (re_set_exception): Call the base method. | |
3608 | (print_it_exception, print_it_catch_exception): Adjust to take a | |
3609 | bpstat as argument. | |
3610 | (catch_exception_breakpoint_ops): Install methods. | |
3611 | (print_it_catch_exception_unhandled): Adjust to take a bpstat as | |
3612 | argument. | |
3613 | (catch_exception_unhandled_breakpoint_ops): Install methods. | |
3614 | (print_it_catch_assert): Adjust to take a bpstat as argument. | |
3615 | (catch_assert_breakpoint_ops): Install methods. | |
3616 | ||
3617 | * breakpoint.h (struct breakpoint_ops): Adjust the print_it method | |
3618 | to take a bpstat as argument. | |
3619 | (enum print_stop_action): Add describing comments to each enum | |
3620 | value. | |
3621 | (breakpoint_re_set_default): Delete declaration. | |
3622 | (null_re_set, null_works_in_software_mode, null_resources_needed) | |
3623 | (null_check_status, null_print_one_detail): Declare. | |
3624 | (bkpt_breakpoint_ops): Declare. | |
3625 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
3626 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
3627 | (bkpt_check_status, bkpt_resources_needed) | |
3628 | (bkpt_works_in_software_mode, bkpt_print_it) | |
3629 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
3630 | Declare. | |
3631 | ||
3632 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass | |
3633 | bkpt_breakpoint_ops. | |
3634 | * python/py-breakpoint.c (bppy_init): Ditto. | |
3635 | ||
be8f8133 PW |
3636 | 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3637 | ||
3638 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
3639 | ||
3807f613 PP |
3640 | 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com> |
3641 | ||
3642 | * elfread.c (elf_rel_plt_read): Fix off-by-one bug. | |
3643 | ||
1ced966e PA |
3644 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
3645 | ||
3646 | * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE) | |
3647 | (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN) | |
3648 | (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and | |
3649 | adjust. | |
3650 | (dr_mirror, dr_status_mirror, dr_control_mirror): Delete. | |
3651 | (struct i386_debug_reg_state): New. | |
3652 | (i386_init_dregs): New. | |
3653 | (dr_mirror): New. | |
3654 | (i386_cleanup_dregs): Use i386_init_dregs. | |
3655 | (i386_show_dr): Add state parameter and adjust. | |
3656 | (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to | |
3657 | the inferior here. | |
3658 | (i386_remove_aligned_watchpoint): Likewise. | |
3659 | (i386_handle_nonaligned_watchpoint): Add state parameter and adjust. | |
3660 | (i386_update_inferior_debug_regs): New. | |
3661 | (i386_insert_watchpoint): Work on a local mirror of the debug | |
3662 | registers, and only update the inferior on success. | |
3663 | (i386_remove_watchpoint): Ditto. | |
3664 | (i386_region_ok_for_watchpoint): Adjust. | |
3665 | (i386_stopped_data_address): Adjust. | |
3666 | (i386_insert_hw_breakpoint): Adjust. | |
3667 | (i386_remove_hw_breakpoint): Adjust. | |
3668 | ||
3543a589 TT |
3669 | 2011-07-22 Tom Tromey <tromey@redhat.com> |
3670 | ||
3671 | * amd64-tdep.c (amd64_pseudo_register_read_value): Rename | |
3672 | from amd64_pseudo_register_read. Change arguments. Call | |
3673 | mark_value_bytes_unavailable when needed. | |
3674 | (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not | |
3675 | set_gdbarch_pseudo_register_read. | |
3676 | * sentinel-frame.c (sentinel_frame_prev_register): Use | |
3677 | regcache_cooked_read_value. | |
3678 | * regcache.h (regcache_cooked_read_value): Declare. | |
3679 | * regcache.c (regcache_cooked_read_value): New function. | |
3680 | (regcache_cooked_read): Call | |
3681 | gdbarch_pseudo_register_read_value if available. | |
3682 | * i386-tdep.h (i386_pseudo_register_read_value): Declare. | |
3683 | (i386_pseudo_register_read): Remove. | |
3684 | * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from | |
3685 | i386_pseudo_register_read. Change arguments. Call | |
3686 | mark_value_bytes_unavailable when needed. | |
3687 | (i386_pseudo_register_read_value): New function. | |
3688 | (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value, | |
3689 | not set_gdbarch_pseudo_register_read. | |
3690 | * gdbarch.sh (pseudo_register_read_value): New method. | |
3691 | * gdbarch.c, gdbarch.h: Rebuild. | |
3692 | * findvar.c (value_from_register): Call get_frame_register_value. | |
3693 | ||
95298e72 PM |
3694 | 2011-07-22 Phil Muldoon <pmuldoon@redhat.com> |
3695 | ||
3696 | * event-top.c (cli_command_loop): Use get_prompt, get_suffix, | |
3697 | get_prefix. | |
3698 | (display_gdb_prompt): Likewise. | |
3699 | (change_annotation_level): Likewise. | |
3700 | (push_prompt): Likewise. | |
3701 | (pop_prompt): Likewise. | |
3702 | (handle_stop_sig): Use get_prompt with a level. | |
3703 | * top.c (command_loop): Use get_prompt with a level. | |
3704 | (set_async_annotation_level): Use set_prompt with a level. | |
3705 | (get_prefix): New function. | |
3706 | (set_prefix): Ditto. | |
3707 | (set_suffix): Ditto. | |
3708 | (get_suffix): Ditto. | |
3709 | (get_prompt): Accept a level argument. | |
3710 | (set_prompt): Accept a level argument. Free old prompts. Set | |
3711 | new_async_prompt if level is 0. | |
3712 | (init_main): Use set_prompt with a level. Do not set | |
3713 | new_async_prompt. | |
3714 | * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c | |
3715 | * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix. | |
3716 | Modify set_prompt, get_prompt to account for levels. | |
3717 | * tui/tui-interp.c (tui_command_loop): Use get_prompt with a | |
3718 | level. | |
3719 | * python/python.c (before_prompt_hook): Use set_prompt. | |
3720 | ||
d26e3629 KY |
3721 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
3722 | ||
3723 | * defs.h: Add guard against inclusion in gdbserver. | |
3724 | (struct ptid, ptid_t): Move to common/ptid.h. | |
3725 | (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf, | |
3726 | xsnprintf, internal_error): Move to common/common-utils.h. | |
3727 | (nomem): Delete. | |
3728 | * gdb_assert.h: Move into common/ sub-directory. | |
3729 | * gdb_locale.h: Ditto. | |
3730 | * gdb_dirent.h: Ditto. | |
3731 | * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid, | |
3732 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): | |
3733 | Move into common/ptid.h. | |
3734 | * xml-support.c (xml_escape_text): Move into common/xml-utils.c. | |
3735 | (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file): | |
3736 | Change nomem to malloc_failure. | |
3737 | * xml-support.h (xml_escape_text): Move into common/xml-utils.h. | |
3738 | * utils.c (nomem): Rename to malloc_failure. | |
3739 | (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf, | |
3740 | xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c. | |
3741 | (gdb_buildargv): Change nomem to malloc_failure. | |
3742 | * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
3743 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
3744 | ptid_is_pid): Move into common/ptid.c. | |
3745 | (initialize_infrun): Delete initialization of null_ptid and | |
3746 | minus_one_ptid. | |
3747 | * linux-nat.c (linux_nat_xfer_osdata): Defer to | |
3748 | linux_common_xfer_osdata. | |
3749 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
3750 | common/ptid.c and common/buffer.c. | |
3751 | (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h, | |
3752 | common/ptid.h, common/buffer.h and common/linux-osdata.h. | |
3753 | (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o. | |
3754 | (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New | |
3755 | rules. | |
3756 | * common/gdb_assert.h: New. | |
3757 | * common/gdb_dirent.h: New. | |
3758 | * common/gdb_locale.h: New. | |
3759 | * common/buffer.c: New. | |
3760 | * common/buffer.h: New. | |
3761 | * common/ptid.c: New. | |
3762 | * common/ptid.h: New. | |
3763 | * common/xml-utils.c: New. | |
3764 | * common/xml-utils.h: New. | |
3765 | * common/common-utils.c: New. | |
3766 | * common/common-utils.h: New. | |
3767 | * common/linux-osdata.c: New. | |
3768 | * common/linux-osdata.h: New. | |
3769 | * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o. | |
3770 | * config/arm/linux.mh (NATDEPFILES): Ditto. | |
3771 | * config/i386/linux.mh (NATDEPFILES): Ditto. | |
3772 | * config/i386/linux64.mh (NATDEPFILES): Ditto. | |
3773 | * config/ia64/linux.mh (NATDEPFILES): Ditto. | |
3774 | * config/m32r/linux.mh (NATDEPFILES): Ditto. | |
3775 | * config/m68k/linux.mh (NATDEPFILES): Ditto. | |
3776 | * config/mips/linux.mh (NATDEPFILES): Ditto. | |
3777 | * config/pa/linux.mh (NATDEPFILES): Ditto. | |
3778 | * config/powerpc/linux.mh (NATDEPFILES): Ditto. | |
3779 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto. | |
3780 | * config/s390/s390.mh (NATDEPFILES): Ditto. | |
3781 | * config/sparc/linux.mh (NATDEPFILES): Ditto. | |
3782 | * config/sparc/linux64.mh (NATDEPFILES): Ditto. | |
3783 | * config/xtensa/linux.mh (NATDEPFILES): Ditto. | |
3784 | ||
edc84990 | 3785 | 2011-07-21 Matt Rice <ratmice@gmail.com> |
3786 | ||
3787 | * NEWS: Add info macros and info definitions commands. | |
3788 | ||
3a7bf607 PM |
3789 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
3790 | ||
3791 | * NEWS: Document Python prompt substitution hook. | |
3792 | ||
9b158ba0 | 3793 | 2011-07-18 Matt Rice <ratmice@gmail.com> |
3794 | ||
3795 | PR macros/12999 | |
3796 | * macrotab.h (macro_callback_fn): Add new arguments to callback. | |
3797 | * macrotab.c (foreach_macro): Ditto. | |
3798 | (foreach_macro_in_scope): Ditto. | |
3799 | * macrocmd.c (print_macro_callback): New function. | |
3800 | (info_macro_command): Move some code to print_macro_definition. | |
3801 | (print_macro_definition): New function. | |
3802 | (print_one_macro): Add new arguments to callback. | |
3803 | (info_definitions_command): New function. | |
3804 | (info_macros_command): Ditto. | |
3805 | (_initialize_macrocmd): Add info macros and info definitions commands. | |
3806 | * symtab.c (add_macro_name): Add new arguments to callback. | |
3807 | ||
d17b6f81 PM |
3808 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
3809 | Tom Tromey <tromey@redhat.com> | |
3810 | ||
3811 | * top.c (set_prompt): Rewrite to free previous prompt, free | |
3812 | asynch_new_prompt and set both on new prompts. | |
3813 | * event-top.c (display_gdb_prompt): Add prompt substitution | |
3814 | logic. | |
3815 | * python/python.c (before_prompt_hook): New function. | |
3816 | ||
1364323a | 3817 | 2011-07-20 Matt Rice <ratmice@gmail.com> |
3818 | ||
3819 | * bfin-tdep.c (bfin_extract_return_value): Fix swapped | |
3820 | arguments to store_unsigned_integer. | |
3821 | ||
8b70b953 TT |
3822 | 2011-07-20 Tom Tromey <tromey@redhat.com> |
3823 | ||
6c83ed52 TT |
3824 | * dwarf2read.c (process_enumeration_scope): Do not call new_symbol |
3825 | in some declaration-only cases. | |
3826 | ||
3827 | 2011-07-18 Tom Tromey <tromey@redhat.com> | |
3828 | ||
8b70b953 TT |
3829 | PR symtab/12984: |
3830 | * dwarf2read.c (dwarf2_section_info_def): New typedef. | |
3831 | (struct dwarf2_per_objfile) <types>: Change to a VEC. | |
3832 | (struct dwarf2_per_cu_data) <from_debug_types>: Remove. | |
3833 | <debug_type_section>: New field. | |
3834 | (dwarf2_locate_sections): Push .debug_types sections onto VEC. | |
3835 | (load_cu): Use appropriate section. | |
3836 | (create_signatured_type_table_from_index): Add 'section' | |
3837 | argument. | |
3838 | (dwarf2_read_index): Only allow a single .debug_types section. | |
3839 | (dw2_get_file_names): Use appropriate section. | |
3840 | (read_type_comp_unit_head): Add 'section' argument. | |
3841 | (create_debug_types_hash_table): Loop over all .debug_types | |
3842 | sections. | |
3843 | (init_cu_die_reader): Use appropriate section. | |
3844 | (process_psymtab_comp_unit, load_partial_comp_unit) | |
3845 | (load_full_comp_unit, read_die_and_children, find_partial_die) | |
3846 | (lookup_die_type, determine_prefix, follow_die_offset): Update. | |
3847 | (lookup_signatured_type_at_offset): Add 'section' argument. | |
3848 | (read_signatured_type_at_offset): Add 'sect' argument. | |
3849 | (read_signatured_type): Use appropriate section. | |
3850 | (set_die_type, get_die_type_at_offset): Update. | |
3851 | (dwarf2_per_objfile_free): Free all .debug_types sections, and | |
3852 | VEC. | |
3853 | (write_psymtabs_to_index): Don't allow index with more than one | |
3854 | .debug_types section. | |
3855 | ||
918dd910 JK |
3856 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
3857 | ||
3858 | Fix crash if referenced CU is aged out. | |
3859 | * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for | |
3860 | xfree of block.data. | |
3861 | (indirect_pieced_value): New variable back_to, use to for xfree of | |
3862 | baton.data. | |
3863 | (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of | |
3864 | block.data. | |
3865 | * dwarf2read.c (dwarf2_find_base_address): New prototype. | |
3866 | (load_cu): New function from ... | |
3867 | (dw2_do_instantiate_symtab): ... the code here ... | |
3868 | (process_full_comp_unit): ... and here. | |
3869 | (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on | |
3870 | retval.data. | |
3871 | ||
0e37a63c JK |
3872 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
3873 | ||
3874 | * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's | |
3875 | type. | |
3876 | ||
7e324e48 GB |
3877 | 2011-07-19 Gary Benson <gbenson@redhat.com> |
3878 | ||
3879 | * infrun.c (struct execution_control_state): New member | |
3880 | stop_func_filled_in. | |
3881 | (clear_stop_func, fill_in_stop_func): New functions. | |
3882 | (handle_inferior_event): Call clear_stop_func rather than | |
3883 | manipulating the execution control state directly. | |
3884 | Call fill_in_stop_func lazily as required rather than | |
3885 | directly calling find_pc_partial_function in all cases. | |
3886 | ||
d48323d8 TT |
3887 | 2011-07-18 Tom Tromey <tromey@redhat.com> |
3888 | ||
3889 | * dwarf2read.c (read_subrange_type): Use attr_form_is_block when | |
3890 | checking for variable-sized array. | |
3891 | ||
40591b7d JCD |
3892 | 2011-07-18 Jean-Charles Delay <delay@adacore.com> |
3893 | ||
3894 | * varobj.h (varobj_languages): Add vlang_ada definition to the list | |
3895 | of supported languages. | |
3896 | * varobj.c: Add top definitions and basic implementation of the | |
3897 | following callbacks: ada_number_of_children, ada_name_of_variable, | |
3898 | ada_name_of_child, ada_path_expr_of_child, ada_value_of_root, | |
3899 | ada_value_of_child, ada_type_of_child, ada_value_of_variable. | |
3900 | (languages): Register Ada-specific callbacks. | |
3901 | (variable_language): Add the Ada case in the language setter switch. | |
3902 | ||
2e424e08 JK |
3903 | 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3904 | ||
3905 | * remote-mips.c (pmon_download): Fix ignored return value GCC warning. | |
3906 | ||
9e8b7a03 JK |
3907 | 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
3908 | ||
3909 | Code cleanup. | |
3910 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New. | |
3911 | (execute_stack_op): Use dwarf2_frame_ctx_funcs | |
3912 | * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs. | |
3913 | (execute_stack_op): Access read_reg, get_frame_base, read_mem, | |
3914 | get_frame_cfa, get_tls_address and dwarf_call via funcs. | |
3915 | * dwarf2expr.h (struct dwarf_expr_context): New forward declaration. | |
3916 | (struct dwarf_expr_context_funcs): New, move here methods from ... | |
3917 | (struct dwarf_expr_context): ... here. New fields funcs. | |
3918 | * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs. | |
3919 | (dwarf_expr_ctx_funcs): New. | |
3920 | (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs. | |
3921 | (needs_frame_dwarf_call): Access get_frame_pc via funcs. | |
3922 | (needs_frame_ctx_funcs): New. | |
3923 | (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs. | |
3924 | ||
2b1260ab FM |
3925 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
3926 | ||
3927 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
3928 | ||
8bd90839 FM |
3929 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
3930 | ||
3931 | * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure | |
3932 | that CIE pointer of an FDE really points to a CIE . | |
3933 | ||
953b98d1 HZ |
3934 | 2011-07-15 Hui Zhu <teawater@gmail.com> |
3935 | ||
3936 | * remote.c (remote_get_trace_status): Add comments. | |
3937 | ||
c8f2448a JK |
3938 | 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
3939 | ||
3940 | Code cleanup - constify struct lval_funcs. | |
3941 | * dwarf2loc.c (pieced_value_funcs): Make it const. | |
3942 | * infrun.c (siginfo_value_funcs): Likewise. | |
3943 | * opencl-lang.c (opencl_value_funcs): Likewise. | |
3944 | * valops.c (value_assign, value_ind): Make the funcs variable const. | |
3945 | * value.c (struct value): Make location.computed.funcs target const. | |
3946 | Rearrange the comments. | |
3947 | (allocate_computed_value): Make the funcs parameter target const. | |
3948 | (value_computed_funcs): Return the funcs target const. | |
3949 | (value_free, value_copy, set_value_component_location): Make the funcs | |
3950 | variable const. | |
3951 | * value.h (allocate_computed_value): Make the funcs parameter target | |
3952 | const. | |
3953 | (value_computed_funcs): Return the funcs target const. | |
3954 | * windows-tdep.c (tlb_value_funcs): Make it const. | |
3955 | ||
f652de6f HZ |
3956 | 2011-07-14 Hui Zhu <teawater@gmail.com> |
3957 | ||
3958 | * remote.c (remote_get_trace_status): Initialize p. | |
3959 | ||
67f41397 JK |
3960 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3961 | ||
3962 | Work around kgdb. | |
3963 | * remote.c (remote_get_trace_status): New variable ex. Put | |
3964 | remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it. | |
3965 | ||
d1b66e6d TT |
3966 | 2011-07-13 Tom Tromey <tromey@redhat.com> |
3967 | ||
3968 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use | |
3969 | value_from_contents for final conversion. | |
3970 | ||
1632a688 JK |
3971 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3972 | ||
3973 | Code cleanup. | |
3974 | * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full): | |
3975 | Indent prototypes so they do not get into tags. | |
3976 | ||
a7035dbb JK |
3977 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
3978 | ||
3979 | Code cleanup making also optimized out values lazy. | |
3980 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
3981 | allocate_optimized_out_value. Twice. | |
3982 | (loclist_read_variable) Use allocate_optimized_out_value. Once. | |
3983 | * findvar.c (read_var_value): Likewise. | |
3984 | * value.c (allocate_optimized_out_value): New function. | |
3985 | * value.h (allocate_optimized_out_value): New declaration. | |
3986 | ||
d07ed419 JK |
3987 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
3988 | ||
3989 | Fix occasional crash of CTRL-C during DWARF read in. | |
3990 | * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU. | |
3991 | ||
86d31898 TT |
3992 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
3993 | ||
3994 | * regcache.c (struct regcache_descr): Fix typo. | |
3995 | * i387-tdep.c (i387_supply_xsave): Fix typo. | |
3996 | ||
2ab95328 TT |
3997 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
3998 | ||
3999 | * dwarf2read.c (handle_DW_AT_stmt_list): New function. | |
4000 | (read_file_scope, read_type_unit_scope): Use it. | |
4001 | ||
04ad99e6 JK |
4002 | 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
4003 | ||
4004 | * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host | |
4005 | `int'. | |
4006 | ||
713389e0 PM |
4007 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
4008 | ||
4009 | PR python/12438 | |
4010 | * python/python.c: Set gdbpy_should_print_stack default to off. | |
4011 | (set_python): Deprecate maint set python print-stack to | |
4012 | class_deprecate. | |
4013 | (_initialize_python): Deprecate maint set/show python print-stack. | |
4014 | Add new prefix command, python. Add new setting, print-backtrace. | |
4015 | * NEWS: Document set python print-stack. Document default change. | |
4016 | ||
754eadd1 PM |
4017 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
4018 | ||
4019 | * python/py-inferior.c (infpy_dealloc): New function. | |
4020 | (inferior_to_inferior_object): Return a new object, or a | |
4021 | new reference to the existing object. | |
4022 | (find_thread_object): Cleanup references to inferior. | |
4023 | (delete_thread_object): Ditto. | |
4024 | * python/py-infthread.c (create_thread_object): Do not increment | |
4025 | inferior reference count. | |
4026 | ||
5e44ecb3 TT |
4027 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
4028 | ||
4029 | * dwarf2loc.c (locexpr_regname): New function. | |
4030 | (locexpr_describe_location_piece): Use it. | |
4031 | (disassemble_dwarf_expression): Add per_cu argument. Use | |
4032 | locexpr_regname. | |
4033 | <DW_OP_GNU_deref_type, DW_OP_GNU_const_type, | |
4034 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
4035 | New cases. | |
4036 | (locexpr_describe_location_1): Add per_cu argument. | |
4037 | (locexpr_describe_location): Update. | |
4038 | (loclist_describe_location): Update. | |
4039 | ||
e0e9434c TT |
4040 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
4041 | ||
4042 | * dwarf2expr.c (execute_stack_op): Add QUIT. | |
4043 | ||
26afc0d7 HZ |
4044 | 2011-07-07 Hui Zhu <teawater@gmail.com> |
4045 | ||
4046 | Revert: | |
4047 | 2011-07-06 Hui Zhu <teawater@gmail.com> | |
4048 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
4049 | remote_get_trace_status. | |
4050 | * tracepoint.c (disconnect_tracing): Ditto. | |
4051 | ||
a40a111f AB |
4052 | 2011-07-07 Andrew Burgess <aburgess@broadcom.com> |
4053 | ||
4054 | * cli/cli-setshow.c (do_setshow_command): Display var_zinteger | |
4055 | variables as signed, not unsigned. | |
4056 | ||
e2bd3b15 JB |
4057 | 2011-07-06 Joel Brobecker <brobecker@adacore.com> |
4058 | ||
4059 | * jit.c (jit_inferior_init): Reformat forward declaration. | |
4060 | ||
e3d961fe | 4061 | 2011-07-06 Matt Rice <ratmice@gmail.com> |
4062 | ||
4063 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4064 | ||
0f3428f0 HZ |
4065 | 2011-07-06 Hui Zhu <teawater@gmail.com> |
4066 | ||
4067 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
4068 | remote_get_trace_status. | |
4069 | * tracepoint.c (disconnect_tracing): Ditto. | |
4070 | ||
fc9f3a69 TT |
4071 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
4072 | ||
4073 | * symtab.c (operator_chars): Now static. | |
4074 | * linespec.c (operator_chars): Don't declare. | |
4075 | ||
26e519b9 TJB |
4076 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4077 | ||
4078 | * ui-out.h (ui_out_field_core_addr): Fix typo in comment. | |
4079 | ||
eb2a6f42 TT |
4080 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
4081 | ||
4082 | * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA. | |
4083 | * gdbtypes.h (struct cplus_struct_type) <is_java>: New field. | |
4084 | (TYPE_CPLUS_REALLY_JAVA): New macro. | |
4085 | * dwarf2read.c (process_structure_scope): Set | |
4086 | TYPE_CPLUS_REALLY_JAVA. | |
4087 | ||
21083d0f | 4088 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
177b42fe TJB |
4089 | |
4090 | * ada-lang.c: Fix typos. | |
4091 | * amd64-tdep.c: Likewise. | |
4092 | * breakpoint.c: Likewise. | |
4093 | * cli/cli-decode.c: Likewise. | |
4094 | * findcmd.c: Likewise. | |
4095 | * inline-frame.c: Likewise. | |
4096 | * mi/mi-main.c: Likewise. | |
4097 | * minsyms.c: Likewise. | |
4098 | * monitor.c: Likewise. | |
4099 | * monitor.h: Likewise. | |
4100 | * prologue-value.c: Likewise. | |
4101 | * reverse.c: Likewise. | |
4102 | * s390-tdep.c: Likewise. | |
4103 | ||
3b2a0cf2 JB |
4104 | 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
4105 | ||
4106 | * jit.c (jit_inferior_init): Forward declare. | |
4107 | (jit_breakpoint_re_set_internal): Call jit_inferior_init. | |
4108 | ||
efae1d92 JB |
4109 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
4110 | ||
4111 | * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting. | |
4112 | ||
6040a59d JB |
4113 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
4114 | ||
4115 | * ada-tasks.c (KNOWN_TASKS_LIST): New macro. | |
4116 | (tcb_fieldno): Add activation_link field. | |
4117 | (get_known_tasks_addr): Moved and rewritten. | |
4118 | (get_tcb_types_info): Set activation_link field. | |
4119 | (read_known_tasks_array): Add parameter. Rewritten. | |
4120 | (read_known_tasks_list): New function. | |
4121 | (read_known_tasks): New function. | |
4122 | (ada_build_task_list): Call read_known_tasks instead of | |
4123 | read_known_tasks_array. | |
4124 | * ravenscar-thread.c: Add first_task_name constant. | |
4125 | (has_ravenscar_runtime): Check for task list too. | |
4126 | ||
cb741e45 JB |
4127 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
4128 | ||
4129 | * ada-tasks.c: Renames fieldno to actb_fieldno. | |
4130 | (ada_get_task_number): Indentation. | |
4131 | (get_tcb_types_info): Remove all parameters. Write directly | |
4132 | the globals. | |
4133 | (ptid_from_atcb_common): Adjust. | |
4134 | (read_atcb): Adjust. | |
4135 | ||
7475b06c TJB |
4136 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4137 | ||
4138 | * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit. | |
4139 | ||
15230f37 TJB |
4140 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4141 | ||
4142 | * ui-out.c (ui_out_field_core_addr): Mention that the function | |
4143 | description is in the header file. | |
4144 | * ui-out.h (ui_out_field_core_addr): Document function. | |
4145 | ||
65743aba TJB |
4146 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4147 | ||
4148 | * ui-out.c (ui_out_get_field_separator): Remove unused function. | |
4149 | * ui-out.h (ui_out_get_field_separator): Remove prototype. | |
4150 | ||
c37a5aab TJB |
4151 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4152 | ||
4153 | * symtab.c (expand_line_sal): Remove empty line. | |
4154 | ||
59adf69e TS |
4155 | 2011-07-04 Thomas Schwinge <thomas@schwinge.name> |
4156 | ||
4157 | * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the | |
4158 | same way as ELFOSABI_NONE. | |
4159 | <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases. | |
4160 | ||
e5dd4106 TJB |
4161 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4162 | ||
4163 | * breakpoint.c: Fix typos in comments. | |
4164 | * linespec.c: Likewise. | |
4165 | * symtab.c: Likewise. | |
4166 | ||
d40102a1 JB |
4167 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
4168 | ||
4169 | * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame | |
4170 | section in separate object files. | |
4171 | ||
2f741504 JK |
4172 | 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
4173 | ||
4174 | Fix false GCC warning. | |
4175 | * linespec.c (decode_line_1): Initialize values. | |
4176 | ||
418c7cf7 JK |
4177 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4178 | ||
4179 | * linespec.c (find_method): Accept the function type automatically only | |
4180 | if it was specified with parameter types. | |
4181 | ||
3d50dd94 JK |
4182 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4183 | ||
4184 | Stop on first linespec terminator instead of eating what we can. | |
4185 | * linespec.c (is_linespec_boundary): New function. | |
4186 | (name_end): Remove function. | |
4187 | (keep_name_info): New parameter on_boundary, replace the body. | |
4188 | (decode_line_1): Provide the parameter to keep_name_info. | |
4189 | (decode_compound): Likewise. Drop the trailing java return type | |
4190 | handling. Twice. | |
4191 | ||
dcf9f4ab JK |
4192 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4193 | ||
4194 | Fall back linespec to minimal symbols. | |
4195 | * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect | |
4196 | decode_compound by TRY_CATCH, fall back on minsyms if it failed. | |
4197 | (find_method, symbol_found): Change error to cplusplus_error. | |
4198 | ||
3f542ed1 JK |
4199 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4200 | ||
bc68c4e5 | 4201 | * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE. |
3f542ed1 | 4202 | |
900e11f9 JK |
4203 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4204 | Tom Tromey <tromey@redhat.com> | |
4205 | ||
4206 | * dwarf2read.c (check_physname): New variable. | |
4207 | (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name. | |
4208 | (show_check_physname): New function. | |
4209 | (_initialize_dwarf2_read): Add `check-physname' for check_physname. | |
4210 | ||
2301925d JB |
4211 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4212 | ||
4213 | * machoread.c (macho_symfile_read): Delete OBE comment. | |
4214 | ||
38947cca JB |
4215 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4216 | ||
4217 | * machoread.c (struct macho_oso_data): Delete. | |
4218 | (current_oso): Delete. | |
4219 | (macho_relocate_common_syms): New function, mostly extracted | |
4220 | out of | |
4221 | (macho_add_oso_symfile): Call macho_relocate_common_syms. | |
4222 | Remove code that sets and unset current_oso. | |
4223 | (macho_symfile_relocate): Delete handling of common symbols, | |
4224 | now moved to macho_relocate_common_syms. | |
4225 | ||
a7aa0d73 JB |
4226 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4227 | ||
4228 | * darwin-nat.c (darwin_ptrace): Add documentation. | |
4229 | Set errno to zero before calling ptrace. If ptrace returns | |
4230 | -1 and errno is zero, then change then return zero. | |
4231 | (darwin_kill_inferior): Issue a warning instead of triggering | |
4232 | a failed assertion when the PT_KILL ptrace operations returned | |
4233 | nonzero. | |
4234 | ||
5e9bc145 JB |
4235 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4236 | ||
4237 | * darwin-nat.c (darwin_detach): Call darwin_resume_inferior | |
4238 | only when inf->private->no_ptrace. | |
4239 | ||
00eb2c4a JB |
4240 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4241 | ||
4242 | * ada-lang.c (print_it_exception): Print temporary catchpoints | |
4243 | as "Temporary catchpoint". | |
4244 | (print_mention_exception): Likewise. | |
4245 | ||
127c81bc TT |
4246 | 2011-07-01 Tom Tromey <tromey@redhat.com> |
4247 | ||
4248 | * jv-lang.c (java_language_defn): Use java_printchar, | |
4249 | java_printstr. | |
4250 | (java_get_encoding): New function. | |
4251 | (java_emit_char): Use generic_emit_char. | |
4252 | (java_printchar): New function. | |
4253 | (java_printstr): Likewise. | |
4254 | ||
25552254 JB |
4255 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4256 | ||
4257 | * ada-typeprint.c (print_record_type): If unable to decode | |
4258 | the name of the parent type, use the encoded name. | |
4259 | ||
d2d43431 JB |
4260 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
4261 | ||
4262 | * ada-typeprint.c (ada_print_type): Fix both PAD type and | |
4263 | pointer to constrained packed array type output. | |
4264 | * ada-valprint.c (ada_val_print_1): Fix pointer to constrained | |
4265 | packed array output. | |
4266 | ||
54ae186f JB |
4267 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
4268 | ||
4269 | * ada-typeprint.c (print_array_type): removed if condition on show | |
4270 | being negative for bounds printing. | |
4271 | ||
8f17729f JB |
4272 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4273 | ||
4274 | * ada-lang.c (ada_identical_enum_types_p): New function. | |
4275 | (symbols_are_identical_enums): New function. | |
4276 | (remove_extra_symbols): Do nothing if NSYMS < 2. | |
4277 | Use symbols_are_identical_enums. | |
4278 | ||
f5aa6869 JB |
4279 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4280 | ||
4281 | * ada-valprint.c (ada_value_print): Handle typedefs. | |
4282 | ||
8f465ea7 JB |
4283 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4284 | ||
4285 | * ada-lang.c (ada_evaluate_subexp): Add missing word in comment. | |
4286 | ||
828292f2 JB |
4287 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
4288 | ||
4289 | * ada-lang.c (thin_descriptor_type): Deal with typedefs. | |
4290 | (decode_constrained_packed_array): Likewise. | |
4291 | (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise. | |
4292 | ||
18920c42 JB |
4293 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4294 | ||
4295 | * ada-exp.y (convert_char_literal): Handle typedef types. | |
4296 | ||
c90092fe JB |
4297 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
4298 | ||
4299 | * ada-lang.c (ada_remove_trailing_digits): Expand documentation. | |
4300 | ||
f748fb40 TT |
4301 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
4302 | ||
4303 | * varobj.c (varobj_create): Call do_cleanups on early exit path. | |
4304 | * valops.c (find_overload_match): Call do_cleanups on early exit | |
4305 | path. | |
4306 | * solib.c (solib_find): Call do_cleanups on early exit path. | |
4307 | ||
3bb47e8b TT |
4308 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
4309 | ||
4310 | * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups. | |
4311 | * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all | |
4312 | return paths. Defer final do_cleanups until last return. | |
4313 | * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after | |
4314 | early return. | |
4315 | ||
4727bad3 TT |
4316 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
4317 | ||
4318 | * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1. | |
4319 | ||
bb361dbf AB |
4320 | 2011-06-30 Andrew Burgess <aburgess@broadcom.com> |
4321 | ||
4322 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4323 | ||
e0d00bc7 JK |
4324 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
4325 | ||
4326 | Disable epilogue unwinders on recent GCCs. | |
4327 | * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab, | |
4328 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
4329 | * dwarf2read.c (process_full_comp_unit): Initialize | |
4330 | EPILOGUE_UNWIND_VALID. | |
4331 | * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab, | |
4332 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
4333 | * symtab.h (struct symtab): New field epilogue_unwind_valid. | |
4334 | ||
4632c0d0 JK |
4335 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
4336 | ||
4337 | Code cleanup - reformatting. | |
4338 | * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ... | |
4339 | (producer_is_gcc_ge_4): ... here, change the return value. | |
4340 | (process_full_comp_unit): New variable gcc_4_minor, adjust the value | |
4341 | interpretation. | |
4342 | ||
32019081 JK |
4343 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
4344 | ||
4345 | Fix non-only rename list for Fortran modules import. | |
4346 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the | |
4347 | cp_add_using_directive caller. | |
4348 | (cp_add_using_directive): New parameter excludes, describe it. New | |
4349 | variables ix and param. Compare if also excludes match. Allocate NEW | |
4350 | with variable size, initialize EXCLUDES there. | |
4351 | (cp_lookup_symbol_imports): New variable excludep, test | |
4352 | current->EXCLUDES with it. | |
4353 | * cp-support.h: Include vec.h. | |
4354 | (struct using_direct): New field excludes, describe it. | |
4355 | (DEF_VEC_P (const_char_ptr)): New. | |
4356 | (cp_add_using_directive): New parameter excludes. | |
4357 | * defs.h (const_char_ptr): New typedef. | |
4358 | * dwarf2read.c (read_import_statement): New variables child_die, | |
4359 | excludes and cleanups, read in excludes. | |
4360 | (read_namespace): Adjust the cp_add_using_directive caller. | |
4361 | ||
70c622a3 JK |
4362 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
4363 | ||
4364 | Code cleanup. | |
4365 | * cp-namespace.c (cp_add_using_directive): Turn positive comparison to | |
4366 | negative comparisons. | |
4367 | ||
39c4d40a TT |
4368 | 2011-06-29 André Pönitz <andre.poenitz@nokia.com> |
4369 | ||
4370 | * mi/mi-main.c (mi_cmd_list_features): Emit | |
4371 | breakpoint-notifications. | |
4372 | ||
3b2b8fea TT |
4373 | 2011-06-29 Tom Tromey <tromey@redhat.com> |
4374 | ||
4375 | PR fortran/10036: | |
4376 | * valprint.h (generic_emit_char, generic_printstr): Declare. | |
4377 | * valprint.c (wchar_printable, append_string_as_wide) | |
4378 | (print_wchar): Move from c-lang.c. | |
4379 | (generic_emit_char): New function; mostly taken from c_emit_char. | |
4380 | (generic_printstr): New function; mostly taken from c_printstr. | |
4381 | * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings | |
4382 | represented as arrays. | |
4383 | <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character | |
4384 | type. | |
4385 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat | |
4386 | identically to TYPE_CODE_INT. | |
4387 | * f-lang.c (f_get_encoding): New function. | |
4388 | (f_emit_char): Use generic_emit_char. | |
4389 | (f_printchar): Replace comment. | |
4390 | (f_printstr): Use generic_printstr. | |
4391 | * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran | |
4392 | "character" types specially. | |
4393 | <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR | |
4394 | for Fortran. | |
4395 | * c-lang.c (wchar_printable, append_string_as_wide, print_wchar): | |
4396 | Move to valprint.c | |
4397 | (c_emit_char): Call generic_emit_char. | |
4398 | (c_printstr): Call generic_printstr. | |
4399 | ||
168e6d44 GB |
4400 | 2011-06-29 Gary Benson <gbenson@redhat.com> |
4401 | ||
4402 | * breakpoint.c (bpstat_what): Removed duplicated case. | |
4403 | ||
1c033f8c TT |
4404 | 2011-06-28 Tom Tromey <tromey@redhat.com> |
4405 | ||
4406 | * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. | |
4407 | ||
5fe41fbf TT |
4408 | 2011-06-27 Tom Tromey <tromey@redhat.com> |
4409 | ||
4410 | * valops.c (find_overload_match): Call do_cleanups before early | |
4411 | return. | |
4412 | * top.c (execute_command): Call do_cleanups before early return. | |
4413 | (command_loop): Likewise. | |
4414 | * stack.c (backtrace_command): Make a null cleanup early. Don't | |
4415 | conditionally call do_cleanups. | |
4416 | * python/py-value.c (TRY_CATCH): Move cleanup handling into | |
4417 | TRY_CATCH. | |
4418 | * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange | |
4419 | so cleanups are always run. | |
4420 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups. | |
4421 | * findcmd.c (parse_find_args): Call do_cleanups on early return | |
4422 | path. | |
4423 | * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early. | |
4424 | Don't conditionally call do_cleanups. | |
4425 | * cli/cli-script.c (execute_user_command): Initialize 'old_chain' | |
4426 | later. | |
4427 | ||
e26bd57d EB |
4428 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
4429 | ||
4430 | * MAINTAINERS (Write After Approval): Use default email address. | |
4431 | ||
6c3097fc JB |
4432 | 2011-06-27 Joel Brobecker <brobecker@adacore.com> |
4433 | ||
4434 | * MAINTAINERS (Write After Approval): Add Eric Botcazou. | |
4435 | ||
369c397b JB |
4436 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
4437 | ||
4438 | * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset, | |
4439 | saved_regs_mask and copied_regs_mask fields. | |
4440 | (sparc_record_save_insn): New prototype. | |
4441 | * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields. | |
4442 | (sparc_record_save_insn): New function. | |
4443 | (sparc_analyze_prologue): Add head comment. Recognize store insns | |
4444 | of call-saved registers. Use OFFSET consistently. Recognize flat | |
4445 | frames and cache their settings. | |
4446 | (sparc32_skip_prologue): Handle flat frames. | |
4447 | (sparc_frame_cache): Add frame_offset to the base address. | |
4448 | (sparc32_frame_cache): Adjust to new frame description. | |
4449 | (sparc32_frame_prev_register): Likewise. | |
4450 | * sparc64-tdep.c (sparc64_frame_prev_register): Likewise. | |
4451 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
4452 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
4453 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the | |
4454 | frame by calling sparc_record_save_insn. | |
4455 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise. | |
4456 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise. | |
4457 | * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise. | |
4458 | ||
b315ab21 TG |
4459 | 2011-06-27 Tristan Gingold <gingold@adacore.com> |
4460 | ||
4461 | * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped | |
4462 | field by map_addr and map_len. | |
4463 | (dwarf2_read_section): Adjust for the new bfd_mmap api. | |
4464 | (munmap_section_buffer): Likewise. | |
4465 | ||
ddd49eee TT |
4466 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
4467 | ||
4468 | * varobj.c (update_dynamic_varobj_children): Make 'name' const. | |
4469 | * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. | |
4470 | * python/python.c (gdbpy_parameter): Make 'arg' const. | |
4471 | (execute_gdb_command): Likewise. | |
4472 | (gdbpy_decode_line): Likewise. Copy it. | |
4473 | (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it. | |
4474 | (gdbpy_write): Make 'arg' const. | |
4475 | * python/py-type.c (typy_lookup_typename): Make 'type_name' | |
4476 | const. | |
4477 | (gdbpy_lookup_type): Likewise. | |
4478 | * python/py-prettyprint.c (print_children): Make 'name' const. | |
4479 | * python/py-param.c (parmpy_init): Make 'name' const. Copy it. | |
4480 | * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a | |
4481 | Py_ssize_t. | |
4482 | * python/py-function.c (fnpy_init): Make 'name' const. | |
4483 | * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it. | |
4484 | (gdbpy_string_to_argv): Make 'input' const. | |
4485 | * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy | |
4486 | it. | |
4487 | * gdbtypes.h (lookup_typename): Update. | |
4488 | * gdbtypes.c (lookup_typename): Make 'name' const. | |
4489 | (lookup_struct): Likewise. | |
4490 | (lookup_union): Likewise. | |
4491 | (lookup_enum): Likewise. | |
4492 | ||
5998129b TT |
4493 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
4494 | ||
4495 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to | |
4496 | gdb_thread_db.h. Move all common/ entries to be together. | |
4497 | (TAGS): Don't depend on DEPFILES. | |
4498 | ||
6e586cc5 YQ |
4499 | 2011-06-23 Yao Qi <yao@codesourcery.com> |
4500 | ||
4501 | * infrun.c (start_remote): Move call init_wait_for_inferior to ... | |
4502 | * remote.c (remote_start_remote): ... here. | |
4503 | * monitor.c (monitor_open): ... here. | |
4504 | ||
86c3c1fc AB |
4505 | 2011-06-23 Andrew Burgess <aburgess@broadcom.com> |
4506 | ||
4507 | * gdbtypes.c (append_composite_type_field_aligned): Fix | |
4508 | calculation of bit position based on alignment. | |
4509 | ||
28010a5d PA |
4510 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4511 | ||
4512 | * breakpoint.c (bpstat_stop_status): Call the check_status | |
4513 | breakpoint_ops method. | |
4514 | (print_one_breakpoint_location): Also print the condition for Ada | |
4515 | exception catchpoints. | |
4516 | (allocate_bp_location): New, factored out from | |
4517 | allocate_bp_location. | |
4518 | (allocate_bp_location): Adjust. Call the owner breakpoint's | |
4519 | allocate_location method, if there is one. | |
4520 | (free_bp_location): Call the locations's dtor method, if there is | |
4521 | one. | |
4522 | (init_raw_breakpoint_without_location): New breakpoint_ops | |
4523 | parameter. Use it. | |
4524 | (set_raw_breakpoint_without_location): Adjust. | |
4525 | (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down. | |
4526 | (set_raw_breakpoint): Adjust. | |
4527 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
4528 | (catch_syscall_breakpoint_ops): Install NULL allocate_location, | |
4529 | re_set and check_status methods. | |
4530 | (init_catchpoint): Don't memset, initialize thread, addr_string | |
4531 | and enable_state. Pass the ops down to init_raw_breakpoint. | |
4532 | (install_catchpoint): Rename to ... | |
4533 | (install_breakpoint): ... this, and make extern. | |
4534 | (create_fork_vfork_event_catchpoint): Adjust. | |
4535 | (catch_exec_breakpoint_ops): Install NULL allocate_location, | |
4536 | re_set and check_status methods. | |
4537 | (create_syscall_event_catchpoint): Adjust. | |
4538 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
4539 | (masked_watchpoint_breakpoint_ops): Install NULL | |
4540 | allocate_location, re_set and check_status methods. | |
4541 | (catch_exec_command_1): Adjust. | |
4542 | (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location, | |
4543 | re_set and check_status methods. | |
4544 | (create_ada_exception_breakpoint): Rename to ... | |
4545 | (init_ada_exception_breakpoint): ... this. Add a struct | |
4546 | breakpoint parameter, and delete the exp_string, cond_string and | |
4547 | cond parameters. Use init_raw_breakpoint, and don't install or | |
4548 | mention the breakpoint yet. Don't clear breakpoint fields that | |
4549 | init_raw_breakpoint already clears. | |
4550 | (re_set_breakpoint): Delete, split into ... | |
4551 | (breakpoint_re_set_default, prepare_re_set_context): ... these new | |
4552 | functions. | |
4553 | (breakpoint_re_set_one): Call the breakpoint's | |
4554 | breakpoint_ops->re_set implementation, if there's one. Adjust. | |
4555 | * breakpoint.h: Forward declare struct bpstats and struct bp_location. | |
4556 | (struct bp_location_ops): New type. | |
4557 | (struct bp_location): New field `ops'. | |
4558 | (struct breakpoint_ops): New `allocate_location', `re_set' and | |
4559 | `check_status' fields. Make `breakpoint_hit''s description match | |
4560 | reality. | |
4561 | (init_bp_location): Declare. | |
4562 | (breakpoint_re_set_default): Declare. | |
4563 | (create_ada_exception_breakpoint): Rename to ... | |
4564 | (init_ada_exception_breakpoint): ... this. Add a struct | |
4565 | breakpoint parameter, and delete the exp_string, cond_string and | |
4566 | cond parameters. | |
4567 | (install_breakpoint): Declare. | |
4568 | * ada-lang.c: Include exceptions.h. | |
4569 | <Ada exceptions description>: Update. | |
4570 | (struct ada_catchpoint_location): New type. | |
4571 | (ada_catchpoint_location_dtor): New function. | |
4572 | (ada_catchpoint_location_ops): New global. | |
4573 | (ada_catchpoint): New type. | |
4574 | (create_excep_cond_exprs): New function. | |
4575 | (dtor_exception, allocate_location_exception, re_set_exception) | |
4576 | (should_stop_exception, check_status_exception): New functions. | |
4577 | (print_one_exception, print_mention_exception) | |
4578 | (print_recreate_exception): Adjust. | |
4579 | (dtor_catch_exception, allocate_location_catch_exception) | |
4580 | (re_set_catch_exception, check_status_catch_exception): New | |
4581 | functions. | |
4582 | (catch_exception_breakpoint_ops): Install them. | |
4583 | (dtor_catch_exception_unhandled) | |
4584 | (allocate_location_catch_exception_unhandled) | |
4585 | (re_set_catch_exception_unhandled) | |
4586 | (check_status_catch_exception_unhandled): New functions. | |
4587 | (catch_exception_unhandled_breakpoint_ops): Install them. | |
4588 | (dtor_catch_assert, allocate_location_catch_assert) | |
4589 | (re_set_catch_assert, check_status_catch_assert): New functions. | |
4590 | (catch_assert_breakpoint_ops): Install them. | |
4591 | (ada_exception_catchpoint_p): Delete. | |
4592 | (catch_ada_exception_command_split) | |
4593 | (ada_exception_catchpoint_cond_string): Rename exp_string | |
4594 | parameter to excep_string. Adjust. | |
4595 | (ada_parse_catchpoint_condition): Delete. | |
4596 | (ada_exception_sal): Rename the exp_string parameter to | |
4597 | excep_string. Delete the cond_string and cond parameters. | |
4598 | Adjust. | |
4599 | (ada_decode_exception_location): Rename the exp_string parameter | |
4600 | to excep_string. Delete the cond_string and cond parameters. | |
4601 | Adjust. | |
4602 | (create_ada_exception_catchpoint): New function. | |
4603 | (catch_ada_exception_command, ada_decode_assert_location) | |
4604 | (catch_assert_command): Adjust. | |
4605 | * ada-lang.h (ada_exception_catchpoint_p): Delete declaration. | |
4606 | ||
9ac4176b PA |
4607 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4608 | ||
4609 | * ada-lang.c: Include arch-utils.h. | |
4610 | (ada_decode_exception_location): Make static. | |
4611 | (catch_ada_exception_command): Moved here from breakpoint.c. | |
4612 | (ada_decode_assert_location): Make static. | |
4613 | (catch_assert_command): Moved here from breakpoint.c. | |
4614 | (_initialize_ada_lang): Install the exception and assert | |
4615 | catchpoint commands here. | |
4616 | * ada-lang.h (ada_decode_exception_location) | |
4617 | (ada_decode_assert_location): Delete declarations. | |
4618 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to | |
4619 | breakpoint.h. | |
4620 | (create_ada_exception_breakpoint): Make extern. | |
4621 | (catch_ada_exception_command, catch_assert_command): Moved to | |
4622 | ada-lang.c. | |
4623 | (add_catch_command): Make extern. | |
4624 | (_initilize_breakpoint): Don't install the exception and assert | |
4625 | catchpoint commands here. | |
4626 | * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from | |
4627 | breakpoint.c | |
4628 | (add_catch_command, create_ada_exception_breakpoint): Declare. | |
4629 | ||
c56053d2 PA |
4630 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4631 | ||
4632 | * breakpoint.c (init_raw_breakpoint_without_location): Don't add | |
4633 | the breakpoint to the breakpoint chain here. | |
4634 | (set_raw_breakpoint_without_location): Add the breakpoint to the | |
4635 | breakpoint chain here. | |
4636 | (init_raw_breakpoint): Adjust comments. | |
4637 | (set_raw_breakpoint): Add the breakpoint to the breakpoint chain | |
4638 | here. | |
4639 | (init_catchpoint): Don't set the catchpoint's breakpoint number | |
4640 | here. | |
4641 | (install_catchpoint): New function. | |
4642 | (create_fork_vfork_event_catchpoint) | |
4643 | (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to | |
4644 | use install_catchpoint. | |
4645 | ||
d2f3fc74 PA |
4646 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4647 | ||
4648 | * breakpoint.c (create_catchpoint_without_mention) | |
4649 | (create_catchpoint): Delete. | |
4650 | ||
b4d90040 PA |
4651 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4652 | ||
4653 | * breakpoint.h (struct breakpoint): Delete field `exec_pathname'. | |
4654 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
4655 | reference to exec_pathname. | |
4656 | (struct exec_catchpoint): New type. | |
4657 | (dtor_catch_exec): New function. | |
4658 | (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust. | |
4659 | (catch_exec_breakpoint_ops): Install dtor_catch_syscall. | |
4660 | (catch_exec_command_1): Adjust to use init_catchpoint. | |
4661 | (delete_breakpoint): Remove reference to exec_pathname. | |
4662 | ||
be5c67c1 PA |
4663 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4664 | ||
4665 | * breakpoint.h (struct breakpoint_ops): New field `dtor'. | |
4666 | (struct breakpoint): Delete field `syscalls_to_be_caught'. | |
4667 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
4668 | reference to syscalls_to_be_caught. | |
4669 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a | |
4670 | NULL `dtor'. | |
4671 | (struct syscall_catchpoint): New type. | |
4672 | (dtor_catch_syscall): New function. | |
4673 | (insert_catch_syscall, remove_catch_syscall) | |
4674 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
4675 | (print_recreate_catch_syscall): Adjust. | |
4676 | (catch_syscall_breakpoint_ops): Install dtor_catch_syscall. | |
4677 | (catch_exec_breakpoint_ops): Install a NULL `dtor'. | |
4678 | (create_syscall_event_catchpoint): Adjust to use init_catchpoint. | |
4679 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
4680 | (masked_watchpoint_breakpoint_ops) | |
4681 | (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'. | |
4682 | (delete_breakpoint): Call the `dtor' breakpoint_ops method, if | |
4683 | there is one. Remove references to syscalls_to_be_caught. | |
4684 | (catching_syscall_number): Adjust. | |
4685 | * ada-lang.c (catch_exception_breakpoint_ops) | |
4686 | (catch_exception_unhandled_breakpoint_ops) | |
4687 | (catch_assert_breakpoint_ops): Install a NULL `dtor'. | |
4688 | ||
e29a4733 PA |
4689 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4690 | ||
4691 | * breakpoint.h (struct breakpoint): Delete forked_inferior_pid | |
4692 | field. | |
4693 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
4694 | reference to forked_inferior_pid. | |
4695 | (struct fork_catchpoint): New type. | |
4696 | (breakpoint_hit_catch_fork, print_it_catch_fork) | |
4697 | (print_one_catch_fork, breakpoint_hit_catch_vfork) | |
4698 | (print_it_catch_vfork, print_one_catch_vfork): Adjust. | |
4699 | (create_fork_vfork_event_catchpoint): Adjust to use | |
4700 | init_catchpoint. | |
4701 | ||
346774a9 PA |
4702 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
4703 | ||
4704 | * breakpoint.c (add_to_breakpoint_chain) | |
4705 | (init_raw_breakpoint_without_location): New functions, factored | |
4706 | out from ... | |
4707 | (set_raw_breakpoint_without_location): ... this one. | |
4708 | (init_raw_breakpoint): New function, factored out from | |
4709 | set_raw_breakpoint and adjusted to use | |
4710 | init_raw_breakpoint_without_location. | |
4711 | (set_raw_breakpoint): Adjust. | |
4712 | (init_catchpoint): New function, factored out from | |
4713 | create_catchpoint_without_mention and adjusted to use | |
4714 | init_raw_breakpoint. | |
4715 | (create_catchpoint_without_mention): Adjust. | |
4716 | ||
c38c4bc5 TT |
4717 | 2011-06-22 Tom Tromey <tromey@redhat.com> |
4718 | ||
4719 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type | |
4720 | argument of 0 specially. | |
4721 | ||
b138ce37 YQ |
4722 | 2011-06-22 Yao Qi <yao@codesourcery.com> |
4723 | ||
4724 | * infrun.c (handle_inferior_event): Remove write-only local variable | |
4725 | `sw_single_step_trap_p'. | |
4726 | ||
03de6823 TT |
4727 | 2011-06-20 Tom Tromey <tromey@redhat.com> |
4728 | ||
4729 | * symtab.c (lookup_language_this): End loop if block is NULL. | |
4730 | ||
66a17cb6 TT |
4731 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
4732 | ||
4733 | * valops.c (value_of_this): Use lookup_language_this. | |
4734 | * symtab.h (lookup_language_this): Declare. | |
4735 | * symtab.c (lookup_language_this): New function. | |
4736 | (lookup_symbol_aux): Use lookup_language_this. | |
4737 | * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this. | |
4738 | ||
7518bff5 TT |
4739 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
4740 | ||
4741 | * value.h (value_of_this): Update. | |
4742 | (value_of_local): Remove. | |
4743 | * valops.c (value_of_this): Rename from value_of_local. Change | |
4744 | parameters. | |
4745 | * p-exp.y (exp): Update. | |
4746 | (variable): Likewise. | |
4747 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this. | |
4748 | ||
aee28ec6 TT |
4749 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
4750 | ||
4751 | * valops.c (value_of_local): Complain if NAME is NULL. | |
4752 | * std-operator.def (OP_OBJC_SELF): Remove. | |
4753 | * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove. | |
4754 | * objc-exp.y (name_not_typename): Use OP_THIS. | |
4755 | * expprint.c (print_subexp_standard) <OP_THIS>: Print language's | |
4756 | name for "this". | |
4757 | <OP_OBJC_SELF>: Remove. | |
4758 | * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove. | |
4759 | ||
eed8f803 TG |
4760 | 2011-06-16 Tristan Gingold <gingold@adacore.com> |
4761 | ||
4762 | * python/py-events.h (gdb_py_events): Make it extern. | |
4763 | * python/py-evtregistry.c (gdb_py_events): Declare. | |
4764 | ||
864ac8a7 HZ |
4765 | 2011-06-16 Hui Zhu <teawater@gmail.com> |
4766 | ||
4767 | * remote.c (remote_trace_set_readonly_regions): Add check for | |
4768 | remote_protocol_packets[PACKET_qXfer_traceframe_info].support before | |
4769 | output warning. | |
4770 | ||
ef7e8358 UW |
4771 | 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org> |
4772 | ||
4773 | * arm-linux-tdep.c: Include "auxv.h". | |
4774 | (AT_HWCAP): Define. | |
4775 | (ARM_LINUX_SIZEOF_VFP): Define. | |
4776 | (arm_linux_supply_vfp): New function. | |
4777 | (arm_linux_collect_vfp): Likewise. | |
4778 | (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections. | |
4779 | (arm_linux_fpa_regset_sections): New variable. | |
4780 | (arm_linux_vfp_regset_sections): Likewise. | |
4781 | (arm_linux_core_read_description): New function. | |
4782 | (arm_linux_init_abi): Install arm_linux_core_read_description and | |
4783 | arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as | |
4784 | appropriate for the architecture. | |
4785 | * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset". | |
4786 | (tdesc_arm_with_m): Declare. | |
4787 | (tdesc_arm_with_iwmmxt): Likewise. | |
4788 | (tdesc_arm_with_vfpv2): Likewise. | |
4789 | (tdesc_arm_with_vfpv3): Likewise. | |
4790 | (tdesc_arm_with_neon): Likewise. | |
4791 | * arm-linux-nat.c: Move features/*.c includes ... | |
4792 | * arm-tdep.c: ... here. | |
4793 | * arm-linux-nat.c (arm_linux_read_description): Move initializing | |
4794 | target description data structures ... | |
4795 | * arm-tdep.c (_initialize_arm_tdep): ... here. | |
4796 | * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3, | |
4797 | HWCAP_VFPv3D16): Move definitions ... | |
4798 | * arm-linux-tdep.h: ... here. | |
4799 | ||
c2fa21f1 HZ |
4800 | 2011-06-15 Hui Zhu <teawater@gmail.com> |
4801 | ||
4802 | * remote.c (remote_trace_set_readonly_regions): Add a check for | |
4803 | target_buf_size. | |
4804 | ||
dd707e8e TT |
4805 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
4806 | ||
4807 | * coffread.c (coffread_objfile): Rename from current_objfile. | |
4808 | * dbxread.c (dbxread_objfile): Rename from current_objfile. | |
4809 | * mdebugread.c (mdebugread_objfile): Rename from current_objfile. | |
4810 | ||
86cc0029 TT |
4811 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
4812 | ||
4813 | * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile) | |
4814 | (class_symtab): Remove. | |
4815 | (jv_dynamics_progspace_key): New global. | |
4816 | (jv_per_objfile_free): Reset program space data. Update assert. | |
4817 | Don't clear globals. | |
4818 | (get_dynamics_objfile): Use and set program space data. | |
4819 | (get_java_class_symtab): Use get_dynamics_objfile. | |
4820 | (add_class_symbol): Likewise. | |
4821 | (java_link_class_type): Likewise. | |
4822 | (java_object_type, jv_clear_object_type, set_java_object_type): | |
4823 | Remove. | |
4824 | (get_java_object_type): Update. Don't cache result. | |
4825 | (is_object_type): Don't call set_java_object_type. | |
4826 | (_initialize_java_language): Don't set jv_type_objfile_data_key; | |
4827 | initialize jv_dynamics_progspace_key. | |
4828 | ||
91a81f69 TT |
4829 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
4830 | ||
4831 | * symtab.h (current_objfile): Don't declare. | |
4832 | * objfiles.h (current_objfile): Don't declare. | |
4833 | * objfiles.c (current_objfile): Remove. | |
4834 | * mdebugread.c (current_objfile): New file-scope global. | |
4835 | * dbxread.c (current_objfile): New file-scope global. | |
4836 | * coffread.c (current_objfile): New file-scope global. | |
4837 | ||
dc7eb48e PA |
4838 | 2011-06-13 Pedro Alves <pedro@codesourcery.com> |
4839 | ||
4840 | * top.h (line): Rename to ... | |
4841 | (saved_command_line): ... this. | |
4842 | (linesize): Rename to ... | |
4843 | (saved_command_line_size): ... this. | |
4844 | * top.c (line): Rename to ... | |
4845 | (saved_command_line): ... this. | |
4846 | (linesize): Rename to ... | |
4847 | (saved_command_line_size): ... this. | |
4848 | (dont_repeat, command_line_input, dont_repeat_command): Adjust. | |
4849 | * event-top.c (command_line_handler): Adjust. | |
4850 | * main.c (captured_main): Adjust. | |
4851 | ||
0d6c2135 MK |
4852 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
4853 | ||
4854 | * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call | |
4855 | get_frame_func instead of get_frame_pc to determine the code | |
4856 | address used to construct the frame ID. | |
4857 | (i386_epilogue_frame_unwind_stop_reason): Fix coding style. | |
4858 | (i386_epilogue_frame_this_id): Likewise. | |
4859 | (i386_epilogue_frame_prev_register): New function. | |
4860 | (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register. | |
4861 | (i386_stack_tramp_frame_sniffer): Fix coding style. | |
4862 | (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register. | |
4863 | (i386_gdbarch_init): Fix comments. | |
4864 | ||
8bbdd3f4 MK |
4865 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
4866 | ||
4867 | * i386-tdep.c (i386_match_insn_block): Use length of the proper | |
4868 | instruction when walking back through the instruction stream. | |
4869 | ||
533a737e JK |
4870 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
4871 | ||
4872 | * symtab.c (output_partial_symbol_filename): Exchange the filename and | |
4873 | fullname parameters order. | |
4874 | ||
44b13c5a JK |
4875 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
4876 | ||
4877 | Code cleanup. | |
4878 | * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype | |
4879 | for fun. | |
4880 | * psymtab.c (map_symbol_filenames_psymtab) | |
4881 | (map_partial_symbol_filenames): Likewise. | |
4882 | * psymtab.h: Include symfile.h. | |
4883 | (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. | |
4884 | * symfile.h (symbol_filename_ftype): New. | |
4885 | (struct quick_symbol_functions): Use symbol_filename_ftype for fun of | |
4886 | map_symbol_filenames, clarify more the naming in comment. | |
4887 | ||
0b5574da DE |
4888 | 2011-06-07 Doug Evans <dje@google.com> |
4889 | ||
4890 | * cc-with-index.sh: Fix typos in comment. | |
b8e9bd6c | 4891 | Look for ../../gdb, for fullname.exp. |
0b5574da | 4892 | |
5be4dfca JK |
4893 | 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4894 | Pedro Alves <pedro@codesourcery.com> | |
4895 | ||
4896 | * cli/cli-cmds.c (shell_escape): Use waitpid. | |
4897 | * rs6000-nat.c (exec_one_dummy_insn): Likewise. | |
4898 | ||
316a8b21 TG |
4899 | 2011-06-07 Tristan Gingold <gingold@adacore.com> |
4900 | ||
4901 | * xcoffread.c (dwarf2_xcoff_names): New variable. | |
4902 | (aix_process_linenos): Add a guard. | |
4903 | (xcoff_symfile_finish): Free dwarf2. | |
4904 | (xcoff_initial_scan): Add dwarf2 support. | |
4905 | ||
3dd5b83d PA |
4906 | 2011-06-06 Pedro Alves <pedro@codesourcery.com> |
4907 | ||
4908 | * infcall.c (run_inferior_call): Don't mask async. Instead force | |
4909 | a synchronous wait, if the target can async. | |
4910 | ||
4911 | * target.h (struct target_ops): Delete to_async_mask. | |
4912 | (target_async_mask): Delete. | |
4913 | * target.c (update_current_target): Delete references to to_async_mask. | |
4914 | * linux-nat.c (linux_nat_async_mask_value): Delete. | |
4915 | (linux_nat_is_async_p, linux_nat_can_async_p): Remove references | |
4916 | to linux_nat_async_mask_value. | |
4917 | (linux_nat_async_mask): Delete. | |
4918 | (linux_nat_async, linux_nat_close): Remove references to | |
4919 | linux_nat_async_mask_value. | |
4920 | * record.c (record_async_mask_value): Delete. | |
4921 | (record_async): Remove references to record_async_mask_value. | |
4922 | (record_async_mask): Delete. | |
4923 | (record_can_async_p, record_is_async_p): Remove references to | |
4924 | record_async_mask_value. | |
4925 | (init_record_ops, init_record_core_ops): Remove references to | |
4926 | record_async_mask. | |
4927 | * remote.c (remote_async_mask_value): Delete. | |
4928 | (init_remote_ops): Remove reference to remote_async_mask. | |
4929 | (remote_can_async_p, remote_is_async_p): Remove references to | |
4930 | remote_async_mask_value. | |
4931 | (remote_async): Remove references to remote_async_mask_value. | |
4932 | (remote_async_mask): Delete. | |
4933 | ||
4934 | * infrun.c (fetch_inferior_event): Don't claim registers changed | |
4935 | if the current thread is already not executing. | |
4936 | ||
64b9b334 JB |
4937 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix) |
4938 | ||
4939 | From Stephen Kitt <steve@sk2.org> | |
4940 | * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c, | |
4941 | gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes. | |
4942 | ||
325663dc JB |
4943 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> |
4944 | ||
4945 | * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle | |
4946 | the case where ADDR_SIZE is different from TYPE_LENGTH (type). | |
4947 | ||
8cf64490 TT |
4948 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
4949 | ||
4950 | * python/py-inferior.c (python_inferior_exit): Use inferior's exit | |
4951 | code fields. | |
4952 | * python/py-exitedevent.c (create_exited_event_object): Change | |
4953 | type of 'exit_code'. Optionally add exit_code attribute. | |
4954 | (emit_exited_event): Change type of 'exit_code'. | |
4955 | * python/py-event.h (emit_exited_event): Update. | |
4956 | * mi/mi-interp.c (mi_inferior_exit): Print exit code. | |
4957 | * infrun.c (handle_inferior_event): Set exit code fields on | |
4958 | inferior. | |
4959 | * inferior.h (struct inferior) <has_exit_code, exit_code>: New | |
4960 | fields. | |
4961 | * inferior.c (exit_inferior_1): Initialize new fields. | |
4962 | ||
8ddd9a20 TT |
4963 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
4964 | ||
4965 | * dwarf2expr.c (get_signed_type): New function. | |
4966 | (execute_stack_op) <DW_OP_shra>: Always perform a signed shift. | |
4967 | ||
8dfd1e6d KS |
4968 | 2011-06-02 Keith Seitz <keiths@redhat.com> |
4969 | ||
4970 | * objc-lang.c (find_methods): Increment objfile_csym earlier. | |
4971 | ||
65fdb766 PA |
4972 | 2011-06-02 Pedro Alves <pedro@codesourcery.com> |
4973 | ||
4974 | * top.h (simplified_command_loop): Delete declaration. | |
4975 | ||
f4b8c29b MF |
4976 | 2011-06-01 Mike Frysinger <vapier@gentoo.org> |
4977 | ||
4978 | * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and | |
4979 | gdb_sysroot to the "len" variable. Append both to "arg_buf". | |
4980 | ||
1706c199 YQ |
4981 | 2011-06-01 Yao Qi <yao@codesourcery.com> |
4982 | ||
4983 | * objfiles.h (obj_section_addr): Update reference to objfile from | |
4984 | `abfd' to `obfd'. | |
4985 | (obj_section_endaddr): Likewise. | |
4986 | ||
d19cd713 | 4987 | 2011-06-01 Daniel Jacobowitz <drow@false.org> |
8d07004d DJ |
4988 | |
4989 | * MAINTAINERS: Update my email address and affiliation. Also | |
4990 | update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org. | |
4991 | ||
e8eb7bc5 KS |
4992 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
4993 | ||
4994 | PR c++/12750 | |
4995 | * linespec.c (get_search_block): New function. | |
4996 | (find_methods): Add FILE_SYMTATB parameter and use it and | |
4997 | get_search_block to pass an appropriate block to | |
4998 | lookup_symbol_in_namespace. | |
4999 | (decode_line_1): Record if *ARGPTR is single-quote enclosed. | |
5000 | Check if *ARGPTR starts with a filename first. | |
5001 | If it does, call locate_first_half again to locate the next | |
5002 | "first half" of the linespec. | |
5003 | Pass FILE_SYMTATB to decode_objc and decode_compound. | |
5004 | Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED. | |
5005 | (locate_first_half): Stop on the first colon seen. | |
5006 | (decode_compound): Add FILE_SYMTAB parameter. | |
5007 | Pass FILE_SYMTAB to lookup_prefix_sym and find_method. | |
5008 | (lookup_prefix_sym): Add FILE_SYMTAB parameter and use | |
5009 | get_search_block with lookup_symbol. | |
5010 | (find_method): Add FILE_SYMTAB parameter and pass it to | |
5011 | find_methods. | |
5012 | (decode_objc): Use get_search_block. | |
5013 | ||
2b1dbab0 KS |
5014 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
5015 | ||
5016 | PR symtab/12704 | |
5017 | * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. | |
5018 | (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR | |
5019 | and CP_ANONYMOUS_NAMESPACE_LEN. | |
5020 | (cp_is_anonymous): Likewise. | |
5021 | * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. | |
5022 | (CP_ANONYMOUS_NAMESPACE_LEN): Define. | |
5023 | * dwarf2read.c (namespace_name): Likewise. | |
5024 | (fixup_partial_die): Likewise. | |
5025 | * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is | |
5026 | seen in the input, keep it. | |
5027 | ||
6d549500 PA |
5028 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5029 | ||
5030 | * target.h (enum inferior_event_type): Delete INF_QUIT_REQ. | |
5031 | * inf-loop.h (inferior_event_handler_wrapper): Delete. | |
5032 | * inf-loop.c (inferior_event_handler_wrapper): Delete. | |
5033 | (inferior_event_handler): Don't handle INF_QUIT_REQ. | |
5034 | * remote.c (_initialize_remote): Register | |
5035 | async_remote_interrupt_twice directly as | |
5036 | sigint_remote_twice_token event. | |
5037 | ||
395bff70 PA |
5038 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5039 | ||
5040 | * target.h (enum inferior_event_type): Delete INF_ERROR. | |
5041 | * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR. | |
5042 | ||
97224164 PA |
5043 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5044 | ||
5045 | * interps.c (interp_set): Don't cancel continuations. | |
5046 | ||
07e78767 JK |
5047 | 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
5048 | ||
5049 | * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf. | |
5050 | ||
fa4cd53f PA |
5051 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5052 | ||
5053 | * continuations.h (continuation_ftype): Add `err' parameter. | |
5054 | Document parameters. | |
5055 | (do_all_continuations, do_all_continuations_thread) | |
5056 | (do_all_intermediate_continuations) | |
5057 | (do_all_intermediate_continuations_thread) | |
5058 | (do_all_inferior_continuations): Add `err' parameter. | |
5059 | * continuations.c (do_my_continuations_1, do_my_continuations) | |
5060 | (do_all_inferior_continuations, do_all_continuations_ptid) | |
5061 | (do_all_continuations_thread_callback) | |
5062 | (do_all_continuations_thread, do_all_continuations) | |
5063 | (do_all_intermediate_continuations_thread_callback) | |
5064 | (do_all_intermediate_continuations_thread) | |
5065 | (do_all_intermediate_continuations): Add `err' parameter, and pass | |
5066 | it down all the way to the continuations proper. | |
5067 | * inf-loop.c (inferior_event_handler): If fetching an inferior | |
5068 | event throws an error, don't pop the target, and still call the | |
5069 | continuations, but with `err' set. Adjust all other continuation | |
5070 | calls. | |
5071 | * breakpoint.c (until_break_command_continuation): Add `err' | |
5072 | parameter. | |
5073 | * infcmd.c (step_1_continuation): Add `err' parameter. Don't | |
5074 | issue another step if `err' is set. | |
5075 | (struct until_next_continuation_args): New. | |
5076 | (until_next_continuation): Add `err' parameter. Adjust. | |
5077 | (until_next_command): Adjust. | |
5078 | (struct finish_command_continuation_args): Add `thread' field. | |
5079 | (finish_command_continuation): Add `err' parameter. Handle it. | |
5080 | (finish_forward): Adjust. | |
5081 | (attach_command_continuation): Add `err' parameter. Handle it. | |
5082 | * infrun.c (infrun_thread_stop_requested_callback): Adjust to | |
5083 | cancel the continuations. | |
5084 | * interps.c (interp_set): Adjust to cancel the continuations. | |
5085 | * thread.c (clear_thread_inferior_resources): Adjust to cancel the | |
5086 | continuations rather than discarding. | |
5087 | (free_thread): Don't clear thread inferior resources here. | |
5088 | (delete_thread_1): Do it here instead. And do it before removing | |
5089 | the thread from the threads list. Tag the thread as exited before | |
5090 | clearing thread inferior resources. | |
5091 | ||
c2949be0 JB |
5092 | 2011-05-30 Joel Brobecker <brobecker@adacore.com> |
5093 | ||
5094 | * infcall.c (call_function_by_hand): Rephrase error message. | |
5095 | ||
619cebe8 PA |
5096 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
5097 | ||
5098 | * defs.h (struct thread_info, struct inferior): Delete forward | |
5099 | declarations. | |
5100 | * breakpoint.h (struct thread_info): New forward declaration. | |
5101 | * observer.sh (struct inferior): New forward declaration. | |
5102 | * python/python-internal.h (struct inferior): New forward | |
5103 | declaration. | |
5104 | ||
be34f849 PA |
5105 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
5106 | ||
5107 | * defs.h (struct continuation, continuation_ftype) | |
5108 | (continuation_free_arg_ftype, add_continuation) | |
5109 | (do_all_continuations, do_all_continuations_thread) | |
5110 | (discard_all_continuations, discard_all_continuations_thread) | |
5111 | (add_intermediate_continuation, do_all_intermediate_continuations) | |
5112 | (do_all_intermediate_continuations_thread) | |
5113 | (discard_all_intermediate_continuations) | |
5114 | (discard_all_intermediate_continuations_thread) | |
5115 | (add_inferior_continuation, do_all_inferior_continuations) | |
5116 | (discard_all_inferior_continuations): Move to ... | |
5117 | * continuations.h: ... this new file. | |
5118 | * breakpoint.c, continuations.c, event-top.c, inf-loop.c, | |
5119 | infcmd.c, inferior.c, infrun.c, interps.c: Include | |
5120 | continuations.h. | |
5121 | ||
432b4d03 JK |
5122 | 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
5123 | Doug Evans <dje@google.com> | |
5124 | ||
5125 | Fix PR 10970, PR 12702. | |
5126 | * linux-nat.c (linux_lwp_is_zombie): New function. | |
5127 | (wait_lwp): Initialize status. New variable prev_mask. Block signals. | |
5128 | Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend. | |
5129 | ||
b0f260d6 PA |
5130 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
5131 | ||
5132 | * defs.h (continuation_ftype, continuation_free_arg_ftype): New | |
5133 | typedefs. | |
5134 | (add_continuation, add_intermediate_continuation) | |
5135 | (add_inferior_continuation): Use them. | |
5136 | * continuations.c (struct continuation): Use them. | |
5137 | (make_continuation_ftype): Delete. | |
5138 | (make_continuation, add_inferior_continuation, add_continuation) | |
5139 | (add_intermediate_continuation): Use continuation_ftype and | |
5140 | continuation_free_arg_ftype. Rename parameters to shorter names. | |
5141 | ||
af1e9a32 PA |
5142 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
5143 | ||
5144 | * continuations.c (make_continuation): Make it return void. | |
5145 | (do_my_continuations): Rename to ... | |
5146 | (do_my_continuations_1): ... this. Remove old_chain parameter and | |
5147 | adjust. | |
5148 | (do_my_continuations): New. | |
5149 | (discard_my_continuations): Rename to ... | |
5150 | (discard_my_continuations_1): ... this. Remove old_chain | |
5151 | parameter and adjust. | |
5152 | (discard_my_continuations): New. | |
5153 | (add_inferior_continuation): Simplify. | |
5154 | (do_all_inferior_continuations): Reimplement on top | |
5155 | do_my_continuations. | |
5156 | (discard_all_inferior_continuations): Simplify. | |
5157 | (add_continuation): Simplify. | |
5158 | (do_all_continuations_ptid): Simplify. | |
5159 | (discard_all_continuations_thread_callback): Simplify. | |
5160 | (add_intermediate_continuation): Simplify. | |
5161 | (discard_all_intermediate_continuations_thread_callback): | |
5162 | Simplify. | |
5163 | ||
50c0c017 PA |
5164 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
5165 | ||
5166 | * utils.c (struct continuation, add_continuation) | |
5167 | (add_inferior_continuation) | |
5168 | (do_all_inferior_continuations, discard_all_inferior_continuations) | |
5169 | (restore_thread_cleanup, do_all_continuations_ptid) | |
5170 | (do_all_continuations_thread_callback) | |
5171 | (do_all_continuations_thread, do_all_continuations) | |
5172 | (discard_all_continuations_thread_callback) | |
5173 | (discard_all_continuations_thread, discard_all_continuations) | |
5174 | (add_intermediate_continuation) | |
5175 | (do_all_intermediate_continuations_thread_callback) | |
5176 | (do_all_intermediate_continuations_thread) | |
5177 | (do_all_intermediate_continuations) | |
5178 | (discard_all_intermediate_continuations_thread_callback) | |
5179 | (discard_all_intermediate_continuations_thread) | |
5180 | (discard_all_intermediate_continuations): Move to ... | |
5181 | * continuations.c: ... this new file, and adjust to no longer | |
5182 | implement continuations on top of cleanups. | |
5183 | * Makefile.in (SFILES): Add continuations.c. | |
5184 | (COMMON_OBS): Add continuations.o. | |
5185 | ||
d8b34453 PA |
5186 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5187 | ||
5188 | * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR. | |
5189 | * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR. | |
5190 | Internal error on invalid values. | |
5191 | * reverse.c: Don't handle EXEC_ERROR. | |
5192 | * mi/mi-main.c: Don't handle EXEC_ERROR. | |
5193 | ||
32231432 PA |
5194 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5195 | ||
5196 | * record.c: Include event-loop.h, inf-loop.h. | |
5197 | (record_beneath_to_async): New global. | |
5198 | (tmp_to_async): New global. | |
5199 | (record_async_inferior_event_token): New global. | |
5200 | (record_open_1): Don't error out if async is enabled. | |
5201 | (record_open): Handle to_async. Create an async event source in | |
5202 | the event loop. | |
5203 | (record_close): Delete the async event source. | |
5204 | (record_resumed): New global. | |
5205 | (record_execution_dir): New global. | |
5206 | (record_resume, record_core_resume): Set them. Register the | |
5207 | target on the event loop. | |
5208 | (record_wait): Rename to ... | |
5209 | (record_wait_1): ... this. Add more debug output. Handle | |
5210 | TARGET_WNOHANG, and the target beneath returning | |
5211 | TARGET_WAITKIND_IGNORE. | |
5212 | (record_wait): Reimplement on top of record_wait_1. | |
5213 | (record_async_mask_value): New global. | |
5214 | (record_async, record_async_mask, record_can_async_p) | |
5215 | (record_is_async_p, record_execution_direction): New functions. | |
5216 | (init_record_ops, init_record_core_ops): Install new methods. | |
5217 | * infrun.c (fetch_inferior_event): Temporarily switch the global | |
5218 | execution direction to the direction the target was going. | |
5219 | (execution_direction): Change type to int. | |
5220 | * target.c (default_execution_direction): New function. | |
5221 | (update_current_target): Inherit and de_fault | |
5222 | to_execution_direction. | |
5223 | * target.h (struct target_ops) <to_execution_direction>: New | |
5224 | field. | |
5225 | (target_execution_direction): New macro. | |
5226 | * inferior.h (execution_direction): Change type to int. | |
5227 | ||
949dc678 PA |
5228 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5229 | ||
5230 | * infcall.c (call_function_by_hand): Don't allow calling functions | |
5231 | in reverse execution mode. | |
5232 | ||
c13bd2b5 PA |
5233 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5234 | ||
5235 | * infcmd.c (finish_command): Allow async finish in reverse. | |
5236 | ||
6938fd34 YQ |
5237 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
5238 | ||
5239 | * gdb_thread_db.h: Delete. Move to ... | |
5240 | * common/gdb_thread_db.h: ... here. | |
5241 | ||
9da8c2a0 PA |
5242 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5243 | ||
5244 | * infcmd.c (finish_backward): Set a step-resume breakpoint at the | |
5245 | function's entry point instead of a manually managed momentary | |
5246 | breakpoint, and only ever issue one proceed call. | |
5247 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If | |
5248 | doing a reverse-finish, switch to stepi mode, to do another step. | |
5249 | (insert_step_resume_breakpoint_at_sal): Make public. | |
5250 | (normal_stop): No need to save function value return registers if | |
5251 | going reverse. | |
5252 | * inferior.h (insert_step_resume_breakpoint_at_sal): Declare. | |
5253 | ||
2c03e5be PA |
5254 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5255 | ||
5256 | * breakpoint.h (enum bptype) <bp_hp_step_resume>: New. | |
5257 | (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME | |
5258 | before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME | |
5259 | at the end. | |
5260 | * breakpoint.c (update_breakpoints_after_exec): Also delete hp | |
5261 | step-resume breakpoints. | |
5262 | (print_it_typical): Handle bp_hp_step_resume. | |
5263 | (bpstat_what): Ditto. | |
5264 | (bptype_string): Ditto. | |
5265 | (print_one_breakpoint_location): Ditto. | |
5266 | (allocate_bp_location): Ditto. | |
5267 | (mention): Ditto. | |
5268 | (breakpoint_re_set_one): Ditto. | |
5269 | * infrun.c (handle_inferior_event): Adjust. Split | |
5270 | BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and | |
5271 | BPSTAT_WHAT_HP_STEP_RESUME. | |
5272 | (insert_step_resume_breakpoint_at_sal): Rename to ... | |
5273 | (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype | |
5274 | parameter. Handle it. | |
5275 | (insert_step_resume_breakpoint_at_sal): Reimplement on top of | |
5276 | insert_step_resume_breakpoint_at_sal_1. | |
5277 | (insert_step_resume_breakpoint_at_frame): Rename to ... | |
5278 | (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to | |
5279 | set a high-priority step-resume breakpoint. | |
5280 | (insert_step_resume_breakpoint_at_frame): Adjust comment. | |
5281 | (insert_step_resume_breakpoint_at_caller): Ditto. | |
5282 | ||
51be5b68 PA |
5283 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5284 | ||
5285 | * breakpoint.c (iterate_over_related_breakpoints): New. | |
5286 | (do_map_delete_breakpoint): New. | |
5287 | (delete_command): Pass do_map_delete_breakpoint to | |
5288 | map_breakpoint_numbers. | |
5289 | (do_disable_breakpoint): New. | |
5290 | (do_map_disable_breakpoint): Iterate over the breakpoint's related | |
5291 | breakpoints. | |
5292 | (do_enable_breakpoint): Rename to ... | |
5293 | (enable_breakpoint_disp): ... this. | |
5294 | (enable_breakpoint): Adjust. | |
5295 | (do_enable_breakpoint): New. | |
5296 | (enable_once_breakpoint): Delete. | |
5297 | (do_map_enable_breakpoint): New. | |
5298 | (do_map_enable_once_breakpoint): New. | |
5299 | (enable_once_command, enable_delete_command) | |
5300 | (delete_trace_command): Iterate over the breakpoint's related | |
5301 | breakpoints. | |
5302 | ||
4a1be8d2 PA |
5303 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
5304 | ||
5305 | * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true | |
5306 | for ALPHA_ZERO_REGNUM. | |
5307 | (alpha_supply_int_regs): Explicitly supply zero as the value for | |
5308 | ALPHA_ZERO_REGNUM in the register cache. | |
5309 | * alpha-nat.c (fetch_osf_core_registers): Ditto. | |
5310 | ||
59d70315 YQ |
5311 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
5312 | ||
5313 | * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T. | |
5314 | ||
251d32d9 TG |
5315 | 2011-05-26 Tristan Gingold <gingold@adacore.com> |
5316 | ||
5317 | * symfile.h (struct dwarf2_section_names): New type. | |
5318 | (struct dwarf2_debug_sections): New type. | |
5319 | (dwarf2_has_info): Add parameter. | |
5320 | * dwarf2read.c (dwarf2_elf_names): New variable. | |
5321 | (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION) | |
5322 | (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION) | |
5323 | (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove. | |
5324 | (dwarf2_has_info): Add names parameter. Pass names | |
5325 | to dwarf2_locate_sections. | |
5326 | (section_is_p): Rewrite using the names parameter. | |
5327 | (dwarf2_locate_sections): Use section names from the names parameter. | |
5328 | * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info. | |
5329 | * elfread.c (read_psyms): Ditto. | |
5330 | * machoread.c (macho_symfile_read): Ditto. | |
5331 | ||
652c71b4 AS |
5332 | 2011-05-25 Andreas Schwab <schwab@redhat.com> |
5333 | ||
5334 | PR gdb/8677 | |
5335 | * event-loop.c (handle_file_event): Don't handle POLLHUP as error. | |
5336 | ||
f17170e5 KS |
5337 | 2011-05-24 Keith Seitz <keiths@redhat.com> |
5338 | ||
5339 | PR breakpoint/12803 | |
5340 | * linespec.c (keep_name_info): Add handling for "volatile" keyword. | |
5341 | (decode_compound): Unconditionally call keep_name_info. | |
5342 | ||
cdac0397 PA |
5343 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
5344 | ||
5345 | * breakpoint.c (watchpoint_check): If the watchpoint went out of | |
5346 | scope, clear its command list. | |
5347 | (map_breakpoint_numbers): Don't walk the related breakpoints list | |
5348 | of each breakpoint. | |
5349 | ||
91d4fe3f TT |
5350 | 2011-05-24 Tom Tromey <tromey@redhat.com> |
5351 | ||
5352 | * MAINTAINERS: Move Jim Blandy to past maintainers. | |
5353 | ||
3017a003 TG |
5354 | 2011-05-24 Tristan Gingold <gingold@adacore.com> |
5355 | ||
5356 | * symfile.h (enum dwarf2_section_enum): New type. | |
5357 | (dwarf2_get_section_info): New prototype. | |
5358 | * dwarf2read.c (dwarf2_get_section_info): Replace parameter | |
5359 | section_name by sect. Use a switch to select the info. | |
5360 | * dwarf2-frame.c (warf2_get_section_info): Remove prototype. | |
5361 | (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info. | |
5362 | ||
c91c8c16 PA |
5363 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
5364 | ||
5365 | * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting | |
5366 | shared library event breakpoint if there's no execution. | |
5367 | ||
77bc418a TJB |
5368 | 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5369 | ||
5370 | * breakpont.c (remove_hw_watchpoints): Remove unused function. | |
5371 | * breakpoint.h remove_hw_watchpoints(): Remove prototype. | |
5372 | ||
c50491a7 TT |
5373 | 2011-05-23 Tom Tromey <tromey@redhat.com> |
5374 | ||
5375 | * c-lang.c (evaluate_subexp_c): Use expect_type if it is not | |
5376 | NULL. | |
5377 | ||
6d64e6d4 DE |
5378 | 2011-05-23 Doug Evans <dje@google.com> |
5379 | ||
5380 | * python/lib/gdb/printing.py (register_pretty_printer): Add missing | |
5381 | entry for RuntimeError to doc string. | |
5382 | ||
2067c8d4 JG |
5383 | 2011-05-23 Jerome Guitton <guitton@adacore.com> |
5384 | ||
5385 | * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction | |
5386 | sequence for probing loops. | |
5387 | ||
b136cd05 PA |
5388 | 2011-05-23 Pedro Alves <pedro@codesourcery.com> |
5389 | ||
5390 | * infrun.c (user_visible_resume_ptid): Fix typos in describing | |
5391 | comment. | |
5392 | ||
22e74ef9 MK |
5393 | 2011-05-21 Mark Kettenis <kettenis@gnu.org> |
5394 | ||
5395 | * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply | |
5396 | zero as the value for %g0 in the register cache. | |
5397 | * sparc-tdep.c (sparc32_supply_gregset): Likewise. | |
5398 | * sparc64-tdep.c (sparc64_supply_gregset): Likewise. | |
5399 | ||
842951eb PA |
5400 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5401 | ||
5402 | * infrun.c (proceed): Set previous_inferior_ptid here. | |
5403 | (init_wait_for_inferior): Initialize previous_inferior_ptid from | |
5404 | inferior_ptid, not null_ptid. | |
5405 | (wait_for_inferior): Don't initialize previous_inferior_ptid here. | |
5406 | (fetch_inferior_event): Nor here. | |
5407 | ||
46cf51e6 PA |
5408 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5409 | ||
5410 | * inf-loop.c (inferior_event_handler): Only output a message if | |
5411 | verbose. | |
5412 | ||
29ef4c46 LM |
5413 | 2011-05-20 Luis Machado <lgustavo@codesourcery.com> |
5414 | ||
5415 | * MAINTAINERS: Update my e-mail address. | |
5416 | ||
f148b27e PA |
5417 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5418 | ||
5419 | * infrun.c (proceed): Switch the inferior event loop to | |
5420 | INF_EXEC_COMPLETE if the target refused to resume from a | |
5421 | vfork/fork. | |
5422 | ||
09cee04b PA |
5423 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5424 | ||
5425 | * infcmd.c: Include "inf-loop.h". | |
5426 | (step_once): When stepping into an inline subroutine, pretend the | |
5427 | target has run. If the target can async, switch the inferior | |
5428 | event loop to INF_EXEC_COMPLETE. | |
5429 | * inferior.h (user_visible_resume_ptid): Declare. | |
5430 | * infrun.c (user_visible_resume_ptid): New function, factored out | |
5431 | from `resume'. | |
5432 | (resume): Use it. | |
5433 | * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion | |
5434 | that the current thread is running. Merge async and sync | |
5435 | branches. | |
5436 | ||
751b8ce1 PA |
5437 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5438 | ||
5439 | * infcmd.c (step_1): Simplify synchronous case. | |
5440 | ||
e93a69ed PA |
5441 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5442 | ||
5443 | * tracepoint.c: Include exceptions.h. | |
5444 | (TFILE_PID): Move higher in file. | |
5445 | (tfile_open): Delay pushing the tfile target until we're assured | |
5446 | the tfile header is present in the file. Wrap reading the initial | |
5447 | newline-terminated lines in TRY_CATCH. Pop the target if the | |
5448 | initial setup failed. Add the tfile's thread immediately | |
5449 | aftwards, before any non-essential setup. Don't skip | |
5450 | post_create_inferior if there are no traceframes present in the | |
5451 | file. | |
5452 | (tfile_close): Remove redundant check for null before xfree call. | |
5453 | (tfile_thread_alive): New function. | |
5454 | (init_tfile_ops): Register it as to_thread_alive callback. | |
5455 | ||
6823e2b1 PA |
5456 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
5457 | ||
5458 | * tracepoint.c (tfile_open): Delete #if 0'd code. | |
5459 | ||
b3c8eb43 JK |
5460 | 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
5461 | ||
5462 | Fix -readnow for -gdwarf-4 unused type units. | |
5463 | * dwarf2read.c (struct signatured_type): Remove the field offset. | |
5464 | (create_signatured_type_table_from_index): Remove its initialization. | |
5465 | (create_debug_types_hash_table): Likewise. Initialize per_cu.offset | |
5466 | instead. Add a complaint call. | |
5467 | (process_psymtab_comp_unit): Change assignment to gdb_assert. | |
5468 | (process_type_comp_unit, lookup_die_type, dump_die_shallow) | |
5469 | (lookup_signatured_type_at_offset, read_signatured_type) | |
5470 | (write_one_signatured_type): Update the field for per_cu. | |
5471 | ||
310afc76 TT |
5472 | 2011-05-19 Tom Tromey <tromey@redhat.com> |
5473 | ||
5474 | * python/py-inferior.c (python_inferior_exit): Use | |
5475 | target_gdbarch. | |
5476 | (python_on_resume): Likewise. | |
5477 | ||
cf6c5ffb TT |
5478 | 2011-05-19 Matt Rice <ratmice@gmail.com> |
5479 | ||
5480 | * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. | |
5481 | ||
fb80a3c5 HZ |
5482 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
5483 | ||
5484 | * tracepoint.c (tfile_trace_find): Return directly when num is -1. | |
5485 | ||
3672b1be HZ |
5486 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
5487 | ||
5488 | * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved. | |
5489 | ||
ff355380 TT |
5490 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
5491 | ||
5492 | * dwarf2read.c (dwarf2_add_field): Constify. | |
5493 | * value.c (value_static_field): Constify. | |
5494 | * gdbtypes.h (struct main_type) <field.field_location.physname>: | |
5495 | Now const. | |
5496 | * ax-gdb.c (gen_static_field): Constify | |
5497 | ||
ed731959 JK |
5498 | 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
5499 | ||
5500 | * linux-nat.c (kill_callback): Use SIGKILL first. | |
5501 | ||
967cff16 JB |
5502 | 2011-05-18 Joel Brobecker <brobecker@adacore.com> |
5503 | ||
5504 | * ada-lang.c (print_it_exception): Avoid use of sprintf. | |
5505 | ||
1d06ead6 TT |
5506 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
5507 | ||
5508 | * value.c (value_fn_field): Constify. | |
5509 | * symtab.c (gdb_mangle_name): Constify. | |
5510 | * stabsread.c (update_method_name_from_physname): Make 'physname' | |
5511 | argument const. | |
5512 | * p-typeprint.c (pascal_type_print_method_args): Make arguments | |
5513 | const. Use explicit fputc_filtered loop. | |
5514 | (pascal_type_print_base): Constify. | |
5515 | * p-lang.h (pascal_type_print_method_args): Update. | |
5516 | * linespec.c (add_matching_methods): Constify. | |
5517 | (add_constructors): Likewise. | |
5518 | * jv-typeprint.c (java_type_print_base): Constify. | |
5519 | * gdbtypes.h (struct cplus_struct_type) | |
5520 | <fn_fieldlist.fn_field.physname>: Now const. | |
5521 | * dwarf2read.c (compute_delayed_physnames): Constify. | |
5522 | (dwarf2_add_member_fn): Likewise. | |
5523 | * c-typeprint.c (c_type_print_base): Constify. Use cleanups. | |
5524 | ||
0d9a9a5f PA |
5525 | 2011-05-18 Pedro Alves <pedro@codesourcery.com> |
5526 | ||
5527 | * infrun.c (resume): Mention which is the current thread, and its | |
5528 | current PC in debug output. | |
5529 | (prepare_to_proceed): Mention the thread switching in debug | |
5530 | output. | |
5531 | ||
05386e9e TT |
5532 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
5533 | ||
5534 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute | |
5535 | path check. Use xmalloc and cleanups. | |
5536 | (try_thread_db_load_from_dir): Use xmalloc and cleanups. | |
5537 | ||
ee86786c TT |
5538 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
5539 | ||
5540 | * cp-valprint.c (cp_print_value_fields): Catch errors from | |
5541 | value_static_field. | |
5542 | ||
9ff3b74f TT |
5543 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
5544 | ||
5545 | * dwarf2read.c (dwarf2_get_die_type): Call | |
5546 | get_die_type_at_offset. | |
5547 | * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from | |
5548 | get_base_type function. | |
5549 | ||
cd3da28e PA |
5550 | 2011-05-17 Tomas Martinec <fyzmat@gmail.com> |
5551 | ||
5552 | * infrun.c (handle_inferior_event) <handling deferred step>: Clear | |
5553 | trap_expected. | |
5554 | ||
fd20d931 DE |
5555 | 2011-05-16 Doug Evans <dje@google.com> |
5556 | ||
5557 | * python/py-auto-load.c (source_section_scripts): Mention objfile | |
5558 | name in warning. | |
5559 | ||
75fc9810 DE |
5560 | 2011-05-15 Doug Evans <dje@google.com> |
5561 | ||
290351b8 DE |
5562 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. |
5563 | (try_thread_db_load_from_pdir): Call it. If unable to find | |
5564 | libthread_db in directory of libpthread, see if we're looking at | |
5565 | the separate-debug-info copy. | |
5566 | ||
75fc9810 DE |
5567 | * python/py-autoload.c (print_script): Print "Missing" instead of |
5568 | "No" for missing scripts. | |
5569 | (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". | |
5570 | ||
9f7bc587 DE |
5571 | 2011-05-13 Doug Evans <dje@google.com> |
5572 | ||
5573 | * ui-file.c (stdio_file_write_async_safe): Add comment. | |
5574 | ||
093cee7d HZ |
5575 | 2011-05-14 Hui Zhu <teawater@gmail.com> |
5576 | ||
5577 | * ui-file.c (stdio_file_write_async_safe): Add empty check for build. | |
5578 | ||
dbaefcf7 DE |
5579 | 2011-05-13 Doug Evans <dje@google.com> |
5580 | ||
98a5dd13 DE |
5581 | Support $pdir and $sdir in libthread-db-search-path. |
5582 | * NEWS: Mention $sdir,$pdir. | |
5583 | * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir. | |
5584 | * linux-thread-db.c (try_thread_db_load_from_pdir): New function. | |
5585 | (try_thread_db_load_from_sdir): New function. | |
5586 | (try_thread_db_load_from_dir): New function. | |
5587 | (thread_db_load_search): Handle $pdir, $sdir. Remove trying of | |
5588 | system directories if search of libthread-db-search-path fails, | |
5589 | that is now done via $sdir. | |
5590 | (has_libpthread): New function. | |
5591 | (thread_db_load): Remove search for libthread_db in directory of | |
5592 | libpthread, that is now done via $pdir. | |
5593 | ||
dbaefcf7 DE |
5594 | * NEWS: Mention "info auto-load-scripts". |
5595 | * python/py-auto-load.c (struct auto_load_pspace_info): New member | |
5596 | script_not_found_warning_printed. | |
5597 | (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash, | |
5598 | all callers updated. Initialize script_not_found_warning_printed. | |
5599 | (get_auto_load_pspace_data_for_loading): New function. | |
5600 | (maybe_add_script): New function. | |
5601 | (source_section_scripts): Simplify. Only print one warning regardless | |
5602 | of the number of auto-load scripts not found. | |
5603 | (clear_section_scripts): Clear script_not_found_warning_printed. | |
5604 | (auto_load_objfile_script): Record script in hash table. | |
5605 | (count_matching_scripts): New function. | |
5606 | (maybe_print_script): Renamed from maybe_print_section_script, all | |
5607 | callers updated. Rewrite to use ui_out_*. | |
5608 | (info_auto_load_scripts): Renamed from | |
5609 | maintenance_print_section_scripts, all callers updated. | |
5610 | (gdbpy_initialize_auto_load): "maintenance print section-scripts" | |
5611 | renamed as "info auto-load-scripts". | |
5612 | ||
9930639c TT |
5613 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
5614 | ||
5615 | * dwarf2expr.c (read_uleb128): Cast intermediate result. | |
5616 | (read_sleb128): Likewise. | |
5617 | ||
06826322 TT |
5618 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
5619 | ||
5620 | * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction | |
5621 | offset display. | |
5622 | ||
01124a23 DE |
5623 | 2011-05-13 Doug Evans <dje@google.com> |
5624 | ||
5625 | * linux-nat.c (debug_linux_nat_async): Delete. | |
5626 | Replace all references to use debug_linux_nat instead. | |
5627 | (show_debug_linux_nat_async): Delete. | |
5628 | (sigchld_handler): Call ui_file_write_async_safe instead of | |
5629 | fprintf_unfiltered. | |
5630 | (_initialize_linux_nat): Remove `set debug lin-lwp-async'. | |
5631 | * ui-file.c (struct ui_file): New member to_write_async_safe. | |
5632 | (null_file_write_async_safe): New function. | |
5633 | (ui_file_write_async_safe): New function. | |
5634 | (set_ui_file_write_async_safe): New function. | |
5635 | (ui_file_new): Initialize to_write_async_safe. | |
5636 | (stdio_file_write_async_safe): New function. | |
5637 | (struct stdio_file): New member fd. | |
5638 | (stdio_file_new): Initialize to_write_async_safe, fd. | |
bbfac39e DE |
5639 | (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling |
5640 | fileno. | |
01124a23 DE |
5641 | * ui-file.h (ui_file_write_async_safe_ftype): New typedef. |
5642 | (set_ui_file_write_async_safe): Declare. | |
5643 | (ui_file_write_async_safe): Declare. | |
5644 | ||
72fc29ff TT |
5645 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
5646 | ||
5647 | * utils.c (do_value_free): New function. | |
5648 | (make_cleanup_value_free): Likewise. | |
5649 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value | |
5650 | freeing correctly. | |
5651 | (dwarf2_loc_desc_needs_frame): Call | |
5652 | make_cleanup_value_free_to_mark. | |
5653 | * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field. | |
5654 | * dwarf2expr.c (free_dwarf_expr_context): Don't call | |
5655 | value_free_to_mark. | |
5656 | (new_dwarf_expr_context): Don't call value_mark. | |
5657 | * dwarf2-frame.c (execute_stack_op): Call | |
5658 | make_cleanup_value_free_to_mark. | |
5659 | * defs.h (make_cleanup_value_free): Declare. | |
5660 | ||
028d0ed5 TJB |
5661 | 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5662 | ||
5663 | * mi/mi-main.c (mi_cmd_execute): Use cleanup from | |
5664 | prepare_execute_command. | |
5665 | * top.c (prepare_execute_command): Return cleanup. | |
5666 | (execute_command): Use cleanup from prepare_execute_command. | |
5667 | * top.h (prepare_execute_command): Change prototype to return | |
5668 | cleanup. | |
5669 | * defs.h (struct value): Add opaque declaration. | |
5670 | (make_cleanup_value_free_to_mark): Add prototype. | |
5671 | * utils.c (do_value_free_to_mark): New function. | |
5672 | (make_cleanup_value_free_to_mark): Likewise. | |
5673 | ||
b087e0ed TT |
5674 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
5675 | ||
5676 | * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally | |
5677 | cast left-hand-side to unsigned. | |
5678 | ||
8a9b8146 TT |
5679 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
5680 | ||
5681 | PR gdb/12617: | |
5682 | * value.h (value_from_contents): Declare. | |
5683 | * value.c (value_from_contents): New function. | |
5684 | * dwarf2read.c (dwarf_stack_op_name): Add new values. | |
5685 | (dwarf2_get_die_type): New function. | |
5686 | * dwarf2loc.c (dwarf_expr_get_base_type): New function. | |
5687 | (allocate_piece_closure): Acquire reference to values. | |
5688 | (read_pieced_value): Update for value-based expressions. | |
5689 | (write_pieced_value): Likewise. | |
5690 | (free_pieced_value_closure): Call value_free as needed. | |
5691 | (dwarf2_evaluate_loc_desc_full): Set get_base_type field. | |
5692 | Update for value-based expressions. | |
5693 | * dwarf2loc.h (dwarf2_get_die_type): Declare. | |
5694 | * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type. | |
5695 | <get_base_type>: New field. | |
5696 | (struct dwarf_expr_piece) <v.value>: Change type. | |
5697 | <v.regno>: New field. | |
5698 | (struct dwarf_expr_context) <mark>: New field. | |
5699 | (dwarf_expr_piece, dwarf_expr_fetch): Update. | |
5700 | (dwarf_expr_pop, dwarf_expr_push): Remove. | |
5701 | (dwarf_expr_push_address): Declare. | |
5702 | * dwarf2expr.c (dwarf_arch_cookie): New global. | |
5703 | (struct dwarf_gdbarch_types): New. | |
5704 | (dwarf_gdbarch_types_init, dwarf_expr_address_type): New | |
5705 | functions. | |
5706 | (dwarf_expr_push): Change type of 'value' argument. Update. Now | |
5707 | static. | |
5708 | (dwarf_expr_push_address): New function. | |
5709 | (dwarf_expr_pop): Now static. | |
5710 | (dwarf_expr_fetch): Change return type. | |
5711 | (dwarf_require_integral): New function. | |
5712 | (dwarf_expr_fetch): Simplify. | |
5713 | (add_piece): Update. | |
5714 | (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New | |
5715 | functions. | |
5716 | (execute_stack_op) <sign_ext>: Remove. | |
5717 | Use values for DWARF stack. | |
5718 | <DW_OP_GNU_const_type, DW_OP_GNU_deref_type, | |
5719 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
5720 | New cases. | |
5721 | (_initialize_dwarf2expr): New function. | |
5722 | (add_piece): Update. | |
5723 | (new_dwarf_expr_context): Set new field. | |
5724 | (free_dwarf_expr_context): Call value_free_to_mark. | |
5725 | * dwarf2-frame.c (no_base_type): New function. | |
5726 | (execute_stack_op): Set get_base_type field. Update. | |
5727 | ||
e8d28ef4 TT |
5728 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
5729 | ||
5730 | * dwarf2read.c (read_common_block): Fix formatting. | |
5731 | ||
d248b706 KY |
5732 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
5733 | ||
5734 | * breakpoint.c (disable_breakpoint): Disable all locations | |
5735 | associated with a tracepoint on target if a trace experiment is | |
5736 | running. | |
5737 | (disable_command): Disable a specific tracepoint location on target if | |
5738 | a trace experiment is running. | |
5739 | (do_enable_breakpoint): Enable all locations associated with a | |
5740 | tracepoint on target if a trace experiment is running. | |
5741 | (enable_command) Enable a specific tracepoint location on target if a | |
5742 | trace experiment is running. | |
5743 | * target.c (update_current_target): Add INHERIT and de_fault clauses for | |
5744 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
5745 | to_disable_tracepoint. | |
5746 | * target.h: Add declaration of struct bp_location. | |
5747 | (struct target_ops): Add new functions | |
5748 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
5749 | to_disable_tracepoint to target operations. | |
5750 | (target_supports_enable_disable_tracepoint): New macro. | |
5751 | (target_enable_tracepoint): New macro. | |
5752 | (target_disable_tracepoint): New macro. | |
5753 | * remote.c (struct remote_state): Add new field. | |
5754 | (remote_enable_disable_tracepoint_feature): New. | |
5755 | (remote_protocol_features): Add new entry. | |
5756 | (remote_supports_enable_disable_tracepoint): New. | |
5757 | (remote_enable_tracepoint): New. | |
5758 | (remote_disable_tracepoint): New. | |
5759 | (init_remote_ops): Add remote_enable_tracepoint, | |
5760 | remote_disable_tracepoint and remote_supports_enable_disable_tracepoint | |
5761 | to remote operations. | |
5762 | * tracepoint.c (start_tracing): Allow tracing to start without any | |
5763 | tracepoints enabled with just a warning if they can be re-enabled | |
5764 | later. | |
5765 | * NEWS: Add news item for the new behaviour of the enable and disable | |
5766 | GDB commands when applied to tracepoints. | |
5767 | Add news items for the new remote packets QTEnable and QTDisable. | |
5768 | ||
cc88a640 JK |
5769 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
5770 | ||
5771 | * config.in: Regenerate. | |
5772 | * configure: Regenerate. | |
5773 | * configure.ac <--with-system-readline> (for readline_echoing_p): | |
5774 | Remove the test. | |
5775 | * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... | |
5776 | (tui_old_rl_echoing_p): ... here. | |
5777 | (tui_setup_io): Rename extern declaration readline_echoing_p to | |
5778 | _rl_echoing_p. Adjust assignments for the both renames. | |
5779 | ||
1f84b619 TJB |
5780 | 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5781 | ||
5782 | * symtab.c (lookup_symtab): Run cleanup before returning. | |
5783 | ||
74ac6d43 TT |
5784 | 2011-05-11 Tom Tromey <tromey@redhat.com> |
5785 | ||
5786 | * dwarf2read.c (handle_data_member_location): New function. | |
5787 | (dwarf2_add_field): Use it. | |
5788 | (read_common_block): Likewise. | |
5789 | ||
5488dafb JK |
5790 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
5791 | ||
5792 | Make addrs->SECTINDEX always defined. | |
5793 | * symfile.c (relative_addr_info_to_section_offsets): Check for | |
5794 | SECTINDEX -1, not for zero ADDR. | |
5795 | (addrs_section_compar): Remove checking for invalid SECTINDEX. | |
5796 | (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries. | |
5797 | * symfile.h (struct section_addr_info) <sectindex>: Update the comment | |
5798 | on its validity. | |
5799 | ||
84e578fb DE |
5800 | 2011-05-10 Doug Evans <dje@google.com> |
5801 | ||
2471d008 DE |
5802 | * linux-thread-db.c: Whitespace cleanup. |
5803 | (try_thread_db_load_1): Fix comment. | |
5804 | ||
84e578fb DE |
5805 | * linux-thread-db.c (set_libthread_db_search_path): New function. |
5806 | (_initialize_thread_db): Add setter for libthread-db-search-path. | |
5807 | ||
673c2bbe DE |
5808 | 2011-05-09 Doug Evans <dje@google.com> |
5809 | ||
478aac75 DE |
5810 | * NEWS: Mention --with-iconv-bin. |
5811 | * configure.ac: New option --with-iconv-bin. | |
5812 | * configure: Regenerate. | |
5813 | * config.in: Regenerate. | |
5814 | * defs.h (relocate_gdb_directory): Declare. | |
5815 | * main.c (relocate_gdb_directory): Renamed from relocate_directory, | |
5816 | removed progname parameter, and exported. All callers updated. | |
5817 | * charset.c (find_charset_names): Use --with-iconv-bin if specified. | |
5818 | ||
673c2bbe DE |
5819 | * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, |
5820 | adding missing call to restore_child_signals_mask. | |
5821 | ||
e4c8541f PA |
5822 | 2011-05-09 Pedro Alves <pedro@codesourcery.com> |
5823 | ||
5824 | * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' | |
5825 | parameter. | |
5826 | * infrun.c (proceed, start_remote): Adjust. | |
5827 | (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter, | |
5828 | and adjust to not handle it. | |
5829 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
5830 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
5831 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
5832 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
5833 | * windows-nat.c (do_initial_windows_stuff): Adjust. | |
5834 | * infcmd.c (attach_command): Adjust. | |
5835 | (notice_new_inferior): Adjust. | |
5836 | ||
a536c6d7 UW |
5837 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
5838 | ||
5839 | * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. | |
5840 | (ppu2spu_unwind_register): Mark pseudo registers unavailable. | |
5841 | * spu-tdep.c (op_selb): Use correct value. | |
5842 | ||
7845b013 UW |
5843 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
5844 | ||
5845 | * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL | |
5846 | "parent" parameter to symbol_file_add_from_bfd call. | |
5847 | ||
9c06b0b4 TJB |
5848 | 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
5849 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5850 | ||
5851 | Implement support for PowerPC BookE masked watchpoints. | |
5852 | * NEWS: Mention masked watchpoint support. Create "Changed commands" | |
5853 | section. | |
5854 | * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New | |
5855 | method. Initialize to NULL in all existing breakpoint_ops instances. | |
5856 | (struct breakpoint) <hw_wp_mask>: New field. | |
5857 | * breakpoint.c (is_masked_watchpoint): Add prototype. | |
5858 | (update_watchpoint): Don't set b->val for masked watchpoints. Call | |
5859 | breakpoint's breakpoint_ops.works_in_software_mode if available. | |
5860 | (watchpoints_triggered): Handle the case of a hardware masked | |
5861 | watchpoint trigger. | |
5862 | (watchpoint_check): Likewise. | |
5863 | (works_in_software_mode_watchpoint): New function. | |
5864 | (insert_masked_watchpoint, remove_masked_watchpoint) | |
5865 | (resources_needed_masked_watchpoint) | |
5866 | (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint) | |
5867 | (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint) | |
5868 | (print_recreate_masked_watchpoint, is_masked_watchpoint): New | |
5869 | functions. | |
5870 | (masked_watchpoint_breakpoint_ops): New structure. | |
5871 | (watch_command_1): Check for the existence of the `mask' parameter. | |
5872 | Set b->ops according to the type of hardware watchpoint being created. | |
5873 | * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint) | |
5874 | (ppc_linux_remove_mask_watchpoint) | |
5875 | (ppc_linux_masked_watch_num_registers): New functions. | |
5876 | (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint, | |
5877 | to_remove_mask_watchpoint and to_masked_watch_num_registers. | |
5878 | * target.c (update_current_target): Mention to_insert_mask_watchpoint, | |
5879 | to_remove_mask_watchpoint, and to_masked_watch_num_registers. | |
5880 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
5881 | (target_masked_watch_num_registers): New functions. | |
5882 | * target.h (struct target_ops) <to_insert_mask_watchpoint>, | |
5883 | <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New | |
5884 | methods. | |
5885 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
5886 | (target_masked_watch_num_registers): Add prototypes. | |
5887 | ||
8be455d7 JK |
5888 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
5889 | ||
5890 | PR 12573 | |
5891 | * dwarf2read.c (struct dwarf2_cu): New field has_loclist. | |
5892 | (producer_is_gcc_ge_4_0): New function. | |
5893 | (process_full_comp_unit): Set also symtab->locations_valid. Move the | |
5894 | symtab->language code. | |
5895 | (var_decode_location): Set cu->has_loclist. | |
5896 | * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and | |
5897 | skip. Intialize force_skip from locations_valid. Move the prologue | |
5898 | skipping code into two passes. | |
5899 | * symtab.h (struct symtab): Make the primary field a bitfield. New | |
5900 | field locations_valid. | |
5901 | ||
d8228535 JK |
5902 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
5903 | ||
5904 | * c-exp.y (qualified_name): Call destructor_name_p with $1.type. | |
5905 | (classify_inner_name): Call cp_lookup_nested_type with | |
5906 | yylval.tsym.type. | |
5907 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
5908 | saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call | |
5909 | type_name_no_tag_or_error with saved_parent_type. | |
5910 | * dwarf2read.c (load_partial_dies): Read in any children of | |
5911 | DW_TAG_typedef with complaint in such case. | |
5912 | * gdbtypes.c (type_name_no_tag_or_error): New function. | |
5913 | * gdbtypes.h (type_name_no_tag_or_error): New prototype. | |
5914 | * valops.c (destructor_name_p): New comment for parameter type. Remove | |
5915 | type const. Make dname and cp const. Call type_name_no_tag_or_error. | |
5916 | * value.h (destructor_name_p): Remove type const. | |
5917 | ||
1976171a JK |
5918 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
5919 | ||
5920 | * symtab.c (compare_symbol_name): New function. | |
5921 | (completion_list_add_name, expand_partial_symbol_name): Call it, | |
5922 | remove the variable ncmp. | |
5923 | (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN, | |
5924 | gdb_assert it. | |
5925 | ||
a9634178 TJB |
5926 | 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5927 | ||
5928 | Demote to sw watchpoint only in update_watchpoint. | |
5929 | * breakpoint.c (update_watchpoint): Change between software and | |
5930 | hardware watchpoint for all kinds of watchpoints, not just | |
5931 | read/write ones. Determine b->exact value here instead of | |
5932 | in watch_command_1. Error out if there are not enough resources | |
5933 | for a read or access hardware watchpoint. | |
5934 | (watch_command_1): Remove logic of checking whether there are | |
5935 | enough resources available, since update_watchpoint will do that | |
5936 | work now. Don't set b->exact here. Catch exceptions thrown by | |
5937 | update_watchpoint and delete the watchpoint. | |
5938 | (can_use_hardware_watchpoint): Remove exact_watchpoints argument. | |
5939 | Use target_exact_watchpoints instead. | |
5940 | (delete_breakpoint): Notify observers only if deleted watchpoint | |
5941 | has a breakpoint number assigned to it. | |
5942 | ||
4c67c798 JJ |
5943 | 2011-05-05 Janis Johnson <janisjo@codesourcery.com> |
5944 | ||
5945 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
5946 | ||
a3fcb948 JG |
5947 | 2011-05-05 Jerome Guitton <guitton@adacore.com> |
5948 | ||
5949 | * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): | |
5950 | New functions. | |
5951 | (i386_stack_tramp_frame_unwind): New static global. | |
5952 | (i386_match_pattern): New function, extracted from i386_match_insn. | |
5953 | (i386_match_insn): Use i386_match_pattern. | |
5954 | (i386_match_insn_block): New function. | |
5955 | (i386_tramp_chain_in_reg_insns) | |
5956 | (i386_tramp_chain_on_stack_insns): New static variables. | |
5957 | (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list | |
5958 | of unwinders. | |
5959 | ||
4d393d60 JM |
5960 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
5961 | ||
5962 | * configure.host (xscale*): Don't handle target. | |
5963 | * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't | |
5964 | handle targets. | |
5965 | ||
f70bd40b YQ |
5966 | 2011-05-04 Yao Qi <yao@codesourcery.com> |
5967 | ||
5968 | * gdb_wait.h: remove WAITTYPE and WCOREDUMP. | |
5969 | ||
dd3295ee JB |
5970 | 2011-05-03 Joel Brobecker <brobecker@adacore.com> |
5971 | ||
5972 | Revert: | |
5973 | | 2011-03-07 Michael Snyder <msnyder@vmware.com> | |
5974 | | * elfread.c (elf_symtab_read): Stop memory leak. | |
5975 | ||
90375a0e PM |
5976 | 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
5977 | ||
5978 | * nto-tdep.c (nto_target): Replace deprecated call to | |
5979 | cygwin_conv_to_posix_path functions by cygwin_conv_path calls. | |
5980 | ||
d07205c2 JK |
5981 | 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
5982 | ||
5983 | Fix false GCC warning. | |
5984 | * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. | |
5985 | ||
1e718ff1 TJB |
5986 | 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5987 | ||
5988 | * breakpoint.c (update_watchpoint): Move code to change | |
5989 | the enable state of breakpoint from here ... | |
5990 | (do_enable_breakpoint): ... to here. | |
5991 | ||
35bef4fd TT |
5992 | 2011-04-26 Andrew Gontarek <andrewg@cray.com> |
5993 | ||
78290264 PP |
5994 | * valprint.c (val_print_array_elements): Fixed poor performance |
5995 | of printing very large arrays with repeat_count_threshold set | |
5996 | to unlimited. New comment. | |
35bef4fd | 5997 | |
38a714bb TT |
5998 | 2011-04-29 Tom Tromey <tromey@redhat.com> |
5999 | ||
6000 | * mi/mi-parse.c (mi_parse): Remove incorrect sizeof. | |
6001 | (mi_parse): Likewise. | |
6002 | * breakpoint.c (break_range_command): Use sizeof char*, not | |
6003 | char**. | |
6004 | (create_breakpoint): Likewise. | |
6005 | (parse_breakpoint_sals): Likewise. | |
6006 | ||
eb73ad13 PA |
6007 | 2011-04-29 Pedro Alves <pedro@codesourcery.com> |
6008 | ||
6009 | * linux-nat.c (linux_child_remove_fork_catchpoint) | |
6010 | (linux_child_remove_vfork_catchpoint) | |
6011 | (linux_child_remove_exec_catchpoint): New functions. | |
6012 | (linux_target_install_ops): Install them. | |
6013 | ||
d65aec65 PM |
6014 | 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> |
6015 | ||
6016 | PR mi/12531 | |
6017 | ||
6018 | * varobj.c (install_default_visualizer): Do not install a | |
6019 | visualizer if the varobj is CPLUS_FAKE_CHILD. | |
6020 | (construct_visualizer): Likewise. | |
6021 | ||
165195f4 JK |
6022 | 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
6023 | ||
6024 | * symtab.c (expand_partial_symbol_name): New variable NCMP. Support | |
6025 | case insensitive comparison. | |
6026 | ||
30852783 UW |
6027 | 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org> |
6028 | ||
6029 | * infrun.c (proceed): Revert previous change. | |
6030 | (resume): Instead, handle the case of signal delivery while stepping | |
6031 | off a breakpoint location here, and only if software single-stepping | |
6032 | is used. Handle nested signals. | |
6033 | ||
7ff120b4 YQ |
6034 | 2011-04-28 Yao Qi <yao@codesourcery.com> |
6035 | ||
6036 | * arm-tdep.c (copy_unmodified): Rename to ... | |
6037 | (arm_copy_unmodified): .. this. New. | |
6038 | (copy_preload): Move common part to ... | |
6039 | (install_preload): .. this. New. | |
6040 | (arm_copy_preload): New. | |
6041 | (copy_preload_reg): Move common part to ... | |
6042 | (install_preload_reg): ... this. New. | |
6043 | (arm_copy_preload_reg): New. | |
6044 | (copy_b_bl_blx): Move common part to ... | |
6045 | (install_b_bl_blx): .. this. New. | |
6046 | (arm_copy_b_bl_blx): New. | |
6047 | (copy_bx_blx_reg): Move common part to ... | |
6048 | (install_bx_blx_reg): ... this. New. | |
6049 | (arm_copy_bx_blx_reg): New. | |
6050 | (copy_alu_reg): Move common part to ... | |
6051 | (install_alu_reg): ... this. New. | |
6052 | (arm_copy_alu_reg): New. | |
6053 | (copy_alu_shifted_reg): Move common part to ... | |
6054 | (install_alu_shifted_reg): ... this. New. | |
6055 | (copy_ldr_str_ldrb_strb): Move common part to ... | |
6056 | (install_ldr_str_ldrb_strb): ... this. New. | |
6057 | (arm_copy_ldr_str_ldrb_strb): New. | |
6058 | (copy_copro_load_store): Move some common part to ... | |
6059 | (install_copy_copro_load_store): ... this. New. | |
6060 | (arm_copy_copro_load_store): New. | |
6061 | (copy_svc): Delete. | |
6062 | (arm_copy_svc): Renamed from copy_svc. | |
6063 | (copy_undef): Delete. | |
6064 | (arm_copy_undef): Renamed from copy_undef. | |
6065 | (decode_ext_reg_ld_st): Delete. | |
6066 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
6067 | (decode_svc_copro): Delete. | |
6068 | (arm_decode_svc_copro): Renamed from decode_svc_copro. | |
6069 | (copy_copro_load_store, copy_alu_imm): update callers. | |
6070 | (copy_extra_ld_st, copy_block_xfer): Likewise. | |
6071 | (decode_misc_memhint_neon, decode_unconditional): Likewise. | |
6072 | (decode_miscellaneous, decode_dp_misc): Likewise. | |
6073 | (decode_ld_st_word_ubyte, decode_media): Likewise. | |
6074 | (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. | |
6075 | (decode_svc_copro, decode_misc_memhint_neon): Likewise. | |
6076 | (decode_unconditional, decode_miscellaneous): Likewise. | |
6077 | (decode_media, decode_b_bl_ldmstm): Likewise. | |
6078 | (arm_process_displaced_insn): Likewise.. | |
6079 | (decode_misc_memhint_neon): Delete. | |
6080 | (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. | |
6081 | (decode_miscellaneous): Delete. | |
6082 | (arm_decode_miscellaneous): Renamed from decode_miscellaneous. | |
6083 | (decode_dp_misc): Delete. | |
6084 | (arm_decode_dp_misc): Renamed from decode_dp_misc. | |
6085 | (decode_ld_st_word_ubyte): Delete. | |
6086 | (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. | |
6087 | (decode_media): Delete. | |
6088 | (arm_decode_media): Renamed from decode_media. | |
6089 | (decode_b_bl_ldmstm): Delete. | |
6090 | (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. | |
6091 | (decode_ext_reg_ld_st): Delete. | |
6092 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
6093 | (decode_unconditional): Delete. | |
6094 | (arm_decode_unconditional): Renamed from decode_unconditional. | |
6095 | ||
559a7a62 JK |
6096 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
6097 | ||
6098 | Case insensitive lookups implementation. | |
6099 | * dwarf2read.c: Include ctype.h. | |
6100 | (struct mapped_index): New field version. | |
6101 | (mapped_index_string_hash): New parameter index_version. New comment | |
6102 | for it. Call tolower appropriately. | |
6103 | (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. | |
6104 | Choose the right index version for mapped_index_string_hash. | |
6105 | (dwarf2_read_index): Support also the index version 5. Initialize the | |
6106 | new struct mapped_index field version. | |
6107 | (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. | |
6108 | (find_slot): Explain the version needs. Pass INT_MAX for the new | |
6109 | parameter. | |
6110 | (write_psymtabs_to_index): Produce version 5. | |
6111 | * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, | |
6112 | use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. | |
6113 | * psymtab.c (lookup_partial_symbol): Find the | |
6114 | SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching | |
6115 | entries. | |
6116 | * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off | |
6117 | NAME lowercasing. | |
6118 | (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. | |
6119 | (completion_list_add_name): New variable ncmp, initialize it, use it. | |
6120 | * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. | |
6121 | * utils.c (strcmp_iw): Support case_sensitive_off. | |
6122 | (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. | |
6123 | New function comment part. New variables saved_string1, | |
6124 | saved_string2 and case_pass. Add a proper second pass. | |
6125 | ||
681bf369 JK |
6126 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
6127 | ||
6128 | Replace re_comp/re_exec by regcomp/regexec. | |
6129 | * symtab.c (struct search_symbols_data): New fields preg, preg_p. | |
6130 | (search_symbols_name_matches): Use them, use regexec. | |
6131 | (search_symbols): New variable retval_chain, adjust the use of | |
6132 | old_chain against it. Replace re_comp by regcomp. Use the new struct | |
6133 | search_symbols_data fields, use regexec instead of re_exec. | |
6134 | ||
b11b1f88 JK |
6135 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
6136 | ||
6137 | Format the code for the next patch. | |
6138 | * dwarf2read.c (struct mapped_index): Include delimiting newlines. | |
6139 | * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. | |
6140 | New variables c1 and c2. | |
6141 | ||
2484c66b UW |
6142 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
6143 | ||
6144 | * infrun.c (proceed): Do not single-step into signal delivery | |
6145 | when stepping off a breakpoint location. | |
6146 | (insert_step_resume_breakpoint_at_frame): Move prototype earlier. | |
6147 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
6148 | (insert_step_resume_breakpoint_at_sal): Likewise. | |
6149 | (insert_longjmp_resume_breakpoint): Likewise. | |
6150 | ||
47423772 YQ |
6151 | 2011-04-27 Yao Qi <yao@codesourcery.com> |
6152 | ||
6153 | * common/linux-ptrace.h: Remove include <sys/wait.h>. | |
6154 | ||
13bdd2e7 JB |
6155 | 2011-04-27 Joel Brobecker <brobecker@adacore.com> |
6156 | ||
6157 | * procfs.c (procfs_pass_signals): Fix advance declaration. | |
6158 | ||
2455069d UW |
6159 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
6160 | ||
6161 | * target.h (struct target_ops): Remove to_notice_signals; | |
6162 | add to_pass_signals. | |
6163 | (target_notice_signals): Remove. | |
6164 | (target_pass_signals): Add prototype. | |
6165 | * target.c (update_current_target): Remove to_notice_signals; | |
6166 | mention to_pass_signals. | |
6167 | (target_pass_signals): New function. | |
6168 | (debug_to_notice_signals): Remove. | |
6169 | (setup_target_debug): Do not install debug_to_notice_signals. | |
6170 | ||
6171 | * infrun.c (signal_pass): New global. | |
6172 | (resume): Call target_pass_signals. | |
6173 | (handle_inferior_event): Report all signals while stepping over | |
6174 | non-steppable watchpoint. Reset trap_expected to ensure breakpoints | |
6175 | are re-inserted when stepping over a signal handler. | |
6176 | (signal_cache_update): New function. | |
6177 | (signal_stop_update): Call it. | |
6178 | (signal_print_update): Likewise. | |
6179 | (signal_pass_update): Likewise. | |
6180 | (handle_command): Call signal_cache_update and target_pass_signals | |
6181 | instead of target_notice_signals. | |
6182 | (_initialize_infrun): Initialize signal_pass. | |
6183 | ||
6184 | * linux-nat.c (pass_mask): New global. | |
6185 | (linux_nat_pass_signals): New function. | |
6186 | (linux_nat_create_inferior): Report all signals initially. | |
6187 | (linux_nat_attach): Likewise. | |
6188 | (linux_nat_resume): Use pass_mask to decide whether to directly | |
6189 | handle an inferior signal. | |
6190 | (linux_nat_wait_1): Likewise. | |
6191 | (linux_nat_add_target): Install to_pass_signals callback. | |
6192 | ||
6193 | * nto-procfs.c (notice_signals): Remove. | |
6194 | (procfs_resume): Do not call notice_signals. | |
6195 | (procfs_notice_signals): Remove. | |
6196 | (procfs_pass_signals): New function. | |
6197 | (init_procfs_ops): Install to_pass_signals callback instead of | |
6198 | to_notice_signals callback. | |
6199 | (_initialize_procfs): Report all signals initially. | |
6200 | ||
6201 | * procfs.c (procfs_notice_signals): Remove. | |
6202 | (procfs_pass_signals): New function. | |
6203 | (procfs_target): Install to_pass_signals callback instead of | |
6204 | to_notice_signals callback. | |
6205 | (register_gdb_signals): Remove. | |
6206 | (procfs_debug_inferior): Report all signals initially. | |
6207 | (procfs_init_inferior): Remove redundant register_gdb_signals call. | |
6208 | ||
6209 | * remote.c (remote_pass_signals): Add numsigs and pass_signals | |
6210 | parameters; use them instead of calling signal_..._state routines. | |
6211 | (remote_notice_signals): Remove. | |
6212 | (remote_start_remote): Report all signals initially. | |
6213 | (remote_resume): Do not call remote_pass_signals. | |
6214 | (_initialize_remote): Install to_pass_signals callback instead of | |
6215 | to_notice_signals callback. | |
6216 | ||
46c6471b PA |
6217 | 2011-04-27 Pedro Alves <pedro@codesourcery.com> |
6218 | ||
6219 | * breakpoint.c (user_settable_breakpoint): Delete. | |
6220 | (user_breakpoint_p): Remove check on user_settable_breakpoint. | |
6221 | (delete_command): Check user_breakpoint_p instead of looking at | |
6222 | the breakpoint's type. | |
6223 | (disable_command): Ditto. | |
6224 | (enable_command): Ditto. | |
6225 | (delete_trace_command): Use user_breakpoint_p instead of looking | |
6226 | at the breakpoint number directly. When checking if there are | |
6227 | user visible tracepoints, in order to know whether to ask the user | |
6228 | for confirmation, check whether the breakpoint is actually a | |
6229 | tracepoint. | |
6230 | ||
f6d90398 VP |
6231 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
6232 | ||
6233 | * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix | |
6234 | compilation. | |
6235 | ||
8d3788bd VP |
6236 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
6237 | ||
6238 | MI breakpoint notifications. | |
6239 | ||
f33edef8 PP |
6240 | * annotate.c (breakpoint_changed): Adjust parameter type. |
6241 | * breakpoint.c (set_breakpoint_condition): Adjust to change | |
6242 | in breakpoint_modified type. | |
6243 | (breakpoint_set_commands): Likewise. | |
6244 | (do_map_commands_command): Likewise. | |
6245 | (bpstat_check_breakpoint_conditions): Notify that breakpoint has | |
6246 | changed after bumping hit count. | |
6247 | (bpstat_stop_status): Likewise. | |
6248 | (print_one_breakpoint_location): Don't wrap in tuple here. | |
6249 | (print_one_breakpoint): Always print individual locations. | |
6250 | For locations, use unnamed tuple. | |
6251 | (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint | |
6252 | has changed. | |
6253 | (create_catchpoint, create_syscall_event_catchpoint): Call | |
6254 | breakpoint_created obsever. | |
6255 | (mention): Don't call breakpoint_created observer. | |
6256 | (create_breakpoint_sal): Call breakpoint_created observer. | |
6257 | (create_breakpoint, watch_command_1): Likewise. | |
6258 | (create_ada_exception_breakpoint): Likewise. | |
6259 | (delete_breakpoint): Call breakpoint_deleted breakpoint. | |
6260 | (locations_are_equal): New. | |
6261 | (update_breakpoint_locations): If locations were changed, notify. | |
6262 | (set_ignore_count, disable_breakpoint, do_enable_breakpoint): | |
6263 | Call breakpoint_modified observer. | |
6264 | ||
6265 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
6266 | (mi_cmd_break_insert): Don't set observers for modify and delete. | |
6267 | * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New. | |
6268 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
6269 | (mi_breakpoint_modified): New. | |
6270 | (mi_interpreter_init): Hook the above. | |
6271 | * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications | |
6272 | while -break-* commands are executing. | |
6273 | * mi/mi-main.h (mi_suppress_breakpoint_notifications): New. | |
6274 | * mi/mi-out.c (struct ui_out_data): New field original_buffer. | |
6275 | (mi_redirect): New. | |
6276 | (mi_ui_out_impl): Hook in mi_redirect. | |
6277 | (mi_field_skip): True to the name, skip the field, don't output | |
6278 | a field with an empty value. | |
6279 | ||
6280 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
6281 | (gdbpy_breakpoint_deleted): Adjust. | |
6282 | * tui/tui-hooks.c (tui_event_create_breakpoint) | |
6283 | (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust. | |
8d3788bd | 6284 | |
a8f42b45 UW |
6285 | 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com> |
6286 | ||
6287 | * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype. | |
6288 | (procfs_remove_hw_watchpoint): Likewise. | |
6289 | ||
57e12211 TT |
6290 | 2011-04-26 Michael Walle <michael@walle.cc> |
6291 | ||
6292 | * remote.c (remote_start_remote): Ack packet after sending the | |
6293 | interrupt sequence. | |
6294 | ||
af96c192 YQ |
6295 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
6296 | ||
f33edef8 PP |
6297 | * linux-nat.c: Move common macros to ... |
6298 | Include linux-ptrace.h. | |
6299 | * common/linux-ptrace.h: ... here. New. | |
af96c192 | 6300 | |
3e03848b JK |
6301 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
6302 | ||
6303 | * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by | |
6304 | !objfile_has_partial_symbols. New comment. | |
6305 | * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if | |
6306 | SYM_READ_PSYMBOLS is not present. Extend the comment. | |
6307 | * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment. | |
6308 | ||
1ae0d051 JK |
6309 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
6310 | ||
6311 | * defs.h (ENUM_BITFIELD): Remove. | |
6312 | ||
03f2bd59 JK |
6313 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
6314 | Eli Zaretskii <eliz@gnu.org> | |
6315 | ||
6316 | * NEWS: Document the new gdbserver --once option. | |
6317 | ||
4161fbb0 JZ |
6318 | 2011-04-21 Jie Zhang <jzhang918@gmail.com> |
6319 | ||
6320 | * MAINTAINERS: Update my email address. | |
6321 | ||
bcb28afc PM |
6322 | 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
6323 | ||
6324 | * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro. | |
6325 | (INTERMEDIATE_ENCODING): Change value to intermediate_encoding | |
6326 | function call if __STDC_ISO_10646__ macro is defined. | |
6327 | (intermediate_encoding): New prototype. | |
6328 | * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable | |
6329 | to generate compile time error for unsupported gdb_wchar_t size. | |
6330 | (ENDIAN_SUFFIX): New macro. | |
6331 | (intermediate_encoding): New function. | |
6332 | ||
7b08b9eb JK |
6333 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6334 | ||
6335 | * ada-lang.c (struct add_partial_datum): Update the comment for | |
6336 | expand_partial_symbol_name. | |
6337 | (ada_add_partial_symbol_completions): Rename to ... | |
6338 | (ada_expand_partial_symbol_name): ... here, change return type, update | |
6339 | function comment, call symbol_completion_match instead of | |
6340 | symbol_completion_add. | |
6341 | (ada_make_symbol_completion_list): Use now expand_partial_symbol_names | |
6342 | and ada_expand_partial_symbol_name. | |
6343 | * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL | |
6344 | FILE_MATCHER. | |
6345 | (dw2_map_symbol_names): Remove. | |
6346 | (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names. | |
6347 | * psymtab.c (map_symbol_names_psymtab): Remove. | |
6348 | (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER. | |
6349 | Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check | |
6350 | order. | |
6351 | (psym_functions): Unlist map_symbol_names_psymtab. | |
6352 | (map_partial_symbol_names): Rename to ... | |
6353 | (expand_partial_symbol_names): ... here, change the FUN type, call | |
6354 | expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now. | |
6355 | * psymtab.h (map_partial_symbol_names): Rename to ... | |
6356 | (expand_partial_symbol_names): ... here, change the FUN type. | |
6357 | * symfile.h (struct quick_symbol_functions): Update the description of | |
6358 | expand_symtabs_matching. Remove map_symbol_names. | |
6359 | * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment. | |
6360 | (struct add_name_data): Update the comment for | |
6361 | expand_partial_symbol_name. | |
6362 | (add_partial_symbol_name): Rename to ... | |
6363 | (expand_partial_symbol_name): ... here. Replace | |
6364 | completion_list_add_name call by strncmp. | |
6365 | (default_make_symbol_completion_list_break_on): Use now | |
6366 | expand_partial_symbol_names and expand_partial_symbol_name. | |
6367 | * symtab.h (enum search_domain): New element ALL_DOMAIN. | |
6368 | ||
90476074 TT |
6369 | 2011-04-20 Tom Tromey <tromey@redhat.com> |
6370 | ||
6371 | * dwarf2read.c (save_gdb_index_command): Replace format | |
6372 | documentation with a pointer to the manual. | |
6373 | ||
c21236dc PA |
6374 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
6375 | ||
6376 | * regcache.c: Include remote.h. | |
6377 | (enum regcache_dump_what) <regcache_dump_remote>: New enum value. | |
6378 | (regcache_dump): Handle regcache_dump_remote. | |
6379 | (maintenance_print_remote_registers): New function. | |
6380 | (_initialize_regcache): Install "maint print remote-registers" | |
6381 | command. | |
6382 | * remote.c (map_regcache_remote_table): New function, factored out | |
6383 | from ... | |
6384 | (init_remote_state): ... here. | |
6385 | (remote_register_number_and_offset): New. | |
6386 | * remote.h (remote_register_number_and_offset): Declare. | |
6387 | ||
b78974c3 PA |
6388 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
6389 | ||
6390 | * regcache.c (get_thread_arch_regcache): If creating a regcache for | |
6391 | null_ptid, assume and allow a NULL address space, instead of | |
6392 | asking the target for the ptid's address space. | |
6393 | * infrun.c (ptid_is_pid): Remove assertion. | |
6394 | ||
7a9dd1b2 TT |
6395 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
6396 | ||
6397 | * windows-tdep.c (windows_xfer_shared_library): | |
6398 | * windows-nat.c (get_module_name, windows_make_so): | |
6399 | * v850-tdep.c (v850_handle_pushm): | |
6400 | * utils.c (null_cleanup, gdb_realpath): | |
6401 | * ui-out.c (get_next_header): | |
6402 | * tracepoint.c (clear_traceframe_info): | |
6403 | * symtab.c (lookup_symtab): | |
6404 | * serial.h (struct serial_ops): | |
6405 | * mipsread.c (read_alphacoff_dynamic_symtab): | |
6406 | * infcmd.c (print_return_value): | |
6407 | * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): | |
6408 | * f-exp.y (parse_number): | |
6409 | * exceptions.c (catch_exceptions): | |
6410 | * dummy-frame.c (dummy_frame_this_id): | |
6411 | * defs.h (struct cleanup): | |
6412 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): | |
6413 | * arm-tdep.c (arm_push_dummy_call): | |
6414 | * amd64-tdep.h (amd64_collect_xsave): | |
6415 | * amd64-tdep.c (amd64_collect_xsave): | |
6416 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): | |
6417 | * README (typing): Remove duplicate words. | |
6418 | * cli/cli-decode.c (lookup_cmd_composition): Add comma. | |
6419 | * infrun.c (siginfo_value_read): Fix typo. | |
6420 | * solib-frv.c (frv_fdpic_find_global_pointer): Likewise. | |
6421 | * top.c (source_line_number): Add comma. | |
6422 | ||
9941e0c5 MK |
6423 | 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com> |
6424 | ||
6425 | * thread.c (any_live_thread_of_process): Prioritize threads | |
6426 | that are not executing. | |
6427 | * gdbthread.h (any_live_thread_of_process): Update comment | |
6428 | as per above change. | |
6429 | ||
ed4b0e6a AS |
6430 | 2011-04-19 Andreas Schwab <schwab@linux-m68k.org> |
6431 | ||
6432 | * xcoffread.c (process_xcoff_symbol): Remove useless cast. | |
6433 | (scan_xcoff_symtab): Likewise. | |
6434 | ||
9b13a2db PM |
6435 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6436 | ||
6437 | * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment | |
6438 | inside if clause. | |
6439 | ||
1c6e1b0d PM |
6440 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6441 | Pedro Alves <pedro@codesourcery.com> | |
6442 | ||
6443 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local | |
6444 | variables to simplify code and avoid == operator at end of | |
6445 | line as this is against GNU coding standards. | |
6446 | ||
74de0234 PM |
6447 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6448 | ||
6449 | * solib-svr4.c (svr4_keep_data_in_core): Rename local variable | |
6450 | lm_name to name_lm to avoid conflict with lm_name function. | |
6451 | ||
b23518f0 PM |
6452 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6453 | ||
6454 | ARI fixes: Use only lowercase function name for static functions. | |
6455 | * nto-tdep.c (LM_ADDR): Rename to... | |
6456 | (lm_addr): New function name. | |
6457 | (nto_relocate_section_addresses): Adapt to change above. | |
6458 | * solib-sunos.c (LM_ADDR): Rename to... | |
6459 | (lm_addr): New function name. | |
6460 | (LM_NEXT): Rename to... | |
6461 | (lm_next): New function name. | |
6462 | (sunos_current_sos, sunos_relocate_section_addresses): Adapt to | |
6463 | function name changes above. | |
6464 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to... | |
6465 | (lm_addr_from_link_map): New function name. | |
6466 | (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
6467 | (has_lm_dynamic_from_link_map): New function name. | |
6468 | (LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
6469 | (lm_dynamic_from_link_map): New function name. | |
6470 | (LM_ADDR_CHECK): Rename to... | |
6471 | (lm_addr_check): New function name. | |
6472 | (LM_NEXT): Rename to... | |
6473 | (lm_next): New function name. | |
6474 | (LM_PREV): Rename to... | |
6475 | (lm_prev): New function name. | |
6476 | (LM_NAME): Rename to... | |
6477 | (lm_name): New function name. | |
6478 | (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to... | |
6479 | (ignore_first_link_map_entry): New function name. | |
6480 | (svr4_keep_data_in_core): Adapt to function name changes above. | |
6481 | (svr4_current_sos): Likewise. | |
6482 | (enable_break): Likewise. | |
6483 | (svr4_relocate_section_addresses): Likewise. | |
6484 | ||
1448a0a2 PM |
6485 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6486 | ||
6487 | ARI cleanup. | |
6488 | * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of | |
6489 | sprintf. Simplify code and avoid loosing memory. | |
6490 | (xtensa_register_reggroup_p): Extract assignment out of IF clause. | |
6491 | (call0_frame_cache): Remove && operator from end of line. | |
6492 | ||
02835898 JK |
6493 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6494 | ||
6495 | Fix libraries displacement if they change whether they were prelinked. | |
6496 | * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer | |
6497 | does not match. Comment why. | |
6498 | ||
9a845ea2 JK |
6499 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6500 | ||
6501 | * corelow.c: Include wrapper.h. | |
6502 | (core_open): Call now gdb_target_find_new_threads. | |
6503 | * wrapper.c: Include target.h. | |
6504 | (gdb_target_find_new_threads): New. | |
6505 | * wrapper.h (gdb_target_find_new_threads): New declaration. | |
6506 | ||
254f582e JK |
6507 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6508 | ||
6509 | * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID | |
6510 | even if !TARGET_HAS_EXECUTION. | |
6511 | ||
63524580 JK |
6512 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6513 | ||
6514 | Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip. | |
6515 | * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to | |
6516 | bfd_get_synthetic_symtab. | |
6517 | * jit.c (jit_register_code): Pass NULL to the new parameter parent. | |
6518 | * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new | |
6519 | parameter parent, remove the call to add_separate_debug_objfile. | |
6520 | * solib.c (solib_read_symbols): Pass NULL to the new parameter parent. | |
6521 | * symfile-mem.c (symbol_file_add_from_memory): Likewise. | |
6522 | * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter | |
6523 | parent, new comment for it, call add_separate_debug_objfile for it. | |
6524 | (symbol_file_add_separate): Pass objfile as the parameter parent, | |
6525 | remove the call to add_separate_debug_objfile. | |
6526 | (symbol_file_add_from_bfd): New parameter parent, pass it. | |
6527 | (symbol_file_add): Pass NULL to the new parameter parent. | |
6528 | * symfile.h (symbol_file_add_from_bfd): New parameter parent. | |
6529 | ||
90359a16 JK |
6530 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6531 | ||
6532 | * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are | |
6533 | BSF_SYNTHETIC. | |
6534 | ||
626e7282 JK |
6535 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6536 | ||
6537 | Fix Python access to inlined frames. | |
6538 | * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block. | |
6539 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
6540 | ||
cf31e6f9 TT |
6541 | 2011-04-15 Tom Tromey <tromey@redhat.com> |
6542 | ||
6543 | * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length. | |
6544 | ||
c8d895f1 GB |
6545 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
6546 | ||
6547 | * MAINTAINERS: Add myself to write-after-approval section. | |
6548 | ||
56a9aa1d MF |
6549 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
6550 | ||
6551 | * remote-sim.c (sim_command_completer): New function. | |
6552 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
6553 | ||
ba770c9c TJB |
6554 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6555 | ||
6556 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
6557 | (print_it_exception_catchpoint): ... this. | |
6558 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
6559 | for print_it_exception_catchpoint. | |
6560 | ||
51bf2553 EBM |
6561 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
6562 | ||
6563 | * MAINTAINERS: Add myself for write after approval privileges. | |
6564 | ||
d242658c MP |
6565 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
6566 | ||
6567 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
6568 | ||
4a4106ca TJB |
6569 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6570 | ||
6571 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
6572 | ||
26063d49 TJB |
6573 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6574 | ||
6575 | * breakpoint.c (save_breakpoints): Verify whether | |
6576 | breakpoint_ops.print_recreate is defined before calling it. | |
6577 | ||
7782b183 GB |
6578 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
6579 | ||
6580 | Fix failure with --enable-maintainer-mode. | |
6581 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
6582 | ||
e8930875 JK |
6583 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6584 | ||
6585 | Code cleanup. | |
6586 | * symtab.c (search_symbols): Reorder the KIND description in the | |
6587 | function comment. Remove the unused 4th element of types, types2, | |
6588 | types3 and types4. New gdb_assert on KIND. | |
6589 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
6590 | New gdb_assert on KIND. | |
6591 | * symtab.h (enum search_domain): New warning in the enum comment. | |
6592 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
6593 | TYPES_DOMAIN. | |
6594 | ||
b4f2f049 JK |
6595 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6596 | ||
6597 | Fix crash of gdb save-index on a STABS file. | |
6598 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
6599 | PSYMTABS_ADDRMAP. | |
6600 | ||
60d5a603 JK |
6601 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6602 | ||
6603 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
6604 | * dwarf2read.c: Include ctype.h. | |
6605 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
6606 | functions. | |
6607 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
6608 | dwarf2_default_access_attribute. Restructure setting accessibility | |
6609 | vs. virtuality. | |
6610 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
6611 | is_private and is_protected by calling | |
6612 | dwarf2_default_access_attribute. | |
6613 | ||
e0f68161 KB |
6614 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
6615 | ||
6616 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
6617 | to the initialization. | |
6618 | ||
2e1aae43 SE |
6619 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
6620 | ||
6621 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
6622 | initalization. | |
6623 | ||
c6ca3dab PM |
6624 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
6625 | ||
6626 | Remove support for old Cygwin 1.5 versions. | |
6627 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
6628 | function on old Cygwin version. | |
6629 | * windows-nat.c: Remove cygwin version check and always define | |
6630 | __USEWIDE for Cygwin compilation. | |
6631 | ||
bd18283a YQ |
6632 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
6633 | ||
6634 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
6635 | and TO. | |
6636 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
6637 | (arm_copy_svc): Remove parameters INSN and TO. | |
6638 | (decode_svc_copro): Update caller. | |
6639 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
6640 | from function pointer `copy_svc_os'. | |
6641 | ||
8c8dba6d YQ |
6642 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
6643 | ||
6644 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
6645 | LR for ARM and Thumb. | |
6646 | ||
59d7bcaf JK |
6647 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6648 | ||
6649 | Code cleanup. | |
6650 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
6651 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
6652 | in the function comment, a new note on values compatibility. | |
6653 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
6654 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
6655 | ||
e7db58ea TJB |
6656 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6657 | ||
6658 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
6659 | Set it based on the memory region referenced in the condition | |
6660 | expression. Update all callers. | |
6661 | ||
9f743ef6 JK |
6662 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6663 | ||
6664 | Fix crash regression on systems featuring .gdb_index. | |
6665 | * objfiles.c (free_objfile): Move the | |
6666 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
6667 | Extend the comment for objfile_free_data. | |
6668 | ||
9182c5bc JK |
6669 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6670 | ||
6671 | Fix regression of displaying the debug format. | |
6672 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
6673 | subfile. | |
6674 | ||
04bd08de TT |
6675 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6676 | ||
6677 | * cli/cli-interp.c (struct captured_execute_command_args): | |
6678 | Remove. | |
6679 | (do_captured_execute_command): Remove. | |
6680 | (safe_execute_command): Use TRY_CATCH. | |
6681 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
6682 | Remove. | |
6683 | (wrapped_read_command_file): Remove. | |
6684 | (script_from_file): Use TRY_CATCH. | |
6685 | * exceptions.c (catch_exception): Remove. | |
6686 | * exceptions.h (catch_exception): Remove. | |
6687 | (deprecated_throw_reason): Update comment. | |
6688 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
6689 | argument to 'context'. | |
6690 | (mi_execute_command): Use TRY_CATCH. | |
6691 | * remote.c (struct start_remote_args): Remove. | |
6692 | (remote_start_remote): Update; change arguments. | |
6693 | (remote_open_1): Use TRY_CATCH. | |
6694 | ||
58438ac1 TT |
6695 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6696 | ||
6697 | * tracepoint.c (scope_info): Update. | |
6698 | * symtab.c (decode_line_spec): Update. | |
6699 | * python/python.c (gdbpy_decode_line): Update. | |
6700 | * linespec.h (decode_line_1): Update. | |
6701 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
6702 | (decode_compound, find_method, symtab_from_filename) | |
6703 | (decode_variable): Likewise. | |
6704 | * cli/cli-cmds.c (edit_command): Update. | |
6705 | (list_command): Update. | |
6706 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
6707 | argument. | |
6708 | (create_breakpoint): Update. | |
6709 | (until_break_command): Update. | |
6710 | (addr_string_to_sals): Update. | |
6711 | (decode_line_spec_1): Update. | |
6712 | ||
b78a6381 TT |
6713 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6714 | ||
6715 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
6716 | (do_captured_parse_breakpoint): Remove. | |
6717 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
6718 | Use TRY_CATCH directly. | |
6719 | ||
00174a86 TT |
6720 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6721 | ||
6722 | * symtab.h (free_symtab): Remove. | |
6723 | (forget_cached_source_info_for_objfile): Declare. | |
6724 | * symmisc.c (free_symtab): Remove. | |
6725 | * source.c (forget_cached_source_info_for_objfile): New function. | |
6726 | (forget_cached_source_info): Use it. | |
6727 | * objfiles.c (free_objfile): Simplify check before calling | |
6728 | clear_current_source_symtab_and_line. Call | |
6729 | forget_cached_source_info_for_objfile. | |
6730 | ||
30cc903e TT |
6731 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6732 | ||
6733 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
6734 | (new_symtab): Don't set `free_code' on symtab. | |
6735 | (new_linetable): Properly handle size==0. | |
6736 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
6737 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
6738 | free_func. | |
6739 | * jv-lang.c (struct jv_per_objfile_data): New. | |
6740 | (jv_per_objfile_free): Free the data. | |
6741 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
6742 | (get_java_class_symtab): Set the `dict' field on the | |
6743 | jv_per_objfile_data. | |
6744 | (free_class_block): Remove. | |
6745 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
6746 | the symtab. | |
6747 | ||
0c2e6019 TT |
6748 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6749 | ||
6750 | * symfile.c (reread_symbols): Update. | |
6751 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
6752 | field. | |
6753 | * objfiles.c (allocate_objfile): Update. | |
6754 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
6755 | declare. | |
6756 | * cp-namespace.c (lookup_symbol_file): Don't call | |
6757 | lookup_possible_namespace_symbol. | |
6758 | (initialize_namespace_symtab, get_possible_namespace_block) | |
6759 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
6760 | (check_possible_namespace_symbols_loop) | |
6761 | (check_one_possible_namespace_symbol) | |
6762 | (lookup_possible_namespace_symbol): Remove. | |
6763 | (maintenance_cplus_namespace): Replace with notice. | |
6764 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
6765 | ||
554d387d TT |
6766 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6767 | ||
6768 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
6769 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
6770 | * symmisc.c (free_symtab): Don't free debugformat. | |
6771 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
6772 | (record_debugformat, record_producer): Document. | |
6773 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
6774 | names on obstack. | |
6775 | (end_symtab): Don't free debugformat and producer fields. | |
6776 | (record_debugformat): Don't call xstrdup. | |
6777 | (record_producer): Likewise. | |
6778 | ||
d4d4db8a TT |
6779 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6780 | ||
6781 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
6782 | (source_line_charpos, source_charpos_line): Remove. | |
6783 | ||
8903c50d TT |
6784 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
6785 | ||
6786 | * symtab.h (domain_enum): Split in two... | |
6787 | (enum search_domain): New. | |
6788 | (search_symbols): Update. | |
6789 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
6790 | redundant declarations. | |
6791 | (search_symbols): Change 'kind' argument to search_domain. | |
6792 | Update. | |
6793 | (print_symbol_info): Likewise. | |
6794 | (symtab_symbol_info): Likewise. | |
6795 | * symfile.h (struct quick_symbol_functions) | |
6796 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
6797 | <expand_symtabs_matching>: Likewise. | |
6798 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
6799 | (expand_symtabs_matching_via_partial): Update. | |
6800 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
6801 | (dw2_expand_symtabs_for_function): Update. | |
6802 | * block.h: Moved anonymous enum... | |
6803 | * defs.h (enum block_enum): ... here. Now named. | |
6804 | ||
d9351f5f | 6805 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
6806 | ||
6807 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
6808 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
6809 | ||
d6e00af6 JB |
6810 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
6811 | ||
6812 | * NEWS: Create a new section for the next release branch. | |
6813 | Rename the section of the current branch, now that it has | |
6814 | been cut. | |
6815 | ||
2b9e5ea6 UW |
6816 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
6817 | ||
6818 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
6819 | for "fpscr" in target description. | |
6820 | ||
0cf03b49 JK |
6821 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
6822 | ||
6823 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
6824 | initialize it. Delay HASH initialization. Strip the part after open | |
6825 | parenthesis for languages with qualifiers. Call do_cleanups. | |
6826 | ||
5d901a73 TT |
6827 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
6828 | ||
6829 | * utils.c (report_command_stats): Don't print `-' for negative | |
6830 | number. | |
6831 | ||
b0dd7688 JB |
6832 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
6833 | ||
6834 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
6835 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
6836 | typedefs. | |
6837 | ||
956a9fb9 JB |
6838 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
6839 | ||
6840 | * breakpoint.h (bpdisp_text): Add declaration. | |
6841 | * breakpoint.c (bpdisp_text): Make non-static. | |
6842 | * ada-lang.c: #include "mi/mi-common.h". | |
6843 | (print_it_exception): Rewrite to improve GDB/MI output. | |
6844 | ||
3352110b PA |
6845 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
6846 | ||
6847 | * arm-tdep.h (struct address_space): Add forward declaration. | |
6848 | ||
18819fa6 UW |
6849 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
6850 | ||
6851 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
6852 | * arm-tdep.c (arm_override_mode): New global. | |
6853 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
6854 | execution mode heuristics. | |
6855 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
6856 | second single-step breakpoint if needed, using | |
6857 | arm_insert_single_step_breakpoint. | |
6858 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
6859 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
6860 | (arm_get_next_pc): Encode execution mode in return value. Call | |
6861 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
6862 | (arm_insert_single_step_breakpoint): New function. | |
6863 | (arm_software_single_step): Call it. | |
6864 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
6865 | argument to return execution mode of sigreturn target. | |
6866 | (arm_linux_syscall_next_pc): Use it. | |
6867 | (arm_linux_copy_svc): Update call. | |
6868 | (arm_linux_software_single_step): Call | |
6869 | arm_insert_single_step_breakpoint. | |
6870 | ||
a6e293d1 JK |
6871 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
6872 | ||
6873 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
6874 | the comment. | |
6875 | ||
a4c8e806 TT |
6876 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
6877 | ||
6878 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
6879 | errors from iterator. | |
6880 | ||
df5c6c50 JK |
6881 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
6882 | ||
6883 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
6884 | struct linkage name twice. | |
6885 | ||
1dae3efc TT |
6886 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
6887 | ||
6888 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
6889 | missing ">" to message. | |
6890 | ||
f4f7ab05 TT |
6891 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
6892 | ||
6893 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
6894 | 'return'. | |
6895 | ||
fcf250e2 UW |
6896 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
6897 | ||
6898 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
6899 | if neither saved value nor register available (e.g. signal frame). | |
6900 | ||
ee6436e3 TJB |
6901 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6902 | ||
6903 | * macroexp.c (expand): Avoid uninitialized variable | |
6904 | compiler warning. | |
6905 | ||
423f41a5 TJB |
6906 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6907 | ||
6908 | * breakpoint.c (break_range_command): Fix typo in comment. | |
6909 | ||
f1310107 TJB |
6910 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6911 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
6912 | ||
6913 | Implement support for PowerPC BookE ranged breakpoints. | |
6914 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
6915 | * breakpoint.h (struct bp_target_info) <length>: New member | |
6916 | variable. | |
6917 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
6918 | instead of struct breakpoint as argument, and also add ASPACE | |
6919 | and BP_ADDR arguments. Update all callers. | |
6920 | (struct breakpoint_ops) <print_one_detail>: New method. | |
6921 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
6922 | * breakpoint.c (breakpoint_location_address_match): Add function | |
6923 | prototype. | |
6924 | (insert_bp_location): Set bl->target_info.length. | |
6925 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
6926 | (moribund_breakpoint_here_p): Likewise. | |
6927 | (regular_breakpoint_inserted_here_p): Likewise. | |
6928 | (breakpoint_thread_match): Likewise. | |
6929 | (bpstat_stop_status): Likewise. | |
6930 | (bpstat_check_location): Move call to | |
6931 | breakpoint_ops.breakpoint_hit to the top. | |
6932 | (print_one_breakpoint_location): Call | |
6933 | breakpoint_ops.print_one_detail if available. | |
6934 | (breakpoint_address_match_range): New function. | |
6935 | (breakpoint_location_address_match): Likewise. | |
6936 | (breakpoint_locations_match): Compare the length field of the | |
6937 | locations too. | |
6938 | (hw_breakpoint_used_count): Count resources used by all locations | |
6939 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
6940 | available. | |
6941 | (breakpoint_hit_ranged_breakpoint): New function. | |
6942 | (resources_needed_ranged_breakpoint): Likewise. | |
6943 | (print_it_ranged_breakpoint): Likewise. | |
6944 | (print_one_ranged_breakpoint): Likewise. | |
6945 | (print_one_detail_ranged_breakpoint): Likewise. | |
6946 | (print_mention_ranged_breakpoint): Likewise. | |
6947 | (print_recreate_ranged_breakpoint): Likewise. | |
6948 | (ranged_breakpoint_ops): New structure. | |
6949 | (find_breakpoint_range_end): New function. | |
6950 | (break_range_command): Likewise. | |
6951 | (delete_breakpoint): Free addr_string_range_end. | |
6952 | (update_breakpoint_locations): Add SALS_END argument. Update | |
6953 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
6954 | is given. Call breakpoint_locations_match instead of | |
6955 | breakpoint_address_match. | |
6956 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
6957 | ranged breakpoint. | |
6958 | (_initialize_breakpoint): Register break-range command. | |
6959 | * defs.h (print_core_address): Add function prototype. | |
6960 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
6961 | function. | |
6962 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
6963 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
6964 | (_initialize_ppc_linux_nat): Initialize | |
6965 | to_ranged_break_num_registers. | |
6966 | * target.c (update_current_target): Add comment about | |
6967 | to_ranged_break_num_registers. | |
6968 | (target_ranged_break_num_registers): New function. | |
6969 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
6970 | New method. | |
6971 | (target_ranged_break_num_registers): Add function prototype. | |
6972 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
6973 | * utils.c (print_core_address): ... here. | |
6974 | ||
02d20e4a UW |
6975 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
6976 | ||
6977 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
6978 | variable compiler warning. | |
6979 | ||
ef23e705 TJB |
6980 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6981 | ||
6982 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
6983 | code from here ... | |
6984 | (re_set_breakpoint): ... to here ... | |
6985 | (addr_string_to_sals): ... and here. | |
6986 | ||
311e6ab3 PM |
6987 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
6988 | ||
6989 | * Makefile.in (SFILES): Add missing C sources. | |
6990 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
6991 | Add missing headers. | |
6992 | ||
acd1d99c MF |
6993 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
6994 | ||
6995 | * .gitignore: New file. | |
6996 | ||
66ee2731 MF |
6997 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
6998 | ||
6999 | * NEWS: Mention new cfi device simulation. | |
7000 | ||
53832f31 TT |
7001 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
7002 | ||
7003 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
7004 | otherwise anonymous types. | |
7005 | (dwarf2_name): Likewise. | |
7006 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
7007 | type logic. Call error if j==-1. | |
7008 | ||
09b58708 JK |
7009 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
7010 | ||
7011 | Fix false GCC warning. | |
7012 | * infcall.c (find_function_addr): Initialize funaddr. | |
7013 | ||
6023c606 PM |
7014 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
7015 | ||
7016 | Fix mingw compilation with --enable-targets=all. | |
7017 | * remote-mips.c (gdb_usleep.h): Include header. | |
7018 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
7019 | ||
0e30163f JK |
7020 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7021 | ||
7022 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
7023 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
7024 | bp_gnu_ifunc_resolver_return. | |
7025 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
7026 | the loop. Support bp_gnu_ifunc_resolver and | |
7027 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
7028 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
7029 | breakpoints. | |
7030 | (bptype_string, print_one_breakpoint_location): Support | |
7031 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
7032 | (user_settable_breakpoint): Return true also for | |
7033 | bp_gnu_ifunc_resolver. | |
7034 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
7035 | bp_gnu_ifunc_resolver_return. | |
7036 | (set_breakpoint_location_function): New parameter explicit_loc, | |
7037 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
7038 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
7039 | EXPLICIT_LOC is not set. | |
7040 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
7041 | set_breakpoint_location_function. | |
7042 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
7043 | set_breakpoint_location_function. | |
7044 | (mention): Support bp_gnu_ifunc_resolver and | |
7045 | bp_gnu_ifunc_resolver_return. | |
7046 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
7047 | set_breakpoint_location_function. | |
7048 | (update_breakpoint_locations): Remove static. | |
7049 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
7050 | bp_gnu_ifunc_resolver_return. | |
7051 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
7052 | bp_gnu_ifunc_resolver_return. | |
7053 | (update_breakpoint_locations): New declaration. | |
7054 | * elfread.c: Include gdbthread.h and regcache.h. | |
7055 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
7056 | functions. | |
7057 | (elf_gnu_ifunc_fns): Install them. | |
7058 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
7059 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
7060 | (stub_gnu_ifunc_fns): Install them. | |
7061 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
7062 | and gnu_ifunc_resolver_return_stop. | |
7063 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
7064 | ||
07be84bf JK |
7065 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7066 | ||
7067 | STT_GNU_IFUNC reader implementation. | |
7068 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
7069 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
7070 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
7071 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
7072 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
7073 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
7074 | (elf_gnu_ifunc_resolve_addr): New. | |
7075 | (elf_symfile_read): Call elf_rel_plt_read. | |
7076 | (elf_gnu_ifunc_fns): New. | |
7077 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
7078 | Install elf_gnu_ifunc_fns. | |
7079 | * infcall.c (find_function_return_type): New function. | |
7080 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
7081 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
7082 | (stub_gnu_ifunc_resolve_name): New functions. | |
7083 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
7084 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
7085 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
7086 | ||
300f8e10 JK |
7087 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7088 | ||
7089 | Code cleanup for later STT_GNU_IFUNC support. | |
7090 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
7091 | dereferences for it. Move VALUE_TYPE initialization later. | |
7092 | ||
11c81455 JK |
7093 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7094 | ||
7095 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
7096 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
7097 | (clear_pc_function_cache): Clear it. | |
7098 | (find_pc_partial_function): Rename to ... | |
7099 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
7100 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
7101 | (find_pc_partial_function): New wrapper for this function. | |
7102 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
7103 | ||
0875794a JK |
7104 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7105 | ||
7106 | GDB internal type support for STT_GNU_IFUNC. | |
7107 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
7108 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
7109 | BSF_GNU_INDIRECT_FUNCTION. | |
7110 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
7111 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
7112 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
7113 | nodebug_got_plt_symbol. | |
7114 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
7115 | (TYPE_GNU_IFUNC): New. | |
7116 | (struct main_type): New field flag_gnu_ifunc. | |
7117 | (struct builtin_type): New field builtin_func_func. | |
7118 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
7119 | nodebug_got_plt_symbol. | |
7120 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
7121 | (in_gnu_ifunc_stub): New. | |
7122 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
7123 | mst_text_gnu_ifunc. | |
7124 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
7125 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
7126 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
7127 | in_gnu_ifunc_stub. | |
7128 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
7129 | * symtab.c (search_symbols): Likewise. | |
7130 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
7131 | and mst_slot_got_plt. | |
7132 | (in_gnu_ifunc_stub): New declaration. | |
7133 | ||
d0fb5eae JK |
7134 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7135 | ||
7136 | Support a ring of related breakpoints. | |
7137 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
7138 | other functions, add gdb_assert. | |
7139 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
7140 | watchpoint_del_at_next_stop. | |
7141 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
7142 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
7143 | (set_raw_breakpoint_without_location): Initialize ring in | |
7144 | related_breakpoint. | |
7145 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
7146 | watchpoint_del_at_next_stop. | |
7147 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
7148 | ||
9cded63f TT |
7149 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
7150 | ||
7151 | PR symtab/12441: | |
7152 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
7153 | with `language_minimal'. | |
7154 | ||
467d42c4 UW |
7155 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
7156 | ||
7157 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
7158 | instead of checking for STT_ARM_TFUNC symbol type. | |
7159 | ||
62853458 TT |
7160 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
7161 | ||
7162 | * linespec.c (symbol_found): Restore line-based result for | |
7163 | non-LOC_LABEL symbols. | |
7164 | ||
a7417d46 KT |
7165 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
7166 | ||
7167 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
7168 | instead of strcmp for comparison. | |
7169 | (tui_source_is_displayed): Likewise. | |
7170 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
7171 | ||
55f1336d TT |
7172 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
7173 | ||
f33edef8 PP |
7174 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in |
7175 | complaint. | |
7176 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
7177 | (find_partial_die_in_comp_unit): Likewise in comment. | |
7178 | (read_attribute_value): Likewise. | |
7179 | (lookup_die_type): Likewise. | |
7180 | (dwarf_form_name): Likewise. | |
7181 | (dump_die_shallow): Likewise. | |
7182 | (follow_die_ref_or_sig): Likewise. | |
55f1336d | 7183 | |
9ef07c8c TT |
7184 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
7185 | ||
7186 | PR breakpoints/11816: | |
7187 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
7188 | (decode_compound): Update. | |
7189 | (find_function_symbol): New function. | |
7190 | (decode_dollar): Update. | |
7191 | (decode_label): Add 'function_symbol' parameter. Handle | |
7192 | function-relative labels. | |
7193 | (decode_variable): Update. | |
7194 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
7195 | not its line. Set `special_display' and canonical name for | |
7196 | labels. | |
7197 | ||
56435ebe TT |
7198 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
7199 | ||
7200 | * linespec.h (struct linespec_result) <special_display>: New | |
7201 | field. | |
7202 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
7203 | field. | |
7204 | * breakpoint.c (print_breakpoint_location): Respect | |
7205 | display_canonical. | |
7206 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
7207 | (create_breakpoints_sal): Update. | |
7208 | (create_breakpoint): Update. | |
7209 | ||
7efd8fc2 TT |
7210 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
7211 | ||
7212 | * symtab.c (decode_line_spec): Update. | |
7213 | * linespec.c (build_canonical_line_spec): Change type of | |
7214 | 'canonical'. | |
7215 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
7216 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
7217 | (symbol_found): Likewise. | |
7218 | (init_linespec_result): New function. | |
7219 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
7220 | <canonical_p>: New field, replaces addr_string_p. | |
7221 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
7222 | 'addr_string'. | |
7223 | (parse_breakpoint_sals): Likewise. | |
7224 | (do_captured_parse_breakpoint): Update. | |
7225 | (create_breakpoint): Use struct linespec_result. | |
7226 | (until_break_command): Update. | |
7227 | (breakpoint_re_set_one): Update. | |
7228 | (decode_line_spec_1): Update. | |
7229 | * linespec.h (struct linespec_result): New. | |
7230 | (init_linespec_result): Declare. | |
7231 | ||
788c8b10 PA |
7232 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
7233 | ||
7234 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
7235 | given raw register, mark it as unavailable. | |
7236 | ||
0ba1096a KT |
7237 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
7238 | ||
7239 | * breakpoint.c (clear_command): Use filename_cmp | |
7240 | instead of strcmp for comparison. | |
7241 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
7242 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
7243 | checking just for slash. | |
7244 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
7245 | strrchr and filename_cmp instead of strcmp for filenames. | |
7246 | (add_old_header_file): Use filename_cmp | |
7247 | instead of strcmp for comparison. | |
7248 | * exec.c (exec_set_section_address): Likewise. | |
7249 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
7250 | (macro_lookup_inclusion): Likewise. | |
7251 | * elfread.c (_initialize_elfread): Likewise. | |
7252 | (elfstab_offset_sections): Likewise. | |
7253 | (elfstab_offset_sections): Use lbasename instead of | |
7254 | strrchr. | |
7255 | * mdebugread.c (parse_partial_symbols): Likewise. | |
7256 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
7257 | str(n)cmp for comparison. | |
7258 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
7259 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
7260 | * solib.c (solib_read_symbols): Likewise. | |
7261 | (reload_shared_libraries_1): Likewise. | |
7262 | * symmisc.c (maintenance_print_symbols): Likewise. | |
7263 | * symfile.c (separate_debug_file_exists): Likewise. | |
7264 | (reread_symbols): Likewise. | |
7265 | (find_separate_debug_file_by_debuglink): Likewise. | |
7266 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
7267 | * source.c (add_path): Likewise. | |
7268 | * symtab.c (filename_seen): Likewise. | |
7269 | (file_matches): Likewise. | |
7270 | (print_symbol_info): Likewise. | |
7271 | (maybe_add_partial_symtab_filename): Likewise. | |
7272 | (make_source_files_completion_list): Likewise. | |
7273 | * xml-syscall.c (init_sysinfo): Likewise. | |
7274 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
7275 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
7276 | ||
dd90784c JK |
7277 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7278 | ||
7279 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
7280 | label abort_expression. | |
7281 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
7282 | DWARF_VALUE_OPTIMIZED_OUT. | |
7283 | ||
3167638f JK |
7284 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7285 | ||
7286 | Code cleanup. | |
7287 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
7288 | to linkage_name. Invert its value. Update the function comment. | |
7289 | (c_type_print_varspec_suffix): Invert it at the caller. | |
7290 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
7291 | ||
ce406537 PA |
7292 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
7293 | ||
7294 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
7295 | errors when reading the `stop_pc'. | |
7296 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
7297 | get_frame_pc. | |
7298 | ||
da5d4055 PM |
7299 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
7300 | ||
7301 | * NEWS: Document gdb.Write stream keyword. | |
7302 | ||
29e0eb9c JK |
7303 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7304 | ||
7305 | Revert: | |
7306 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
7307 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
7308 | (dwarf2_add_field): Fix new_field->accessibility for | |
7309 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
7310 | ||
05775840 PM |
7311 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
7312 | ||
f33edef8 | 7313 | PR python/12183 |
05775840 PM |
7314 | |
7315 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
7316 | other error classes. Do not print stack trace. | |
7317 | ||
a0cb7835 JK |
7318 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
7319 | ||
7320 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
7321 | (dwarf2_add_field): Fix new_field->accessibility for | |
7322 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
7323 | ||
d19f7eee UW |
7324 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
7325 | ||
7326 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
7327 | encountering a load via a non-SP register. | |
7328 | ||
4a2fbb50 UW |
7329 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
7330 | ||
7331 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
7332 | field in returned unwinder. | |
7333 | ||
3489610d JB |
7334 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
7335 | ||
7336 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
7337 | ||
8c1a34e7 JB |
7338 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
7339 | ||
7340 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
7341 | of xmalloc. | |
7342 | ||
8fbca658 PA |
7343 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
7344 | ||
7345 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
7346 | register failed. | |
7347 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
7348 | an unwind stop reason. | |
7349 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
7350 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
7351 | UNWIND_UNAVAILABLE>: New. | |
7352 | * inline-frame.c (inline_frame_unwind): Install | |
7353 | default_frame_unwind_stop_reason. | |
7354 | * frame-unwind.c: Include "exceptions.h". | |
7355 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
7356 | (default_frame_unwind_stop_reason): New. | |
7357 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
7358 | (default_frame_unwind_stop_reason): Declare. | |
7359 | (struct frame_unwind) <stop_reason>: New function pointer. | |
7360 | ||
7361 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
7362 | * dwarf2-frame.c: Include exceptions.h. | |
7363 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
7364 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
7365 | computing the CFA. If such an error was thrown, set | |
7366 | unavailable_retaddr. | |
7367 | (dwarf2_frame_unwind_stop_reason): New. | |
7368 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
7369 | unavailable. | |
7370 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
7371 | (dwarf2_signal_frame_unwind): Ditto. | |
7372 | ||
7373 | * amd64-tdep.c: Include "exceptions.h". | |
7374 | (struct amd64_frame_cache): New field "base_p". | |
7375 | (amd64_init_frame_cache): Clear it. | |
7376 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
7377 | Avoid reading registers with functions that throw if the register | |
7378 | is not necessary to compute the frame base. | |
7379 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
7380 | swallowing NOT_AVAILABLE_ERROR. | |
7381 | (amd64_frame_unwind_stop_reason): New. | |
7382 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
7383 | was unavailable. | |
7384 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
7385 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
7386 | base_p if the frame base was computable. | |
7387 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
7388 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
7389 | frame base was unavailable. | |
7390 | (amd64_sigtramp_frame_unwind): Install | |
7391 | amd64_sigtramp_frame_unwind_stop_reason. | |
7392 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
7393 | base_p if the frame base was computable. | |
7394 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
7395 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
7396 | frame base was unavailable. | |
7397 | (amd64_epilogue_frame_unwind): Install | |
7398 | amd64_epilogue_frame_unwind_stop_reason. | |
7399 | * i386-tdep.c: Include "exceptions.h". | |
7400 | (struct i386_frame_cache): New field "base_p". | |
7401 | (i386_init_frame_cache): Clear it. | |
7402 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
7403 | Avoid reading registers with functions that throw if the register | |
7404 | is not necessary to compute the frame base. | |
7405 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
7406 | swallowing NOT_AVAILABLE_ERROR. | |
7407 | (i386_frame_unwind_stop_reason): New. | |
7408 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
7409 | unavailable. | |
7410 | (i386_frame_prev_register): Handle unavailable SP. | |
7411 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
7412 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
7413 | base_p if the frame base was computable. | |
7414 | (i386_epilogue_frame_unwind_stop_reason): New. | |
7415 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
7416 | base was unavailable. | |
7417 | (i386_epilogue_frame_unwind): Install | |
7418 | i386_epilogue_frame_unwind_stop_reason. | |
7419 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
7420 | base_p if the frame base was computable. | |
7421 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
7422 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
7423 | base was unavailable. | |
7424 | (i386_sigtramp_frame_unwind): Install | |
7425 | i386_sigtramp_frame_unwind_stop_reason. | |
7426 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
7427 | type's size, not the register's. | |
7428 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
7429 | ||
7430 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
7431 | default_frame_unwind_stop_reason. | |
7432 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
7433 | (alpha_heuristic_frame_unwind): Ditto. | |
7434 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
7435 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
7436 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
7437 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
7438 | Ditto. | |
7439 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
7440 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
7441 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
7442 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
7443 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
7444 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
7445 | (hppa_stub_frame_unwind): Ditto. | |
7446 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
7447 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
7448 | (ia64_libunwind_frame_unwind) | |
7449 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
7450 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
7451 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
7452 | * m32c-tdep.c (m32c_unwind): Ditto. | |
7453 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
7454 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
7455 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
7456 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
7457 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
7458 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
7459 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
7460 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
7461 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
7462 | (mips_stub_frame_unwind): Ditto. | |
7463 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
7464 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
7465 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
7466 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
7467 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
7468 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
7469 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
7470 | (s390_sigtramp_frame_unwind): Ditto. | |
7471 | * score-tdep.c (score_prologue_unwind): Ditto. | |
7472 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
7473 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
7474 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
7475 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
7476 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
7477 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
7478 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
7479 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
7480 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
7481 | (sparc64obsd_trapframe_unwind): Ditto. | |
7482 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
7483 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
7484 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
7485 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
7486 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
7487 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
7488 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
7489 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
7490 | ||
f23d1b92 PA |
7491 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7492 | ||
7493 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
7494 | there's always a frame. Use get_frame_pc_if_available instead of | |
7495 | get_frame_pc, and if there's no PC available, don't look up a | |
7496 | symtab. | |
7497 | ||
1d4f5741 PA |
7498 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7499 | ||
7500 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
7501 | unavailable PC. | |
7502 | ||
dba09041 PA |
7503 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7504 | ||
7505 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
7506 | gracefully. | |
7507 | ||
9a26e44c PA |
7508 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7509 | ||
7510 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
7511 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
7512 | * stack.c (frame_info): Handle unavailable PC. | |
7513 | ||
7514 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
7515 | ||
7516 | * frame.c (frame_unwind_pc): Rename to ... | |
7517 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
7518 | parameter. Change return type to int. Gracefully handle | |
7519 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
7520 | happened, or 1 otherwise. | |
7521 | (frame_unwind_pc): Reimplement on top of | |
7522 | frame_unwind_pc_if_available. | |
7523 | (get_frame_func): Rename to ... | |
7524 | (get_frame_func_if_available): New `pc' output parameter. Change | |
7525 | return type to int. Gracefully handle the PC not being available. | |
7526 | (get_frame_func): Reimplement on top of | |
7527 | get_frame_func_if_available. | |
7528 | (select_frame): Handle the PC being unavailable. | |
7529 | (get_prev_frame): Handle the PC being unavailable. | |
7530 | (get_frame_pc_if_available): New. | |
7531 | (get_frame_address_in_block_if_available): New. | |
7532 | (find_frame_sal): Handle the frame PC not being available. | |
7533 | * frame.h (get_frame_pc_if_available): Declare. | |
7534 | (get_frame_address_in_block_if_available): Declare. | |
7535 | (get_frame_func_if_available): Declare. | |
7536 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
7537 | (find_frame_funname): Ditto. | |
7538 | (print_frame): Handle the PC being unavailable. | |
7539 | (get_frame_language): Ditto. | |
7540 | * blockframe.c (get_frame_block): Ditto. | |
7541 | * macroscope.c (default_macro_scope): Ditto. | |
7542 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
7543 | ||
7544 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
7545 | ||
7546 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
7547 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
7548 | ||
7549 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
7550 | ||
7551 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
7552 | returning that the register piece is unavailable/optimized out. | |
7553 | (write_pieced_value): Handle get_frame_register_bytes returning | |
7554 | that the register piece is unavailable/optimized out when doing a | |
7555 | read-modify write of a bitfield. | |
7556 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
7557 | returning that the register piece is unavailable/optimized out. | |
7558 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
7559 | and `unavailablep'. Throw error on bad debug info. Use | |
7560 | frame_register instead of frame_register_read, to fill in the new | |
7561 | arguments. | |
7562 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
7563 | and `unavailablep'. | |
7564 | * valops.c: (value_assign): Adjust, and handle | |
7565 | get_frame_register_bytes failing. | |
7566 | * spu-tdep.c: Include exceptions.h. | |
7567 | (spu_software_single_step): Adjust, and handle | |
7568 | get_frame_register_bytes failing. | |
7569 | (spu_get_longjmp_target): Ditto. | |
7570 | * gdbarch.sh (register_to_value): Change to return int. New | |
7571 | parameters `optimizedp' and `unavailablep'. | |
7572 | * gdbarch.h, gdbarch.c: Regenerate. | |
7573 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
7574 | gdbarch_register_to_value interface. | |
7575 | * i387-tdep.c (i387_register_to_value): Ditto. | |
7576 | * i387-tdep.h (i387_register_to_value): Ditto. | |
7577 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
7578 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
7579 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
7580 | * mips-tdep.c (mips_register_to_value): Ditto. | |
7581 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
7582 | ||
0fdb4f18 PA |
7583 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7584 | ||
7585 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
7586 | the register is unavailable. | |
7587 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
7588 | (frame_register): New `unavailablep' parameter. | |
7589 | (frame_register_read): Update comment. | |
7590 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
7591 | Set it if the register is unavailable. If the register is | |
7592 | unavailable, clear the output buffer. | |
7593 | (frame_register): New `unavailablep' parameter. Pass it down. | |
7594 | (frame_unwind_register): Adjust. | |
7595 | (put_frame_register): Adjust. | |
7596 | (frame_register_read): Adjust. Also return false if the register | |
7597 | is not available. | |
7598 | (frame_register_unwind_location): Adjust. | |
7599 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
7600 | is unavailable, mark the value accordingly. | |
7601 | * stack.c (frame_info): Handle unavailable registers. | |
7602 | ||
e69aa73e PA |
7603 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7604 | ||
7605 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
7606 | simplify, using regcache_cooked_read. | |
7607 | ||
05d1431c PA |
7608 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
7609 | ||
7610 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
7611 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
7612 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
7613 | (regcache_cooked_read, regcache_cooked_read_signed) | |
7614 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
7615 | (regcache_cooked_read_ftype): Change return to enum | |
7616 | register_status. | |
7617 | * regcache.c: Include exceptions.h | |
7618 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
7619 | (do_cooked_read): Change return to enum register_status. Always | |
7620 | forward to regcache_cooked_read. | |
7621 | (regcache_raw_read): Change return to enum register_status. If | |
7622 | the register is not REG_VALID, memset the buffer. Return the | |
7623 | register's status. | |
7624 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
7625 | return the register's status. | |
7626 | (regcache_raw_read_unsigned): Ditto. | |
7627 | (regcache_cooked_read): Change return to enum register_status. | |
7628 | Assert that with read-only regcaches, the register's status must | |
7629 | be known. If the regcache is read-only, and the register is not | |
7630 | REG_VALID, memset the buffer. Return the register's status. | |
7631 | (regcache_cooked_read_signed): Change return to enum | |
7632 | register_status. Handle non-REG_VALID registers and return the | |
7633 | register's status. | |
7634 | (regcache_cooked_read_unsigned): Change return to enum | |
7635 | register_status. Handle non-REG_VALID registers and return the | |
7636 | register's status. | |
7637 | (regcache_xfer_part, regcache_raw_read_part) | |
7638 | (regcache_cooked_read_part): Change return to enum | |
7639 | register_status. Return the register's status. | |
7640 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
7641 | unavailable. | |
7642 | (regcache_dump): Handle unavailable cooked registers. | |
7643 | * frame.c (do_frame_register_read): Adjust interface to match | |
7644 | regcache_cooked_read_ftype. | |
7645 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
7646 | register_status. | |
7647 | * gdbarch.h, gdbarch.c: Regenerate. | |
7648 | ||
7649 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
7650 | register_status. | |
7651 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
7652 | register_status. If reading a raw register indicates the raw | |
7653 | register is not valid, return the raw register's status, | |
7654 | otherwise, return REG_VALID. | |
7655 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
7656 | register_status. Handle non-REG_VALID raw registers and return | |
7657 | the register's status. | |
7658 | * arm-tdep.c (arm_neon_quad_read) | |
7659 | (arm_pseudo_read): Change return to enum register_status. Handle | |
7660 | non-REG_VALID raw registers and return the register's status. | |
7661 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
7662 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
7663 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
7664 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
7665 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
7666 | register_status. | |
7667 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
7668 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
7669 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
7670 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
7671 | (m32c_pseudo_register_read): Change return to enum | |
7672 | register_status. Adjust. | |
7673 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
7674 | enum register_status. Return the register's status. | |
7675 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
7676 | register_status. Return the register's status. | |
7677 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
7678 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
7679 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
7680 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
7681 | (e500_move_ev_register): Use it. Change return to enum | |
7682 | register_status. Return the register's status. | |
7683 | (do_regcache_raw_read): New function. | |
7684 | (do_regcache_raw_write): New function. | |
7685 | (e500_pseudo_register_read): Change return to enum | |
7686 | register_status. Return the register's status. Use | |
7687 | do_regcache_raw_read. | |
7688 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
7689 | (dfp_pseudo_register_read): Change return to enum register_status. | |
7690 | Return the register's status. | |
7691 | (vsx_pseudo_register_read): Ditto. | |
7692 | (efpr_pseudo_register_read): Ditto. | |
7693 | (rs6000_pseudo_register_read): Ditto. | |
7694 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
7695 | register_status. Return the register's status. | |
7696 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
7697 | (sh64_pseudo_register_read): Change return to enum | |
7698 | register_status. Use pseudo_register_read_portions. Return the | |
7699 | register's status. | |
7700 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
7701 | register_status. Return the register's status. | |
7702 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
7703 | (sh_pseudo_register_read): Change return to enum register_status. | |
7704 | Use pseudo_register_read_portions. Return the register's status. | |
7705 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
7706 | enum register_status. Return the register's status. | |
7707 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
7708 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
7709 | (spu_pseudo_register_read): Ditto. | |
7710 | * xtensa-tdep.c (xtensa_register_read_masked) | |
7711 | (xtensa_pseudo_register_read): Ditto. | |
7712 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
7713 | ||
e10abd8f PM |
7714 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7715 | ||
7716 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
7717 | call. | |
7718 | ||
7ea6d463 PM |
7719 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7720 | ||
7721 | ARI fixes: Add missing internationalization markups throughout | |
7722 | C source files. | |
7723 | * darwin-nat-info.c: Ditto. | |
7724 | * record.c: Ditto. | |
7725 | * remote.c: Ditto. | |
7726 | * mi/mi-main.c: Ditto. | |
7727 | ||
001083c6 PM |
7728 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7729 | ||
7730 | ARI fixes: Add missing internationalization markups throughout | |
7731 | yacc files. | |
7732 | * c-exp.y: Ditto. | |
7733 | * cp-name-parser.y: Ditto. | |
7734 | * f-exp.y: Ditto. | |
7735 | * m2-exp.y: Ditto. | |
7736 | * objc-exp.y: Ditto. | |
7737 | * p-exp.y: Ditto. | |
7738 | ||
4f1cdeec PM |
7739 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7740 | ||
7741 | ARI fixes: Messages should have no trailing new lines. | |
7742 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
7743 | warning function call message. | |
7744 | * record.c (bfdcore_read): Idem for error call. | |
7745 | ||
28e698f1 PM |
7746 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7747 | ||
7748 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
7749 | function call message. | |
7750 | (target_signal_to_host): Add _ markup and remove trailing new line | |
7751 | from warning call message. | |
7752 | (target_signal_from_command): Add _ markup to error function call | |
7753 | message. | |
7754 | ||
99c3dc11 PM |
7755 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
7756 | ||
f33edef8 | 7757 | PR python/12149 |
99c3dc11 PM |
7758 | |
7759 | * python/python.c (gdbpy_write): Accept a stream argument and | |
7760 | operate to the appropriate stream. | |
7761 | (gdbpy_flush): Likewise. | |
7762 | (_initialize_python): Add stream constants. | |
7763 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
7764 | ||
c20800be KY |
7765 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
7766 | ||
7767 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
7768 | ||
f4a1794a KY |
7769 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
7770 | ||
7771 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
f33edef8 PP |
7772 | to store_signed_integer. Add debug message when relocating CALL |
7773 | instructions. Fix formatting of debug message. | |
7774 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
f4a1794a | 7775 | |
d4862372 JB |
7776 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
7777 | ||
7778 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
7779 | (target_lookup_symbol): Delete macro. | |
7780 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
7781 | (update_current_target, setup_target_debug): Remove handling | |
7782 | of to_lookup_symbol target_ops field. | |
7783 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
7784 | target_lookup_symbol. | |
7785 | * coffread.c (coff_symtab_read): Likewise. | |
7786 | * dbxread.c (read_dbx_symtab): Ditto. | |
7787 | ||
d645e32e JB |
7788 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
7789 | ||
7790 | PR gdb/12116: | |
7791 | * configure.ac: Add getthrds declaration check. | |
7792 | * configure, config.in: Regenerate. | |
7793 | * aix-thread.c (getthrds): Declare only if not already declared | |
7794 | in procinfo.h. More declaration out of get_signaled_thread to | |
7795 | global scope. | |
7796 | ||
29703da4 PM |
7797 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
7798 | ||
7799 | * python/py-symtab.c: Populate symtab_object_methods, | |
7800 | sal_object_methods. | |
7801 | (stpy_is_valid): New function. | |
7802 | (salpy_is_valid): Ditto. | |
7803 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
7804 | (sympy_is_valid): New function. | |
7805 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
7806 | (objfpy_is_valid): New function. | |
7807 | * python/py-inferior.c: Populate inferior_object_methods. | |
7808 | (infpy_is_valid): New function. | |
7809 | * python/py-infthread.c: Populate thread_object_methods. | |
7810 | (thpy_is_valid): New function. | |
7811 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
7812 | block_iterator_object_methods. Populate. | |
7813 | (blpy_is_valid): New function. | |
7814 | (blpy_iter_is_valid): Ditto. | |
7815 | ||
c00f8484 KS |
7816 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
7817 | ||
7818 | * linespec.c (find_methods): Canonicalize NAME before looking | |
7819 | up the symbol. | |
7820 | (name_end): New function. | |
7821 | (keep_name_info): New function. | |
7822 | (decode_line_1): Use keep_name_info. | |
7823 | (decode_compound): Likewise. | |
7824 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
7825 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
7826 | ||
7827 | PR c++/12273 | |
7828 | * linespec.c (locate_first_half): Keep overload information, too. | |
7829 | (decode_compound): Use a string to represent break characters | |
7830 | to escape the loop. | |
7831 | If P points to a break character, do not increment it. | |
7832 | For C++ and Java, keep overload information and relevant keywords. | |
7833 | If we cannot find a symbol, search the minimal symbols. | |
7834 | ||
7835 | PR c++/11734 | |
7836 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
7837 | THE_REAL_SAVED_ARG. | |
7838 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
7839 | single-quotes. | |
7840 | Pass a valid block to lookup_symbol. | |
7841 | (lookup_prefix_sym): Likewise. | |
7842 | (find_method): Construct search name based on SYM_CLASS instead | |
7843 | of SAVED_ARG. | |
7844 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
7845 | (lookup_symbol_aux_psymtabs): Likewise. | |
7846 | Don't assume that the psymtab we found was the right one. Search | |
7847 | for the desired symbol in the symtab to be certain. | |
7848 | (psymtab_search_name): New function. | |
7849 | (lookup_partial_symbol): Use psymtab_search_name. | |
7850 | Add language parameter. | |
7851 | (read_symtabs_for_function): Add language parameter and pass to | |
7852 | lookup_partial_symbol. | |
7853 | (find_symbol_file_from_partial): Likewise. | |
7854 | ||
c91513d8 PP |
7855 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
7856 | ||
7857 | PR gdb/12528 | |
7858 | * dwarf2read.c (noop_record_line): New function. | |
7859 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
7860 | ||
b37520b6 PM |
7861 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
7862 | ||
7863 | Fix ARI warnings about new lines at the end of messages, which | |
7864 | are unneeded as there is a new line added at the end of the message | |
7865 | automatically. | |
7866 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
7867 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
7868 | * dfp.c (decimal_to_number): Ditto. | |
7869 | * exec.c (print_section_info): Ditto. | |
7870 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
7871 | * osdata.c (get_osdata): Ditto. | |
7872 | * record.c (bfdcore_write): Ditto. | |
7873 | * remote-mips.c (mips_readchar): Ditto. | |
7874 | * remote.c (read_ptid): Ditto. | |
7875 | * ser-mingw.c (ser_windows_raw): Ditto. | |
7876 | * tracepoint.c (add_local_symbols): Ditto. | |
7877 | * windows-nat.c (fake_create_process): Ditto. | |
7878 | ||
b08ee6a2 TT |
7879 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
7880 | ||
7881 | * tracepoint.c (stop_tracing): Don't declare. | |
7882 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
7883 | ||
9a6f1302 PM |
7884 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
7885 | ||
7886 | * NEWS: Add Parameter sub-classing description. | |
7887 | ||
7ceb86b1 KT |
7888 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
7889 | ||
7890 | * MAINTAINERS: Update my e-mail address. | |
7891 | ||
efeff6cf AT |
7892 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
7893 | ||
7894 | * MAINTAINERS: Add myself for write after approval privileges. | |
7895 | ||
681c238c MS |
7896 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
7897 | ||
f3df5b08 MS |
7898 | * frame.c (find_frame_sal): Assert sym is not null. |
7899 | ||
13f6513c MS |
7900 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
7901 | ||
50412521 MS |
7902 | * objc-lang.c (selectors_info): Check strchr for null result. |
7903 | ||
681c238c MS |
7904 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
7905 | ||
6ced1581 PM |
7906 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
7907 | ||
7908 | Remove trailing spaces and tabulations from pascal language | |
7909 | support sources. | |
7910 | p-exp.y: Ditto. | |
7911 | p-lang.c: Ditto. | |
7912 | p-lang.h: Ditto. | |
7913 | p-valprint.c: Ditto. | |
7914 | ||
9373cf26 JK |
7915 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7916 | ||
7917 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
7918 | than LOW. Comment it. | |
7919 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
7920 | HIGHPC not strictly higher than LOWPC. | |
7921 | ||
9a1edae6 PM |
7922 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
7923 | ||
7924 | Fix formatting of function declarations returning a pointer in | |
7925 | previous commit. | |
7926 | * varobj.c (varobj_add_child): Ditto. | |
7927 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
7928 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
7929 | ||
24e9cda0 UW |
7930 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
7931 | ||
7932 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
7933 | for the "generic" vector ABI used with GCC 4.3 and later. | |
7934 | (ppc64_sysv_abi_return_value): Likewise. | |
7935 | ||
7936 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
7937 | |
7938 | * infcall.c (call_function_by_hand): Function return value is | |
7939 | always a non_lval, even when using struct_return. | |
7940 | ||
c9174737 PA |
7941 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
7942 | ||
7943 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
7944 | (map_display_numbers): New. | |
7945 | (do_delete_display): New. | |
7946 | (undisplay_command): Use map_display_numbers. | |
7947 | (do_enable_disable_display): New. | |
7948 | (enable_disable_display_command): New function. | |
7949 | (enable_display): Delete. | |
7950 | (enable_display_command): New. | |
7951 | (disable_display_command): Reimplement. | |
7952 | (_initialize_printcmd): Adjust "enable display" command to use | |
7953 | `enable_display_command' as callback. | |
7954 | ||
350c6c65 PM |
7955 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
7956 | ||
7957 | * NEWS: Add Python breakpoint 'stop' operation. | |
7958 | ||
824446ad PM |
7959 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
7960 | ||
7961 | * NEWS: Delete duplicate entry. Fix typo. | |
7962 | ||
2021ad3a PM |
7963 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
7964 | ||
7965 | Fix ARI warning about function names in first column. | |
7966 | Put prototype declaration on same line as return type. | |
7967 | * objc-exp.y: Ditto. | |
7968 | * p-exp.y: Ditto. | |
7969 | * python/py-stopevent.h: Ditto. | |
7970 | For long function names, split parameters to | |
7971 | allow function name on same line as return type. | |
7972 | * solib-pa64.c: Ditto. | |
7973 | * varobj.c: Ditto. | |
7974 | * varobj.h: Ditto. | |
7975 | For long function declaration, use single line. | |
7976 | * hppa-tdep.h: Ditto. | |
7977 | * inferior.h: Ditto. | |
7978 | ||
7371cf6d PM |
7979 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
7980 | ||
7981 | * python/python.h: Declare gdbpy_should_stop and | |
7982 | gdbpy_breakpoint_has_py_cond. | |
7983 | * python/python.c: Add python.h to includes. Remove python.h from | |
7984 | HAVE_PYTHON definition | |
7985 | (gdbpy_should_stop): New dummy function. | |
7986 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
7987 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
7988 | sub-classing capabilities. | |
7989 | (gdbpy_should_stop): New function. | |
7990 | (gdbpy_breakpoint_has_py_cond): New function. | |
7991 | (local_setattro): New function. | |
7992 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
7993 | operation. | |
7994 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
7995 | operation function as part of stop/continue tests. | |
7996 | ||
37b50a69 TT |
7997 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
7998 | ||
7999 | PR gdb/12576: | |
8000 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
8001 | (needs_frame_dwarf_call): Likewise. | |
8002 | ||
eeae04df PM |
8003 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
8004 | ||
8005 | Fix ARI warning about functions without parameters that do not | |
8006 | use (void). | |
8007 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
8008 | * f-exp.y (match_string_literal): Ditto. | |
8009 | (yylex): Ditto. | |
8010 | * m2-exp.y (yylex): Ditto. | |
8011 | * mep-tdep.c (current_me_module): Ditto. | |
8012 | (current_options): Ditto. | |
8013 | (current_cop_data_bus_width): Ditto. | |
8014 | (current_cr_names): Ditto. | |
8015 | (current_cr_is_float): Ditto. | |
8016 | (current_ccr_names): Ditto. | |
8017 | * objc-exp.y (yylex): Ditto. | |
8018 | * p-exp.y (yylex): Ditto. | |
8019 | * remote.c (send_interrupt_sequence): Ditto. | |
8020 | * tracepoint.c (current_trace_status): Ditto. | |
8021 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
8022 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
8023 | ||
6dc3565d MS |
8024 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
8025 | ||
1427fe5e MS |
8026 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
8027 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
8028 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
8029 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
8030 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
8031 | ||
60bc018f MS |
8032 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
8033 | (delete_async_event_handler): Ditto. | |
8034 | ||
f3be5b64 MS |
8035 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
8036 | ||
4c2d5724 MS |
8037 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
8038 | ||
6dc3565d MS |
8039 | * top.c (set_verbose): Assert showcmd was found. |
8040 | ||
4e6ca6d5 MG |
8041 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
8042 | ||
8043 | * xtensa-tdep.c (warning_once): Correct style issues. | |
8044 | ||
815a83e4 YQ |
8045 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
8046 | ||
8047 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
8048 | ||
f2eb0bc8 AS |
8049 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
8050 | ||
8051 | * common/aclocal.m4: Remove. | |
8052 | ||
b801de47 MG |
8053 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
8054 | ||
8055 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
8056 | (xtensa_write_register, xtensa_read_register): Likewise. | |
8057 | (xtensa_hextochar): Removed. | |
8058 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
8059 | ||
dbab50de MG |
8060 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
8061 | ||
8062 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 8063 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
8064 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
8065 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
8066 | (warning_once): New function. | |
8067 | (xtensa_insn_kind): New item c0opc_and. | |
8068 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
8069 | (call0_track_op): Change arguments. New local variable litbase. |
8070 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
8071 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
8072 | in the prologue. | |
dbab50de | 8073 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 8074 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
8075 | Add the variety of updates to handle extended prologues, which now can |
8076 | conduct dynamic stack adjustments. | |
8077 | (call0_frame_cache): Likewise. | |
8078 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
8079 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
8080 | ||
b2c04452 MS |
8081 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
8082 | ||
f8f67713 MS |
8083 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
8084 | (cmd_qtframe): Ditto. | |
8085 | (cmd_qtbuffer): Ditto. | |
8086 | (cmd_bigqtbuffer): Ditto. | |
8087 | ||
197f0a60 TT |
8088 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
8089 | ||
8090 | * tracepoint.c (trace_actions_command): Update. | |
8091 | * thread.c (thread_apply_command): Update. | |
8092 | * reverse.c (delete_bookmark_command): Update. | |
8093 | (bookmarks_info): Update. | |
8094 | * printcmd.c (undisplay_command): Update. | |
8095 | * memattr.c (mem_enable_command): Update. | |
8096 | (mem_disable_command): Update. | |
8097 | (mem_delete_command): Update. | |
8098 | * inferior.c (detach_inferior_command): Update. | |
8099 | (kill_inferior_command): Update. | |
8100 | (remove_inferior_command): Update. | |
8101 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
8102 | (init_number_or_range): Declare. | |
8103 | (get_number_or_range): Update. | |
8104 | * cli/cli-utils.c (init_number_or_range): New function. | |
8105 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
8106 | static variables. | |
8107 | (number_is_in_list): Update. | |
8108 | * breakpoint.h (get_tracepoint_by_number): Update. | |
8109 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
8110 | get_number_or_range. | |
8111 | (find_location_by_number): Use get_number, not | |
8112 | get_number_or_range. | |
8113 | (trace_pass_set_count): New function. | |
8114 | (trace_pass_command): Update for change to get_number_or_range. | |
8115 | Rework loop logic. | |
8116 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
8117 | 'state' parameter. | |
8118 | ||
ecec24e6 PM |
8119 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
8120 | ||
8121 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
8122 | parameters. Register Python object context. | |
8123 | (get_show_value): New function. | |
8124 | (get_set_value): New function. | |
8125 | (call_doc_function): New function. | |
8126 | (get_doc_string): Move behind get_show_value/get_set_value. | |
8127 | ||
6d6c6b1f JK |
8128 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
8129 | ||
8130 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
8131 | ||
68d6df83 MG |
8132 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
8133 | ||
dbab50de | 8134 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
8135 | (xtensa_write_register): Likewise. |
8136 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
8137 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
8138 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
8139 | (xtensa_exception_handler_t): Update to match coding conventions. | |
8140 | (xtensa_insn_kind): Likewise. | |
8141 | ||
85c9d6a6 MS |
8142 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
8143 | ||
8144 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
8145 | ||
91495617 PA |
8146 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
8147 | ||
8148 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
8149 | ||
eb8c0621 TT |
8150 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
8151 | ||
8152 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
8153 | (make_cleanup_restore_current_thread): Use | |
8154 | get_selected_frame_if_set. | |
8155 | * frame.h (get_selected_frame_if_set): Declare. | |
8156 | * frame.c (get_selected_frame_if_set): New function. | |
8157 | ||
9f37bbcc PA |
8158 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
8159 | ||
8160 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
8161 | * coffread.c (coff_start_symtab): Constify parameter. | |
8162 | (complete_symtab): Constify `name' parameter. | |
8163 | (coff_symtab_read): Constify `filestring' local. | |
8164 | (coff_getfilename): Constify return and `result' local. | |
8165 | Use lbasename. | |
8166 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
8167 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
8168 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
8169 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
8170 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
8171 | * procfs.c (procfs_make_note_section): Use lbasename. | |
8172 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
8173 | Use lbasename. | |
8174 | (print_filename): Constify parameters, and local `s'. | |
8175 | (tui_rl_display_match_list): Constify local `temp'. | |
8176 | ||
f8de3c55 JK |
8177 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
8178 | ||
8179 | Revert: | |
8180 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
8181 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
8182 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
8183 | cu->header.version >= 3. | |
8184 | ||
d9837b00 YQ |
8185 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
8186 | ||
8187 | * common/Makefile.in: Remove. | |
8188 | * common/configure: Remove. | |
8189 | * common/configure.ac: Remove. | |
8190 | ||
e637a4f5 YQ |
8191 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
8192 | ||
8193 | Revert: | |
8194 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
8195 | ||
8196 | * common/Makefile.in: Add copyright header. | |
8197 | ||
8198 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
8199 | ||
8200 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
8201 | libcommon.a. | |
8202 | * configure.ac: Add common to sub dir. | |
8203 | * configure: Regenerate. | |
8204 | ||
f976a05d MG |
8205 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
8206 | ||
8207 | * xtensa-tdep.c (call0_ret): New function. | |
8208 | (xtensa_skip_prologue): Speed up analysis. | |
8209 | ||
57041825 MG |
8210 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
8211 | ||
8212 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
8213 | while executing MI command -data-list-changed-registers. | |
8214 | ||
08b9c608 MG |
8215 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
8216 | ||
8217 | * xtensa-tdep.c (xtensa_read_register): New function. | |
8218 | (xtensa_write_register): New function. | |
8219 | (xtensa_find_register_by_name): New function. | |
8220 | (xtensa_windowed_frame_cache): Update comments in type description. | |
8221 | (xtensa_frame_cache): Likewise. | |
8222 | (xtensa_window_interrupt_insn): New function. | |
8223 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
8224 | (xtensa_insn_kind): Add new instructions. | |
8225 | (rwx_special_register): New function. | |
8226 | (call0_classify_opcode): Add new instructions to the analysis. | |
8227 | (a0_saved, a7_saved, a11_saved): New variables. | |
8228 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
8229 | (execute_l32e): New function. | |
8230 | (execute_s32e): New function. | |
8231 | (xtensa_exception_handler_t): New type. | |
8232 | (execute_code): New function. | |
8233 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
8234 | analysis for Xtensa Window Exception handlers. | |
8235 | ||
4d1acb11 MG |
8236 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
8237 | ||
98689b25 MG |
8238 | * xtensa-tdep.c (TX_PS): New. |
8239 | (windowing_enabled): Update to count for Call0 ABI. | |
8240 | (xtensa_hextochar): New. | |
8241 | (xtensa_init_reggroups): Make algorithm generic. | |
8242 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
8243 | ||
8244 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
8245 | ||
8246 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 8247 | |
d3f323f3 MS |
8248 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
8249 | ||
3dcabaa8 MS |
8250 | * i386-tdep.c (i386_follow_jump): Check return value of |
8251 | target_read_memory. | |
8252 | (i386_analyze_struct_return): Ditto. | |
8253 | (i386_skip_probe): Ditto. | |
8254 | (i386_match_insn): Ditto. | |
8255 | (i386_skip_noop): Ditto. | |
8256 | (i386_analyze_frame_setup): Ditto. | |
8257 | (i386_analyze_register_saves): Ditto. | |
8258 | (i386_skip_prologue): Ditto. | |
8259 | (i386_skip_main_prologue): Ditto. | |
8260 | ||
13b3fd9b MS |
8261 | * target.c (read_whatever_is_readable): Fix memory leak. |
8262 | ||
d3f323f3 MS |
8263 | * i386-tdep.c (i386_process_record): Document fall through. |
8264 | ||
421d5c74 JK |
8265 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8266 | ||
8267 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
8268 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
8269 | cu->header.version >= 3. | |
8270 | ||
63154eca PA |
8271 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
8272 | ||
8273 | * remote.c (remote_check_symbols): Skip if the target has no | |
8274 | execution. | |
8275 | ||
f1a507a1 JB |
8276 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
8277 | ||
8278 | * target.c (read_whatever_is_readable): Reformat comment, | |
8279 | with a minor typo fix. Minor reformatting of the code. | |
8280 | ||
36073a92 YQ |
8281 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
8282 | ||
8283 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
8284 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
8285 | Use cached result instead of calling displaced_in_arm_mode again. | |
8286 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
8287 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
8288 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
8289 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
8290 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
8291 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
8292 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
8293 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
8294 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
8295 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
8296 | (arm_catch_kernel_helper_return): Likewise. | |
8297 | * gdb/arm-tdep.h : Update function declarations. | |
8298 | ||
d3f323f3 | 8299 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 8300 | |
e0e40094 MS |
8301 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
8302 | ||
0b2381f5 MS |
8303 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
8304 | ||
0350914a MS |
8305 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
8306 | ||
69feea6f MS |
8307 | * elfread.c (elf_symtab_read): Stop memory leak. |
8308 | ||
e6040cbd MS |
8309 | * main.c (captured_main): Fix memory leak. |
8310 | ||
052874e8 AS |
8311 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
8312 | ||
8313 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
8314 | instead of string2. | |
8315 | ||
b11896a5 TT |
8316 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
8317 | ||
8318 | * xcoffread.c (xcoff_sym_fns): Update. | |
8319 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
8320 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
8321 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
8322 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
8323 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
8324 | * somread.c (som_sym_fns): Update. | |
8325 | * psymtab.h (require_partial_symbols): Declare. | |
8326 | * psymtab.c (require_partial_symbols): New function. | |
8327 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
8328 | (ALL_OBJFILE_PSYMTABS): Undef. | |
8329 | (ALL_PSYMTABS): Move from psympriv.h. | |
8330 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
8331 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
8332 | (find_last_source_symtab_from_partial) | |
8333 | (forget_cached_source_info_partial) | |
8334 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
8335 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
8336 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
8337 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
8338 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
8339 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
8340 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
8341 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
8342 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
8343 | psymtabs. | |
8344 | * mipsread.c (ecoff_sym_fns): Update. | |
8345 | * machoread.c (macho_sym_fns): Update. | |
8346 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
8347 | (read_psyms): New function. | |
8348 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
8349 | (elf_sym_fns_lazy_psyms): New global. | |
8350 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
8351 | dwarf2_build_psymtabs. | |
8352 | * dbxread.c (aout_sym_fns): Update. | |
8353 | * coffread.c (coff_sym_fns): Update. | |
8354 | ||
fda326dd TT |
8355 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
8356 | ||
8357 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
8358 | message. | |
8359 | ||
aeaec162 TT |
8360 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
8361 | ||
8362 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
8363 | parameter. | |
8364 | (target_has_execution_1): Update. | |
8365 | (target_has_execution_current): Declare. | |
8366 | (target_has_execution): Call target_has_execution_current. | |
8367 | (default_child_has_execution): Update. | |
8368 | * target.c (default_child_has_execution): Add 'the_ptid' | |
8369 | parameter. | |
8370 | (target_has_execution_1): Likewise. | |
8371 | (target_has_execution_current): New function. | |
8372 | (add_target): Update. | |
8373 | (init_dummy_target): Update. | |
8374 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
8375 | (init_m32r_ops): Use it. | |
8376 | * record.c (record_core_has_execution): Now static. Add | |
8377 | 'the_ptid' parameter. | |
8378 | * inferior.c (have_live_inferiors): Don't save current thread. | |
8379 | Use target_has_execution_1. | |
8380 | ||
08e14083 YQ |
8381 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
8382 | ||
8383 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
8384 | ||
c05d19c5 JB |
8385 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
8386 | ||
8387 | * elfread.c (elf_symtab_read): Minor reformatting. | |
8388 | ||
3e6ef9e4 JB |
8389 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
8390 | ||
8391 | * objc-lang.c (selectors_info): Minor reformatting. | |
8392 | ||
dbb8534f JB |
8393 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
8394 | ||
8395 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
8396 | ||
dd70cc93 JB |
8397 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
8398 | Michael Snyder <msnyder@vmware.com> | |
8399 | ||
8400 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
8401 | "byte_order" and "elttype" inside the block where these variables | |
8402 | are actually used. Remove some special handling for the case | |
8403 | where "elttype" and "eltlen" are null. Replace by a comment | |
8404 | and a couple of assertion checks. | |
8405 | ||
b27cf2b3 MS |
8406 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
8407 | ||
8408 | * source.c (add_path): Replace semicolon at end of block. | |
8409 | * dwarf2expr.c (execute_stack_op): Ditto. | |
8410 | ||
5387a0c6 MF |
8411 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
8412 | ||
8413 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
8414 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
8415 | (bfin-*-*): Likewise. | |
8416 | ||
e3aa49af MS |
8417 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
8418 | ||
82ae4854 MS |
8419 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
8420 | * mdebugread.c (parse_symbol): Ditto. | |
8421 | * parse.c (parse_exp_in_context): Ditto. | |
8422 | * source.c (add_path): Ditto. | |
8423 | * utils.c (gnu_debuglink_crc32): Ditto. | |
8424 | * varobj.c (variable_language): Ditto. | |
8425 | ||
e3aa49af MS |
8426 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
8427 | ||
154f592e MS |
8428 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
8429 | ||
da3ecdc6 MS |
8430 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
8431 | ||
9cc89665 MS |
8432 | * symfile.c (simple_overlay_update): Check for null return value |
8433 | from lookup_minimal_symbol. | |
8434 | ||
154f592e MS |
8435 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
8436 | ||
63ffa6ee TJB |
8437 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8438 | ||
8439 | * eval.c (parse_and_eval_address_1): Remove function. | |
8440 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
8441 | instead of parse_and_eval_address_1. | |
8442 | * value.h (parse_and_eval_address_1): Remove prototype. | |
8443 | ||
a17d146e MS |
8444 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
8445 | ||
8446 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
8447 | ||
1a6a67de TJB |
8448 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8449 | ||
8450 | * breakpointc (print_it_typical): Move NULL check from here... | |
8451 | (print_bp_stop_message): ... to here. | |
8452 | ||
488919c4 MS |
8453 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
8454 | ||
8455 | * breakpoint.c (enable_command): Use break instead of continue, | |
8456 | and fill in a missing break. | |
8457 | (disable_command): Ditto. | |
8458 | ||
1e182ce8 UW |
8459 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
8460 | ||
8461 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
8462 | (terminal_save_ours): Remove misleading comment. | |
8463 | (inflow_inferior_data_cleanup): Free ttystate. | |
8464 | (inflow_inferior_exit): Likewise. | |
8465 | (copy_terminal_info): Copy ttystate. | |
8466 | ||
8467 | * serial.c (serial_copy_tty_state): New function. | |
8468 | * serial.h (serial_copy_tty_state): Add prototype. | |
8469 | (struct serial_ops): Add copy_tty_state callback. | |
8470 | * ser-base.c (ser_base_copy_tty_state): New function. | |
8471 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
8472 | * ser-go32.c (dos_copy_tty_state): New function. | |
8473 | (dos_ops): Install copy_tty_state callback. | |
8474 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
8475 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
8476 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
8477 | (_initialize_ser_hardwire): Install it. | |
8478 | ||
b2c5f112 MS |
8479 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
8480 | ||
2abae994 MS |
8481 | * breakpoint.c (create_breakpoint): Add missing break statement. |
8482 | ||
7f5936f9 MS |
8483 | Reverting this patch: |
8484 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
8485 | ||
b2c5f112 MS |
8486 | Reverting this patch: |
8487 | * cli/cli-script.c (script_from_file): Add break for lint. | |
8488 | ||
42b1321c MS |
8489 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
8490 | ||
8491 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
8492 | ||
3e2a0cee TT |
8493 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
8494 | ||
8495 | PR gdb/12538: | |
8496 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
8497 | DW_STRING is NULL. | |
8498 | ||
58397cb7 MS |
8499 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
8500 | ||
2e3fd767 MS |
8501 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
8502 | fields of struct 'st' to zero. | |
8503 | ||
58397cb7 MS |
8504 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
8505 | sal.pspace before calling set_current_source_symtab_and_line. | |
8506 | ||
ced54c8f YQ |
8507 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
8508 | ||
8509 | * Makefile.in (configure-common): Remove. Let Makefile | |
8510 | in dir common to rebuild itself. | |
8511 | (common/Makefile): Likewise. | |
8512 | ||
3351ea09 JB |
8513 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
8514 | ||
8515 | * utils.c (parse_escape): Add i18n markup in error message. | |
8516 | ||
bf9f652a YQ |
8517 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
8518 | ||
8519 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
8520 | ARM_PC_REGNUM. | |
8521 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
8522 | (displaced_write_reg, displaced_read_reg): Likewise. | |
8523 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
8524 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
8525 | (cleanup_branch): Replace magic number 14 and 15 with | |
8526 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
8527 | ||
d42de051 MS |
8528 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
8529 | ||
240f9570 MS |
8530 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
8531 | ||
10dd8b54 MS |
8532 | * cli/cli-script.c (script_from_file): Add break for lint. |
8533 | ||
b98bd911 MS |
8534 | * mdebugread.c (parse_partial_symbols): Fix indent. |
8535 | ||
3494b66d MS |
8536 | * target-descriptions.c (tdesc_gdb_type): No need to call |
8537 | xstrdup, callee saves a copy. | |
8538 | ||
daac021a MS |
8539 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
8540 | ||
c38d16a7 MS |
8541 | * infcall.c (call_function_by_hand): Add break statements for lint. |
8542 | ||
905b671b MS |
8543 | * utils.c (parse_escape): Escape the escape char. |
8544 | ||
f2eb0bc8 | 8545 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
8546 | PyList_Append fails. |
8547 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
8548 | ||
8c6a60d1 MS |
8549 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
8550 | a function call. | |
8551 | ||
d42de051 MS |
8552 | * record.c (record_restore): Move printf to before error return. |
8553 | ||
4db71c0b YQ |
8554 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
8555 | ||
8556 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
8557 | is_thumb and insn_size. | |
8558 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
8559 | on both ARM and Thumb mode. | |
8560 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
8561 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
8562 | (arm_displaced_step_fixup): Likewise. | |
8563 | ||
a9dc8dcc MS |
8564 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
8565 | ||
53624a93 MS |
8566 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
8567 | ||
77766669 MS |
8568 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
8569 | ||
62d5b8da MS |
8570 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
8571 | ||
5e9e105f MS |
8572 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
8573 | ||
dc19db01 MS |
8574 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
8575 | with xmalloc. | |
8576 | ||
5ce64950 MS |
8577 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
8578 | which shadows function parameter. | |
8579 | ||
a0aa2878 MS |
8580 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
8581 | to xstrdup. Callee already calls xstrdup. | |
8582 | ||
e325fb69 MS |
8583 | * linespec.c (decode_line_1): Remove unnecessary null check. |
8584 | ||
21cbba77 MS |
8585 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
8586 | variable. | |
8587 | ||
63360adc MS |
8588 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
8589 | superfluous null check. | |
8590 | ||
18ea20ac | 8591 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 8592 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 8593 | |
d014929c MS |
8594 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
8595 | ||
6e9130cf MS |
8596 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
8597 | be null. | |
8598 | ||
5f01dbc0 MS |
8599 | * linespec.c (decode_line_1): Check for null before dereference. |
8600 | ||
d684ab85 MS |
8601 | * reverse.c (record_restore): Move null-check to before pointer |
8602 | dereference. | |
8603 | ||
bfffb7e3 MS |
8604 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
8605 | ||
a9dc8dcc MS |
8606 | * objc-lang.c (selectors_info): Add explanitory comment. |
8607 | (classes_info): Ditto. | |
8608 | ||
478fd957 UW |
8609 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
8610 | ||
8611 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
8612 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
8613 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
8614 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
8615 | (arm_linux_init_abi): Install it. | |
8616 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
8617 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
8618 | ||
0480cefa MS |
8619 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
8620 | ||
ac50ab3b MS |
8621 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
8622 | a little bigger, to avoid possibility of an overflow. | |
8623 | ||
f63fbe86 MS |
8624 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
8625 | buffers a little bigger, to avoid possibility of an overflow. | |
8626 | ||
9e91a352 MS |
8627 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
8628 | ||
f2eb0bc8 | 8629 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
8630 | avoid overflow. |
8631 | (classes_info): Error out on too long REGEXP. | |
8632 | ||
098ab512 MS |
8633 | * infrun.c (handle_inferior_event): Remove unused function call. |
8634 | ||
bcbd1de9 MS |
8635 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
8636 | unused variable. | |
8637 | ||
2e456570 MS |
8638 | * linux-thread-db.c (attach_thread): Discard unused value. |
8639 | ||
14571dad MS |
8640 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
8641 | ||
a9cbf802 MS |
8642 | * remote.c (remote_get_noisy_reply): Discard unused value. |
8643 | (remote_vcont_resume): Ditto. | |
8644 | (remote_stop_ns): Ditto. | |
8645 | ||
5715d26e MS |
8646 | * linespec.c (decode_objc): Delete unused variable. |
8647 | ||
4a9bca80 MS |
8648 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
8649 | ||
f47fb265 MS |
8650 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
8651 | (read_base_type): Delete unused variable. | |
8652 | ||
e81cff30 MS |
8653 | * dbxread.c (read_dbx_symtab): Discard unused value. |
8654 | ||
262acaeb MS |
8655 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
8656 | and discard unused values. | |
8657 | ||
df983543 MS |
8658 | * infcmd.c (_initialize_infcmd): Discard unused values. |
8659 | ||
89acf84d MS |
8660 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
8661 | ||
ab8b8aca MS |
8662 | * dbxread.c (process_one_symbol): Discard unused value. |
8663 | ||
6b4511ab MS |
8664 | * coffread.c (coff_end_symtab): Delete unused variable. |
8665 | ||
e8e80198 MS |
8666 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
8667 | (dwarf2_add_typedef): Delete unused variable. | |
8668 | (read_namespace): Ditto. | |
8669 | (dwarf_decode_macros): Ditto. | |
8670 | ||
976aa66e MS |
8671 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
8672 | ||
5b92b49f MS |
8673 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
8674 | ||
91e8df85 MS |
8675 | * p-valprint.c (pascal_val_print): Discard unused value. |
8676 | ||
899500d6 MS |
8677 | * utils.c (nquery): Call va_end before return; |
8678 | (yquery): Ditto. | |
8679 | (query): Ditto. | |
8680 | ||
0480cefa MS |
8681 | * proc-service.c (ps_plog): Call va_end before return. |
8682 | ||
fb6a3ed3 TT |
8683 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
8684 | ||
8685 | * python/python.c (gdbpy_value_cst): New global. | |
8686 | (_initialize_python): Initialize it. | |
8687 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
8688 | * python/py-value.c (convert_value_from_python): Use | |
8689 | gdbpy_value_cst. | |
8690 | ||
c05202a1 MS |
8691 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
8692 | ||
e463f587 MS |
8693 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
8694 | ||
c38eea1a MS |
8695 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
8696 | ||
3ef09ab5 MS |
8697 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
8698 | ||
8f9a01ee MS |
8699 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
8700 | (lval_func_check_synthetic_pointer): Ditto. | |
8701 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 8702 | |
477d0d57 TT |
8703 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
8704 | ||
8705 | * psymtab.c (expand_partial_symbol_tables): Use | |
8706 | ALL_OBJFILE_PSYMTABS. | |
8707 | ||
20937029 JK |
8708 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8709 | ||
8710 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
8711 | ||
907b7f4f MS |
8712 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
8713 | ||
92e96192 MS |
8714 | * python/py-param.c (set_parameter_value): Add missing |
8715 | break statement. | |
8716 | ||
907b7f4f MS |
8717 | * linux-record.c (record_linux_system_call): Add missing |
8718 | break statement. | |
8719 | ||
12c5a436 UW |
8720 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
8721 | ||
8722 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
8723 | argument PRINT_ADDRESS_BITS. Update callers. | |
8724 | (print_one_breakpoint): Likewise. | |
8725 | ||
170b53b2 UW |
8726 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
8727 | ||
8728 | * breakpoint.c (wrap_indent_at_field): New function. | |
8729 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
8730 | Allocate ui_stream locally instead of using STB argument. | |
8731 | (print_one_breakpoint_location): Update call. | |
8732 | * ui-out.c (ui_out_query_field): New function. | |
8733 | * ui-out.h (ui_out_query_field): Add prototype. | |
8734 | ||
8ab1f94d JB |
8735 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
8736 | ||
8737 | From Michael Snyder <msnyder@vmware.com> | |
8738 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
8739 | ||
7d488639 MS |
8740 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
8741 | ||
ae179fba MS |
8742 | * objc-lang.c (selectors_info): Prevent string overrun. |
8743 | ||
086dbf66 MS |
8744 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
8745 | error in strncpy. | |
8746 | ||
f2eb0bc8 | 8747 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
8748 | outer scope. |
8749 | ||
7d488639 MS |
8750 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
8751 | param with a local variable of the same name. | |
8752 | ||
3bd0f5ef MS |
8753 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
8754 | ||
8755 | * value.c (value_from_history_ref): New function. | |
8756 | * value.h (value_from_history_ref): Export. | |
8757 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
8758 | to parse value history references. | |
8759 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
8760 | ||
8761 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
8762 | ||
8763 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
8764 | (kill_inferior_command): Ditto. | |
8765 | (remove_inferior_command): Ditto. | |
8766 | (initialize_inferiors): Make command names plural. | |
8767 | Update help strings. | |
8768 | ||
766062f6 MS |
8769 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
8770 | ||
8771 | * darwin-nat-info.c: Fix comment typo. | |
8772 | * dwarf2expr.h: Ditto. | |
8773 | * fbsd-nat.c: Ditto. | |
8774 | * fbsd-nat.h: Ditto. | |
8775 | * frame-unwind.h: Ditto. | |
8776 | * frame.h: Ditto. | |
8777 | * hppa-hpux-tdep.c: Ditto. | |
8778 | * i386-linux-nat.c: Ditto. | |
8779 | * linux-nat.c: Ditto. | |
8780 | * nbsd-nat.c: Ditto. | |
8781 | * nbsd-nat.h: Ditto. | |
8782 | * ppc-linux-tdep.c: Ditto. | |
8783 | * serial.c: Ditto. | |
8784 | * ui-file.h: Ditto. | |
8785 | * tui/tui-winsource.c: Ditto. | |
8786 | ||
f2c4ead5 MS |
8787 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
8788 | ||
86b887df MS |
8789 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
8790 | ||
66fd3b1e MS |
8791 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
8792 | ||
8c814cdd MS |
8793 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
8794 | with a local variable of the same name. | |
8795 | ||
6d5e094a | 8796 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 8797 | param with a local variable of the same name. |
6d5e094a | 8798 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 8799 | |
5eee517d MS |
8800 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
8801 | that it does not shadow a function parameter. | |
8802 | ||
8fbf6b93 MS |
8803 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
8804 | statement is meant to fall through. | |
8805 | ||
cb969d61 MS |
8806 | * expprint.c (dump_subexp_body_standard): Document that case |
8807 | statement is meant to fall through. | |
8808 | ||
f2c4ead5 MS |
8809 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
8810 | dead if statement. Condition can't be false. | |
8811 | ||
b021a221 MS |
8812 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
8813 | ||
8814 | * arm-tdep.c: Fix typos in comments. | |
8815 | * bsd-uthread.c: Ditto. | |
8816 | * completer.c: Ditto. | |
8817 | * corelow.c: Ditto. | |
8818 | * cp-namespace.c: Ditto. | |
8819 | * cp-support.c: Ditto. | |
8820 | * cris-tdep.c: Ditto. | |
8821 | * dbxread.c: Ditto. | |
8822 | * dwarf2read.c: Ditto. | |
8823 | * frame.h: Ditto. | |
8824 | * gdbtypes.h: Ditto. | |
8825 | * inferior.h: Ditto. | |
8826 | * mdebugread.c: Ditto. | |
8827 | * mips-tdep.c: Ditto. | |
8828 | * ppc-linux-nat.c: Ditto. | |
8829 | * ppc-linux-tdep.c: Ditto. | |
8830 | * printcmd.c: Ditto. | |
8831 | * sol-thread.c: Ditto. | |
8832 | * solib-frv.c: Ditto. | |
8833 | * solist.h: Ditto. | |
8834 | * sparc64-tdep.c: Ditto. | |
8835 | * spu-tdep.c: Ditto. | |
8836 | * stabsread.c: Ditto. | |
8837 | * symfile.c: Ditto. | |
8838 | * valops.c: Ditto. | |
8839 | * varobj.c: Ditto. | |
8840 | * vax-nat.c: Ditto. | |
8841 | * python/py-block.c: Ditto. | |
8842 | * python/py-symbol.c: Ditto. | |
8843 | * python/py-symtab.c: Ditto. | |
8844 | * python/py-value.c: Ditto. | |
8845 | * tui/tui-win.c: Ditto. | |
8846 | ||
c82c0b55 MS |
8847 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
8848 | ||
8849 | * inferior.c (print_inferior): Accept a string instead of an int | |
8850 | for requested_inferiors, and use get_number_or_range to parse it. | |
8851 | (info_inferiors_command): Pass args string to print_inferior. | |
8852 | (initialize_inferiors): Change help string for info inferiors. | |
8853 | * inferior.h (print_inferior): Export prototype change. | |
8854 | ||
ee00cd23 TT |
8855 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
8856 | ||
8857 | * common/ax.def (invalid2): Set to 0x31. | |
8858 | ||
0502ed8c JK |
8859 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
8860 | ||
8861 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
8862 | L and plongest. | |
8863 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
8864 | use L and plongest. | |
8865 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
8866 | ||
2c9de912 MS |
8867 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
8868 | ||
8869 | * Makefile.in (clean): Make clean should remove generated files | |
8870 | observer.h and observer.inc. | |
8871 | ||
a04b0428 JB |
8872 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
8873 | ||
8874 | Revert the following patch (not approved yet): | |
8875 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
8876 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
8877 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
8878 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
8879 | * ax-general.c (ax_memcpy): New function. | |
8880 | (ax_print): Handle "printf". | |
8881 | (ax_reqs): Ditto. | |
8882 | * ax.h (ax_memcpy): Forward declare. | |
8883 | * common/ax.def (invalid2): Removed. | |
8884 | (printf): New entry. | |
8885 | * printcmd.c (printcmd.h): New include. | |
8886 | (string_printf): New function. | |
8887 | (ui_printf): Removed. | |
8888 | (printf_command): Remove static. Call string_printf. | |
8889 | (eval_command): Call string_printf. | |
8890 | * printcmd.h: New file. | |
8891 | * tracepoint.c (validate_actionline, | |
8892 | encode_actions_1): handle printf_command. | |
8893 | ||
2b52013f TT |
8894 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
8895 | ||
8896 | * ax-general.c (ax_pick): Add missing newline. | |
8897 | ||
e5a67952 MS |
8898 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
8899 | ||
8900 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
8901 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 8902 | breakpoints rather than just one. Use new function |
e5a67952 MS |
8903 | 'number_is_in_list' to implement. |
8904 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
8905 | (watchpoints_info): Ditto. | |
8906 | (tracepoints_info): Ditto. | |
8907 | (maintenance_info_breakpoints): Ditto. | |
8908 | (_initialize_breakpoint): Update help strings to reflect the fact | |
8909 | that these functions can now take more than one argument. | |
8910 | * cli/cli-utils.c (number_is_in_list): New function. | |
8911 | * cli/cli-utils.h (number_is_in_list): Export. | |
8912 | ||
8913 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
8914 | |
8915 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
8916 | (mem_disable_command): Ditto. | |
8917 | (mem_delete_command): Ditto. | |
8918 | (_initialize_mem): Tweak usage message to reflect multiple | |
8919 | arguments. | |
8920 | ||
6e6fbe60 DE |
8921 | 2011-02-22 Doug Evans <dje@google.com> |
8922 | ||
8923 | Add gdb.lookup_global_symbol python function. | |
8924 | * NEWS: Add entry. | |
8925 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
8926 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
8927 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
8928 | ||
79b97fa8 TT |
8929 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
8930 | ||
8931 | * language.c (language_class_name_from_physname): Rename | |
8932 | 'curr_language' argument to 'lang'; use in body. | |
8933 | ||
298f437a MS |
8934 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
8935 | ||
8936 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
8937 | ||
b7ea3126 PA |
8938 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
8939 | ||
8940 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
8941 | next. | |
8942 | ||
58ee6d60 TT |
8943 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
8944 | ||
8945 | * symfile.c (auto_solib_limit): Remove. | |
8946 | * symfile.h (auto_solib_limit): Remove. | |
8947 | ||
36238dbc JB |
8948 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
8949 | ||
8950 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
8951 | ||
aea5b279 MS |
8952 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
8953 | ||
8954 | * gdbthread.h (print_thread_info): Change prototype. | |
8955 | * thread.c (print_thread_info): Accept char* instead of int for | |
8956 | requested_threads argument. Use new function number_is_in_list | |
8957 | to determine which threads to list. | |
8958 | (info_threads_command): Pass char* to print_thread_info. | |
8959 | * cli/cli-utils.c (number_is_in_list): New function. | |
8960 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 8961 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
8962 | print_thread_info. |
8963 | (print_one_inferior): Ditto. | |
8964 | (mi_cmd_list_thread_groups): Ditto. | |
8965 | ||
8caa75ee JK |
8966 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
8967 | ||
8968 | * common/Makefile.in (CFLAGS): New. | |
8969 | (COMPILE): Add $(CFLAGS). | |
8970 | ||
ea666128 TT |
8971 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
8972 | ||
8973 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
8974 | ||
e9cafbcc TT |
8975 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
8976 | ||
8977 | * reverse.c: Include cli-utils.h. | |
8978 | * printcmd.c: Include cli-utils.h. | |
8979 | (string_printf): Use skip_spaces. | |
8980 | * cli/cli-utils.h: New file. | |
8981 | * cli/cli-utils.c: New file. | |
8982 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
8983 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
8984 | * breakpoint.h (get_number, get_number_or_range): Move to | |
8985 | cli-utils.h. | |
8986 | * breakpoint.c: Include cli-utils.h. | |
8987 | (get_number_trailer, get_number, get_number_or_range) | |
8988 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
8989 | (create_breakpoint_sal, find_condition_and_thread) | |
8990 | (decode_static_tracepoint_spec, watch_command_1) | |
8991 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
8992 | (catch_fork_command_1, catch_exec_command_1) | |
8993 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
8994 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
8995 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
8996 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
8997 | (cli-utils.o): New target. | |
8998 | ||
f67fd822 PM |
8999 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
9000 | ||
9001 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
9002 | before calling discard_all_inferiors. | |
9003 | ||
c9def01d UW |
9004 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
9005 | ||
9006 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
9007 | (struct builtin_opencl_type): Remove. | |
9008 | (builtin_opencl_type): Change return type to "struct type **". | |
9009 | (lookup_opencl_vector_type): Update caller. | |
9010 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
9011 | (build_opencl_types): Install plain array of "struct type *" | |
9012 | instead of "struct builtin_opencl_type". | |
9013 | ||
e3039479 UW |
9014 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
9015 | Ulrich Weigand <uweigand@de.ibm.com> | |
9016 | ||
9017 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
9018 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
9019 | (struct arm_linux_hwbp_cap): New type. | |
9020 | (arm_linux_get_hwbp_cap): New function. | |
9021 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
9022 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
9023 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
9024 | (arm_hwbp_type): New type. | |
9025 | (arm_hwbp_control_t): Likewise. | |
9026 | (struct arm_linux_hw_breakpoint): Likewise. | |
9027 | (struct arm_linux_thread_points): Likewise. | |
9028 | (arm_threads): New global variable. | |
9029 | (arm_linux_find_breakpoints_by_tid): New function. | |
9030 | (arm_hwbp_control_initialize): Likewise. | |
9031 | (arm_hwbp_control_is_enabled): Likewise. | |
9032 | (arm_hwbp_control_disable): Likewise. | |
9033 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
9034 | (arm_linux_get_hwbp_type): Likewise. | |
9035 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
9036 | (arm_linux_hw_breakpoint_equal): Likewise. | |
9037 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
9038 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
9039 | (arm_linux_insert_hw_breakpoint): Likewise. | |
9040 | (arm_linux_remove_hw_breakpoint): Likewise. | |
9041 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
9042 | (arm_linux_insert_watchpoint): Likewise. | |
9043 | (arm_linux_remove_watchpoint): Likewise. | |
9044 | (arm_linux_stopped_data_address): Likewise. | |
9045 | (arm_linux_stopped_by_watchpoint): Likewise. | |
9046 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
9047 | (arm_linux_new_thread): Likewise. | |
9048 | (arm_linux_thread_exit): Likewise. | |
9049 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
9050 | related target callbacks. Register arm_linux_new_thread and | |
9051 | arm_linux_thread_exit. | |
9052 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
9053 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
9054 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
9055 | ||
b5db5dfc UW |
9056 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
9057 | ||
9058 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
9059 | per-frame locations while within a function epilogue. | |
9060 | ||
e25b2cfa PM |
9061 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
9062 | ||
9063 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
9064 | to GNU coding standards. | |
9065 | ||
4af53f97 PM |
9066 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
9067 | ||
9068 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 9069 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
9070 | (ser_windows_close): Only call CancelIo if function exists. |
9071 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
9072 | to check for existence of CancelIo function in kernel32 DLL. | |
9073 | ||
d0e92d82 HZ |
9074 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
9075 | ||
9076 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
9077 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
9078 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
9079 | * ax-general.c (ax_memcpy): New function. | |
9080 | (ax_print): Handle "printf". | |
9081 | (ax_reqs): Ditto. | |
9082 | * ax.h (ax_memcpy): Forward declare. | |
9083 | * common/ax.def (invalid2): Removed. | |
9084 | (printf): New entry. | |
9085 | * printcmd.c (printcmd.h): New include. | |
9086 | (string_printf): New function. | |
9087 | (ui_printf): Removed. | |
9088 | (printf_command): Remove static. Call string_printf. | |
9089 | (eval_command): Call string_printf. | |
9090 | * printcmd.h: New file. | |
9091 | * tracepoint.c (validate_actionline, | |
9092 | encode_actions_1): handle printf_command. | |
9093 | ||
7d357efd MS |
9094 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
9095 | ||
9096 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
9097 | id rather than pointer to bookmark struct. | |
9098 | (delete_bookmark_command): Use get_number_or_range. | |
9099 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
9100 | (bookmark_1): New function. Print info for one bookmark. | |
9101 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
9102 | ||
7a45ebd7 MS |
9103 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
9104 | ||
f2eb0bc8 | 9105 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 9106 | get_number_or_range. |
65ebfb52 | 9107 | (thread_apply_command): Ditto. |
7a45ebd7 | 9108 | |
94d5e490 TT |
9109 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
9110 | ||
9111 | * common/ax.def: New file. | |
9112 | * ax.h (enum agent_op): Use ax.def. | |
9113 | * ax-general.c (aop_map): Use ax.def. | |
9114 | ||
c7f96d2b TT |
9115 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
9116 | ||
9117 | * ax-general.c (aop_map): Add pick and rot. | |
9118 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
9119 | <DW_OP_rot>: Implement. | |
9120 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
9121 | (ax_pick): Declare. | |
9122 | * ax-general.c (ax_pick): New function. | |
9123 | ||
66694b75 TT |
9124 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
9125 | ||
9126 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
9127 | ||
eeaafae2 JK |
9128 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
9129 | Tom Tromey <tromey@redhat.com> | |
9130 | ||
9131 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
9132 | make_symbol_overload_list_block with NULL BLOCK. | |
9133 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
9134 | ||
3c3fe74c PA |
9135 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
9136 | ||
9137 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
9138 | * breakpoint.h (get_number_or_range): Declare. | |
9139 | * printcmd.c (ALL_DISPLAYS): Declare. | |
9140 | (delete_display): Reimplement taking a display pointer. | |
9141 | (undisplay_command): Accept a range of displays to delete, using | |
9142 | get_number_or_range. | |
9143 | ||
13163d80 PM |
9144 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
9145 | ||
9146 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
9147 | for arrays of unspecified length. | |
9148 | * p-valprint.c (pascal_val_print): Likewise. | |
9149 | ||
b434a28f YQ |
9150 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
9151 | ||
9152 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
9153 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
9154 | (thumb_process_displaced_insn): New. | |
9155 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
9156 | call to arm_process_displaced_insn. | |
9157 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
9158 | ||
9f6f94ff TT |
9159 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
9160 | ||
9161 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
9162 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
9163 | compile_dwarf_to_ax. No longer static. Call | |
9164 | dwarf2_compile_cfa_to_ax. | |
9165 | (locexpr_tracepoint_var_ref): Update. | |
9166 | (loclist_tracepoint_var_ref): Update. | |
9167 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
9168 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
9169 | argument; add 'gdbarch' and 'pc'. | |
9170 | (dwarf2_compile_cfa_to_ax): New function. | |
9171 | (dwarf2_frame_cache): Update. | |
9172 | ||
e67ad678 JB |
9173 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
9174 | ||
9175 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
9176 | in the case of an unconstrained packed array. | |
9177 | ||
946ebb0d YQ |
9178 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
9179 | ||
9180 | * common/Makefile.in: Add more targets for make. | |
9181 | ||
1ba1b353 TT |
9182 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
9183 | ||
9184 | * dwarf2loc.c (unimplemented): Fix typo. | |
9185 | ||
b1bfef65 TT |
9186 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
9187 | ||
9188 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
9189 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
9190 | <DW_OP_deref>: Update. | |
9191 | (disassemble_dwarf_expression): Update. | |
9192 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
9193 | (decode_locdesc): Update. | |
9194 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
9195 | ||
5f1e6f19 TT |
9196 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
9197 | ||
9198 | * ax.h (struct aop_map) <name>: Now const. | |
9199 | ||
a0c78a73 PA |
9200 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
9201 | ||
9202 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
9203 | than axs_rvalue. | |
9204 | ||
946ebb0d | 9205 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
9206 | |
9207 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
9208 | * inferior.h: Declare it. | |
9209 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
9210 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
9211 | returns non-NULL. | |
9212 | ||
08807d5a PA |
9213 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
9214 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9215 | ||
9216 | gdb/ | |
9217 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
9218 | ||
29976f3f PA |
9219 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
9220 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9221 | ||
9222 | * value.c (value_contents_copy_raw): Extend describing comment. | |
9223 | Assert that the destination contents we're overwriting are wholly | |
9224 | available. | |
fb68ae73 | 9225 | (value_contents_copy): Extend describing comment. |
29976f3f | 9226 | |
cd24cfaa PA |
9227 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
9228 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9229 | ||
9230 | * value.c (value_available_contents_eq): Remove redundant local | |
9231 | variables. Fix available contents comparision. | |
9232 | * value.h (value_available_contents_eq): Extend describing | |
9233 | comment. | |
9234 | ||
60bbf338 YQ |
9235 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
9236 | ||
9237 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
9238 | trailing newline. | |
9239 | ||
17450429 PP |
9240 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
9241 | ||
9242 | * breakpoint.c (longjmp_names): New variable. | |
9243 | (struct breakpoint_objfile_data): New type. | |
9244 | (breakpoint_objfile_key): New variable. | |
9245 | (msym_not_found): New variable. | |
9246 | (msym_not_found_p): New predicate. | |
9247 | (get_breakpoint_objfile_data): New function. | |
9248 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
9249 | symbols first. | |
9250 | (create_longjmp_master_breakpoint): Likewise. | |
9251 | (create_std_terminate_master_breakpoint): Likewise. | |
9252 | (create_exception_master_breakpoint): Likewise. | |
9253 | (_initialize_breakpoint): Register per-objfile data key. | |
9254 | ||
af02033e PP |
9255 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
9256 | ||
9257 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
9258 | parameter value. | |
9259 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
9260 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
9261 | value. | |
9262 | (update_breakpoints_after_exec): Adjust. | |
9263 | (breakpoint_re_set): Adjust. | |
9264 | ||
60f98dde MS |
9265 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
9266 | ||
cdf99611 MS |
9267 | * thread.c (info_threads_command): Process arg as thread id, |
9268 | or list of thread ids. | |
9269 | (thread_find_command): New command. | |
9270 | (_initialize_thread): Document argument for info threads. | |
9271 | Document 'thread find' command. | |
9272 | * NEWS: Document new command "thread find". | |
60f98dde | 9273 | |
0feedb2c JK |
9274 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9275 | ||
9276 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
9277 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
9278 | * common/configure: Regenerate with autoconf-2.64. | |
9279 | ||
648cd113 KW |
9280 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
9281 | ||
9282 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
9283 | bool data type to a size of one byte. | |
9284 | ||
5657161f PA |
9285 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
9286 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9287 | ||
9288 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
9289 | look for interface description. | |
9290 | ||
494e194e YQ |
9291 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
9292 | ||
9293 | PR tdep/12352 | |
9294 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
9295 | order to store PC value on stack instead of text section. | |
9296 | ||
d9492458 TJB |
9297 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9298 | ||
9299 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
9300 | the EFP register set size. | |
9301 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
9302 | data from the VMX register. | |
9303 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
9304 | and write data from/to the VMX register. | |
9305 | ||
cdf99611 MS |
9306 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
9307 | ||
9308 | * command.h (enum command_class): New class 'no_set_class', for | |
9309 | "show" commands without a corresponding "set" command. | |
9310 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
9311 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
9312 | "show warranty". | |
9313 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
9314 | "show version". | |
9315 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
9316 | which there is no corresponding "set" command (eg. "show copying"). | |
9317 | ||
424447ee PA |
9318 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9319 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9320 | ||
9321 | * exec.c (section_table_available_memory): Change `len' parameter | |
9322 | type to ULONGEST. | |
9323 | * exec.h (section_table_available_memory): Ditto. | |
9324 | * value.h (read_value_memory): Rename the `offset' parameter to | |
9325 | `embedded_offset'. | |
9326 | ||
c0f61f9c | 9327 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 9328 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
9329 | |
9330 | * memrange.c (compare_mem_ranges): Mention sort order in | |
9331 | describing comment. | |
9332 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
9333 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
9334 | mention what happens to RESULT when the target does not support | |
9335 | the query. | |
9336 | ||
6bfc80c7 PA |
9337 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9338 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
9339 | ||
9340 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
9341 | range. | |
9342 | ||
e7303042 PA |
9343 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9344 | ||
9345 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
9346 | No longer handle NULL values. | |
9347 | ||
8af8e3bc PA |
9348 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9349 | ||
9350 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
9351 | * value.c: Include "exceptions.h". | |
9352 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
9353 | generic error. | |
9354 | * cp-abi.c: Include gdb_assert.h. | |
9355 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
9356 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
9357 | errors. | |
9358 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
9359 | parameters. No longer returns -1 on error. | |
9360 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
9361 | `val' parameters. | |
9362 | * cp-valprint.c: Include exceptions.h. | |
9363 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
9364 | the baseclass_offset. Handle unavailable base classes. Use | |
9365 | val_print_invalid_address. | |
9366 | * p-valprint.c: Include exceptions.h. | |
9367 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
9368 | when fetching the baseclass_offset. No longer expect | |
9369 | baseclass_offset returning -1. Handle unavailable base classes. | |
9370 | Use val_print_invalid_address. | |
9371 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
9372 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
9373 | `embedded_offset' and `val' parameters. Adjust. | |
9374 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
9375 | parameter, and change its type to gdb_byte pointer. Add | |
9376 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
9377 | baseclass_offset returning -1. | |
9378 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
9379 | value_contents. Adjust. | |
9380 | (search_struct_field): No longer expect baseclass_offset returning | |
9381 | -1. | |
9382 | (search_struct_method): If reading memory from the target is | |
9383 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
9384 | longer expect baseclass_offset returning -1. | |
9385 | (find_method_list): No longer expect baseclass_offset returning | |
9386 | -1. Use value_contents_for_printing rather than value_contents. | |
9387 | * valprint.c (val_print_invalid_address): New function. | |
9388 | * valprint.h (val_print_invalid_address): Declare. | |
9389 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
9390 | and `val' parameters. No longer expect baseclass_offset returning | |
9391 | -1. Adjust. | |
9392 | * gnu-v2-abi.c: Include "exceptions.h". | |
9393 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
9394 | parameters. Handle unavailable memory. Recurse through | |
9395 | gnuv2_baseclass_offset directly, rather than through | |
9396 | baseclass_offset. No longer returns -1 on not found, instead | |
9397 | throw an error. | |
9398 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
9399 | `val' parameters. Adjust. | |
9400 | ||
1b28d0b3 PA |
9401 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9402 | ||
9403 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
9404 | almost but not quite adjacent. | |
9405 | ||
ec0a52e1 PA |
9406 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9407 | ||
9408 | * value.h (value_entirely_available): Declare. | |
9409 | * value.c (value_entirely_available): New function. | |
9410 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
9411 | real type if the pointer is unavailable. | |
9412 | ||
24e6bcee PA |
9413 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9414 | ||
9415 | * valops.c (value_repeat): Use read_value_memory instead of | |
9416 | read_memory. | |
9417 | ||
39d37385 PA |
9418 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9419 | ||
9420 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
9421 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
9422 | functions. | |
9423 | (value_primitive_field): Use value_contents_copy_raw instead of | |
9424 | memcpy. | |
9425 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
9426 | memcpy. | |
9427 | (value_array, value_slice): Ditto. | |
9428 | * valarith.c (value_subscripted_rvalue): Use | |
9429 | value_contents_copy_raw instead of memcpy. | |
9430 | ||
a3d34bf4 PA |
9431 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9432 | ||
9433 | <unavailable> references. | |
9434 | ||
9435 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
9436 | avoiding read_memory. | |
9437 | ||
9fc6d940 PA |
9438 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9439 | ||
9440 | * c-valprint.c (c_val_print): Print a string with unavailable | |
9441 | contents as an array. | |
9442 | ||
5467c6c8 PA |
9443 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9444 | ||
9445 | * value.h (unpack_bits_as_long): Delete declaration. | |
9446 | (unpack_value_bits_as_long): Declare. | |
9447 | (unpack_value_field_as_long): Declare. | |
9448 | (value_field_bitfield): Declare. | |
9449 | * value.c (unpack_bits_as_long): Rename to... | |
9450 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
9451 | value parameters. Return the extracted result in a new output | |
9452 | parameter. If the value contents are unavailable, return false, | |
9453 | otherwise return true. | |
9454 | (unpack_value_bits_as_long): New. | |
9455 | (unpack_field_as_long): Rename to... | |
9456 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
9457 | Add embedded_offset and value parameters. Return the extracted | |
9458 | result in a new output parameter. If the value contents are | |
9459 | unavailable, return false, otherwise return true. | |
9460 | (unpack_value_field_as_long): New. | |
9461 | (unpack_field_as_long_1): New. | |
9462 | (unpack_field_as_long): Reimplement as wrapper around | |
9463 | unpack_value_field_as_long_1. | |
9464 | (value_field_bitfield): New function. | |
9465 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
9466 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
9467 | is unavailable. | |
9468 | * jv-valprint.c (java_print_value_fields): Use | |
9469 | value_field_bitfield. | |
9470 | * p-valprint.c (pascal_object_print_value_fields): Use | |
9471 | value_field_bitfield. | |
9472 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
9473 | ||
3158c6ed PA |
9474 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9475 | ||
9476 | * value.c (get_internalvar_integer): Also return the int value of | |
9477 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
9478 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
9479 | ||
9fbdca0d PA |
9480 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9481 | ||
9482 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
9483 | INTERNALVAR_POINTER. | |
9484 | <pointer>: Delete. | |
9485 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
9486 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
9487 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
9488 | ||
c8c1c22f PA |
9489 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9490 | ||
9491 | * value.h (value_available_contents_eq): Declare. | |
9492 | * value.c (find_first_range_overlap): New function. | |
9493 | (value_available_contents_eq): New function. | |
9494 | * valprint.c (val_print_array_elements): Use | |
9495 | value_available_contents_eq. | |
9496 | * ada-valprint.c (val_print_packed_array_elements): Use | |
9497 | value_available_contents_eq. | |
9498 | * jv-valprint.c (java_value_print): Use | |
9499 | value_available_contents_eq. | |
9500 | ||
e6e4e701 PA |
9501 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9502 | ||
9503 | * target.c (target_read_live_memory): New function. | |
9504 | (memory_xfer_live_readonly_partial): New. | |
9505 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
9506 | reading unavailable read-only memory from read-only regions of | |
9507 | live target memory. | |
9508 | * tracepoint.c (disconnect_tracing): Adjust. | |
9509 | (set_current_traceframe): New, factored out from | |
9510 | set_traceframe_number. | |
9511 | (set_traceframe_number): Reimplement to only change the traceframe | |
9512 | number on the GDB side. | |
9513 | (do_restore_current_traceframe_cleanup): Adjust. | |
9514 | (make_cleanup_restore_traceframe_number): New. | |
9515 | (cur_traceframe_number): New global. | |
9516 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
9517 | (set_tfile_traceframe): New function. | |
9518 | (tfile_trace_find): If looking up a traceframe using any method | |
9519 | other than by number, make sure the current tfile traceframe | |
9520 | matches gdb's current traceframe. Update the current tfile | |
9521 | traceframe if the lookup succeeded. | |
9522 | (tfile_fetch_registers, tfile_xfer_partial) | |
9523 | (tfile_get_trace_state_variable_value): Make sure the remote | |
9524 | traceframe matches gdb's current traceframe. | |
9525 | * remote.c (remote_traceframe_number): New global. | |
9526 | (remote_open_1): Set it to -1. | |
9527 | (set_remote_traceframe): New function. | |
9528 | (remote_fetch_registers, remote_store_registers) | |
9529 | (remote_xfer_memory, remote_xfer_partial) | |
9530 | (remote_get_trace_state_variable_value): Make sure the remote | |
9531 | traceframe matches gdb's current traceframe. | |
9532 | (remote_trace_find): If looking up a traceframe using any method | |
9533 | other than by number, make sure the current remote traceframe | |
9534 | matches gdb's current traceframe. Update the current remote | |
9535 | traceframe if the lookup succeeded. | |
9536 | * infrun.c (fetch_inferior_event): Adjust. | |
9537 | * tracepoint.h (set_current_traceframe): Declare. | |
9538 | (get_traceframe_number, set_traceframe_number): Add describing | |
9539 | comments. | |
9540 | ||
e6ca34fc PA |
9541 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9542 | ||
9543 | Mark pieces of values as unavailable if the corresponding memory | |
9544 | is unavailable. | |
9545 | ||
9546 | * valops.c: Include tracepoint.h. | |
9547 | (value_fetch_lazy): Use read_value_memory. | |
9548 | (read_value_memory): New. | |
9549 | * value.h (read_value_memory): Declare. | |
9550 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
9551 | * exec.c (section_table_available_memory): New function. | |
9552 | * exec.h (section_table_available_memory): Declare. | |
9553 | ||
2a7498d8 PA |
9554 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9555 | ||
9556 | * Makefile.in (SFILES): Add memrange.c. | |
9557 | (HFILES_NO_SRCDIR): Add memrange.h. | |
9558 | (COMMON_OBS): Add memrange.o. | |
9559 | * memrange.c: New file. | |
9560 | * memrange.h: New file. | |
9561 | * tracepoint.c: Include memrange.h. | |
9562 | (struct mem_range): Delete. | |
9563 | (mem_range_s): Delete. | |
9564 | (traceframe_available_memory): New function. | |
9565 | * tracepoint.h (traceframe_available_memory): Declare. | |
9566 | ||
b3b9301e PA |
9567 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9568 | ||
9569 | * target.h (struct traceframe_info): Forward declare. | |
9570 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
9571 | (struct target_ops) <to_traceframe_info>: New field. | |
9572 | (target_traceframe_info): New. | |
9573 | * target.c (update_current_target): Inherit and default | |
9574 | to_traceframe_info. | |
9575 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
9576 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
9577 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
9578 | (remote_traceframe_info): New. | |
9579 | (init_remote_ops): Install it. | |
9580 | (_initialize_remote): Install "set/show remote traceframe-info" | |
9581 | commands. | |
9582 | * tracepoint.h (parse_traceframe_info): Declare. | |
9583 | * tracepoint.c (struct mem_range): New. | |
9584 | (mem_range_s): New typedef. | |
9585 | (struct traceframe_info): New. | |
9586 | (traceframe_info): New global. | |
9587 | (free_traceframe_info): New function. | |
9588 | (clear_traceframe_info): New function. | |
9589 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
9590 | info. | |
9591 | (build_traceframe_info): New function. | |
9592 | (tfile_traceframe_info): New function. | |
9593 | (init_tfile_ops): Install tfile_traceframe_info. | |
9594 | (traceframe_info_start_memory, free_result): New functions. | |
9595 | (memory_attributes, traceframe_info_elements): New globals. | |
9596 | (parse_traceframe_info, get_traceframe_info): New functions. | |
9597 | * features/traceframe-info.dtd: New file. | |
9598 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
9599 | ||
4e07d55f PA |
9600 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
9601 | ||
9602 | Base support for <unavailable> value contents. | |
9603 | ||
4e07d55f PA |
9604 | * value.h (value_bytes_available): Declare. |
9605 | (mark_value_bytes_unavailable): Declare. | |
9606 | * value.c (struct range): New struct. | |
9607 | (range_s): New typedef. | |
9608 | (ranges_overlap): New function. | |
9609 | (range_lessthan): New function. | |
9610 | (ranges_contain_p): New function. | |
9611 | (struct value) <unavailable>: New field. | |
9612 | (value_bytes_available): New function. | |
9613 | (mark_value_bytes_unavailable): New function. | |
9614 | (require_not_optimized_out): Constify parameter. | |
9615 | (require_available): New function. | |
9616 | (value_contents_all, value_contents): Require all bytes be | |
9617 | available. | |
9618 | (value_free): Free `unavailable'. | |
9619 | (value_copy): Copy `unavailable'. | |
9620 | * valprint.h (val_print_unavailable): Declare. | |
9621 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
9622 | to `embedded_offset'. If printing a scalar, check whether the | |
9623 | value chunk is available. | |
9624 | (val_print_unavailable): New. | |
9625 | (val_print_scalar_formatted): Check whether the value is | |
9626 | available. | |
9627 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
9628 | pretty-printing unavailable values. | |
9629 | ||
bc9a5551 JK |
9630 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
9631 | ||
9632 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
9633 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
9634 | variable param_type, initialize it. Remove const/volatile qualifiers | |
9635 | for language_cplus and !show_artificial. Use param_type. | |
9636 | ||
93b55aa1 JK |
9637 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
9638 | ||
9639 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
9640 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
9641 | * symtab.h (struct symtab) <next>: Comment extension. | |
9642 | ||
181d9476 YQ |
9643 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
9644 | ||
9645 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
9646 | ||
b708a5c7 JK |
9647 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
9648 | ||
9649 | * common/Makefile.in: Add copyright header. | |
9650 | ||
c5187ac6 PA |
9651 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
9652 | ||
9653 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
9654 | here ... | |
9655 | (fetch_inferior_event): ... to here. | |
9656 | ||
4f3e6fb7 YQ |
9657 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
9658 | ||
9659 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
9660 | libcommon.a. | |
9661 | * configure.ac: Add common to sub dir. | |
9662 | * configure: Regenerate. | |
9663 | ||
b708a5c7 JK |
9664 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
9665 | ||
9666 | Build libcommon.a. | |
9667 | ||
9668 | * common/Makefile.in: New. | |
9669 | * common/configure.ac: New. | |
9670 | * common/aclocal.m4: New. | |
9671 | * common/configure: Generate. | |
9672 | ||
2287cc7e PA |
9673 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
9674 | ||
9675 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
9676 | side of the parenthesis. | |
9677 | ||
9678 | Merge from GCC: | |
9679 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 9680 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 9681 | |
fd62cb89 MS |
9682 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
9683 | ||
9684 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
9685 | ||
56d2815c JK |
9686 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
9687 | ||
9688 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
9689 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
9690 | psubd and paddd. | |
9691 | ||
4f7d61a8 JK |
9692 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
9693 | ||
9694 | PR 12361. | |
9695 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
9696 | phsubsw. | |
9697 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
9698 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
9699 | ||
54fcddd0 UW |
9700 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
9701 | ||
9702 | * dwarf2read.c (read_subroutine_type): Set special calling | |
9703 | convention flag for functions compiled by IBM XL C for OpenCL. | |
9704 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
9705 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
9706 | calling convention. | |
9707 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
9708 | IBM OpenCL vector types calling convention. | |
9709 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
9710 | (ppc_sysv_abi_broken_return_value): Likewise. | |
9711 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
9712 | types calling convention. | |
9713 | (ppc64_sysv_abi_return_value): Likewise. | |
9714 | * spu-tdep.c: Include "dwarf2.h" | |
9715 | (spu_return_value): Implement IBM OpenCL vector types calling | |
9716 | convention. | |
9717 | ||
d6dafb7c UW |
9718 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
9719 | ||
9720 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
9721 | correct ABI for AltiVec vector arguments. | |
9722 | ||
32b72a42 PA |
9723 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
9724 | ||
9725 | * valprint.c (val_print): Extend comment. | |
9726 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
9727 | interface explanation to val_print. | |
9728 | (ada_val_print_array): Adjust comment to current interface. | |
9729 | (print_field_values): Adjust comment to current interface. | |
9730 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
9731 | explanation to val_print. | |
9732 | * f-valprint.c (f_val_print): Ditto. | |
9733 | * jv-valprint.c (java_val_print): Ditto. | |
9734 | * m2-valprint.c (m2_val_print): Ditto. | |
9735 | * p-valprint.c (pascal_val_print): Ditto. | |
9736 | ||
9998af43 TJB |
9737 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9738 | ||
9739 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
9740 | ||
505500db | 9741 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 9742 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
9743 | |
9744 | * python/py-inferior.c (python_on_normal_stop): New function. | |
9745 | (python_on_resume): New function. | |
9746 | (python_inferior_exit): New function. | |
9747 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
9748 | inferior_exit observers. | |
9749 | * python/py-evtregistry.c: New file. | |
9750 | * python/py-threadevent.c : New file. | |
9751 | * python/py-event.c: New file. | |
9752 | * python/py-evts.c: New file. | |
9753 | * python/py-continueevent.c: New file. | |
9754 | * python/py-bpevent.c: New file. | |
9755 | * python/py-signalevent.c: New file. | |
9756 | * python/py-exetiedevent.c: New file. | |
9757 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
9758 | Move struct breakpoint_object from here... | |
9759 | * python/python-internal.h: ... to here. | |
9760 | * python/py-event.h: New file. | |
9761 | * python/py-events.h: New file. | |
9762 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
9763 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
9764 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
9765 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
9766 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
9767 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
9768 | Add build rules for all the above. | |
9769 | ||
9e0ac564 TT |
9770 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
9771 | ||
9772 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
9773 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
9774 | (dwarf2_section_size): New function. | |
9775 | (dwarf2_get_section_info): Unconditionally read section. | |
9776 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
9777 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
9778 | (dwarf2_symbol_mark_computed): Likewise. | |
9779 | ||
eee5b35e DD |
9780 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
9781 | ||
9782 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
9783 | ||
385203ed DD |
9784 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
9785 | ||
9786 | * mips-linux-tdep.c: Include xml-syscall.h. | |
9787 | (mips_linux_get_syscall_number): New function. | |
9788 | (mips_linux_init_abi): Add calls to | |
9789 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
9790 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
9791 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
9792 | * syscalls/mips-n32-linux.xml: New file. | |
9793 | * syscalls/mips-n64-linux.xml: New file. | |
9794 | * syscalls/mips-o32-linux.xml: New file. | |
9795 | ||
9277c30c UW |
9796 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
9797 | ||
9798 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
9799 | Complain about inverted range entries. | |
9800 | (dwarf2_record_block_ranges): Likewise. | |
9801 | ||
a3be7890 TJB |
9802 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9803 | ||
9804 | Fix some typos. | |
9805 | * breakpoint.c (update_watchpoint): Fix name of the | |
9806 | update_global_location_list function. | |
9807 | (print_one_breakpoint): Fix typo. | |
9808 | (_initialize_breakpoint): Remove extra space in hbreak help | |
9809 | string. | |
9810 | * breakpoint.h (struct bp_location) <length>: Fix field | |
9811 | description. | |
9812 | ||
041274d8 PA |
9813 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
9814 | ||
9815 | * regcache.c (registers_changed_ptid): Don't explictly always | |
9816 | clear `current_regcache'. Only clear current_thread_ptid and | |
9817 | current_thread_arch when PTID matches. Only reinit the frame | |
9818 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
9819 | call to ... | |
9820 | (registers_changed): ... here. | |
9821 | ||
c1c2ab58 UW |
9822 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
9823 | ||
9824 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
9825 | starts with __stack_chk_guard as stack guard symbol. | |
9826 | ||
9011945e AB |
9827 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
9828 | ||
9829 | * disasm.c (compare_lines): Handle the end of sequence markers | |
9830 | within the line table to better support disassembling over | |
9831 | compilation unit boundaries. | |
9832 | ||
e0634ccf UW |
9833 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
9834 | ||
9835 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
9836 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
9837 | implementation even if no symbols are available. | |
9838 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
9839 | (arm_analyze_prologue): Likewise. | |
9840 | ||
0e9e9abd UW |
9841 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
9842 | ||
9843 | * arm-tdep.c: Include "observer.h". | |
9844 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
9845 | (arm_exidx_data_key): New static variable. | |
9846 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
9847 | (struct arm_exidx_data): Likewise. | |
9848 | (arm_exidx_data_free): New function. | |
9849 | (arm_compare_exidx_entries): Likewise. | |
9850 | (arm_obj_section_from_vma): Likewise. | |
9851 | (arm_exidx_new_objfile): Likewise. | |
9852 | (arm_find_exidx_entry): Likewise. | |
9853 | (arm_exidx_fill_cache): Likewise. | |
9854 | (arm_exidx_unwind_sniffer): Likewise. | |
9855 | (arm_exidx_unwind): New global variable. | |
9856 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
9857 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
9858 | observer. Register arm_exidx_data_key as objfile data. | |
9859 | ||
2e9e421f UW |
9860 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
9861 | ||
9862 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
9863 | due to accessing uninitialized variable. Fix indentation. | |
9864 | ||
580688f3 PA |
9865 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
9866 | ||
9867 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
9868 | adjustment, create a new value with adjusted contents rather than | |
9869 | changing the contents of the value being printed (and getting it | |
9870 | wrong). | |
9871 | ||
3d2c1d41 PA |
9872 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
9873 | ||
9874 | * xml-support.c (xml_find_attribute): New. | |
9875 | (xinclude_start_include): Use it. | |
9876 | * xml-support.h (xml_find_attribute): Declare. | |
9877 | * memory-map.c (memory_map_start_memory) | |
9878 | (memory_map_start_property): Use xml_find_attribute. | |
9879 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
9880 | xml_find_attribute. | |
9881 | * remote.c (start_thread): Use xml_find_attribute. | |
9882 | * solib-target.c (library_list_start_segment) | |
9883 | (library_list_start_section, library_list_start_library) | |
9884 | (library_list_start_list): Use xml_find_attribute. | |
9885 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
9886 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
9887 | (tdesc_start_field): Use xml_find_attribute. | |
9888 | ||
0af3e2db UW |
9889 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
9890 | ||
9891 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
9892 | (BUILD_OCL_VTYPES): Update. | |
9893 | ||
c1039e3c JB |
9894 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
9895 | ||
9896 | * configure.ac: Work around non-GNU sed limitation when computing | |
9897 | python version number. | |
9898 | * configure: Regenerate. | |
9899 | ||
600ea1be JK |
9900 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9901 | ||
9902 | Fix debug printing of TYPE_INSTANCE. | |
9903 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
9904 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
9905 | ||
56c12414 JK |
9906 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9907 | ||
9908 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
9909 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
9910 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
9911 | * ada-operator.inc: Rename the file to ... | |
9912 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
9913 | * expprint.c (op_name_standard): Remove all the entries. Include | |
9914 | "std-operator.def" instead. | |
9915 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
9916 | "ada-operator.def". Move all the entries ... | |
9917 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
9918 | ||
c52b559d PP |
9919 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
9920 | ||
9921 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
9922 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
9923 | * jit.c (jit_descriptor_addr): Delete. | |
9924 | (registering_code): Delete. | |
9925 | (clear_int): Delete. | |
9926 | (jit_inferior_data): New variable. | |
9927 | (struct jit_inferior_data): New type. | |
9928 | (get_jit_inferior_data): New function. | |
9929 | (jit_inferior_data_cleanup): New function. | |
9930 | (jit_read_descriptor): Adjust. | |
9931 | (jit_register_code): Adjust. | |
9932 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
9933 | (jit_inferior_init): ... from here. | |
9934 | (jit_breakpoint_re_set): Adjust. | |
9935 | (jit_reset_inferior_data_and_breakpoints): New function. | |
9936 | (jit_inferior_created_observer): Adjust. | |
9937 | (jit_inferior_exit_hook): Adjust. | |
9938 | (jit_executable_changed_observer): New function. | |
9939 | (jit_event_handler): Adjust. | |
9940 | (_initialize_jit): Adjust. | |
9941 | ||
e839132d MS |
9942 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
9943 | ||
9944 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
9945 | line. | |
9946 | ||
47a80e90 TT |
9947 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
9948 | ||
9949 | PR python/12216: | |
9950 | * python/python.c (execute_gdb_command): Call | |
9951 | prevent_dont_repeat. | |
9952 | * top.c (suppress_dont_repeat): New global. | |
9953 | (dont_repeat): Use it. | |
9954 | (prevent_dont_repeat): New function. | |
9955 | * command.h (prevent_dont_repeat): Declare. | |
9956 | ||
45a43567 TT |
9957 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
9958 | ||
9959 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
9960 | * python/py-breakpoint.c (bppy_set_silent): Use | |
9961 | breakpoint_set_silent. | |
9962 | (bppy_set_thread): Use breakpoint_set_thread. | |
9963 | (bppy_set_task): Use breakpoint_set_task. | |
9964 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
9965 | (breakpoint_set_task): Declare. | |
9966 | (make_breakpoint_silent): Remove. | |
9967 | * breakpoint.c (breakpoint_set_silent): New function. | |
9968 | (breakpoint_set_thread): Likewise. | |
9969 | (breakpoint_set_task): Likewise. | |
9970 | (make_breakpoint_silent): Remove. | |
9971 | ||
09d682a4 TT |
9972 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
9973 | ||
9974 | * breakpoint.h (user_breakpoint_p): Declare. | |
9975 | * breakpoint.c (user_breakpoint_p): New function. | |
9976 | (breakpoint_1): Use it. | |
9977 | (save_breakpoints): Likewise. | |
9978 | ||
9c4ea6c5 JB |
9979 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
9980 | ||
9981 | * configure.ac: Add handling of Python distribution on Windows. | |
9982 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
9983 | sysconfig variables are not defined, then do not use them. | |
9984 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
9985 | instead. On Windows, return all paths using forward-slashes | |
9986 | rather than backslashes. | |
9987 | ||
ac534cba JB |
9988 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
9989 | ||
9990 | * configure.ac: Remove fallback behavior for building | |
9991 | against Python. Remove tweaking of Python include path. | |
9992 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
9993 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
9994 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
9995 | Always restore CPPFLAGS and LIBS after linking test. | |
9996 | * configure: Regenerated. | |
9997 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
9998 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
9999 | * python/python-internal.h: Adjust includes of Python .h files. | |
10000 | ||
c2f0d045 JB |
10001 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10002 | ||
10003 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
10004 | in error message. | |
10005 | ||
6b0c4c1f JB |
10006 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10007 | ||
10008 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
10009 | value test. | |
10010 | ||
672c9795 YQ |
10011 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
10012 | ||
10013 | * arm-linux-nat.c: Update calls to regcache_register_status | |
10014 | instead of regcache_valid_p. | |
10015 | * aix-thread.c: Likewise. | |
10016 | * i386gnu-nat.c: Likewise. | |
10017 | ||
80b23b6a JK |
10018 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
10019 | ||
10020 | Fix crash. | |
10021 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
10022 | touching TYPE_FIELD_ARTIFICIAL. | |
10023 | ||
4cd712bd RE |
10024 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
10025 | ||
10026 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
10027 | Committers. | |
10028 | ||
ffd5ec24 PA |
10029 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10030 | ||
10031 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
10032 | selected, don't try iterating over the traceframe's blocks. | |
10033 | (tfile_has_stack): If there's no traceframe selected, then there's | |
10034 | no stack. | |
10035 | (tfile_has_registers): If there's no traceframe selected, then | |
10036 | there's no registers. | |
10037 | ||
e8c9e0a1 PA |
10038 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10039 | ||
10040 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
10041 | haven't read anything. | |
10042 | ||
de15c4ab PA |
10043 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10044 | ||
10045 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
10046 | and val_print_scalar_formatted. | |
10047 | ||
9f41c731 PA |
10048 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
10049 | ||
10050 | * tracepoint.c (tfile_read): New. | |
10051 | (tfile_open): Use it. | |
10052 | (tfile_get_traceframe_address): Use it. | |
10053 | (tfile_trace_find): Use it. | |
10054 | (walk_blocks_callback_func): New typedef. | |
10055 | (match_blocktype): New function. | |
10056 | (traceframe_walk_blocks): New function. | |
10057 | (traceframe_find_block_type): New function. | |
10058 | (tfile_fetch_registers, tfile_xfer_partial) | |
10059 | (tfile_get_trace_state_variable_value): Use | |
10060 | traceframe_find_block_type and tfile_read. | |
10061 | ||
cdefc55d KB |
10062 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
10063 | ||
10064 | * remote-mips.c: Add internationalization mark ups. Remove | |
10065 | trailing \n from already marked up strings. | |
10066 | ||
a81766d8 TT |
10067 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
10068 | ||
10069 | * python/py-prettyprint.c (print_string_repr): Clear | |
10070 | 'addressprint' option when calling val_print_string. | |
10071 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
10072 | option when calling val_print_string. | |
10073 | ||
74aedc46 TT |
10074 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
10075 | ||
10076 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
10077 | GDB_PY_LL_ARG. | |
10078 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
10079 | macros. | |
10080 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
10081 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
10082 | (gdb_py_long_as_ulongest): New defines. | |
10083 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
10084 | (gdb_py_int_as_long): Declare. | |
10085 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
10086 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
10087 | (valpy_long): Add comment. | |
10088 | * python/py-utils.c (get_addr_from_python): Use | |
10089 | gdb_py_long_as_ulongest. Handle overflow properly. | |
10090 | (gdb_py_object_from_longest): New function. | |
10091 | (gdb_py_object_from_ulongest): Likewise. | |
10092 | (gdb_py_int_as_long): Likewise. | |
10093 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
10094 | * python/py-symtab.c (salpy_get_pc): Use | |
10095 | gdb_py_long_from_ulongest. | |
10096 | (salpy_get_line): Use PyInt_FromLong. | |
10097 | * python/py-param.c (set_parameter_value): Use | |
10098 | gdb_py_int_as_long. | |
10099 | * python/py-lazy-string.c (stpy_get_address): Use | |
10100 | gdb_py_long_from_ulongest. | |
10101 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
10102 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
10103 | * python/py-breakpoint.c (bppy_set_thread): Use | |
10104 | gdb_py_int_as_long. | |
10105 | (bppy_set_task): Likewise. | |
10106 | (bppy_set_ignore_count): Likewise. | |
10107 | (bppy_set_hit_count): Likewise. | |
10108 | * python/py-block.c (blpy_get_start): Use | |
10109 | gdb_py_object_from_ulongest. | |
10110 | (blpy_get_end): Likewise. | |
10111 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
10112 | ||
e4f6d2ec TJB |
10113 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
10114 | ||
10115 | PR/symtab 11766: | |
10116 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
10117 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
10118 | equality test for objfile, initialize addr_low if needed. | |
10119 | ||
b30aa278 PA |
10120 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10121 | ||
10122 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
10123 | ||
ab2188aa PA |
10124 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10125 | ||
10126 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
10127 | instead of print_scalar_formatted. | |
10128 | (print_scalar_formatted): Don't handle 's' format strings here, | |
10129 | and add an assertion that we never see such format here. | |
10130 | * valprint.h (val_print_scalar_formatted): Declare. | |
10131 | * valprint.c (val_print_scalar_formatted): New. | |
10132 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
10133 | instead of print_scalar_formatted. | |
10134 | * jv-valprint.c (java_val_print): Ditto. | |
10135 | * p-valprint.c (pascal_val_print): Ditto. | |
10136 | * ada-valprint.c (ada_val_print_1): Ditto. | |
10137 | * f-valprint.c (f_val_print): Ditto. | |
10138 | * infcmd.c (registers_info): Ditto. | |
10139 | * m2-valprint.c (m2_val_print): Ditto. | |
10140 | ||
66d61a4c PA |
10141 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10142 | ||
10143 | * m2-valprint.c (print_unbounded_array): Pass | |
10144 | value_contents_for_printing rather than value_contents, to | |
10145 | m2_print_array_contents. Also pass in the value. | |
10146 | ||
831adc1f JK |
10147 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
10148 | ||
10149 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
10150 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
10151 | ||
20622269 PA |
10152 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10153 | ||
10154 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
10155 | than frame_register, and always pass a valid value to val_print. | |
10156 | ||
585fdaa1 PA |
10157 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10158 | ||
10159 | Centralize printing "<optimized out>". | |
10160 | ||
10161 | * valprint.h (val_print_optimized_out): Declare. | |
10162 | * cp-valprint.c (cp_print_value_fields): Use | |
10163 | val_print_optimized_out. | |
10164 | * jv-valprint.c (java_print_value_fields): Ditto. | |
10165 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
10166 | * printcmd.c (print_formatted): Ditto. | |
10167 | * valprint.c (valprint_check_validity): Ditto. | |
10168 | (value_check_printable): Ditto. | |
10169 | (val_print_optimized_out): New. | |
10170 | ||
29ec5263 PA |
10171 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10172 | ||
10173 | * infcmd.c (default_print_registers_info): Allocate values so to | |
10174 | never pass a NULL value to val_print. | |
10175 | ||
de4127a3 PA |
10176 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10177 | ||
10178 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
10179 | boolean. Make sure to always pass a value that matches the | |
10180 | contents buffer to callees. Preserve `address' for following | |
10181 | iterations. | |
10182 | * value.c (value_contents_for_printing_const): New. | |
10183 | (value_address): Constify value argument. | |
10184 | * value.h (value_contents_for_printing_const): Declare. | |
10185 | (value_address): Constify value argument. | |
10186 | ||
ee99023e PA |
10187 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10188 | ||
10189 | * regcache.c (struct regcache_descr): Rename | |
10190 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
10191 | and sizeof_cooked_register_valid_p to | |
10192 | sizeof_cooked_register_status. | |
10193 | (init_regcache_descr): Adjust. | |
10194 | (struct regcache): Rename register_valid_p field to | |
10195 | register_status. | |
10196 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
10197 | (do_cooked_read): Adjust. | |
10198 | (regcache_valid_p): Rename to ... | |
10199 | (regcache_register_status): ... this. Adjust. | |
10200 | (regcache_invalidate): Adjust. | |
10201 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
10202 | Adjust. | |
10203 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
10204 | as unavailable, not valid. | |
10205 | (regcache_dump): Adjust. | |
10206 | * regcache.h (enum register_status): New. | |
10207 | (regcache_register_status): Declare. | |
10208 | (regcache_invalidate): Delete declaration. | |
10209 | * corelow.c (get_core_registers): Adjust. | |
10210 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
10211 | * trad-frame.c (REG_VALUE): Rename to ... | |
10212 | (TF_REG_VALUE): ... this. | |
10213 | (REG_UNKNOWN): Rename to ... | |
10214 | (TF_REG_UNKNOWN): ... this. | |
10215 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
10216 | * mi/mi-main.c (register_changed_p): Adjust. | |
10217 | ||
99e42fd8 PA |
10218 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10219 | ||
10220 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
10221 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
10222 | overallocate hack. | |
10223 | (regcache_xmalloc): Rename to ... | |
10224 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
10225 | Allocate the regcache type accordingly. | |
10226 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
10227 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
10228 | cooked registers, not raw. | |
10229 | (regcache_dup_no_passthrough): Delete. | |
10230 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
10231 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
10232 | mention obsolete write_register_bytes. | |
10233 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
10234 | ||
f7605bc2 PA |
10235 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10236 | ||
10237 | Stop remote_read_bytes from handling partial reads itself. | |
10238 | ||
10239 | * remote-fileio.c: Include target.h. | |
10240 | (remote_fileio_write_bytes): Delete. | |
10241 | (remote_fileio_func_open, remote_fileio_func_write) | |
10242 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
10243 | target_read_memory. | |
10244 | (remote_fileio_func_stat): Use target_read_memory and | |
10245 | target_write_memory. | |
10246 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
10247 | (remote_fileio_func_system): Use target_read_memory. | |
10248 | * remote.c (remote_write_bytes): Make it static. | |
10249 | (remote_read_bytes): Don't handle partial reads here. | |
10250 | * remote.h (remote_read_bytes): Delete declaration. | |
10251 | ||
efc0eabd PA |
10252 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
10253 | ||
10254 | Simplify XML parsing a bit. | |
10255 | ||
10256 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
10257 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
10258 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
10259 | parameter. | |
10260 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
10261 | gdb_xml_create_parser_and_cleanup_1. | |
10262 | (gdb_xml_parse_quick): New. | |
10263 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
10264 | * osdata.c (osdata_parse): Ditto. | |
10265 | * remote.c (remote_threads_info): Ditto. | |
10266 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
10267 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
10268 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
10269 | ||
314d366a KB |
10270 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
10271 | ||
10272 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
10273 | with remote-mips.o added to gdb_target_obs. | |
10274 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
10275 | ||
a491d753 PA |
10276 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
10277 | ||
10278 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
10279 | correct struct value to val_print. | |
10280 | (ada_val_print_1): Ditto. | |
10281 | ||
490f124f PA |
10282 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
10283 | ||
10284 | Don't lose embedded_offset in printing routines throughout. | |
10285 | ||
10286 | * valprint.h (val_print_array_elements): Change prototype. | |
10287 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
10288 | parameter, and adjust to pass it down to val_print, while passing | |
10289 | `valaddr' or `address' unmodified. Take embedded_offset into | |
10290 | account when checking repetitions. | |
10291 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
10292 | val_print_array_elements instead of adjusting `valaddr' and | |
10293 | `address'. | |
10294 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
10295 | embedded_offset to val_print_array_elements instead of adjusting | |
10296 | `valaddr'. | |
10297 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
10298 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
10299 | val_print_array_elements and pascal_object_print_value_fields | |
10300 | instead of adjusting `valaddr'. | |
10301 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
10302 | adjust to use it. | |
10303 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
10304 | use it. | |
10305 | (pascal_object_print_static_field): Use | |
10306 | value_contents_for_printing/value_embedded_offset, rather than | |
10307 | value_contents. | |
10308 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
10309 | parameter, and adjust to use it. Use | |
10310 | value_contents_for_printing/value_embedded_offset, rather than | |
10311 | value_contents. | |
10312 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
10313 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
10314 | it. | |
10315 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
10316 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
10317 | Instead work with offsets. Use | |
10318 | value_contents_for_printing/value_embedded_offset, rather than | |
10319 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
10320 | and use value_from_pointer to extract a target pointer, rather | |
10321 | than value_from_longest. | |
10322 | (print_variant_part): Add `offset' parameter. Replace | |
10323 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
10324 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
10325 | (ada_value_print): Use | |
10326 | value_contents_for_printing/value_embedded_offset, rather than | |
10327 | value_contents. | |
10328 | (print_record): Add `offset' parameter, and adjust to pass it | |
10329 | down. | |
10330 | (print_field_values): Add `offset' parameter. Replace | |
10331 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
10332 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
10333 | Use value_contents_for_printing/value_embedded_offset, rather than | |
10334 | value_contents. | |
10335 | * d-valprint.c (dynamic_array_type): Use | |
10336 | value_contents_for_printing/value_embedded_offset, rather than | |
10337 | value_contents. | |
10338 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
10339 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
10340 | (java_print_value_fields): Take `offset' into account. Don't | |
10341 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
10342 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
10343 | java_print_value_fields. | |
10344 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
10345 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
10346 | down adjusted offsets. | |
10347 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
10348 | (f_val_print): Take `embedded_offset' into account. | |
10349 | ||
7bfc9434 JB |
10350 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
10351 | ||
10352 | * inflow.c: Include "gdbcmd.h". | |
10353 | (interactive_mode): New static global, moved here from top.c. | |
10354 | (show_interactive_mode): New function, moved here from top.c. | |
10355 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
10356 | determine the current mode. | |
10357 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
10358 | setting. | |
10359 | (_initialize_inflow): Add the "set/show interactive-mode" | |
10360 | commands. Moved here from top.c, after having adjusted slightly | |
10361 | the help text. | |
10362 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
10363 | to inflow.c. | |
10364 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
10365 | setting, moved to infow.c. | |
10366 | (init_main): Remove creation of the "set/show interactive-mode" | |
10367 | commands, moved to inflow.c. | |
10368 | ||
44603653 JB |
10369 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
10370 | ||
10371 | * NEWS: Add entry for native ia64-hpux support. | |
10372 | ||
4694da01 TT |
10373 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
10374 | ||
10375 | PR mi/8618: | |
10376 | * thread.c (free_thread): Free 'name'. | |
10377 | (print_thread_info): Emit thread name. Change CLI output. | |
10378 | (thread_name_command): New function. | |
10379 | (do_captured_thread_select): Emit newline. | |
10380 | (_initialize_thread): Register 'thread name' command. | |
10381 | * target.h (struct target_ops) <to_thread_name>: New field. | |
10382 | (target_thread_name): New macro. | |
10383 | * target.c (update_current_target): Handle to_thread_name. | |
10384 | * python/py-infthread.c (thpy_get_name): New function. | |
10385 | (thpy_set_name): Likewise. | |
10386 | (thread_object_getset): Add "name". | |
10387 | * linux-nat.c (linux_nat_thread_name): New function. | |
10388 | (linux_nat_add_target): Set to_thread_name. | |
10389 | * gdbthread.h (struct thread_info) <name>: New field. | |
10390 | ||
10d44370 JB |
10391 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
10392 | ||
10393 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
10394 | (ada_val_print_1): Likewise. | |
10395 | ||
e3acb115 JB |
10396 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
10397 | ||
10398 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
10399 | upper limit address is not greater than the function end address | |
10400 | when the upper limit could not be computed using the debugging | |
10401 | info. | |
10402 | ||
dc92e161 TT |
10403 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
10404 | ||
10405 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
10406 | get_regcomp_error. | |
10407 | * utils.c: Include gdb_regex.h. | |
10408 | (do_regfree_cleanup): New function. | |
10409 | (make_regfree_cleanup): Likewise. | |
10410 | (get_regcomp_error): Likewise. | |
10411 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
10412 | ||
f55af66d TT |
10413 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
10414 | ||
10415 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
10416 | re_compile_fastmap. | |
10417 | ||
a5a44b53 PM |
10418 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
10419 | ||
10420 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
10421 | for internal variables. | |
10422 | (last_was_structop): New static variable. | |
10423 | (COMPLETE): New token. | |
10424 | (field_exp): New rule to group all '.' suffix handling. | |
10425 | Add mark_struct_expression calls when approriate to be able | |
10426 | to correctly find fields for completion. | |
10427 | (yylex): Adapt to handle field completion and set INTVAR when | |
10428 | required. | |
10429 | ||
2c291032 YQ |
10430 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
10431 | ||
10432 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
10433 | save_reggroup, restore_reggroup and all_reggroup. | |
10434 | ||
447b483c JB |
10435 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
10436 | ||
10437 | * ada-valprint. (ada_printchar): Use the correct type length | |
10438 | in call to ada_emit_char. | |
10439 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
10440 | ||
7b64a93b PM |
10441 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
10442 | ||
10443 | * solib-som.h (hpux_major_release): Declare variable here. | |
10444 | * solib-som.c: Remove <sys/utsname.h> header. | |
10445 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
10446 | (hpux_major_release): Make global, change default value to | |
10447 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 10448 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
10449 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
10450 | Add "solib-som.h" header. | |
10451 | (set_hpux_major_release): New function. | |
10452 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
10453 | ||
4e18c053 MF |
10454 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
10455 | ||
10456 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
10457 | ||
a9df6b22 JB |
10458 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
10459 | ||
10460 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
10461 | new-line at end of warning message. | |
10462 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
10463 | error message. | |
10464 | * ia64-hpux-tdep.c: Rephrase comment. | |
10465 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
10466 | dld_flags from "long long" to ULONGEST. | |
10467 | ||
ecb956dd PA |
10468 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
10469 | ||
10470 | * target.h (deprecated_child_ops): Delete declaration. | |
10471 | * target.c (deprecated_child_ops): Delete definition. | |
10472 | ||
76adfcae PA |
10473 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
10474 | ||
10475 | * Makefile.in (hpux-thread.o): Delete rule. | |
10476 | * configure.ac: Don't check for HPUX DCE threads support. | |
10477 | * configure, config.in: Regenerate. | |
10478 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
10479 | (hppa_hpux_child_can_run): Delete. | |
10480 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
10481 | * hpux-thread.c: Delete. | |
10482 | ||
042e866e JB |
10483 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10484 | ||
10485 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
10486 | ||
4ffa5a33 JB |
10487 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10488 | ||
10489 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
10490 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
10491 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
10492 | ||
de8fa76c JB |
10493 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10494 | ||
10495 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
10496 | to the case where instream is stdin. | |
10497 | ||
c4de7027 JB |
10498 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10499 | ||
10500 | * ia64-tdep.h (struct regcache): Forward declare. | |
10501 | (struct ia64_infcall_ops): New struct type. | |
10502 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
10503 | and "infcall_ops". | |
10504 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
10505 | Renames ia64_find_global_pointer. | |
10506 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
10507 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
10508 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
10509 | methods. | |
10510 | (ia64_infcall_ops): New static global constant. | |
10511 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
10512 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
10513 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
10514 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
10515 | (ia64_hpux_dummy_code): New static global constant. | |
10516 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
10517 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
10518 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
10519 | New function. | |
10520 | (ia64_hpux_infcall_ops): New static global constant. | |
10521 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
10522 | for inferior function calls to work properly on ia64-hpux. | |
10523 | ||
77ca787b JB |
10524 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10525 | ||
10526 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
10527 | * ia64-tdep.h (struct frame_info): forward declaration. | |
10528 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
10529 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
10530 | to determine the size of the register frame. | |
10531 | (ia64_size_of_register_frame): New function. | |
10532 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
10533 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
10534 | (IA64_HPUX_UREG_REASON): New macro. | |
10535 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
10536 | New functions. | |
10537 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
10538 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
10539 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
10540 | objects. | |
10541 | ||
92c9a463 JB |
10542 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10543 | ||
10544 | Add support for ia64-hpux. | |
10545 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
10546 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
10547 | ||
10548 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
10549 | floatformats. | |
10550 | * configure.tgt: Add handling for ia64-hpux targets. | |
10551 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
10552 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
10553 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
10554 | ||
f688d93f JB |
10555 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10556 | ||
10557 | [ttrace] Compute thread list immediately after attach. | |
10558 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
10559 | New subprogram. | |
10560 | (inf_ttrace_attach): Use it. | |
10561 | ||
1b89e62f JB |
10562 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10563 | ||
10564 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
10565 | if we could not determine the frame's function address. Instead, | |
10566 | use the frame's PC, and then continue. | |
10567 | ||
3e5e6e2a JB |
10568 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10569 | ||
10570 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
10571 | not already defined. | |
10572 | ||
825d6d8a JB |
10573 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10574 | ||
10575 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
10576 | (ia64_extract_return_value): Handle integral values that are | |
10577 | less than 8 bytes long. | |
10578 | (ia64_push_dummy_call): Likewise. | |
10579 | ||
7458e667 JB |
10580 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
10581 | ||
10582 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
10583 | floatformat_ia64_ext. | |
10584 | (floatformat_ia64_ext_big): New static const. | |
10585 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
10586 | ||
1b05df00 TT |
10587 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
10588 | ||
10589 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
10590 | messages. | |
10591 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
10592 | (mi_cmd_thread_list_ids): Likewise. | |
10593 | (mi_cmd_data_list_changed_registers): Likewise. | |
10594 | (mi_cmd_data_list_register_values): Likewise. | |
10595 | (mi_cmd_data_write_register_values): Likewise. | |
10596 | (mi_cmd_data_evaluate_expression): Likewise. | |
10597 | (mi_cmd_data_read_memory): Likewise. | |
10598 | (mi_cmd_data_read_memory_bytes): Likewise. | |
10599 | (mi_cmd_data_write_memory): Likewise. | |
10600 | (mi_cmd_enable_timings): Likewise. | |
10601 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
10602 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
10603 | (mi_cmd_var_delete): Likewise. | |
10604 | (mi_cmd_var_set_format): Likewise. | |
10605 | (mi_cmd_var_show_format): Likewise. | |
10606 | (mi_cmd_var_info_num_children): Likewise. | |
10607 | (mi_cmd_var_list_children): Likewise. | |
10608 | (mi_cmd_var_info_type): Likewise. | |
10609 | (mi_cmd_var_info_expression): Likewise. | |
10610 | (mi_cmd_var_show_attributes): Likewise. | |
10611 | (mi_cmd_var_assign): Likewise. | |
10612 | (mi_cmd_var_update): Likewise. | |
10613 | (mi_cmd_enable_pretty_printing): Likewise. | |
10614 | (mi_cmd_var_set_update_range): Likewise. | |
10615 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
10616 | messages. | |
10617 | (mi_cmd_target_file_put): Likewise. | |
10618 | (mi_cmd_target_file_delete): Likewise. | |
10619 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
10620 | messages. | |
10621 | (mi_cmd_stack_info_depth): Likewise. | |
10622 | (mi_cmd_stack_list_locals): Likewise. | |
10623 | (mi_cmd_stack_list_args): Likewise. | |
10624 | (mi_cmd_stack_select_frame): Likewise. | |
10625 | (mi_cmd_stack_select_frame): Likewise. | |
10626 | (mi_cmd_stack_info_frame): Likewise. | |
10627 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
10628 | messages. | |
10629 | (mi_cmd_file_list_exec_source_files): Likewise. | |
10630 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
10631 | (mi_cmd_env_cd): Likewise. | |
10632 | (mi_cmd_env_path): Likewise. | |
10633 | (mi_cmd_env_dir): Likewise. | |
10634 | (mi_cmd_inferior_tty_show): Likewise. | |
10635 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
10636 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
10637 | (mi_cmd_break_watch): Likewise. | |
10638 | ||
ad422571 TJB |
10639 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10640 | ||
10641 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
10642 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
10643 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
10644 | (ppc_linux_insert_watchpoint): Likewise. | |
10645 | ||
c2ff108b JK |
10646 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
10647 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10648 | ||
10649 | PR fortran/11104 and DWARF unbound arrays detection. | |
10650 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
10651 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
10652 | unspecified upper bound. | |
10653 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
10654 | variables array_size_array, tmp_type and offset_item. New variable | |
10655 | array. Remove call to f77_get_upperbound. New variables array_type | |
10656 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
10657 | the final call to deprecated_set_value_type. | |
10658 | ||
41e8491f JK |
10659 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10660 | ||
10661 | Make value allocations more lazy. | |
10662 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
10663 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 10664 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
10665 | instead of allocate_value and set_value_lazy. |
10666 | * findvar.c (value_of_register_lazy): Likewise. | |
10667 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 10668 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
10669 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
10670 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
10671 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
10672 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
10673 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
10674 | the end, remove set_value_lazy there. | |
10675 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
10676 | instead of allocate_value and set_value_lazy when possible. | |
10677 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
10678 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
10679 | of allocate_value and set_value_lazy. | |
10680 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
10681 | allocate_value and set_value_lazy when possible. | |
10682 | ||
b716877b AB |
10683 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
10684 | ||
10685 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
10686 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
10687 | dumping of instruction opcodes. | |
10688 | ||
d5ae309f JB |
10689 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
10690 | ||
10691 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
10692 | appropiately. | |
10693 | ||
98871305 TT |
10694 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
10695 | ||
10696 | * thread.c (do_captured_thread_select): Emit newline before | |
10697 | printing frame. | |
10698 | ||
c378eb4e MS |
10699 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
10700 | ||
10701 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
10702 | * score-tdep.c: Ditto. | |
10703 | * score-tdep.h: Ditto. | |
10704 | * ser-base.c: Ditto. | |
10705 | * ser-go32.c: Ditto. | |
10706 | * serial.c: Ditto. | |
10707 | * serial.h: Ditto. | |
10708 | * ser-mingw.c: Ditto. | |
10709 | * ser-pipe.c: Ditto. | |
10710 | * ser-tcp.c: Ditto. | |
10711 | * ser-unix.c: Ditto. | |
10712 | * sh64-tdep.c: Ditto. | |
10713 | * shnbsd-nat.c: Ditto. | |
10714 | * sh-tdep.c: Ditto. | |
10715 | * sh-tdep.h: Ditto. | |
10716 | * solib.c: Ditto. | |
10717 | * solib-darwin.c: Ditto. | |
10718 | * solib-frv.c: Ditto. | |
10719 | * solib.h: Ditto. | |
10720 | * solib-irix.c: Ditto. | |
10721 | * solib-osf.c: Ditto. | |
10722 | * solib-pa64.c: Ditto. | |
10723 | * solib-som.c: Ditto. | |
10724 | * solib-spu.c: Ditto. | |
10725 | * solib-sunos.c: Ditto. | |
10726 | * solib-svr4.c: Ditto. | |
10727 | * solist.h: Ditto. | |
10728 | * sol-thread.c: Ditto. | |
10729 | * somread.c: Ditto. | |
10730 | * source.c: Ditto. | |
10731 | * source.h: Ditto. | |
10732 | * sparc64-linux-tdep.c: Ditto. | |
10733 | * sparc64-tdep.c: Ditto. | |
10734 | * sparc-linux-nat.c: Ditto. | |
10735 | * sparc-linux-tdep.c: Ditto. | |
10736 | * sparc-sol2-nat.c: Ditto. | |
10737 | * sparc-sol2-tdep.c: Ditto. | |
10738 | * sparc-tdep.c: Ditto. | |
10739 | * sparc-tdep.h: Ditto. | |
10740 | * spu-tdep.c: Ditto. | |
10741 | * stabsread.c: Ditto. | |
10742 | * stabsread.h: Ditto. | |
10743 | * stack.c: Ditto. | |
10744 | * symfile.c: Ditto. | |
10745 | * symfile.h: Ditto. | |
10746 | * symmisc.c: Ditto. | |
10747 | * symtab.c: Ditto. | |
10748 | * symtab.h: Ditto. | |
10749 | * target.c: Ditto. | |
10750 | * target-descriptions.c: Ditto. | |
10751 | * target-descriptions.h: Ditto. | |
10752 | * target.h: Ditto. | |
10753 | * target-memory.c: Ditto. | |
10754 | * terminal.h: Ditto. | |
10755 | * thread.c: Ditto. | |
10756 | * top.c: Ditto. | |
10757 | * tracepoint.c: Ditto. | |
10758 | * tracepoint.h: Ditto. | |
10759 | * trad-frame.h: Ditto. | |
10760 | * typeprint.c: Ditto. | |
10761 | ||
581e13c1 MS |
10762 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
10763 | ||
10764 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
10765 | * ui-file.h: Ditto. | |
10766 | * ui-out.c: Ditto. | |
10767 | * ui-out.h: Ditto. | |
10768 | * utils.c: Ditto. | |
10769 | * v850-tdep.c: Ditto. | |
10770 | * valarith.c: Ditto. | |
10771 | * valops.c: Ditto. | |
10772 | * valprint.c: Ditto. | |
10773 | * valprint.h: Ditto. | |
10774 | * value.c: Ditto. | |
10775 | * value.h: Ditto. | |
10776 | * varobj.c: Ditto. | |
10777 | * varobj.h: Ditto. | |
10778 | * vax-tdep.c: Ditto. | |
10779 | * vec.c: Ditto. | |
10780 | * vec.h: Ditto. | |
10781 | * version.h: Ditto. | |
10782 | * windows-nat.c: Ditto. | |
10783 | * windows-tdep.c: Ditto. | |
10784 | * xcoffread.c: Ditto. | |
10785 | * xcoffsolib.c: Ditto. | |
10786 | * xml-support.c: Ditto. | |
10787 | * xstormy16-tdep.c: Ditto. | |
10788 | * xtensa-tdep.c: Ditto. | |
10789 | * xtensa-tdep.h: Ditto. | |
10790 | ||
90e4670f TJB |
10791 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10792 | ||
10793 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
10794 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
10795 | ||
e09342b5 TJB |
10796 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
10797 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
10798 | ||
10799 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 10800 | * breakpoint.h |
e09342b5 TJB |
10801 | (struct breakpoint_ops) <resources_needed>: New method. |
10802 | Initialize to NULL in all existing breakpoint_ops instances. | |
10803 | (struct breakpoint) <exact>: New field. | |
10804 | (target_exact_watchpoints): Declare external global. | |
10805 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
10806 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
10807 | b->enable_state to bp_enabled before calling | |
10808 | hw_watchpoint_used_count. | |
10809 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
10810 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
10811 | if available. | |
10812 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
10813 | if the watchpoint is exact. | |
10814 | (resources_needed_watchpoint): New function. | |
10815 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
10816 | (watch_command_1): Set b->exact if the user asked for an exact | |
10817 | watchpoint and one can be set. | |
10818 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
10819 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
10820 | the user asks for an exact watchpoint and one can be set. Return | |
10821 | number of needed debug registers to watch the expression. | |
10822 | * gdbtypes.c (is_scalar_type): New function, based on | |
10823 | valprint.c:scalar_type_p. | |
10824 | (is_scalar_type_recursive): New function. | |
10825 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
10826 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
10827 | handle regions when ranged watchpoints are available. | |
10828 | (create_watchpoint_request): New function. | |
10829 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
10830 | create_watchpoint_request. | |
10831 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
10832 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
10833 | `set powerpc' and `show powerpc' commands. | |
10834 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
10835 | Mention documentation comment in the target macro. | |
10836 | (target_region_ok_for_hw_watchpoint): Document return value. | |
10837 | ||
9fa40276 TJB |
10838 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10839 | ||
10840 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
10841 | hardware watchpoint after the bp_locations are created. | |
10842 | ||
77b06cd7 TJB |
10843 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10844 | ||
10845 | Convert hardware watchpoints to use breakpoint_ops. | |
10846 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
10847 | <insert_location>: ... this. Return int instead of void. | |
10848 | Accept pointer to struct bp_location instead of pointer to | |
10849 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 10850 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
10851 | <remove_location>: ... this. Accept pointer to struct bp_location |
10852 | instead of pointer to struct breakpoint. Adapt all implementations. | |
10853 | * breakpoint.c (insert_catchpoint): Delete function. | |
10854 | (insert_bp_location): Call the watchpoint or catchpoint's | |
10855 | breakpoint_ops.insert method. | |
10856 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
10857 | breakpoint_ops.remove method. | |
10858 | (insert_watchpoint, remove_watchpoint): New functions. | |
10859 | (watchpoint_breakpoint_ops): New structure. | |
10860 | (watch_command_1): Initialize the OPS field. | |
10861 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
10862 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
10863 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
10864 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
10865 | Delete functions. | |
10866 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
10867 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
10868 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
10869 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
10870 | * target.c (update_current_target): Change default implementation of | |
10871 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
10872 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
10873 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
10874 | to_set_syscall_catchpoint to return_one. | |
10875 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
10876 | (debug_to_insert_exec_catchpoint): Report return value. | |
10877 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
10878 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
10879 | of void. | |
10880 | ||
9b20d036 MS |
10881 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
10882 | ||
10883 | * arm-tdep.c: Internationalization. | |
10884 | * c-lang.c: Ditto. | |
10885 | * charset.c: Ditto. | |
10886 | * fork-child.c: Ditto. | |
10887 | * nto-procfs.c: Ditto. | |
10888 | * ppc-sysv-tdep.c: Ditto. | |
10889 | * procfs.c: Ditto. | |
10890 | * remote-mips.c: Ditto. | |
10891 | * remote.c: Ditto. | |
10892 | * rs6000-nat.c: Ditto. | |
10893 | * rs6000-tdep.c: Ditto. | |
10894 | * target.c: Ditto. | |
10895 | * valops.c: Ditto. | |
10896 | * value.c: Ditto. | |
10897 | * xml-support.c: Ditto. | |
10898 | * mi/mi-cmd-break.c: Ditto. | |
10899 | * mi/mi-cmd-var.c: Ditto. | |
10900 | * mi/mi-interp.c: Ditto. | |
10901 | * mi/mi-main.c: Ditto. | |
10902 | ||
dae477fe AB |
10903 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
10904 | ||
10905 | * remote-sim.c (gdbsim_store_register): Update API to | |
10906 | sim_store_register to check more error conditions. | |
10907 | ||
0df8b418 MS |
10908 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
10909 | ||
10910 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
10911 | * nto-tdep.c: Ditto. | |
10912 | * nto-tdep.h: Ditto. | |
10913 | * objc-exp.y: Ditto. | |
10914 | * objc-lang.c: Ditto. | |
10915 | * objfiles.c: Ditto. | |
10916 | * objfiles.h: Ditto. | |
10917 | * observer.c: Ditto. | |
10918 | * opencl-lang.c: Ditto. | |
10919 | * osabi.c: Ditto. | |
10920 | * parse.c: Ditto. | |
10921 | * parser-defs.h: Ditto. | |
10922 | * p-exp.y: Ditto. | |
10923 | * p-lang.c: Ditto. | |
10924 | * posix-hdep.c: Ditto. | |
10925 | * ppcbug-rom.c: Ditto. | |
10926 | * ppc-linux-nat.c: Ditto. | |
10927 | * ppc-linux-tdep.c: Ditto. | |
10928 | * ppc-linux-tdep.h: Ditto. | |
10929 | * ppcnbsd-tdep.c: Ditto. | |
10930 | * ppcobsd-tdep.c: Ditto. | |
10931 | * ppcobsd-tdep.h: Ditto. | |
10932 | * ppc-sysv-tdep.c: Ditto. | |
10933 | * ppc-tdep.h: Ditto. | |
10934 | * printcmd.c: Ditto. | |
10935 | * proc-abi.c: Ditto. | |
10936 | * proc-flags.c: Ditto. | |
10937 | * procfs.c: Ditto. | |
10938 | * proc-utils.h: Ditto. | |
10939 | * progspace.h: Ditto. | |
10940 | * prologue-value.c: Ditto. | |
10941 | * prologue-value.h: Ditto. | |
10942 | * psympriv.h: Ditto. | |
10943 | * psymtab.c: Ditto. | |
10944 | * p-typeprint.c: Ditto. | |
10945 | * p-valprint.c: Ditto. | |
10946 | * ravenscar-sparc-thread.c: Ditto. | |
10947 | * ravenscar-thread.c: Ditto. | |
10948 | * ravenscar-thread.h: Ditto. | |
10949 | * record.c: Ditto. | |
10950 | * regcache.c: Ditto. | |
10951 | * regcache.h: Ditto. | |
10952 | * remote.c: Ditto. | |
10953 | * remote-fileio.c: Ditto. | |
10954 | * remote-fileio.h: Ditto. | |
10955 | * remote.h: Ditto. | |
10956 | * remote-m32r-sdi.c: Ditto. | |
10957 | * remote-mips.c: Ditto. | |
10958 | * remote-sim.c: Ditto. | |
10959 | * rs6000-aix-tdep.c: Ditto. | |
10960 | * rs6000-nat.c: Ditto. | |
10961 | * rs6000-tdep.c: Ditto. | |
10962 | ||
0d7a18f7 MS |
10963 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
10964 | ||
10965 | * charset.c (validate): Internationalization. | |
10966 | * coffread.c (read_one_sym): Ditto. | |
10967 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
10968 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
10969 | * inflow.c (new_tty): Ditto. | |
10970 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
10971 | * m32c-tdep.c (m32c_return_value): Ditto. | |
10972 | * mep-tdep.c (mep_store_return_value): Ditto. | |
10973 | * score-tdep.c (score7_fetch_insn): Ditto. | |
10974 | * ser-mingw.c (pipe_windows_open): Ditto. | |
10975 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
10976 | * spu-tdep.c (spu_register_type): Ditto. | |
10977 | * tracepoint.c (trace_find_command): Ditto. | |
10978 | * valarith.c (value_pos): Ditto. | |
10979 | ||
9a153e0b JB |
10980 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
10981 | ||
10982 | * ada-valprint.c (printstr): Minor comment reformatting. | |
10983 | ||
35ecd2d6 MS |
10984 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
10985 | ||
10986 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
10987 | markup. | |
10988 | ||
1777feb0 MS |
10989 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
10990 | ||
10991 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
10992 | * hppa-hpux-tdep.c: Ditto. | |
10993 | * hppa-linux-nat.c: Ditto. | |
10994 | * hppa-linux-tdep.c: Ditto. | |
10995 | * hppanbsd-tdep.c: Ditto. | |
10996 | * hppa-tdep.c: Ditto. | |
10997 | * hppa-tdep.h: Ditto. | |
10998 | * hpux-thread.c: Ditto. | |
10999 | * i386-cygwin-tdep.c: Ditto. | |
11000 | * i386-darwin-nat.c: Ditto. | |
11001 | * i386gnu-nat.c: Ditto. | |
11002 | * i386-linux-nat.c: Ditto. | |
11003 | * i386-linux-tdep.c: Ditto. | |
11004 | * i386-nat.c: Ditto. | |
11005 | * i386-nat.h: Ditto. | |
11006 | * i386nbsd-tdep.c: Ditto. | |
11007 | * i386-sol2-nat.c: Ditto. | |
11008 | * i386-stub.c: Ditto. | |
11009 | * i386-tdep.c: Ditto. | |
11010 | * i386-tdep.h: Ditto. | |
11011 | * i387-tdep.c: Ditto. | |
11012 | * ia64-linux-nat.c: Ditto. | |
11013 | * ia64-linux-tdep.c: Ditto. | |
11014 | * ia64-tdep.c: Ditto. | |
11015 | * infcall.c: Ditto. | |
11016 | * infcall.h: Ditto. | |
11017 | * infcmd.c: Ditto. | |
11018 | * inferior.c: Ditto. | |
11019 | * inferior.h: Ditto. | |
11020 | * infloop.c: Ditto. | |
11021 | * inflow.c: Ditto. | |
11022 | * infrun.c: Ditto. | |
11023 | * interps.c: Ditto. | |
11024 | * interps.h: Ditto. | |
11025 | * iq2000-tdep.c: Ditto. | |
11026 | * irix5-nat.c: Ditto. | |
11027 | * jit.c: Ditto. | |
11028 | * jit.h: Ditto. | |
11029 | * jv-exp.y: Ditto. | |
11030 | * jv-lang.c: Ditto. | |
11031 | * jv-lang.h: Ditto. | |
11032 | * jv-typeprint.c: Ditto. | |
11033 | * jv-valprint.c: Ditto. | |
11034 | * language.c: Ditto. | |
11035 | * language.h: Ditto. | |
11036 | * linespec.c: Ditto. | |
11037 | * linux-fork.c: Ditto. | |
11038 | * linux-nat.c: Ditto. | |
11039 | * linux-thread-db.c: Ditto. | |
11040 | * lm32-tdep.c: Ditto. | |
11041 | ||
025bb325 MS |
11042 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
11043 | ||
11044 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
11045 | * m2-lang.c: Ditto. | |
11046 | * m2-typeprint.c: Ditto. | |
11047 | * m2-valprint.c: Ditto. | |
11048 | * m32c-tdep.c: Ditto. | |
11049 | * m32r-linux-nat.c: Ditto. | |
11050 | * m32r-rom.c: Ditto. | |
11051 | * m32r-tdep.c: Ditto. | |
11052 | * m32r-tdep.h: Ditto. | |
11053 | * m68hc11-tdep.c: Ditto. | |
11054 | * m58klinux-nat.c: Ditto. | |
11055 | * m68k-tdep.c: Ditto. | |
11056 | * m88k-tdep.c: Ditto. | |
11057 | * m88k-tdep.h: Ditto. | |
11058 | * machoread.c: Ditto. | |
11059 | * macrocmd.c: Ditto. | |
11060 | * macroexp.c: Ditto. | |
11061 | * macrotab.c: Ditto. | |
11062 | * main.c: Ditto. | |
11063 | * maint.c: Ditto. | |
11064 | * mdebugread.c: Ditto. | |
11065 | * mdebugread.h: Ditto. | |
11066 | * memattr.c: Ditto. | |
11067 | * memattr.h: Ditto. | |
11068 | * memory-map.h: Ditto. | |
11069 | * mep-tdep.c: Ditto. | |
11070 | * microblaze-rom.c: Ditto. | |
11071 | * microblaze-tdep.c: Ditto. | |
11072 | * minsyms.c: Ditto. | |
11073 | * mips-irix-tdep.c: Ditto. | |
11074 | * mips-linux-nat.c: Ditto. | |
11075 | * mips-linux-tdep.c: Ditto. | |
11076 | * mips-linux-tdep.h: Ditto. | |
11077 | * mipsnbsd-nat.c: Ditto. | |
11078 | * mipsnbsd-tdep.c: Ditto. | |
11079 | * mipsread.c: Ditto. | |
11080 | * mips-tdep.c: Ditto. | |
11081 | * mips-tdep.h: Ditto. | |
11082 | * mn10300-linux-tdep.c: Ditto. | |
11083 | * mn10300-tdep.c: Ditto. | |
11084 | * mn10300-tdep.h: Ditto. | |
11085 | * monitor.c: Ditto. | |
11086 | * monitor.h: Ditto. | |
11087 | * moxie-tdep.c: Ditto. | |
11088 | * moxie-tdep.h: Ditto. | |
11089 | * mt-tdep.c: Ditto. | |
11090 | ||
1642781b MF |
11091 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
11092 | ||
11093 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
11094 | ||
394b0adb JB |
11095 | 2011-01-08 Robert Millan <rmh@gnu.org> |
11096 | ||
11097 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
11098 | ||
b670013c MS |
11099 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
11100 | ||
11101 | * charset.c (_initialize_charset): Fix typo in string. | |
11102 | ||
a743e542 MS |
11103 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
11104 | ||
11105 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
11106 | for i18n. | |
f2eb0bc8 | 11107 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
11108 | Split line so that operator goes to beginning of line. |
11109 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
11110 | assignment out of if statement. | |
11111 | ||
0963b4bd MS |
11112 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
11113 | ||
11114 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
11115 | * ada-lang.h: Ditto. | |
11116 | * ada-tasks.c: Ditto. | |
11117 | * ada-valprint.c: Ditto. | |
11118 | * aix-threads.c: Ditto. | |
11119 | * alpha-linux-nat.c: Ditto. | |
11120 | * alpha-linux-tdep.c: Ditto. | |
11121 | * alpha-mdebug-tdep.c: Ditto. | |
11122 | * alpha-nat.c: Ditto. | |
11123 | * alpha-osf1-tdep.c: Ditto. | |
11124 | * alpha-tdep.c: Ditto. | |
11125 | * alphabsd-nat.c: Ditto. | |
11126 | * alphabsd-tdep.c: Ditto. | |
11127 | * amd64-darwin-tdep.c: Ditto. | |
11128 | * amd64-linux-nat.c: Ditto. | |
11129 | * amd64-linux-tdep.c: Ditto. | |
11130 | * amd64-sol2-tdep.c: Ditto. | |
11131 | * amd64-tdep.c: Ditto. | |
11132 | * amd64-fbsd-tdep.c: Ditto. | |
11133 | * amd64-nbsd-tdep.c: Ditto. | |
11134 | * amd64-obsd-tdep.c: Ditto. | |
11135 | * amd64-linux-nat.c: Ditto. | |
11136 | * amd64-linux-tdep.c: Ditto. | |
11137 | * arm-tdep.c: Ditto. | |
11138 | * arm-tdep.h: Ditto. | |
11139 | * armnbsd-nat.c: Ditto. | |
11140 | * avr-tdep.c: Ditto. | |
11141 | * bfin-tdep.c: Ditto. | |
11142 | * bsd-kvm.c: Ditto. | |
11143 | * c-typeprintc: Ditto. | |
11144 | * c-valprint.c: Ditto. | |
11145 | * coff-pe-read.h: Ditto. | |
11146 | * coffreead.c: Ditto. | |
11147 | * cris-tdep.c: Ditto. | |
11148 | * d-lang.c: Ditto. | |
11149 | * darwin-nat-info.c: Ditto. | |
11150 | * darwin-nat.c: Ditto. | |
11151 | * dbug-rom.c: Ditto. | |
11152 | * dbxread.c: Ditto. | |
11153 | * dcache.c: Ditto. | |
11154 | * dcache.h: Ditto. | |
11155 | * dec-thread.c: Ditto. | |
11156 | * defs.h: Ditto. | |
11157 | * demangle.c: Ditto. | |
11158 | * dicos-tdep.c: Ditto. | |
11159 | * dictionary.c: Ditto. | |
11160 | * dictionary.h: Ditto. | |
11161 | * dink32-rom.c: Ditto. | |
11162 | * disasm.c: Ditto. | |
11163 | * doublest.c: Ditto. | |
11164 | * dsrec.c: Ditto. | |
11165 | * dummy-frame.c: Ditto. | |
11166 | * dwarf2-frame.c: Ditto. | |
11167 | * dwarf2expr.c: Ditto. | |
11168 | * dwarf2loc.c: Ditto. | |
11169 | * dwarf2read.c: Ditto. | |
11170 | * elfread.c: Ditto. | |
11171 | * environ.c: Ditto. | |
11172 | * eval.c: Ditto. | |
11173 | * event-top.h: Ditto. | |
11174 | * exceptions.c: Ditto. | |
11175 | * exceptions.h: Ditto. | |
11176 | * exec.c: Ditto. | |
11177 | * expprint.c: Ditto. | |
11178 | * expression.h: Ditto. | |
11179 | * f-exp.y: Ditto. | |
11180 | * f-lang.c: Ditto. | |
11181 | * f-lang.h: Ditto. | |
11182 | * f-typeprint.c: Ditto. | |
11183 | * f-valprint.c: Ditto. | |
11184 | * fbsd-nat.c: Ditto. | |
11185 | * findvar.c: Ditto. | |
11186 | * fork-child.c: Ditto. | |
11187 | * frame.c: Ditto. | |
11188 | * frame.h: Ditto. | |
11189 | * frv-linux-tdep.c: Ditto. | |
11190 | * frv-tdep.c: Ditto. | |
11191 | * gcore.c: Ditto. | |
11192 | * gdb-stabs.h: Ditto. | |
11193 | * gdb_assert.h: Ditto. | |
11194 | * gdb_string.h: Ditto. | |
11195 | * gdb_thread_db.h: Ditto. | |
11196 | * gdb_wait.h: Ditto. | |
11197 | * gdbarch.sh: Ditto. | |
11198 | * gdbcore.h: Ditto. | |
11199 | * gdbthread.h: Ditto. | |
11200 | * gdbtypes.c: Ditto. | |
11201 | * gdbtypes.h: Ditto. | |
11202 | * gnu-nat.c: Ditto. | |
11203 | * gnu-nat.h: Ditto. | |
11204 | * gnu-v2-abi.c: Ditto. | |
11205 | * gnu-v3-abi.c: Ditto. | |
11206 | * go32-nat.c: Ditto. | |
11207 | * gdbarch.c: Regenerate. | |
11208 | * gdbarch.h: Regenerate. | |
11209 | ||
ac74f770 MS |
11210 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
11211 | ||
11212 | * ax-gdb.c: Adjust some long output strings. | |
11213 | * breakpoint.c: Ditto. | |
11214 | * charset.c: Ditto. | |
11215 | * cp-abi.c: Ditto. | |
11216 | * infcall.c: Ditto. | |
11217 | * infrun.c: Ditto. | |
11218 | * linux-nat.c: Ditto. | |
11219 | * solib-pa64.c: Ditto. | |
11220 | * solib-som.c: Ditto. | |
11221 | ||
d8e22779 TT |
11222 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
11223 | ||
11224 | PR python/12367: | |
11225 | * NEWS: Add item. | |
11226 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
11227 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
11228 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
11229 | ||
a255712f PP |
11230 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
11231 | ||
11232 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
11233 | * jit.c (jit_debug): New variable. | |
11234 | (show_jit_debug): New function. | |
11235 | (struct target_buffer): Use ULONGEST. | |
11236 | (bfd_open_from_target_memory): Likewise. | |
11237 | (jit_register_code, jit_inferior_init): Add debug output. | |
11238 | (_initialize_jit): Register "debug jit" command. | |
11239 | ||
ccfc3d6e TT |
11240 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
11241 | ||
11242 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
11243 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
11244 | and ARCH_FRAME. | |
11245 | ||
57126e4a TT |
11246 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
11247 | ||
11248 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
11249 | ||
16dfc9ce JB |
11250 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
11251 | ||
11252 | Do not stop on SIGPRIO signals by default | |
11253 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
11254 | signal_print for TARGET_SIGNAL_PRIO. | |
11255 | ||
b1ce2347 JB |
11256 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
11257 | ||
11258 | * ada-tasks.c: Fix style violation in comment. | |
11259 | ||
8f7e195f JB |
11260 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
11261 | ||
11262 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
11263 | at end of error string. | |
11264 | * solib-irix.c (irix_current_sos): Likewise. | |
11265 | * varobj.c (uninstall_variable): Likewise. | |
11266 | ||
e9bdf92c JB |
11267 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
11268 | ||
11269 | * copyright.py: New script. | |
11270 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
11271 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
11272 | ||
3e43a32a MS |
11273 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
11274 | ||
11275 | * addrmap.c: Shorten lines of >= 80 columns. | |
11276 | * arch-utils.c: Ditto. | |
11277 | * arch-utils.h: Ditto. | |
11278 | * ax-gdb.c: Ditto. | |
11279 | * ax-general.c: Ditto. | |
11280 | * bcache.c: Ditto. | |
11281 | * blockframe.c: Ditto. | |
11282 | * breakpoint.c: Ditto. | |
11283 | * buildsym.c: Ditto. | |
11284 | * c-lang.c: Ditto. | |
11285 | * c-typeprint.c: Ditto. | |
11286 | * charset.c: Ditto. | |
11287 | * coffread.c: Ditto. | |
11288 | * command.h: Ditto. | |
11289 | * corelow.c: Ditto. | |
11290 | * cp-abi.c: Ditto. | |
11291 | * cp-namespace.c: Ditto. | |
11292 | * cp-support.c: Ditto. | |
11293 | * dbug-rom.c: Ditto. | |
11294 | * dbxread.c: Ditto. | |
11295 | * defs.h: Ditto. | |
11296 | * dfp.c: Ditto. | |
11297 | * dfp.h: Ditto. | |
11298 | * dictionary.c: Ditto. | |
11299 | * disasm.c: Ditto. | |
11300 | * doublest.c: Ditto. | |
11301 | * dwarf2-frame.c: Ditto. | |
11302 | * dwarf2expr.c: Ditto. | |
11303 | * dwarf2loc.c: Ditto. | |
11304 | * dwarf2read.c: Ditto. | |
11305 | * elfread.c: Ditto. | |
11306 | * eval.c: Ditto. | |
11307 | * event-loop.c: Ditto. | |
11308 | * event-loop.h: Ditto. | |
11309 | * exceptions.h: Ditto. | |
11310 | * exec.c: Ditto. | |
11311 | * expprint.c: Ditto. | |
11312 | * expression.h: Ditto. | |
11313 | * f-lang.c: Ditto. | |
11314 | * f-valprint.c: Ditto. | |
11315 | * findcmd.c: Ditto. | |
11316 | * frame-base.c: Ditto. | |
11317 | * frame-unwind.c: Ditto. | |
11318 | * frame-unwind.h: Ditto. | |
11319 | * frame.c: Ditto. | |
11320 | * frame.h: Ditto. | |
11321 | * gcore.c: Ditto. | |
11322 | * gdb-stabs.h: Ditto. | |
11323 | * gdb_assert.h: Ditto. | |
11324 | * gdb_dirent.h: Ditto. | |
11325 | * gdb_obstack.h: Ditto. | |
11326 | * gdbcore.h: Ditto. | |
11327 | * gdbtypes.c: Ditto. | |
11328 | * gdbtypes.h: Ditto. | |
11329 | * inf-ttrace.c: Ditto. | |
11330 | * infcall.c: Ditto. | |
11331 | * infcmd.c: Ditto. | |
11332 | * inflow.c: Ditto. | |
11333 | * infrun.c: Ditto. | |
11334 | * inline-frame.h: Ditto. | |
11335 | * language.c: Ditto. | |
11336 | * language.h: Ditto. | |
11337 | * libunwind-frame.c: Ditto. | |
11338 | * libunwind-frame.h: Ditto. | |
11339 | * linespec.c: Ditto. | |
11340 | * linux-nat.c: Ditto. | |
11341 | * linux-nat.h: Ditto. | |
11342 | * linux-thread-db.c: Ditto. | |
11343 | * machoread.c: Ditto. | |
11344 | * macroexp.c: Ditto. | |
11345 | * macrotab.c: Ditto. | |
11346 | * main.c: Ditto. | |
11347 | * maint.c: Ditto. | |
11348 | * mdebugread.c: Ditto. | |
11349 | * memattr.c: Ditto. | |
11350 | * minsyms.c: Ditto. | |
11351 | * monitor.c: Ditto. | |
11352 | * monitor.h: Ditto. | |
11353 | * objfiles.c: Ditto. | |
11354 | * objfiles.h: Ditto. | |
11355 | * osabi.c: Ditto. | |
11356 | * p-typeprint.c: Ditto. | |
11357 | * p-valprint.c: Ditto. | |
11358 | * parse.c: Ditto. | |
11359 | * printcmd.c: Ditto. | |
11360 | * proc-events.c: Ditto. | |
11361 | * procfs.c: Ditto. | |
11362 | * progspace.c: Ditto. | |
11363 | * progspace.h: Ditto. | |
11364 | * psympriv.h: Ditto. | |
11365 | * psymtab.c: Ditto. | |
11366 | * record.c: Ditto. | |
11367 | * regcache.c: Ditto. | |
11368 | * regcache.h: Ditto. | |
11369 | * remote-fileio.c: Ditto. | |
11370 | * remote.c: Ditto. | |
11371 | * ser-mingw.c: Ditto. | |
11372 | * ser-tcp.c: Ditto. | |
11373 | * ser-unix.c: Ditto. | |
11374 | * serial.c: Ditto. | |
11375 | * serial.h: Ditto. | |
11376 | * solib-frv.c: Ditto. | |
11377 | * solib-irix.c: Ditto. | |
11378 | * solib-osf.c: Ditto. | |
11379 | * solib-pa64.c: Ditto. | |
11380 | * solib-som.c: Ditto. | |
11381 | * solib-sunos.c: Ditto. | |
11382 | * solib-svr4.c: Ditto. | |
11383 | * solib-target.c: Ditto. | |
11384 | * solib.c: Ditto. | |
11385 | * somread.c: Ditto. | |
11386 | * source.c: Ditto. | |
11387 | * stabsread.c: Ditto. | |
11388 | * stabsread.c: Ditto. | |
11389 | * stack.c: Ditto. | |
11390 | * stack.h: Ditto. | |
11391 | * symfile-mem.c: Ditto. | |
11392 | * symfile.c: Ditto. | |
11393 | * symfile.h: Ditto. | |
11394 | * symmisc.c: Ditto. | |
11395 | * symtab.c: Ditto. | |
11396 | * symtab.h: Ditto. | |
11397 | * target-descriptions.c: Ditto. | |
11398 | * target-memory.c: Ditto. | |
11399 | * target.c: Ditto. | |
11400 | * target.h: Ditto. | |
11401 | * terminal.h: Ditto. | |
11402 | * thread.c: Ditto. | |
11403 | * top.c: Ditto. | |
11404 | * tracepoint.c: Ditto. | |
11405 | * tracepoint.h: Ditto. | |
11406 | * ui-file.c: Ditto. | |
11407 | * ui-file.h: Ditto. | |
11408 | * ui-out.h: Ditto. | |
11409 | * user-regs.c: Ditto. | |
11410 | * user-regs.h: Ditto. | |
11411 | * utils.c: Ditto. | |
11412 | * valarith.c: Ditto. | |
11413 | * valops.c: Ditto. | |
11414 | * valprint.c: Ditto. | |
11415 | * valprint.h: Ditto. | |
11416 | * value.c: Ditto. | |
11417 | * varobj.c: Ditto. | |
11418 | * varobj.h: Ditto. | |
11419 | * vec.h: Ditto. | |
11420 | * xcoffread.c: Ditto. | |
11421 | * xcoffsolib.c: Ditto. | |
11422 | * xcoffsolib.h: Ditto. | |
11423 | * xml-syscall.c: Ditto. | |
11424 | * xml-tdesc.c: Ditto. | |
11425 | ||
9a2b4c1b MS |
11426 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
11427 | ||
11428 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
11429 | * cli/cli-decode.c: Ditto. | |
11430 | * cli/cli-dump.c: Ditto. | |
11431 | * cli/cli-logging.c: Ditto. | |
11432 | * cli/cli-script.c: Ditto. | |
11433 | * cli/cli-setshow.c: Ditto. | |
11434 | * common/signals.c: Ditto. | |
11435 | * mi/mi-cmd-break.c: Ditto. | |
11436 | * mi/mi-cmd-disas.c: Ditto. | |
11437 | * mi/mi-cmd-stack.c: Ditto. | |
11438 | * mi/mi-cmd-var.c: Ditto. | |
11439 | * mi/mi-cmds.c: Ditto. | |
11440 | * mi/mi-common.h: Ditto. | |
11441 | * mi/mi-console.c: Ditto. | |
11442 | * mi/mi-interp.c: Ditto. | |
11443 | * mi/mi-main.c: Ditto. | |
11444 | * osf-share/cma_attr.c: Ditto. | |
11445 | * osf-share/cma_deb_core.h: Ditto. | |
11446 | * osf-share/cma_debug_client.h: Ditto. | |
11447 | * osf-share/cma_handle.h: Ditto. | |
11448 | * osf-share/cma_mutex.h: Ditto. | |
11449 | * osf-share/cma_stack_int.h: Ditto. | |
11450 | * osf-share/cma_tcb_defs.h: Ditto. | |
11451 | * python/py-auto-load.c: Ditto. | |
11452 | * python/py-breakpoint.c: Ditto. | |
11453 | * python/py-cmd.c: Ditto. | |
11454 | * python/py-frame.c: Ditto. | |
11455 | * python/py-objfile.c: Ditto. | |
11456 | * python/py-param.c: Ditto. | |
11457 | * python/py-progspace.c: Ditto. | |
11458 | * python/py-symbol.c: Ditto. | |
11459 | * python/py-value.c: Ditto. | |
11460 | * python/python-internal.h: Ditto. | |
11461 | * python/python.c: Ditto. | |
11462 | * tui/tui-data.c: Ditto. | |
11463 | * tui/tui-disasm.c: Ditto. | |
11464 | * tui/tui-hooks.c: Ditto. | |
11465 | * tui/tui-io.c: Ditto. | |
11466 | * tui/tui-layout.c: Ditto. | |
11467 | * tui/tui-regs.c: Ditto. | |
11468 | * tui/tui-source.c: Ditto. | |
11469 | * tui/tui-stack.c: Ditto. | |
11470 | * tui/tui-win.c: Ditto. | |
11471 | * tui/tui-windata.c: Ditto. | |
11472 | * tui/tui-winsource.c: Ditto. | |
11473 | ||
44944448 JB |
11474 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
11475 | ||
11476 | * configure.ac, gdb.1: Copyright year update. | |
11477 | ||
ebedcab5 JK |
11478 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
11479 | ||
11480 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
11481 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
11482 | "__morestack" minimal symbol there. | |
11483 | ||
e5cc9f32 JB |
11484 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
11485 | ||
11486 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
11487 | ||
7b6bb8da JB |
11488 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
11489 | ||
11490 | Copyright year update in most files (performed by copyright.sh). | |
11491 | ||
71ce852c JB |
11492 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
11493 | ||
11494 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 11495 | |
c3c1ebe8 | 11496 | For older changes see ChangeLog-2010. |
c906108c SS |
11497 | \f |
11498 | Local Variables: | |
11499 | mode: change-log | |
11500 | left-margin: 8 | |
11501 | fill-column: 74 | |
11502 | version-control: never | |
57da7796 | 11503 | coding: utf-8 |
c906108c | 11504 | End: |