Commit | Line | Data |
---|---|---|
3bebe2f2 JK |
1 | 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2 | ||
3 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
4 | python#4434. | |
5 | * configure: Regenerate. | |
6 | ||
eaaffdf4 HZ |
7 | 2010-06-08 Hui Zhu <teawater@gmail.com> |
8 | ||
9 | * record.c (record_wait): Move signal out of replay code. | |
10 | ||
5c631832 JK |
11 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
12 | ||
13 | Fix PR 10640. | |
14 | * dwarf2-frame.c (no_dwarf_call): New function. | |
15 | (execute_stack_op): Set CTX->DWARF_CALL. | |
16 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
17 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
18 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
19 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
20 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
21 | (needs_frame_dwarf_call): New function. | |
22 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
23 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
24 | Update the comment. Move variables die, offset and error call to ... | |
25 | (follow_die_ref): ... a new function. | |
26 | (dwarf2_fetch_die_location_block): New function. | |
27 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
28 | ||
17ea53c3 JK |
29 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
30 | ||
31 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
32 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
33 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
34 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
35 | this change. | |
36 | (struct needs_frame_baton): New field per_cu. | |
37 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
38 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
39 | ||
245040d7 SW |
40 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
41 | ||
42 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
43 | static and global blocks. | |
44 | (make_symbol_overload_list_block): New function. | |
45 | (make_symbol_overload_list): Separate namespace search from block | |
46 | search. | |
47 | (make_symbol_overload_list_qualified): Use | |
48 | make_symbol_overload_list_block. | |
49 | ||
4c3376c8 SW |
50 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
51 | ||
52 | * value.h: Created oload_search_type enum. | |
53 | (find_overload_match): Use oload_search_type enum. | |
54 | * valops.c (find_overload_match): Support combined member and | |
55 | non-member search. | |
56 | * eval.c (evaluate_subexp_standard): Calls to | |
57 | find_overload_match now use oload_search_type enum. | |
58 | (oload_method_static): Verify index is a proper value. | |
59 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
60 | both member and non-member operators. | |
61 | (value_user_defined_cpp_op): New function. | |
62 | (value_user_defined_op): New function. | |
63 | (value_x_unop): Use value_user_defined_op. | |
64 | (value_x_binop): Ditto. | |
65 | * cp-support.c (make_symbol_overload_list_using): Added block | |
66 | iteration. | |
67 | Add check for namespace aliases and imported declarations. | |
68 | ||
ee55da67 JK |
69 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
70 | ||
71 | * breakpoint.h (owner): Extend the comment. | |
72 | ||
1a2ab13a JK |
73 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
74 | ||
75 | Clear stale specific bp_location from former whole breakpoint. | |
76 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
77 | code ... | |
78 | (free_bp_location): ... here. Rename there the called function to | |
79 | bpstat_remove_bp_location_callback. | |
80 | (bpstat_remove_breakpoint_callback): Rename to ... | |
81 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
82 | to struct bp_location. Change the called function to | |
83 | bpstat_remove_bp_location. Create new declaration for the function. | |
84 | (bpstat_remove_breakpoint): Rename to ... | |
85 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
86 | code for the new parameter type. | |
87 | ||
16d6b4b7 NS |
88 | 2010-06-07 Nathan Sidwell <nathan@codesourcery.com> |
89 | ||
90 | * README: Make version-agnostic. | |
91 | ||
7e314c57 JK |
92 | 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
93 | ||
94 | Fix duplicate types for single DIE. | |
95 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
96 | set_die_type. | |
97 | (read_array_type): Remove type initialization. Recheck get_die_type | |
98 | after initial die_type. Move set_die_type before set_descriptive_type. | |
99 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
100 | initial die_type. Move attr initialization later. | |
101 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
102 | target_type. Recheck get_die_type after initial die_type. | |
103 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
104 | die_type and die_containing_type. | |
105 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
106 | Recheck get_die_type after initial die_type. | |
107 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
108 | Move set_die_type before set_descriptive_type. | |
109 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
110 | some type already set. | |
111 | ||
2f296114 VP |
112 | 2010-06-05 Vladimir Prus <vladimir@codesourcery.com> |
113 | ||
114 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
115 | for current naming of thread groups (iN, not N). | |
116 | ||
554794dc SDJ |
117 | 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> |
118 | ||
119 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
120 | * parse.c (operator_length): Likewise. | |
121 | (operator_length_standard): Likewise. | |
122 | * parser-defs.h (operator_length): Likewise. | |
123 | (operator_length_standard): Likewise. | |
124 | (struct exp_descriptor <operator_length>): Likewise. | |
125 | ||
967cf477 DE |
126 | 2010-06-04 Doug Evans <dje@google.com> |
127 | ||
bddaacb9 | 128 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
129 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
130 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
131 | * python/python.c (gdbpy_enabled_cst): Define. | |
132 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
133 | * NEWS: Add entry. | |
134 | ||
2dec564e JK |
135 | 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
136 | ||
137 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
138 | ||
44b5680a HZ |
139 | 2010-06-04 Hui Zhu <teawater@gmail.com> |
140 | ||
141 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
142 | ||
e7a30f46 DE |
143 | 2010-06-03 Doug Evans <dje@google.com> |
144 | ||
145 | * configure.ac: Don't fail if python is unusable when | |
146 | configured with --with-python=auto. | |
147 | * configure: Regenerate. | |
148 | ||
84b4420f SW |
149 | 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> |
150 | ||
151 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. | |
152 | ||
df178451 PM |
153 | 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> |
154 | ||
155 | * valprint.h (get_array_bounds): Change low and high parameter types | |
156 | to LONGEST *. | |
157 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to | |
158 | compute bounds. | |
159 | (val_print_array_elements): Adapt to change above. | |
160 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
161 | * p-valprint.c (pascal_val_print): Likewise. | |
162 | ||
fd5700c7 JK |
163 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
164 | ||
165 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
166 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
167 | .F08. | |
168 | ||
f55ee35c JK |
169 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
170 | ||
171 | Support DW_TAG_module as separate namespaces. | |
172 | * dwarf2read.c (typename_concat): New parameter physname. | |
173 | (read_module_type): New function and declaration. | |
174 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
175 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
176 | to typename_concat backward compatible physname value 0. | |
177 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
178 | backward compatible physname value 0. | |
179 | (add_partial_module, read_module): Remove FIXME comment. | |
180 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
181 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
182 | DIEs under DW_TAG_module. | |
183 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
184 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
185 | && physname and return there instead of just setting NAME. Extend | |
186 | the main block for language_fortran. Pass physname parameter to the | |
187 | typename_concat call. | |
188 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
189 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
190 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
191 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
192 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
193 | variables. | |
194 | (read_type_die) <DW_TAG_module>: New. | |
195 | (MAX_SEP_LEN): Increase to 7. | |
196 | (typename_concat): New parameter physname. New variable lead. Support | |
197 | also language_fortran. | |
198 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
199 | * f-lang.c: Include cp-support.h. | |
200 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
201 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
202 | f_word_break_characters and f_make_symbol_completion_list. | |
203 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
204 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
205 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
206 | (symbol_find_demangled_name): New comment on language_fortran. | |
207 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
208 | for language_fortran. | |
209 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
210 | (default_make_symbol_completion_list): Rename to ... | |
211 | (default_make_symbol_completion_list_break_on): ... this name. New | |
212 | parameter break_on, use it. | |
213 | (default_make_symbol_completion_list): New stub. | |
214 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
215 | prototype. | |
216 | ||
cb91c06a JB |
217 | 2010-06-02 Joel Brobecker <brobecker@adacore.com> |
218 | ||
219 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
220 | to error. | |
221 | ||
5c315b68 JK |
222 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
223 | ||
224 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
225 | ||
9eae7c52 TT |
226 | 2010-06-02 Tom Tromey <tromey@redhat.com> |
227 | ||
228 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
229 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
230 | type is const. Add 'def' argument. Add missing operators, remove | |
231 | unhandled ones. | |
232 | (decode_locdesc): Update. | |
233 | (dwarf2_always_disassemble): New global. | |
234 | (show_dwarf2_always_disassemble): New function. | |
235 | (_initialize_dwarf2_read): Add always-disassemble. | |
236 | (dwarf2_per_cu_offset_size): New function. | |
237 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
238 | (piece_end_p): New function. | |
239 | (locexpr_describe_location_piece): Replace 'size' argument with | |
240 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
241 | some constants. Remove errors. | |
242 | (disassemble_dwarf_expression): New function. | |
243 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
244 | Add 'offset_size' argument. | |
245 | (loclist_describe_location): Change output formatting. | |
246 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
247 | ||
7d3fe98e SW |
248 | 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> |
249 | ||
250 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
251 | anonymous type case. | |
252 | ||
e77813c8 PM |
253 | 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr> |
254 | ||
255 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
256 | according to Dwarf-2 specifications. | |
257 | ||
7cf3118a SDJ |
258 | 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com> |
259 | ||
260 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
261 | BINOP_EXCL. | |
262 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
263 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
264 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
265 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
266 | UNOP_CHMAX, UNOP_CHMIN. | |
267 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
268 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
269 | UNOP_CHMIN>: Remove opcodes. | |
270 | ||
ae4d0c03 PM |
271 | 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr> |
272 | ||
273 | * dwarf2read.c (read_func_scope): Do not complain for | |
274 | external function if bounds are not found. | |
275 | ||
fa593d66 PA |
276 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
277 | ||
278 | * NEWS: Mention gdbserver fast tracepoints support. | |
279 | ||
cd44747c PM |
280 | 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr> |
281 | ||
282 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
283 | New macros. | |
284 | (windows_set_console_info): New function. | |
285 | (windows_create_inferior): Call windows_set_console_info | |
286 | if NEW_CONSOLE is true. | |
287 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
288 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
289 | GetCurrentConsoleFont. | |
290 | ||
f6528abd JK |
291 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
292 | ||
293 | * Makefile.in (RDYNAMIC): New. | |
294 | (SFILES): Add proc-service.list. | |
295 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
296 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
297 | * config/arm/linux.mh: Likewise. | |
298 | * config/i386/linux.mh: Likewise. | |
299 | * config/i386/linux64.mh: Likewise. | |
300 | * config/ia64/linux.mh: Likewise. | |
301 | * config/m32r/linux.mh: Likewise. | |
302 | * config/m68k/linux.mh: Likewise. | |
303 | * config/mips/linux.mh: Likewise. | |
304 | * config/pa/linux.mh: Likewise. | |
305 | * config/powerpc/linux.mh: Likewise. | |
306 | * config/powerpc/ppc64-linux.mh: Likewise. | |
307 | * config/s390/s390.mh: Likewise. | |
308 | * config/sparc/linux.mh: Likewise. | |
309 | * config/sparc/linux64.mh: Likewise. | |
310 | * config/xtensa/linux.mh: Likewise. | |
311 | * configure.ac: New RDYNAMIC on native host and GCC. | |
312 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
313 | * configure: Regenerate. | |
314 | * proc-service.list: New. | |
315 | ||
ca2a87a0 JK |
316 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
317 | ||
318 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
319 | CONTENT. | |
320 | ||
1e225492 JK |
321 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
322 | ||
323 | * linux-nat.c (linux_nat_wait_1): Do not call | |
324 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
325 | TARGET_WAITKIND_SIGNALLED. | |
326 | ||
e802dbe0 JB |
327 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
328 | ||
329 | * ada-lang.c (ada_inferior_data): New struct. | |
330 | (ada_inferior_data): New static global. | |
331 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
332 | (ada_get_tsd_type): New functions. | |
333 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
334 | to look the tsd type up. | |
335 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
336 | event. Set ada_inferior_data. | |
337 | ||
176a6961 PA |
338 | 2010-05-27 Pedro Alves <pedro@codesourcery.com> |
339 | ||
340 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
341 | (remote_console_output): Make static, and add forward declaration. | |
342 | * remote.h: Drop FIXME comment. | |
343 | (unpack_varlen_hex): Declare. | |
344 | (remote_console_output, remote_cisco_objfile_relocate) | |
345 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
346 | Delete declarations. | |
347 | * tracepoint.c: Include "remote.h". | |
348 | (unpack_varlen_hex): Delete declaration. | |
349 | ||
88bfdde4 TT |
350 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
351 | ||
352 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
353 | (allocate_piece_closure): Initialize refc. | |
354 | (copy_pieced_value_closure): Use refc. | |
355 | (free_pieced_value_closure): Likewise. | |
356 | ||
8c6363cf TT |
357 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
358 | ||
359 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
360 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
361 | value_contents_writeable. Introduce new temporary. | |
362 | ||
7ecb917e TT |
363 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
364 | ||
365 | * findcmd.c (parse_find_args): Use value_contents, not | |
366 | value_contents_raw. | |
367 | ||
f42a0a33 TT |
368 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
369 | ||
370 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
371 | const. Use value_contents, not value_contents_writeable. | |
372 | ||
12b795ad JB |
373 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
374 | ||
375 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
376 | by call to value_contents. | |
377 | ||
5a2e11c7 OS |
378 | 2010-05-27 Ozkan Sezer <sezeroz@gmail.com> |
379 | ||
380 | * MAINTAINERS: Add myself for write after approval privileges. | |
381 | ||
ec685c5e DE |
382 | 2010-05-26 Doug Evans <dje@google.com> |
383 | ||
0c4a4063 DE |
384 | Allow python to find its files if moved from original location. |
385 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
386 | (GDB_AC_WITH_DIR): Call it. | |
387 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
388 | python installation directory. | |
389 | * config.in: Regenerate. | |
390 | * configure: Regenerate. | |
391 | * defs.h (python_libdir): Declare. | |
392 | * main.c (python_libdir): Define. | |
393 | (captured_main): Initialize python_libdir. | |
394 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
395 | call Py_SetProgramName to make sure python can find its libraries | |
396 | and modules. | |
397 | ||
ec685c5e DE |
398 | * configure.ac: Try to use python's distutils to fetch compilation |
399 | parameters. | |
400 | * configure: Regenerate. | |
401 | * python/python-config.py: New file. | |
402 | ||
363a6e9f OS |
403 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
404 | ||
405 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
406 | equality to -1 not by it being negative. | |
407 | (net_close): Likewise. | |
408 | ||
dde08ee1 PA |
409 | 2010-05-26 Pedro Alves <pedro@codesourcery.com> |
410 | ||
411 | * NEWS: Mention the `qRelocInsn' feature. | |
412 | * gdbarch.sh (relocate_instruction): New. | |
413 | * amd64-tdep.c (rip_relative_offset): New. | |
414 | (append_insns): New. | |
415 | (amd64_relocate_instruction): New. | |
416 | (amd64_init_abi): Install it. | |
417 | * i386-tdep.c (append_insns): New. | |
418 | (i386_relocate_instruction): New. | |
419 | (i386_gdbarch_init): Install it. | |
420 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
421 | * gdbarch.h, gdbarch.c: Regenerate. | |
422 | ||
947bb88f TT |
423 | 2010-05-26 Tom Tromey <tromey@redhat.com> |
424 | ||
425 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
426 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
427 | * dwarf2loc.c (find_location_expression): Constify return type. | |
428 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
429 | (dwarf2_loc_desc_needs_frame): Likewise. | |
430 | (loclist_read_variable): Constify. | |
431 | (loclist_describe_location): Likewise. | |
432 | (loclist_tracepoint_var_ref): Likewise. | |
433 | ||
0d45f56e TT |
434 | 2010-05-25 Tom Tromey <tromey@redhat.com> |
435 | ||
436 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
437 | (dwarf_expr_frame_base_1): Likewise. | |
438 | (read_pieced_value): Update. | |
439 | (needs_frame_frame_base): Constify. | |
440 | (dwarf2_tracepoint_var_loc): Likewise. | |
441 | (dwarf2_tracepoint_var_access): Likewise. | |
442 | (locexpr_describe_location_piece): Likewise. | |
443 | (locexpr_describe_location_1): Likewise. | |
444 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
445 | Constify. | |
446 | (data): Now const. | |
447 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
448 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
449 | (dwarf2_read_address): Update. | |
450 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
451 | (read_uleb128): Likewise. | |
452 | (read_sleb128): Likewise. | |
453 | (dwarf2_read_address): Likewise. | |
454 | (require_composition): Likewise. | |
455 | (execute_stack_op): Likewise. | |
456 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
457 | "const gdb_byte *". | |
458 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
459 | Now const. | |
460 | (no_get_frame_base): Constify. | |
461 | (execute_stack_op): Likewise. | |
462 | (execute_cfa_program): Likewise. | |
463 | (read_encoded_value): Likewise. | |
464 | ||
07ca107c DE |
465 | 2010-05-25 Doug Evans <dje@google.com> |
466 | ||
e34838f0 DE |
467 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
468 | ||
01f69b38 DE |
469 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
470 | * event-loop.c: ... here. | |
471 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
472 | `error' for clarity. | |
473 | (tui_getc): Pass correct value for `error' parameter to | |
474 | tui_readline_output. | |
475 | ||
07ca107c DE |
476 | Add python gdb.GdbError and gdb.string_to_argv. |
477 | * NEWS: Document them. | |
478 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
479 | the exception is gdb.GdbError. Print a second traceback if there's | |
480 | an error computing the error message. | |
481 | (gdbpy_string_to_argv): New function. | |
482 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
483 | (gdbpy_exception_to_string): New function. | |
484 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
485 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
486 | (gdbpy_gdberror_exc): Declare. | |
487 | * python/python.c (gdbpy_gdberror_exc): New global. | |
488 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
489 | gdb.GdbError. | |
490 | (GdbMethods): Add string_to_argv. | |
491 | ||
5572ce1f PM |
492 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
493 | ||
494 | * windows-nat.c (display_selector): Call GetLastError to give better | |
495 | failure explanation. | |
496 | ||
acd5838a PA |
497 | 2010-05-24 Pedro Alves <pedro@codesourcery.com> |
498 | ||
499 | * config.in: Regenerate. | |
500 | ||
b26a4dcb JK |
501 | 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
502 | ||
503 | Code cleanup. | |
504 | * target.c (push_target): Return only void. Remove the return value | |
505 | comment. | |
506 | * target.h (push_target): Return only void. | |
507 | ||
f434ba03 PA |
508 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
509 | ||
510 | Update gnulib from latest git. | |
511 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
512 | ||
513 | * gnulib/memcmp.c: Removed. | |
514 | * gnulib/memchr.valgrind: New. | |
515 | * gnulib/stddef.in.h: New. | |
516 | * gnulib/Makefile.am: Updated. | |
517 | * gnulib/memchr.c: Updated. | |
518 | * gnulib/memmem.c: Updated. | |
519 | * gnulib/stdint.in.h: Updated. | |
520 | * gnulib/str-two-way.h: Updated. | |
521 | * gnulib/string.in.h: Updated. | |
522 | * gnulib/wchar.in.h: Updated. | |
523 | ||
524 | * gnulib/extra/link-warning.h: Removed. | |
525 | * gnulib/extra/c++defs.h: New. | |
526 | * gnulib/extra/warn-on-use.h: New. | |
527 | * gnulib/extra/arg-nonnull.h: Updated. | |
528 | ||
529 | * gnulib/m4/extensions.m4: Updated. | |
530 | * gnulib/m4/gnulib-cache.m4: Updated. | |
531 | * gnulib/m4/gnulib-common.m4: Updated. | |
532 | * gnulib/m4/gnulib-comp.m4: Updated. | |
533 | * gnulib/m4/gnulib-tool.m4: Updated. | |
534 | * gnulib/m4/include_next.m4: Updated. | |
535 | * gnulib/m4/longlong.m4: Updated. | |
536 | * gnulib/m4/memchr.m4: Updated. | |
537 | * gnulib/m4/memmem.m4: Updated. | |
538 | * gnulib/m4/stdint.m4: Updated. | |
539 | * gnulib/m4/string_h.m4: Updated. | |
540 | * gnulib/m4/memcmp.m4: Removed. | |
541 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
542 | * gnulib/m4/00gnulib.m4: New. | |
543 | * gnulib/m4/mmap-anon.m4: New. | |
544 | * gnulib/m4/multiarch.m4: New. | |
545 | * gnulib/m4/onceonly.m4: New. | |
546 | * gnulib/m4/stddef_h.m4: New. | |
547 | * gnulib/m4/warn-on-use.m4: New. | |
548 | * gnulib/m4/wchar.m4: Removed. | |
549 | * gnulib/m4/wchar_h.m4: New. | |
550 | * gnulib/m4/wchar_t.m4: New. | |
551 | * gnulib/m4/wint_t.m4: New. | |
552 | ||
553 | * aclocal.m4: Regenerate. | |
554 | * config.in: Likewise. | |
555 | * configure: Likewise. | |
556 | * gnulib/Makefile.in: Likewise. | |
557 | ||
d3b1e874 TT |
558 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
559 | ||
560 | * dwarf2loc.c (extract_bits_primitive): New function. | |
561 | (extract_bits): Likewise. | |
562 | (insert_bits): Likewise. | |
563 | (copy_bitwise): Likewise. | |
564 | (read_pieced_value): Do all operations in bits. | |
565 | (write_pieced_value): Likewise. | |
566 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
567 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
568 | Always use xrealloc to resize piece array. | |
569 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
570 | <DW_OP_piece>: Update. | |
571 | <DW_OP_bit_piece>: New case. | |
572 | ||
cb826367 TT |
573 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
574 | ||
575 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
576 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
577 | * dwarf2expr.h (enum dwarf_value_location) | |
578 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
579 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
580 | (add_piece): Handle empty piece. | |
581 | (execute_stack_op) <DW_OP_piece>: Handle | |
582 | DWARF_VALUE_OPTIMIZED_OUT. | |
583 | ||
74de6778 TT |
584 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
585 | ||
586 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
587 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
588 | ||
f346a30d PM |
589 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
590 | ||
591 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
592 | attribute. | |
593 | ||
afd74c5f TT |
594 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
595 | ||
596 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
597 | offset. | |
598 | (write_pieced_value): Likewise. | |
599 | ||
90e7c2c5 PM |
600 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
601 | ||
602 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
603 | and DW_TAG_volatile_type. | |
604 | (new_symbol): Likewise. | |
605 | ||
8148cf8d PM |
606 | 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr> |
607 | ||
608 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
609 | to obtain the number of elements in an array. | |
610 | ||
3a1d4620 DE |
611 | 2010-05-19 Doug Evans <dje@google.com> |
612 | ||
0bf0f8c4 DE |
613 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
614 | ||
3a1d4620 DE |
615 | * python.c (source_python_script): Add comment. |
616 | (source_python_script_for_objfile): Remove unnecessary call to | |
617 | gdbpy_print_stack. | |
618 | ||
dc21167c JK |
619 | 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
620 | Sergio Durigan Junior <sergiodj@redhat.com> | |
621 | ||
622 | Code cleanup. | |
623 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
624 | ||
5b4ee69b MS |
625 | 2010-05-18 Michael Snyder <msnyder@vmware.com> |
626 | ||
627 | * ada-lang.c: White space. | |
628 | * ada-typeprint.c: White space. | |
629 | * ada-valprint.c: White space. | |
630 | * addrmap.c: White space. | |
631 | * auxv.c: White space. | |
632 | * ax-gdb.c: White space. | |
633 | ||
e17c9e56 HZ |
634 | 2010-05-18 Hui Zhu <teawater@gmail.com> |
635 | ||
636 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
637 | for oldfp. | |
638 | (inferior_call_waitpid): Move make_cleanup out of check. | |
639 | Check the return of waitpid. | |
640 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
641 | ||
a109c7c1 MS |
642 | 2010-05-17 Michael Snyder <msnyder@vmware.com> |
643 | ||
1c5313c5 MS |
644 | * tui/tui.c: White space. |
645 | * tui/tui-data.c: White space. | |
646 | * tui/tui-disasm.c: White space. | |
647 | * tui/tui-file.c: White space. | |
648 | * tui/tui-interp.c: White space. | |
649 | * tui/tui-main.c: White space. | |
650 | * tui/tui-out.c: White space. | |
651 | * tui/tui-regs.c: White space. | |
652 | * tui/tui-source.c: White space. | |
653 | * tui/tui-stack.c: White space. | |
654 | * tui/tui-win.c: White space. | |
655 | * tui/tui-winsource.c: White space. | |
656 | ||
f4a14ae6 MS |
657 | * procfs.c: White space. |
658 | ||
d59b6f6c MS |
659 | * python/py-auto-load.c: White space. |
660 | * python/py-block.c: White space. | |
661 | * python/py-breakpoint.c: White space. | |
662 | * python/py-cmd.c: White space. | |
663 | * python/py-function.c: White space. | |
664 | * python/py-lazy-string.c: White space. | |
665 | * python/py-objfile.c: White space. | |
666 | * python/py-param.c: White space. | |
667 | * python/py-prettyprint.c: White space. | |
668 | * python/py-progspace.c: White space. | |
669 | * python/py-symtab.c: White space. | |
670 | * python/python.c: White space. | |
671 | * python/py-type.c: White space. | |
672 | * python/py-utils.c: White space. | |
673 | * python/py-value.c: White space. | |
674 | ||
102040f0 MS |
675 | * mi/mi-cmd-break.c: White space. |
676 | * mi/mi-cmd-env.c: White space. | |
677 | * mi/mi-cmds.c: White space. | |
678 | * mi/mi-cmd-stack.c: White space. | |
679 | * mi/mi-cmd-var.c: White space. | |
680 | * mi/mi-console.c: White space. | |
681 | * mi/mi-getopt.c: White space. | |
682 | * mi/mi-interp.c: White space. | |
683 | * mi/mi-main.c: White space. | |
684 | * mi/mi-out.c: White space. | |
685 | * mi/mi-parse.c: White space. | |
686 | ||
cdb27c12 MS |
687 | * cli/cli-cmds.c: White space. |
688 | * cli/cli-decode.c: White space. | |
689 | * cli/cli-dump.c: White space. | |
690 | * cli/cli-interp.c: White space. | |
691 | * cli/cli-logging.c: White space. | |
692 | * cli/cli-script.c: White space. | |
693 | * cli/cli-setshow.c: White space. | |
694 | ||
a109c7c1 MS |
695 | * valarith.c: White space. |
696 | * valops.c: White space. | |
697 | * valprint.c: White space. | |
698 | * value.c: White space. | |
699 | * varobj.c: White space. | |
700 | * xcoffread.c: White space. | |
701 | * xml-support.c: White space. | |
702 | * xml-tdesc.c: White space. | |
703 | ||
3872d37d AS |
704 | 2010-05-17 Andreas Schwab <schwab@redhat.com> |
705 | ||
706 | PR gdb/11092 | |
707 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
708 | string at first. | |
709 | ||
0cce5bd9 JB |
710 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
711 | ||
712 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
713 | its associated language to parse the expression instead of | |
714 | the current_language. | |
715 | ||
5f19d646 JB |
716 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
717 | ||
718 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
719 | (type_from_class): Likewise. | |
720 | (java_op_print_tab): Remove commented-out elements. | |
721 | ||
28c85d6c JB |
722 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
723 | ||
724 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
725 | argument instead of the raw type name. Remove orig_type parameter. | |
726 | Update calls throughout. | |
727 | (ada_fixup_array_indexes_type): New function. | |
728 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
729 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
730 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
731 | Remove name parameter. | |
732 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
733 | Update calls to print_range_type. | |
734 | (ada_print_type): Update calls to print_range_type. | |
735 | ||
d09039dd PM |
736 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
737 | ||
738 | * dwarf2read.c (read_set_type): Set type length if | |
739 | DW_AT_byte_size attribute is present. | |
740 | ||
7a081a30 PM |
741 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
742 | ||
743 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
744 | are undefined but size is known. | |
745 | ||
77382aee PA |
746 | 2010-05-17 Pedro Alves <pedro@codesourcery.com> |
747 | ||
748 | * procfs.c: Reformat. | |
749 | ||
433759f7 MS |
750 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
751 | ||
5d502164 MS |
752 | * target.c: White space. |
753 | * target-descriptions.c: White space. | |
754 | * target-memory.c: White space. | |
755 | * thread.c: White space. | |
756 | * top.c: White space. | |
757 | * tracepoint.c: White space. | |
758 | * trad-frame.c: White space. | |
759 | * tramp-frame.c: White space. | |
760 | * ui-file.c: White space. | |
761 | * ui-out.c: White space. | |
762 | * user-regs.c: White space. | |
763 | * utils.c: White space. | |
764 | ||
433759f7 MS |
765 | * scm-exp.c: White space. |
766 | * scm-lang.c: White space. | |
767 | * scm-valprint.c: White space. | |
768 | * sentinel-frame.c: White space. | |
769 | * ser-base.c: White space. | |
770 | * ser-go32.c: White space. | |
771 | * serial.c: White space. | |
772 | * ser-mingw.c: White space. | |
773 | * ser-pipe.c: White space. | |
774 | * ser-tcp.c: White space. | |
775 | * ser-unix.c: White space. | |
776 | * solib.c: White space. | |
777 | * solib-darwin.c: White space. | |
778 | * solib-frv.c: White space. | |
779 | * solib-irix.c: White space. | |
780 | * solib-osf.c: White space. | |
781 | * solib-pa64.c: White space. | |
782 | * solib-som.c: White space. | |
783 | * solib-spu.c: White space. | |
784 | * solib-svr4.c: White space. | |
785 | * solib-target.c: White space. | |
786 | * source.c: White space. | |
787 | * stabsread.c: White space. | |
788 | * stack.c: White space. | |
789 | * std-regs.c: White space. | |
790 | * symfile.c: White space. | |
791 | * symmisc.c: White space. | |
792 | * symtab.c: White space. | |
793 | ||
dd304d53 MS |
794 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
795 | ||
796 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
797 | for the "reverse-search" command. | |
798 | ||
a744cf53 MS |
799 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
800 | ||
123f5f96 MS |
801 | * record.c: White space. |
802 | * regcache.c: White space. | |
803 | * reggroups.c: White space. | |
804 | * remote-fileio.c: White space. | |
805 | * remote-m32r-sdi.c: White space. | |
806 | * remote-mips.c: White space. | |
807 | * remote-sim.c: White space. | |
a744cf53 MS |
808 | * remote.c: White space. |
809 | (process_g_packet): Remove orphan braces. | |
810 | ||
b8d56208 MS |
811 | 2010-05-15 Michael Snyder <msnyder@vmware.com> |
812 | ||
ad3bbd48 MS |
813 | * parse.c: White space. |
814 | * p-lang.c: White space. | |
815 | * posix-hdep.c: White space. | |
816 | * printcmd.c: White space. | |
817 | * progspace.c: White space. | |
818 | * prologue-value.c: White space. | |
819 | * psymtab.c: White space. | |
820 | * p-typeprint.c: White space. | |
821 | * p-valprint.c: White space. | |
822 | ||
5cc80db3 MS |
823 | * objc-lang.c: White space. |
824 | * objfiles.c: White space. | |
825 | * observer.c: White space. | |
826 | * osabi.c: White space. | |
827 | * osdata.c: White space. | |
828 | ||
b8d56208 MS |
829 | * m2-lang.c: White space. |
830 | * m2-valprint.c: White space. | |
831 | * macrocmd.c: White space. | |
832 | * macroexp.c: White space. | |
833 | * macroscope.c: White space. | |
834 | * macrotab.c: White space. | |
835 | * main.c: White space. | |
836 | * maint.c: White space. | |
837 | * mdebugread.c: White space. | |
838 | * memattr.c: White space. | |
839 | * minsyms.c: White space. | |
840 | * monitor.c: White space. | |
841 | ||
9a619af0 MS |
842 | 2010-05-14 Michael Snyder <msnyder@vmware.com> |
843 | ||
e0881a8e MS |
844 | * jv-lang.c: White space. |
845 | * jv-typeprint.c: White space. | |
846 | * jv-valprint.c: White space. | |
847 | * language.c: White space. | |
848 | * libunwind-frame.c: White space. | |
849 | * linespec.c: White space. | |
850 | * linux-nat.c: White space. | |
851 | * linux-record.c: White space. | |
852 | * linux-thread-db.c: White space. | |
853 | ||
abbb1732 MS |
854 | * infcall.c: White space. |
855 | * inf-child.c: White space. | |
856 | * infcmd.c: White space. | |
857 | * inferior.c: White space. | |
858 | * inf-loop.c: White space. | |
859 | * inflow.c: White space. | |
860 | * inline-frame.c: White space. | |
861 | * interps.c: White space. | |
862 | ||
d8734c88 MS |
863 | * gcore.c: White space. |
864 | * gdb.c: White space. | |
865 | * gdbtypes.c: White space. | |
866 | * gnu-nat.c: White space. | |
867 | * gnu-v2-abi.c: White space. | |
868 | * gnu-v3-abi.c: White space. | |
869 | ||
bb9bcb69 MS |
870 | * findcmd.c: White space. |
871 | * findvar.c: White space. | |
872 | * fork-child.c: White space. | |
873 | * frame-base.c: White space. | |
874 | * frame.c: White space. | |
875 | * frame-unwind.c: White space. | |
876 | * f-valprint.c: White space. | |
877 | ||
d7f9d729 MS |
878 | * elfread.c: White space. |
879 | * environ.c: White space. | |
880 | * eval.c: White space. | |
881 | * event-loop.c: White space. | |
882 | * event-top.c: White space. | |
883 | * exceptions.c: White space. | |
884 | * exec.c: White space. | |
885 | * expprint.c: White space. | |
886 | ||
9a619af0 MS |
887 | * dbxread.c: White space. |
888 | * dcache.c: White space. | |
889 | * disasm.c: White space. | |
890 | * doublest.c: White space. | |
891 | * dsrec.c: White space. | |
892 | * dummy-frame.c: White space. | |
893 | * dwarf2expr.c: White space. | |
894 | * dwarf2-frame.c: White space. | |
895 | * dwarf2loc.c: White space. | |
896 | * dwarf2read.c: White space. | |
897 | ||
88d4aea7 PM |
898 | 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> |
899 | ||
900 | PR python/11482 | |
901 | ||
902 | * python/py-value.c (valpy_hash): New function. | |
903 | (value_object_type): Register valpy_hash. | |
904 | ||
7a298875 HZ |
905 | 2010-05-14 Hui Zhu <teawater@gmail.com> |
906 | Michael Snyder <msnyder@vmware.com> | |
907 | ||
908 | * linux-fork.c (gdbthread.h): New include. | |
909 | (fork_info): Add parent_ptid. | |
910 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
911 | functions. | |
912 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
913 | (checkpoint_command): Set parent_ptid. | |
914 | ||
c14feecc MS |
915 | 2010-05-13 Michael Snyder <msnyder@vmware.com> |
916 | ||
6595d32b MS |
917 | * dictionary.c: Re-indent to GNU coding standard. |
918 | ||
c5504eaf MS |
919 | * charset.c: White space. |
920 | * c-lang.c: White space. | |
921 | * cli-out.c: White space. | |
922 | * coffread.c: White space. | |
923 | * complaints.c: White space. | |
924 | * completer.c: White space. | |
925 | * corefile.c: White space. | |
926 | * corelow.c: White space. | |
927 | * cp-abi.c: White space. | |
928 | * cp-namespace.c: White space. | |
929 | * cp-support.c: White space. | |
930 | * cp-valprint.c: White space. | |
931 | * c-typeprint.c: White space. | |
932 | * c-valprint.c: White space. | |
cc59ec59 MS |
933 | * blockframe.c: White space. |
934 | * breakpoint.c: White space. | |
935 | * buildsym.c: White space. | |
936 | * blockframe.c: White space. | |
b6de9da4 | 937 | * bcache.c: White space. |
05c547f6 MS |
938 | * gdbarch.sh: White space, add blank lines. |
939 | * arch-utils.c: Ditto. | |
940 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 941 | * frame.c: White space, add blank lines. |
f89b749f MS |
942 | * stack.c: White space, add blank lines. |
943 | (initialize_stack): Remove long-dead code. | |
c14feecc | 944 | |
a2d33775 JK |
945 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
946 | ||
947 | Code cleanup. | |
948 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
949 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
950 | ||
33ac96f0 JK |
951 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
952 | ||
953 | Code cleanup. | |
954 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
955 | Remove check of NULL returned by tag_type_to_type. | |
956 | (die_containing_type): Remove variable type. Remove type_die variable | |
957 | initialization. Remove check of NULL returned by tag_type_to_type. | |
958 | ||
f5a010c0 PM |
959 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
960 | ||
961 | PR exp/11530. | |
962 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
963 | names of unnamed structures or unions. | |
964 | ||
bf701c2c PM |
965 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
966 | ||
967 | * procfs.c (proc_watchpoint_address): New function. | |
968 | (procfs_stopped_by_watchpoint): Remove useless check after | |
969 | find_procinfo_or_die call. | |
970 | (procfs_stopped_data_address): New function. | |
971 | (procfs_use_watchpoints): Register new watchpoint related function. | |
972 | ||
d02691ef TT |
973 | 2010-05-11 Tom Tromey <tromey@redhat.com> |
974 | ||
975 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
976 | ||
e0627e85 MS |
977 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
978 | ||
979 | * utils.c: White space cleanup. | |
980 | ||
cc73bb8c TT |
981 | 2010-05-10 Tom Tromey <tromey@redhat.com> |
982 | ||
983 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
984 | (evaluate_subexp_standard): Update. | |
985 | (evaluate_subexp_with_coercion): Update. | |
986 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
987 | ||
c02866a0 MS |
988 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
989 | ||
990 | * utils.c (do_fclose_cleanup) Restore local variable. | |
991 | ||
06280d23 DE |
992 | 2010-05-09 Doug Evans <dje@google.com> |
993 | ||
994 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
995 | ||
fa07e785 JB |
996 | 2010-05-08 Joel Brobecker <brobecker@adacore.com> |
997 | ||
998 | Implement task switching on pa-hpux. | |
999 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
1000 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
1001 | ||
4c680d1d PM |
1002 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
1003 | ||
1004 | * valops.c (find_overload_match): Add missing i18n markup. | |
1005 | ||
28e176a6 PM |
1006 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
1007 | ||
1008 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
1009 | ||
48cb83fd JK |
1010 | 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1011 | ||
1012 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
1013 | list for the obconcat call. | |
1014 | * mdebugread.c (parse_symbol): Likewise. | |
1015 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
1016 | Likewise. | |
1017 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
1018 | New variable ap. Remove variables len and val. | |
1019 | * symfile.h (obconcat): Likewise for the prototype. | |
1020 | ||
f92adf3c MS |
1021 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
1022 | ||
1023 | * python/python.c (execute_gdb_command): Remove unused variables. | |
1024 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
1025 | * python/py-breakpoint.c (gdbpy_breakpoint_created): | |
1026 | Remove unused variable. | |
1027 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
1028 | (cmdpy_completer): Remove unused variable. | |
1029 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
1030 | * python/py-function.c (fnpy_call): Remove unused variable. | |
1031 | * python/py-objfile.c (objfile_to_objfile_object): | |
1032 | Remove unused variable. | |
1033 | * python/py-param.c (parmpy_init): Remove unused variable. | |
1034 | * python/py-prettyprint.c (apply_varobj_pretty_printer): | |
1035 | Remove unused variable. | |
1036 | (gdbpy_default_visualizer): Remove unused variable. | |
1037 | * python/py-progspace.c (pspace_to_pspace_object): | |
1038 | Remove unused variable. | |
1039 | * python/py-symtab.c (symtab_and_line_to_sal_object): | |
1040 | Remove unused variable. | |
1041 | * python/py-type.c (typy_template_argument): | |
1042 | Remove unused variable. | |
1043 | * python/py-value.c (valpy_string): Remove unused variable. | |
1044 | (convert_value_from_python): Remove unused variables. | |
1045 | ||
d160942f MS |
1046 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
1047 | ||
1048 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
1049 | and use it to compute variable 't1'. | |
1050 | ||
587542ab JB |
1051 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
1052 | ||
1053 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
1054 | ||
7322dca9 SW |
1055 | 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com> |
1056 | ||
1057 | PR C++/7943: | |
1058 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
1059 | Add int no_adl argument. | |
1060 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
1061 | when appropriate. | |
1062 | Add int no_adl argument. | |
1063 | (find_oload_champ_namespace): Add int no_adl argument. | |
1064 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
1065 | expression. | |
1066 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
1067 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
1068 | Evaluate arguments and use them to perform ADL lookup. | |
1069 | Pass no_adl argument to find_overload_match. | |
1070 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
1071 | * cp-support.h: Added prototype for | |
1072 | make_symbol_overload_list_namespace. | |
1073 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
1074 | (make_symbol_overload_list_adl_namespace): New function. | |
1075 | (make_symbol_overload_list_adl): New function. | |
1076 | (make_symbol_overload_list_using): Moved code to add function to | |
1077 | overload set to make_symbol_overload_list_namespace. | |
1078 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
1079 | Add parse rule for ADL functions. | |
1080 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
1081 | ||
3f1f6884 JK |
1082 | 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1083 | ||
1084 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
1085 | sentinel. | |
1086 | ||
3caf13b4 JB |
1087 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
1088 | ||
1089 | Implement task switching on solaris targets. | |
1090 | * sol-thread.c (thread_db_find_thread_from_tid) | |
1091 | (sol_get_ada_task_ptid): New functions. | |
1092 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
1093 | ||
94b0dee1 PA |
1094 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
1095 | ||
1096 | * remote.c (remote_query_supported_append): Use reconcat. | |
1097 | (remote_query_supported): Install a cleanup. Use reconcat. | |
1098 | ||
1408c251 PA |
1099 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
1100 | ||
1101 | * gdbarch.sh (qsupported): Delete. | |
1102 | * gdbarch.h, gdbarch.c: Regenerate. | |
1103 | * remote.c (remote_query_supported): Remove use of | |
1104 | gdbarch_qsupported. | |
1105 | ||
f8e50cfe SDJ |
1106 | 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
1107 | ||
1108 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
1109 | function. | |
1110 | ||
8ea13695 MS |
1111 | 2010-05-06 Michael Snyder <msnyder@vmware.com> |
1112 | ||
c6913b7d MS |
1113 | * xml-support.c (xinclude_start_include): Delete unused variable. |
1114 | (xml_process_xincludes): Delete unused variable. | |
1115 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
1116 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
1117 | (tdesc_find_arch_register): Delete unused variable. | |
1118 | (tdesc_use_registers): Delete unused variable. | |
1119 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
1120 | * inferior.c (print_inferior): Delete unused variable. | |
1121 | * record.c (record_open_1): Delete unused variable. | |
1122 | (record_restore): Delete unused variable. | |
1123 | (cmd_record_save): Delete unused variable. | |
1124 | * gcore.c (derive_heap_segment): Delete unused variable. | |
1125 | (objfile_find_memory_regions): Use unused variable. | |
1126 | * jit.c (jit_inferior_init): Delete unused variable. | |
1127 | * progspace.c (clone_program_space): Delete unused variable. | |
1128 | (pspace_empty_p): Delete unused variable. | |
1129 | ||
1c5465ac MS |
1130 | * frame-unwind.c (frame_unwind_find_by_frame): |
1131 | Delete unused variable. | |
1132 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
1133 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
1134 | (method_name_from_physname): Delete unused variable. | |
1135 | (cp_func_name): Delete unused variable. | |
1136 | (cp_validate_operator): Delete unused variable. | |
1137 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): | |
1138 | Delete unused variable. | |
1139 | * trad-frame.c (trad_frame_get_prev_register): | |
1140 | Delete unused variable. | |
1141 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
1142 | ||
1be757cf MS |
1143 | * serial.c (serial_for_fd): Delete unused variable. |
1144 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
1145 | * top.c (execute_command): Delete unused variable. | |
1146 | (init_main): Delete unused variable. | |
1147 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
1148 | (do_all_inferior_continuations): Delete unused variable. | |
1149 | (initialize_utils): Delete unused variable. | |
1150 | (internal_problem_mode): Delete unused global. | |
1151 | * frame.c (get_prev_frame): Delete unused global. | |
1152 | (get_frame_locals_address): Delete unused global. | |
1153 | (get_frame_args_address): Delete unused global. | |
1154 | ||
9216103f MS |
1155 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
1156 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
1157 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
1158 | (f_type_print_varspec_suffix): Delete unused variable. | |
1159 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
1160 | (m2_long_set): Delete unused variable. | |
1161 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
1162 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
1163 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): | |
1164 | Delete unused variable. | |
1165 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
1166 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
1167 | ||
34fa1d9d MS |
1168 | * ui-out.c (ui_out_field_int): Delete unused variable. |
1169 | (ui_out_field_fmt_int): Delete unused variable. | |
1170 | * varobj.c (varobj_list_children): Delete unused variable. | |
1171 | (varobj_set_value): Delete unused variable. | |
1172 | (install_new_value_visualizer): Delete unused variable. | |
1173 | (varobj_set_visualizer): Delete unused variable. | |
1174 | (varobj_update): Delete unused variable. | |
1175 | (varobj_editable_p): Delete unused variable. | |
1176 | (c_value_of_root): Delete unused variable. | |
1177 | (cplus_describe_child): Delete unused variable. | |
1178 | ||
b5385fc0 MS |
1179 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
1180 | (decode_constrained_packed_array_type): Delete unused variable. | |
1181 | (add_defn_to_vec): Delete unused variable. | |
1182 | (symbol_completion_match): Delete unused variable. | |
1183 | (value_tag_from_contents_and_address): Delete unused variable. | |
1184 | (ada_evaluate_subexp): Delete unused variable. | |
1185 | * c-lang.c (classify_type): Delete unused variable. | |
1186 | * f-lang.c (f_printstr): Delete unused variable. | |
1187 | * objc-lang.c (objc_printstr): Delete unused variable. | |
1188 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
1189 | * jv-lang.c (type_from_class): ifdef unused variable. | |
1190 | (java_class_name_from_physname): Delete unused variable. | |
1191 | * m2-lang.c (m2_printstr): Delete unused variable. | |
1192 | ||
4fc06681 MS |
1193 | * objfiles.c (objfile_relocate): Delete unused variable. |
1194 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
1195 | * demangle.c (_initialize_demangler): Delete unused variable. | |
1196 | * corefile.c (reopen_exec_file): Delete unused variable. | |
1197 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
1198 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
1199 | ||
6b4398f7 MS |
1200 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
1201 | * memattr.c (mem_delete): Delete unused variable. | |
1202 | (invalidate_target_mem_regions): Delete unused variable. | |
1203 | * mem-break.c (default_memory_insert_breakpoint): | |
1204 | Delete unused variable. | |
1205 | * target.c (target_get_osdata): Delete unused variable. | |
1206 | * parse.c (length_of_subexp): Delete unused variable. | |
1207 | (prefixify_subexp): Delete unused variable. | |
1208 | (exp_iterate): Delete unused variable. | |
1209 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
1210 | ||
308d96ed MS |
1211 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
1212 | * macroexp.c (gather_arguments): Delete unused variable. | |
1213 | (substitute_args): Delete unused variable. | |
1214 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
1215 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
1216 | (_initialize_gdbarch): Delete unused variable. | |
1217 | * gdbarch.c, gdbarch.h: Regenerate. | |
1218 | * arch-utils.c (initialize_current_architecture): | |
1219 | Delete unused variable. | |
1220 | (_initialize_gdbarch_utils): Delete unused variable. | |
1221 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
1222 | (make_type_with_address_space): Delete unused variable. | |
1223 | ||
167e4384 MS |
1224 | * linespec.c (decode_compound): Delete unused variable. |
1225 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
1226 | * infcall.c (call_function_by_hand): Delete unused variable. | |
1227 | * infcmd.c (step_1): Delete unused variable. | |
1228 | (registers_info): Delete unused variable. | |
1229 | (attach_command): Delete unused variable. | |
1230 | * infrun.c (follow_exec): Delete unused variable. | |
1231 | (handle_step_into_function_backwards): Delete unused variable. | |
1232 | (_initialize_infrun): Delete unused variable. | |
1233 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
1234 | (frame_info): Delete unused variable. | |
1235 | (backtrace_command_1): Delete unused variable. | |
1236 | (catch_info): Delete unused variable. | |
1237 | ||
8f78b329 MS |
1238 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
1239 | * valops.c (value_cast_pointers): Delete unused variable. | |
1240 | (value_dynamic_cast): Delete unused variable. | |
1241 | (value_array): Delete unused variable. | |
1242 | (find_overload_match): Delete unused variable. | |
1243 | * valarith.c (value_subscript): Delete unused variable. | |
1244 | (value_binop): Delete unused variable. | |
1245 | * valprint.c (_initialize_valprint): Delete unused variable. | |
1246 | * printcmd.c (print_command_1): Delete unused variable. | |
1247 | (address_info): Delete unused variable. | |
1248 | (printf_command): Delete unused variable. | |
1249 | ||
8ea13695 MS |
1250 | * auxv.c (target_auxv_search): Delete unused variable. |
1251 | * blockframe.c (get_frame_block): Delete unused variable. | |
1252 | * regcache.c (regcache_cpy): Delete unused variable. | |
1253 | (regcache_cpy_no_passthrough): Delete unused variable. | |
1254 | * charset.c (wchar_iterate): Delete unused variable. | |
1255 | (find_charset_names): Delete unused variable. | |
1256 | (_initialize_charset): Delete unused variable. | |
1257 | * disasm.c (do_mixed_source_and_assembly): | |
1258 | Delete unused variable. | |
1259 | * source.c (set_default_source_symtab_and_line): | |
1260 | Delete unused variable. | |
1261 | (set_substitute_path_command): Delete unused variable. | |
1262 | * value.c (preserve_values): Delete unused variable. | |
1263 | (value_from_double): Delete unused variable. | |
1264 | ||
afe38095 MS |
1265 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
1266 | ||
952a6d41 MS |
1267 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
1268 | (find_last_source_symtab_from_partial): Delete unused variable. | |
1269 | * symfile.c (place_section): Delete unused variable. | |
1270 | (default_symfile_offsets): Delete unused variable. | |
1271 | (get_debug_link_info): Delete unused variable. | |
1272 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
1273 | (add_symbol_file_command): Delete unused variable. | |
1274 | (symfile_find_segment_sections): Delete unused variable. | |
1275 | * symmisc.c (free_symtab): Delete unused variable. | |
1276 | (dump_symtab_1): Delete unused variable. | |
1277 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
1278 | (find_pc_sect_symtab): Delete unused variable. | |
1279 | (skip_prologue_using_lineinfo): Delete unused variable. | |
1280 | (sources_info): Delete unused variable. | |
1281 | (completion_list_add_name): Delete unused variable. | |
1282 | (expand_line_sal): Delete unused variable. | |
1283 | ||
afe38095 MS |
1284 | * breakpoint.c (validate_commands_for_breakpoint): |
1285 | Delete unused variables. | |
1286 | (insert_catchpoint): Delete unused variable. | |
1287 | (update_watchpoint): Delete unused variable. | |
1288 | (insert_bp_location): Delete unused variable. | |
1289 | (insert_breakpoint_locations): Delete unused variable. | |
1290 | (remove_breakpoint_1): Delete unused variable. | |
1291 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
1292 | (watchpoints_triggered): Delete unused variable. | |
1293 | (bpstat_check_watchpoint): Delete unused variable. | |
1294 | (bpstat_stop_status): Delete unused variable. | |
1295 | (print_one_breakpoint_location): Delete unused variable. | |
1296 | (allocate_bp_location): Delete unused variable. | |
1297 | (create_breakpoint): Delete unused variable. | |
1298 | (watch_command_1): Delete unused variable. | |
1299 | (catch_exception_command_1): Delete unused variable. | |
1300 | (catch_ada_exception_command): Delete unused variable. | |
1301 | (delete_breakpoint): Delete unused variable. | |
1302 | (breakpoint_re_set_one): Delete unused variable. | |
1303 | (do_enable_breakpoint): Delete unused variable. | |
1304 | ||
eda5a4d7 PA |
1305 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
1306 | ||
1307 | * amd64-tdep.c: Include disasm.h. | |
1308 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
1309 | (amd64_insn_length): Moved to disasm.c and renamed. | |
1310 | (fixup_riprel): Adjust. | |
1311 | * disasm.c (do_ui_file_delete): New. | |
1312 | (gdb_insn_length): New. | |
1313 | (gdb_buffered_insn_length_fprintf) | |
1314 | (gdb_buffered_insn_length_init_dis) | |
1315 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
1316 | renamed. | |
1317 | * disasm.h (gdb_insn_length): Declare. | |
1318 | (gdb_buffered_insn_length): Declare. | |
1319 | ||
02357a4a PA |
1320 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
1321 | ||
1322 | * remote.c (clear_threads_parsing_context): New. | |
1323 | (remote_threads_info): Delete unused null_cleanup. Install a | |
1324 | cleanup to clear the threads_parsing_context in case parsing | |
1325 | throws. | |
1326 | ||
8c5630cb MS |
1327 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
1328 | ||
1329 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
1330 | (c_lex): Delete unused variable. | |
1331 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
1332 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
1333 | (write_var_or_type): Delete unused variable. | |
1334 | * jv-exp.y (java_parse): Delete unused variable. | |
1335 | (push_expression_name): Delete unused variable. | |
1336 | * p-exp.y (pascal_lex): Delete unused variable. | |
1337 | ||
46c162d4 PA |
1338 | 2010-05-05 Pedro Alves <pedro@codesourcery.com> |
1339 | ||
1340 | * remote.c (remote_threads_info): Really revert previous previous | |
1341 | change. | |
1342 | ||
0043e6a5 MS |
1343 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
1344 | ||
fa238c03 MS |
1345 | * elfread.c (elf_symtab_read): Delete unused variable. |
1346 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
1347 | (elf_symfile_read): Delete unused variable. | |
1348 | ||
1349 | * coffread.c (coff_symfile_read): Delete unused variables. | |
1350 | ||
1351 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
1352 | (read_pe_exported_syms): Delete unused variable. | |
1353 | ||
1354 | * stabsread.c (define_symbol): Delete unused variable. | |
1355 | ||
1356 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
1357 | (process_psymtab_comp_unit): Delete unused variable. | |
1358 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
1359 | (load_partial_comp_unit): Delete unused variable. | |
1360 | (create_all_comp_units): Delete unused variable. | |
1361 | (scan_partial_symbols): Delete unused variable. | |
1362 | (add_partial_symbol): Delete unused variable. | |
1363 | (add_partial_namespace): Delete unused variable. | |
1364 | (add_partial_enumeration): Delete unused variable. | |
1365 | (load_full_comp_unit): Delete unused variable. | |
1366 | (process_full_comp_unit): Delete unused variable. | |
1367 | (read_file_scope): Delete unused variable. | |
1368 | (read_type_unit_scope): Delete unused variable. | |
1369 | (process_structure_scope): Delete unused variable. | |
1370 | (process_enumeration_scope): Delete unused variable. | |
1371 | (read_tag_ptr_to_member_type): Delete unused variable. | |
1372 | (read_typedef): Delete unused variable. | |
1373 | (read_partial_die): Delete unused variable. | |
1374 | (decode_locdesc): Delete unused variable. | |
1375 | (zeroed_partial_die): Delete unused global variable. | |
1376 | ||
0043e6a5 MS |
1377 | * tui/tui-interp.c (_initialize_tui_interp): |
1378 | Delete unused variable. | |
1379 | * tui/tui-regs.c tui_display_registers_from): | |
1380 | Delete unused variable. | |
1381 | (tui_check_register_values): Delete unused variable. | |
1382 | (tui_register_format): Delete unused variable. | |
1383 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
1384 | * tui/tui-windata.c (tui_display_data_from_line): | |
1385 | Delete unused variables. | |
1386 | (tui_vertical_data_scroll): Delete unused variables. | |
1387 | ||
75721c66 MS |
1388 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
1389 | ||
c31a71f4 MS |
1390 | * remote.c (remote_threads_info): Revert questionable part of |
1391 | the previous change. | |
1392 | ||
1393 | 2010-05-05 Michael Snyder <msnyder@vmware.com> | |
1394 | ||
1395 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
1396 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
1397 | (mi_cmd_var_list_children): Delete unused variable. | |
1398 | (varobj_update_one): Delete unused variable. | |
1399 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
1400 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): | |
1401 | Delete unused variable. | |
1402 | (mi_cmd_stack_list_variables): Delete unused variable. | |
1403 | (list_args_or_locals): Delete unused variable. | |
1404 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): | |
1405 | Delete unused variables. | |
1406 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
1407 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): | |
1408 | Delete unused variable. | |
1409 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
1410 | (mi_cmd_interpreter_exec): Delete unused variable. | |
1411 | (mi_on_normal_stop): Delete unused variable. | |
1412 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
1413 | (print_one_inferior): Delete unused variables. | |
1414 | (mi_execute_command): Delete unused variable. | |
1415 | (mi_cmd_execute): Delete unused variable. | |
1416 | (timestamp): Delete unused variable. | |
1417 | ||
1418 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 1419 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
1420 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
1421 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
1422 | (recurse_read_control_structure): Delete unused variable. |
1423 | (script_from_file): Delete unused variable. | |
c31a71f4 | 1424 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
1425 | (disassemble_command): Delete unused variable. |
1426 | ||
1427 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
1428 | * tracepoint.c (delete_trace_variable_command): | |
1429 | Delete unused variables. | |
1430 | (encode_actions_1): Delete unused variables. | |
1431 | (start_tracing): Delete unused variable. | |
1432 | (trace_status_mi): Delete unused variable. | |
1433 | (tfind_1): Delete unused variable. | |
1434 | (trace_find_pc_command): Delete unused variable. | |
1435 | (trace_find_line_command): Delete unused variables. | |
1436 | (trace_find_range_command): Delete unused variables. | |
1437 | (trace_find_outside_command): Delete unused variables. | |
1438 | (parse_tracepoint_definition): Delete unused variables. | |
1439 | (tfile_fetch_registers): Delete unused variable. | |
1440 | ||
9128a503 MS |
1441 | * dcache.c (dcache_init): Delete unused variable. |
1442 | (dcache_info): Delete unused variable. | |
1443 | ||
aa369b55 | 1444 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 1445 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
1446 | (remote_get_trace_status): Delete unused variables. |
1447 | ||
9e9547e4 MS |
1448 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
1449 | (thread_from_lwp): Delete unused variable. | |
1450 | (enable_thread_event_reporting): Delete unused variable. | |
1451 | (check_for_thread_db): Delete unused variables. | |
1452 | (thread_db_find_new_threads_2): Delete unused variable. | |
1453 | ||
1454 | * linux-fork.c (info_checkpoints_command): Delete unused variables. | |
1455 | (checkpoint_command): Delete unused variable. | |
1456 | (linux_fork_context): Delete unused variables. | |
1457 | ||
fa238c03 | 1458 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
1459 | (linux_tracefork_child): Delete unused variable. |
1460 | (linux_child_follow_fork): Delete unused variable. | |
1461 | (linux_nat_detach): Delete unused variable. | |
1462 | (linux_handle_extended_wait): Delete unused variable. | |
1463 | (linux_nat_has_pending_sigint): Delete unused variable. | |
1464 | (linux_nat_find_memory_regions): Delete unused variable. | |
1465 | (linux_nat_make_corefile_notes): Delete unused variables. | |
1466 | (linux_nat_info_proc_cmd): Delete unused variable. | |
1467 | (linux_proc_pending_signals): Delete unused variable. | |
1468 | (linux_nat_stop_lwp): Delete unused variables. | |
1469 | (_initialize_linux_nat): Delete unused variable. | |
1470 | ||
fa238c03 | 1471 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 1472 | |
e0f069a3 MS |
1473 | * linux-record.c (record_linux_system_call): |
1474 | Delete unused variables. | |
1475 | ||
789d24f0 MS |
1476 | * corelow.c (core_xfer_partial): Delete unused variables. |
1477 | ||
1cd337a5 MS |
1478 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
1479 | (svr4_solib_create_inferior_hook): Add ifdef around | |
1480 | conditionally-used variable declarations. | |
1481 | ||
b00e3f56 MS |
1482 | * solib.c (solib_find): Delete unused variable. |
1483 | (free_so_symbols): Delete unused variable. | |
1484 | (info_sharedlibrary_command): Delete unused variable. | |
1485 | (reload_shared_libraries_1): Delete unused variable. | |
1486 | (_initialize_solib): Delete unused variable. | |
1487 | ||
90f62196 MS |
1488 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
1489 | (i386_collect_xstateregset): Delete unused variable. | |
1490 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
1491 | ||
75721c66 MS |
1492 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
1493 | Delete unused variable 'type'. | |
1494 | ||
af33db37 JB |
1495 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
1496 | ||
90f62196 | 1497 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
1498 | ada-lang.c: Remove comment mentioning these macros. |
1499 | * m2-exp.y: Delete commented out code. | |
af33db37 | 1500 | |
0497f5b0 JB |
1501 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
1502 | ||
1503 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
1504 | for array types. | |
1505 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
1506 | ||
6e39997a PM |
1507 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
1508 | ||
1509 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
1510 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove | |
1511 | ATTRIBUTE_UNUSED. | |
1512 | (cleanup_kernel_helper_return): Likewise. | |
1513 | * arm-tdep.c (copy_unmodified): Likewise. | |
1514 | (copy_preload): Likewise. | |
1515 | (copy_copro_load_store): Likewise. | |
1516 | (cleanup_branch): Likewise. | |
1517 | (copy_b_bl_blx): Likewise. | |
1518 | (copy_bx_blx_reg): Likewise. | |
1519 | (copy_alu_imm): Likewise. | |
1520 | (copy_alu_reg): Likewise. | |
1521 | (copy_alu_shifted_reg): Likewise. | |
1522 | (cleanup_load): Likewise. | |
1523 | (cleanup_store): Likewise. | |
1524 | (cleanup_block_load_pc): Likewise. | |
1525 | (cleanup_svc): Likewise. | |
1526 | (copy_undef): Likewise. | |
1527 | (copy_unpred): Likewise. | |
1528 | * remote.c (register_remote_support_xml): Likewise. | |
1529 | ||
1412f70b HZ |
1530 | 2010-05-05 Hui Zhu <teawater@gmail.com> |
1531 | ||
1532 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
1533 | ||
c4f7c687 MK |
1534 | 2010-05-04 Mark Kettenis <kettenis@gnu.org> |
1535 | ||
1536 | * remote.c (register_remote_support_xml) | |
1537 | (remote_query_supported_append, remote_query_supported): Add cast | |
1538 | to NULL used as sentinel. | |
1539 | * tracepoint.c (tvariables_info_1): Likewise. | |
1540 | * utils.c (add_internal_problem_command): Likewise. | |
1541 | ||
63b4f126 MGD |
1542 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1543 | ||
1544 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
1545 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
1546 | registers gracefully. | |
1547 | ||
2f1bdd26 MGD |
1548 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1549 | ||
1550 | * exec.c (print_section_info): Display entry point without arch | |
1551 | specific parts. | |
1552 | ||
e1c34c5d PM |
1553 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
1554 | ||
1555 | PR exp/11349. | |
1556 | * printcmd.c (x_command): Only dereference once implicitly for | |
1557 | TYPE_CODE_REF. | |
1558 | ||
ae462839 DE |
1559 | 2010-05-03 Doug Evans <dje@google.com> |
1560 | ||
1561 | * event-loop.c (gdb_timer): Delete unused global. | |
1562 | (create_timer): Update. | |
1563 | ||
1ac77ea1 JK |
1564 | 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1565 | ||
1566 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
1567 | CURRENT->DECLARATION case. | |
1568 | * cp-support.h (struct using_direct): Provide extended comment. | |
1569 | ||
7c54a108 MK |
1570 | 2010-05-03 Mark Kettenis <kettenis@gnu.org> |
1571 | ||
1572 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
1573 | HPPABSD_SIZEOF_GREGS. | |
1574 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
1575 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
1576 | (hppaobsd_supply_fpregset): New function. | |
1577 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
1578 | (hppaobsd_fpregset): New variable. | |
1579 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
1580 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
1581 | ||
278582cb PM |
1582 | 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
1583 | ||
1584 | PR pascal/11349. | |
1585 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
1586 | type code TYPE_CODE_REF. | |
1587 | ||
f0223081 PA |
1588 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
1589 | ||
1590 | * remote.c (remote_notice_signals): New. | |
1591 | (remote_start_remote): In non-stop mode, update the remote end on | |
1592 | which signals it can silently pass. | |
1593 | (init_remote_ops): Install remote_notice_signals. | |
1594 | ||
c25c4a8b JK |
1595 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1596 | ||
1597 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
1598 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
1599 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
1600 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
1601 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
1602 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
1603 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
1604 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
1605 | (throw_vfatal, throw_error): Remove NORETURN. | |
1606 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
1607 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
1608 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
1609 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
1610 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
1611 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
1612 | NORETURN. | |
1613 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
1614 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
1615 | ATTRIBUTE_NORETURN. | |
1616 | * target.c (tcomplain): Likewise. | |
1617 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
1618 | ATTRIBUTE_NORETURN. | |
1619 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
1620 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
1621 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
1622 | ATTRIBUTE_NORETURN. | |
1623 | ||
a0b31db1 JK |
1624 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1625 | ||
1626 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
1627 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
1628 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
1629 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
1630 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
1631 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
1632 | * complaints.h (complaint, internal_complaint): Likewise. | |
1633 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
1634 | (ATTR_FORMAT): Remove. | |
1635 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
1636 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
1637 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
1638 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
1639 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
1640 | (internal_error, internal_vwarning, internal_warning, warning) | |
1641 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
1642 | * disasm.c (fprintf_disasm): Likewise. | |
1643 | * exceptions.c (throw_it): Likewise. | |
1644 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
1645 | (throw_error): Likewise. | |
1646 | * language.h (type_error, range_error): Likewise. | |
1647 | * linespec.c (cplusplus_error): Likewise. | |
1648 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
1649 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
1650 | * monitor.c (monitor_debug): Likewise. | |
1651 | * parser-defs.h (parser_fprintf): Likewise. | |
1652 | * serial.h (serial_printf): Likewise. | |
1653 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
1654 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
1655 | (uo_message): Likewise. | |
1656 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
1657 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
1658 | Likewise. | |
1659 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
1660 | ||
02a45ac0 PA |
1661 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
1662 | ||
1663 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
1664 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
1665 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
1666 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
1667 | Delete forward declarations. | |
1668 | (cli_ui_out_impl): Move below the callbacks. | |
1669 | (_initialize_cli_out): Delete. | |
1670 | ||
1915ef4f PA |
1671 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
1672 | ||
1673 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
1674 | ||
0dfb946f JK |
1675 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1676 | ||
1677 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
1678 | ||
4d533103 PA |
1679 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
1680 | ||
1681 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
1682 | the thread that got the event before handling the event. | |
1683 | ||
705b5767 TT |
1684 | 2010-04-30 Tom Tromey <tromey@redhat.com> |
1685 | ||
1686 | * symtab.c (symbol_set_names): Fix typo. | |
1687 | ||
3c0ee1a4 PM |
1688 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
1689 | ||
1690 | * python/py-param.c (parm_constants): Avoid ARI warning | |
1691 | by adding ARI comment. | |
1692 | (parmpy_init): Likewise. | |
1693 | ||
ea1fae46 PM |
1694 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
1695 | ||
1696 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
1697 | and created type for re-use. | |
1698 | ||
c24d0242 PM |
1699 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
1700 | ||
1701 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
1702 | ||
a26d8d11 DE |
1703 | 2010-04-29 Doug Evans <dje@google.com> |
1704 | ||
1705 | * ser-base.h (reschedule): Delete prototype. | |
1706 | * ser-base.c (reschedule): Make static. | |
1707 | ||
f8624c62 MGD |
1708 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1709 | ||
1710 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
1711 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
1712 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for | |
1713 | EABI. | |
1714 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in | |
1715 | use. | |
1716 | ||
e66408ed PA |
1717 | 2010-04-29 Pedro Alves <pedro@codesourcery.com> |
1718 | ||
1719 | PR gdb/11557 | |
1720 | ||
1721 | * regcache.c (registers_changed): Rename to ... | |
1722 | (registers_changed_ptid): ... this, and only delete register cache | |
1723 | entries matching the ptid filter argument. | |
1724 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
1725 | * regcache.h (registers_changed_ptid): Declare. | |
1726 | * target.c (target_resume): Flush register caches. | |
1727 | ||
d7b32ed3 PM |
1728 | 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> |
1729 | Tom Tromey <tromey@redhat.com> | |
1730 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1731 | ||
1732 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
1733 | (SUBDIR_PYTHON_SRCS): Likewise. | |
1734 | (py-parameter.o): New rule. | |
1735 | * python/py-parameter.c: New file. | |
1736 | * python/python-internal.h (gdbpy_initialize_parameter) | |
1737 | (gdbpy_parameter, gdbpy_parameter_value) | |
1738 | (gdbpy_parse_command_name): Declare. | |
1739 | * python/py-cmd.c (parse_command_name): Rename to | |
1740 | gdbpy_parse_command_name. | |
1741 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
1742 | use over cmdlist. | |
1743 | (cmdpy_init): Use gdbpy_parse_command_name. | |
1744 | * python/python.c (parameter_to_python): Rename to | |
1745 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
1746 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
1747 | (_initialize_python): Call gdbpy_initialize_parameters. | |
1748 | ||
ce72ce41 MGD |
1749 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1750 | ||
1751 | * MAINTAINERS: Add myself for write after approval privileges. | |
1752 | ||
6aecb9c2 JB |
1753 | 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com> |
1754 | ||
1755 | D language support. | |
1756 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
1757 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
1758 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
1759 | * NEWS: Mention D language support. | |
1760 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
1761 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
1762 | * d-lang.c: New file. | |
1763 | * d-lang.h: New file. | |
1764 | * d-valprint.c: New file. | |
1765 | * defs.h (enum language): Add language_d. | |
1766 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
1767 | * language.c (binop_result_type, integral_type, character_type) | |
1768 | (string_type, boolean_type, structured_type): Add language_d. | |
1769 | * symfile.c (init_filename_language_table): Add language_d. | |
1770 | * symtab.c: Include d-lang.h. | |
1771 | (symbol_init_language_specific, symbol_find_demangled_name) | |
1772 | (symbol_natural_name, lookup_symbol_in_language) | |
1773 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
1774 | ||
6f992fbf JB |
1775 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
1776 | ||
1777 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
1778 | ||
dde59185 JB |
1779 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
1780 | ||
1781 | * symfile.c (init_filename_language_table): Register .dg files | |
1782 | with language_ada. | |
1783 | ||
d09ce91e JB |
1784 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
1785 | ||
1786 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
1787 | field. | |
1788 | ||
67f1675e JB |
1789 | 2010-04-27 Pedro Alves <pedro@codesourcery.com> |
1790 | Tristan Gingold <gingold@adacore.com> | |
02aeec7b JB |
1791 | |
1792 | * symfile.c (reread_symbols): Also search for file in libraries. | |
1793 | Update comment. | |
1794 | ||
dfd0fe27 JB |
1795 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
1796 | ||
1797 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
1798 | in terms of configuration. | |
1799 | ||
0133421a JK |
1800 | 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1801 | ||
1802 | * objfiles.c: Include solist.h. | |
1803 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
1804 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
1805 | and no_shared_libraries. | |
1806 | ||
e78f4312 JB |
1807 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
1808 | ||
1809 | ARI warning fix. | |
1810 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
1811 | new-line in i18n string. | |
1812 | ||
9214d371 DE |
1813 | 2010-04-26 Doug Evans <dje@google.com> |
1814 | ||
1815 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
1816 | ||
3f172e24 TT |
1817 | 2010-04-26 Tom Tromey <tromey@redhat.com> |
1818 | ||
1819 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
1820 | command list. | |
1821 | ||
e790e06e PM |
1822 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
1823 | ||
1824 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
1825 | * config/i386/nm-i386sol2.h: Remove file. | |
1826 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
1827 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
1828 | * config/djgpp/fnchange.lst: Remove reference to that file. |
1829 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 1830 | |
b7da9e9f PM |
1831 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
1832 | ||
1833 | PR breakpoints/11531. | |
1834 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
1835 | macro definition and related comment. | |
1836 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
1837 | (resume): Remove code and comment related to this macro. | |
1838 | ||
72f6eb52 JK |
1839 | 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1840 | ||
1841 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
1842 | Fix whitespace. | |
1843 | ||
ab38a727 PA |
1844 | 2010-04-24 Pedro Alves <pedro@codesourcery.com> |
1845 | ||
1846 | * defs.h: Adjust comment. | |
1847 | * filesystem.h, filesystem.c: New files. | |
1848 | * Makefile.in (SFILES): Add filesystem.c. | |
1849 | (COMMON_OBS): Add filesystem.o. | |
1850 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
1851 | different target and host path flavours. | |
1852 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
1853 | has_dos_based_file_system on the gdbarch. | |
1854 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
1855 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
1856 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
1857 | * gdbarch.sh (has_dos_based_file_system): New. | |
1858 | * gdbarch.h, gdbarch.c: Regenerate. | |
1859 | * NEWS: Mention improved support for remote targets with DOS-based | |
1860 | filesystems. Mention new `set/show target-file-system-kind' | |
1861 | commands. | |
1862 | ||
35c9c7ba SS |
1863 | 2010-04-23 Stan Shebs <stan@codesourcery.com> |
1864 | ||
1865 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
1866 | comments. | |
1867 | (struct agent_reqs): Remove. | |
1868 | (ax_reg_mask): Declare. | |
1869 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
1870 | (free_agent_expr): Free reg_mask. | |
1871 | (ax_print): Add scope and register mask info. | |
1872 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
1873 | fields, and move part of register mask computation to... | |
1874 | (ax_reg_mask): New function. | |
1875 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
1876 | (gen_traced_pop): Ditto. | |
1877 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
1878 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
1879 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
1880 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
1881 | (agent_command): Call ax_reqs. | |
1882 | (agent_eval_command): Ditto. | |
1883 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
1884 | (validate_action_line): Ditto. | |
1885 | (collect_symbol): Ditto. | |
1886 | (encode_actions_1): Ditto. | |
1887 | ||
492928e4 JK |
1888 | 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
1889 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
1890 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1891 | ||
1892 | Fix deadlock on looped list of loaded shared objects. | |
1893 | * solib-svr4.c (LM_PREV): New function. | |
1894 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
1895 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
1896 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
1897 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
1898 | ||
66d09542 DE |
1899 | 2010-04-23 Doug Evans <dje@google.com> |
1900 | ||
88a1906b DE |
1901 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
1902 | python. | |
1903 | * configure: Regenerate. | |
1904 | * main.c: #include "python/python.h". | |
1905 | (captured_main): Defer loading auto-loaded scripts until after | |
1906 | local_gdbinit has been sourced. | |
1907 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
1908 | (load_auto_scripts_for_objfile): New function. | |
1909 | (auto_load_new_objfile): Call it. | |
1910 | * python/python.h (gdbpy_global_auto_load): Declare. | |
1911 | (load_auto_scripts_for_objfile): Declare. | |
1912 | ||
66d09542 DE |
1913 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
1914 | * NEWS: Add entry for .debug_gdb_scripts. | |
1915 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
1916 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
1917 | (py-auto-load.o): New rule. | |
1918 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
1919 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
1920 | * python/py-auto-load.c: New file. | |
1921 | * python/python-internal.h: #include <stdio.h>. | |
1922 | (set_python_list, show_python_list): Declare. | |
1923 | (gdbpy_initialize_auto_load): Declare. | |
1924 | (source_python_script_for_objfile): Declare. | |
1925 | * python/python.c: Remove #include of observer.h. | |
1926 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
1927 | (GDBPY_AUTO_FILENAME): Ditto. | |
1928 | (gdbpy_new_objfile): Delete. | |
1929 | (source_python_script_for_objfile): New function. | |
1930 | (set_python_list, show_python_list): Make externally visible. | |
1931 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
1932 | and observer_attach_new_objfile to py-auto-load.c. | |
1933 | ||
3a48e6ff JG |
1934 | 2010-04-23 Jerome Guitton <guitton@adacore.com> |
1935 | ||
1936 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) | |
1937 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
1938 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
1939 | New constants. | |
1940 | (alpha_heuristic_analyze_probing_loop): New function. | |
1941 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
1942 | and handle cases when a stack probe loop is generated. | |
1943 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
1944 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
1945 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
1946 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
1947 | Return 0 when the maximum debuggable frame size has been exceeded. | |
1948 | ||
e4166a49 JB |
1949 | 2010-04-23 Joel Brobecker <brobecker@adacore.com> |
1950 | ||
1951 | Fix ARI warning. | |
1952 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
1953 | ||
8bd10a10 CM |
1954 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
1955 | ||
1956 | PR 10179 | |
1957 | ||
1958 | * symtab.c (rbreak_command): Added code to include a filename | |
1959 | specification in the rbreak argument. | |
1960 | * NEWS: Added a brief description of filename-qualified rbreak. | |
1961 | ||
c0201579 JK |
1962 | 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1963 | ||
1964 | Fix crashes on dangling display expressions. | |
1965 | * ada-lang.c (ada_operator_check): New function. | |
1966 | (ada_exp_descriptor): Fill-in the field operator_check. | |
1967 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
1968 | * jv-lang.c (exp_descriptor_java): Likewise. | |
1969 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
1970 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
1971 | * parse.c (exp_descriptor_standard): Likewise. | |
1972 | (operator_check_standard): New function. | |
1973 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
1974 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
1975 | (operator_check_standard, exp_uses_objfile): New declarations. | |
1976 | * printcmd.c: Remove the inclusion of solib.h. | |
1977 | (display_uses_solib_p): Remove the function. | |
1978 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
1979 | and exp_uses_objfile instead of display_uses_solib_p. | |
1980 | * solist.h (struct so_list) <objfile>: New comment. | |
1981 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
1982 | * symtab.h (lookup_objfile_from_block): New declaration. | |
1983 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
1984 | ||
6ffbb7ab TJB |
1985 | 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
1986 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1987 | ||
1988 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
1989 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
1990 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
1991 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
1992 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
1993 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
1994 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
1995 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
1996 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
1997 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
1998 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
1999 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
2000 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
2001 | Define, in case <ptrace.h> doesn't provide it. | |
2002 | (booke_debug_info): New variable. | |
2003 | (max_slots_number): Ditto. | |
2004 | (hw_break_tuple): New struct. | |
2005 | (thread_points): Ditto. | |
2006 | (ppc_threads): New variable. | |
2007 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
2008 | (have_ptrace_new_debug_booke): New function. | |
2009 | (ppc_linux_check_watch_resources): Renamed to ... | |
2010 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
2011 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
2012 | (booke_cmp_hw_point): New function. | |
2013 | (booke_find_thread_points_by_tid): Ditto. | |
2014 | (booke_insert_point): Ditto. | |
2015 | (booke_remove_point): Ditto. | |
2016 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
2017 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
2018 | (get_trigger_type): Ditto. | |
2019 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
2020 | (ppc_linux_remove_watchpoint): Ditto. | |
2021 | (ppc_linux_new_thread): Ditto. | |
2022 | (ppc_linux_thread_exit): New function.. | |
2023 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
2024 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
2025 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
2026 | to_remove_hw_breakpoint fields of the target operations struct. | |
2027 | Add observe for the thread_exit event. | |
2028 | ||
be0d2954 L |
2029 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
2030 | ||
2031 | * i386-linux-nat.c (regmap): Removed. | |
2032 | (fetch_register): Replace regmap with | |
2033 | i386_linux_gregset_reg_offset. | |
2034 | (store_register): Likewise. | |
2035 | (supply_gregset): Likewise. | |
2036 | (fill_gregset): Likewise. | |
2037 | ||
2038 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
2039 | global. | |
2040 | ||
2041 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
2042 | ||
f56dcb88 CM |
2043 | 2010-04-22 Chris Moller <cmoller@redhat.com> |
2044 | ||
2045 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
2046 | method of popping recursion-detection stack with a method based on |
2047 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
2048 | the static array obstack rather than the static member obstack.) |
2049 | ||
6cd6a2ae L |
2050 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
2051 | ||
2052 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
2053 | (_initialize_amd64_linux_nat): Replace | |
2054 | amd64_linux_gregset64_reg_offset with | |
2055 | amd64_linux_gregset_reg_offset. | |
2056 | ||
2057 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
2058 | global. | |
2059 | ||
2060 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
2061 | ||
621791b8 PM |
2062 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
2063 | ||
2064 | PR stabs/11479. | |
2065 | * stabsread.c (set_length_in_type_chain): New function. | |
2066 | (read_struct_type): Call set_length_in_type_chain function. | |
2067 | (read_enum_type): Idem. | |
2068 | ||
105c2d85 SS |
2069 | 2010-04-21 Stan Shebs <stan@codesourcery.com> |
2070 | Nathan Sidwell <nathan@codesourcery.com> | |
2071 | ||
2072 | * tracepoint.c (trace_save): Open in binary mode. | |
2073 | ||
9a22f0d0 PM |
2074 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
2075 | ||
2076 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
2077 | fields. | |
2078 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and | |
2079 | builtin_char32 fields. | |
2080 | * printcmd.c (decode_format): Set char size to '\0' | |
2081 | for strings unless explicit size is given. | |
2082 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
2083 | for 16 or 32 bit strings. | |
2084 | (do_examine): Do not force byte size for strings. | |
2085 | Use builtin_char16 and builtin_char32 types to display | |
2086 | 16 or 32 bit-wide strings. | |
2087 | (x_command): Set LAST_SIZE to 'b' for string type. | |
2088 | ||
f335d1b3 L |
2089 | 2010-04-21 H.J. Lu <hongjiu.lu@intel.com> |
2090 | ||
2091 | PR corefiles/11523 | |
2092 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
2093 | XCR0 first. | |
2094 | ||
2095 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
2096 | there is no .reg-xstate section. | |
2097 | (i386_linux_core_read_description): Check XCR0 first. | |
2098 | ||
a9789a6b MF |
2099 | 2010-04-21 Mike Frysinger <vapier@gentoo.org> |
2100 | ||
2101 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
2102 | for len <= 8. | |
2103 | ||
0b66f317 CM |
2104 | 2010-04-21 Chris Moller <cmoller@redhat.com> |
2105 | ||
2106 | PR 9167 | |
2107 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
2108 | method of popping recursion-detection stack with a method based on |
2109 | obstack_object_size(). | |
0b66f317 | 2110 | |
6e354e5e PM |
2111 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2112 | ||
2113 | PR pascal/11492. | |
2114 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
2115 | arrays. | |
2116 | ||
57174f31 PM |
2117 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2118 | ||
2119 | Fix compilation warning on gcc-4.1.2. | |
2120 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
2121 | local variable`pc' to zero. | |
2122 | ||
6fbc7cd8 JB |
2123 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2124 | ||
2125 | Implement thread support with core files on alpha-tru64. | |
2126 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
2127 | extracted from resync_thread_list. | |
2128 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
2129 | code by call to dec_thread_find_new_threads. | |
2130 | (dec_thread_wait): Update call to resync_thread_list. | |
2131 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
2132 | ||
438c98a1 JB |
2133 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2134 | ||
2135 | * ada-lang.c (value_pointer): New function. | |
2136 | (make_array_descriptor): Call value_pointer to convert addresses to | |
2137 | pointers. | |
2138 | ||
2971b56b JB |
2139 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2140 | ||
2141 | * rs6000-aix-tdep.c: #include exceptions.h. | |
2142 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
2143 | while reading the memory at ADDR, then ADDR cannot be a function | |
2144 | descriptor. | |
2145 | ||
be942545 JB |
2146 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2147 | ||
2148 | * ada-typeprint.c (ada_print_typedef): New function. | |
2149 | * ada-lang.h (ada_print_typedef): Add declaration. | |
2150 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
2151 | to ada_print_typedef. | |
2152 | ||
1ca8fce0 JB |
2153 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2154 | ||
2155 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
2156 | ||
e9ef4f39 JB |
2157 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2158 | ||
2159 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
2160 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
2161 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
2162 | Adjust accordingly. | |
2163 | ||
e294797a JB |
2164 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2165 | ||
2166 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
2167 | a compiler warning. | |
2168 | ||
a223f1e7 JB |
2169 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2170 | ||
2171 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
2172 | these functions down to define them only when used. | |
2173 | ||
0c3acc09 JB |
2174 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
2175 | ||
2176 | * valprint.c (common_val_print): Fix the value before extracting | |
2177 | its contents. | |
2178 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
2179 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
2180 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
2181 | to avoid code duplication and fix a bug in the handling of | |
2182 | fixed types contents. | |
2183 | ||
31ef98ae TT |
2184 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
2185 | ||
2186 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
2187 | (read_partial_die): Likewise. | |
2188 | (dwarf_attr_name): Likewise. | |
2189 | ||
ec31cde5 CM |
2190 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
2191 | ||
2192 | PR 10867 | |
2193 | ||
2194 | * cp-valprint.c (global): Adding new static array recursion | |
2195 | detection obstack. | |
2196 | (cp_print_value_fields, cp_print_static_field): Added new static | |
2197 | array recursion detection code. | |
2198 | ||
e0e0e543 MK |
2199 | 2010-04-20 Mark Kettenis <kettenis@gnu.org> |
2200 | ||
2201 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
2202 | general-purpose register set should be 68 instead of 144. | |
2203 | (i386_linux_sse_regset_sections): Likewise. | |
2204 | (i386_linux_avx_regset_sections): Likewise. | |
2205 | ||
08922a10 SS |
2206 | 2010-04-20 Stan Shebs <stan@codesourcery.com> |
2207 | Nathan Sidwell <nathan@codesourcery.com> | |
2208 | ||
2209 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
2210 | (dwarf2_tracepoint_var_loc): New function. | |
2211 | (dwarf2_tracepoint_var_access): New function. | |
2212 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
2213 | with DW_OP_piece. | |
2214 | (locexpr_describe_location_piece): New function. | |
2215 | (locexpr_describe_location_1): New function. | |
2216 | (locexpr_describe_location): Call it, update signature. | |
2217 | (loclist_describe_location): Rewrite to loop over locations, | |
2218 | update signature. | |
2219 | * symtab.h (struct symbol_computed_ops): Add address to | |
2220 | describe_location arguments, return void. | |
2221 | * printcmd.c (address_info): Get context PC, pass to computed | |
2222 | location description. | |
2223 | * tracepoint.c (scope_info): Ditto. | |
2224 | * ax-gdb.c (trace_kludge): Export. | |
2225 | ||
2dc7f7b3 TT |
2226 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
2227 | ||
2228 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
2229 | (struct dwarf2_cie) <segment_size>: New field. | |
2230 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
2231 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
2232 | DW_FORM_exprloc. | |
2233 | (read_attribute_value): Handle DW_FORM_flag_present, | |
2234 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
2235 | (dump_die_shallow): Likewise. | |
2236 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
2237 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
2238 | (attr_form_is_block): Likewise. | |
2239 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
2240 | (dwarf_decode_line_header): Set new field. | |
2241 | (dwarf_decode_lines): Handle new field. | |
2242 | ||
ce4b0682 SDJ |
2243 | 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2244 | ||
2245 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
2246 | (LOGICAL_S8_KEYWORD): New token. | |
2247 | * f-lang.c (enum f_primitive_types) | |
2248 | <f_primitive_type_logical_s8>: New field. | |
2249 | (f_language_arch_info): Handling `logical*8' type. | |
2250 | (build_fortran_types): Building `logical*8' type. | |
2251 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
2252 | ||
ff9f22f1 DE |
2253 | 2010-04-19 Doug Evans <dje@google.com> |
2254 | ||
2255 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
2256 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
2257 | (pipe_close): Ditto. | |
2258 | ||
437125bd PM |
2259 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2260 | ||
2261 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
2262 | ||
e8e6c82e PM |
2263 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2264 | ||
2265 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
2266 | type to void function. | |
2267 | ||
4136fdd2 SS |
2268 | 2010-04-19 Stan Shebs <stan@codesourcery.com> |
2269 | Vladimir Prus <vladimir@codesourcery.com> | |
2270 | ||
2271 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
2272 | tfind mode as such. | |
2273 | * target.c (update_current_target): Make default | |
2274 | to_trace_find return -1. | |
2275 | ||
0c4b2e63 MF |
2276 | 2010-04-19 Mike Frysinger <vapier@gentoo.org> |
2277 | ||
2278 | * objc-lang.c (find_methods): Move symname check up. | |
2279 | ||
78076abc PA |
2280 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
2281 | ||
2282 | * ada-lang.c (print_recreate_exception) | |
2283 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
2284 | not "catch unhandled". | |
2285 | ||
6149aea9 PA |
2286 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
2287 | ||
2288 | PR breakpoints/8554. | |
2289 | ||
2290 | Implement `save-breakpoints'. | |
2291 | ||
2292 | * breakpoint.c (save_cmdlist): New. | |
2293 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
2294 | to save_cmdlist. | |
2295 | (print_recreate_catch_fork): New. | |
2296 | (catch_fork_breakpoint_ops): Install it. | |
2297 | (print_recreate_catch_vfork): New. | |
2298 | (catch_vfork_breakpoint_ops): Install it. | |
2299 | (print_recreate_catch_syscall): New. | |
2300 | (catch_syscall_breakpoint_ops): Install it. | |
2301 | (print_recreate_catch_exec): New. | |
2302 | (catch_exec_breakpoint_ops): Install it. | |
2303 | (print_recreate_exception_catchpoint): New. | |
2304 | (gnu_v3_exception_catchpoint_ops): Install it. | |
2305 | (save_breakpoints): New, based on tracepoint_save_command, but | |
2306 | handle all breakpoint types. | |
2307 | (save_breakpoints_command): New. | |
2308 | (tracepoint_save_command): Rename to... | |
2309 | (save_tracepoints_command): ... this, and reimplement using | |
2310 | save_breakpoints. | |
2311 | (save_command): New. | |
2312 | (_initialize_breakpoints): Install the "save" command prefix. | |
2313 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
2314 | deprecated alias for "save tracepoints". | |
2315 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
2316 | * ada-lang.c (print_recreate_exception): New. | |
2317 | (print_recreate_catch_exception): New. | |
2318 | (catch_exception_breakpoint_ops): Install it. | |
2319 | (print_recreate_catch_exception_unhandled): New. | |
2320 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
2321 | (print_recreate_catch_assert): New. | |
2322 | (catch_assert_breakpoint_ops): Install it. | |
2323 | ||
2324 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
2325 | new `save tracepoints' alias and that `save-tracepoints' is now | |
2326 | deprecated. | |
2327 | ||
0a8fce9a PA |
2328 | 2010-04-18 Pedro Alves <pedro@codesourcery.com> |
2329 | ||
2330 | PR tui/9217 | |
2331 | ||
2332 | * tui/tui-out.c: Include cli-out.h. | |
2333 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
2334 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
2335 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
2336 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
2337 | declarations. | |
2338 | (struct ui_out_data): Rename to... | |
2339 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
2340 | `suppress_output' fields, and inherit cli_ui_out_data. | |
2341 | (tui_out_data): New typedef. | |
2342 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
2343 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
2344 | (tui_begin, tui_end): Delete. | |
2345 | (tui_field_int): Adjust to delegate most work to the base type. | |
2346 | (tui_field_skip): Delete. | |
2347 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
2348 | delegate most work to the base type. | |
2349 | (tui_spaces): Delete. | |
2350 | (tui_text): Adjust to delegate most work to the base type. | |
2351 | (tui_message): Delete. | |
2352 | (tui_wrap_hint): Delete. | |
2353 | (tui_flush): Delete. | |
2354 | (out_field_fmt): Delete. | |
2355 | (field_separator): Delete. | |
2356 | (tui_out_new): Adjust to initialize the base type. | |
2357 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
2358 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
2359 | cli_ui_out_data. | |
2360 | (cli_out_data): Adjust. | |
2361 | (cli_ui_out_impl): Make extern. | |
2362 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
2363 | uo_field_string instead of cli_field_string. | |
2364 | (cli_redirect): Adjust to use cli_out_data. | |
2365 | (cli_out_data_ctor): New. | |
2366 | (cli_out_new): Use it. | |
2367 | * cli-out.h (struct ui_file): Remove forward declaration. | |
2368 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
2369 | (cli_ui_out_impl): Declare. | |
2370 | (cli_out_data_ctor): Declare. | |
2371 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
2372 | (uo_field_string): No longer static. | |
2373 | (ui_out_data): Change return type to void pointer. | |
2374 | (ui_out_new): Change `data' parameter type to void pointer. | |
2375 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
2376 | (ui_out_data): Change return type to void pointer. | |
2377 | (ui_out_new): Change `data' parameter type to void pointer. | |
2378 | (uo_field_string): Declare. | |
2379 | ||
172240dd PA |
2380 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
2381 | ||
2382 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
2383 | instead of always false. | |
2384 | ||
ed41462c L |
2385 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
2386 | ||
2387 | PR corefiles/11511 | |
2388 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
2389 | orig_rax. | |
2390 | ||
cc60f2e3 PA |
2391 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
2392 | ||
2393 | * breakpoint.c (watchpoints_triggered): Use | |
2394 | is_hardware_watchpoint. | |
2395 | (watchpoints_triggered): Ditto. | |
2396 | (bpstat_check_location): Use is_watchpoint and | |
2397 | is_hardware_watchpoint. | |
2398 | (bpstat_check_watchpoint): Use is_watchpoint and | |
2399 | is_hardware_watchpoint. | |
2400 | (bpstat_stop_status): Fix comment. | |
2401 | (user_settable_breakpoint): Use is_watchpoint. | |
2402 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
2403 | (disable_watchpoints_before_interactive_call_start): Use | |
2404 | is_watchpoint. | |
2405 | (enable_watchpoints_after_interactive_call_stop): Use | |
2406 | is_watchpoint. | |
2407 | (clear_command): Use is_watchpoint. | |
2408 | (do_enable_breakpoint): Use is_watchpoint. | |
2409 | ||
cb7db0f2 MF |
2410 | 2010-04-16 Mike Frysinger <vapier@gentoo.org> |
2411 | ||
2412 | * solib-frv.c (enable_break1_done): Delete. | |
2413 | (enable_break2): Do not check enable_break1_done. Move the | |
2414 | enable_break2_done setting and call to | |
2415 | remove_solib_event_breakpoints() to the end. Return without | |
2416 | warning when the contents of _dl_debug_addr are 0. | |
2417 | (enable_break): Do not set enable_break1_done. | |
2418 | (frv_clear_solib): Likewise. | |
2419 | ||
d77b48cf KB |
2420 | 2010-04-16 Kevin Buettner <kevinb@redhat.com> |
2421 | ||
2422 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
2423 | instead of an error if no PLT entry is found. Return a | |
2424 | potentially useful result. | |
2425 | (m32c_m16c_pointer_to_address): Add code to search for function | |
2426 | address when no .plt entry is found. | |
2427 | ||
f90824dc SS |
2428 | 2010-04-16 Stan Shebs <stan@codesourcery.com> |
2429 | ||
2430 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
2431 | ||
9b79b476 PM |
2432 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
2433 | ||
2434 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
2435 | ||
711e434b PM |
2436 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
2437 | ||
2438 | Support for Windows OS Thread Information Block. | |
2439 | * NEWS: Document new feature. | |
2440 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
2441 | (remote_get_tib_address): New function. | |
2442 | (init_remote_ops): Set to_get_tib_address field | |
2443 | to remote_get_tib_address. | |
2444 | (_initialize_remote): Add add_packet_config_cmd | |
2445 | for PACKET_qGetTIBAddr. | |
2446 | * target.c (update_current_target): Set default value for | |
2447 | new to_get_tib_address field. | |
2448 | * target.h (target_ops): New field to_get_tib_address. | |
2449 | (target_get_tib_address): New macro. | |
2450 | * windows-nat.c (thread_info): Add thread_local_base field. | |
2451 | (windows_add_thread): Add tlb argument of type 'void *'. | |
2452 | (fake_create_process): Adapt windows_add_thread call. | |
2453 | (get_windows_debug_event): Idem. | |
2454 | (windows_get_tib_address): New function. | |
2455 | (init_windows_ops): Set to_get_tib_address field | |
2456 | to remote_get_tib_address. | |
2457 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
2458 | initialization by a call to init_w32_command_list. | |
2459 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
2460 | to windows-tdep.c file. | |
2461 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
2462 | (init_w32_command_list): New external function | |
2463 | declaration. | |
2464 | * windows-tdep.c: Add several headers. | |
2465 | (info_w32_cmdlist): to here, made global. | |
2466 | (thread_information_32): New struct. | |
2467 | (thread_information_64): New struct. | |
2468 | (TIB_NAME): New char array. | |
2469 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
2470 | (maint_display_all_tib): New static variable. | |
2471 | (windows_get_tlb_type): New function. | |
2472 | (tlb_value_read, tlb_value_write): New functions. | |
2473 | (tlb_value_funcs): New static struct. | |
2474 | (tlb_make_value): New function. | |
2475 | (display_one_tib): New function. | |
2476 | (display_tib): New function. | |
2477 | (show_maint_show_all_tib):New function. | |
2478 | (info_w32_command): Moved from windows-nat.c. | |
2479 | (init_w32_command_list): New function. | |
2480 | (_initialize_windows_tdep): New function. | |
2481 | New "maint set/show show-all-tib" command | |
2482 | New "$_tlb" internal variable. | |
2483 | ||
cae3f17b JB |
2484 | 2010-04-16 Joel Brobecker <brobecker@adacore.com> |
2485 | ||
2486 | * tui/tui-regs.c (tui_display_register): Add comment about | |
2487 | a couple of casts. | |
2488 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
2489 | ||
2ce6d6bf SS |
2490 | 2010-04-15 Stan Shebs <stan@codesourcery.com> |
2491 | ||
2492 | * frame.c: Include tracepoint.h. | |
2493 | (get_current_frame): Allow a trace frame to be an alternate source | |
2494 | of stack frame data. | |
2495 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
2496 | it won't succeed. | |
2497 | ||
7e559477 PA |
2498 | 2010-04-15 Pedro Alves <pedro@codesourcery.com> |
2499 | ||
2500 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
2501 | flags. | |
2502 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
2503 | ||
3f7b2faa DE |
2504 | 2010-04-15 Doug Evans <dje@google.com> |
2505 | ||
fa33c3cd DE |
2506 | * NEWS: Add entry for python program space support. |
2507 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
2508 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
2509 | (py-progspace.o): New rule. | |
2510 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
2511 | function. | |
2512 | (find_pretty_printer_from_progspace): New function. | |
2513 | (find_pretty_printer_from_gdb): New function. | |
2514 | (find_pretty_printer): Rewrite. | |
2515 | * python/py-progspace.c: New file. | |
2516 | * python/python-internal.h (program_space): Add forward decl. | |
2517 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
2518 | (gdbpy_initialize_pspace): Declare. | |
2519 | * python/python.c: #include "progspace.h". | |
2520 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
2521 | (_initialize_python): Call gdbpy_initialize_pspace. | |
2522 | (GdbMethods): Add current_progspace, progspaces. | |
2523 | ||
3f7b2faa DE |
2524 | Add -s option to source command. |
2525 | * NEWS: Document new option. | |
2526 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
2527 | Delete from_tty and cleanupp args. Split filep arg into file and | |
2528 | full_pathp. New arg search_path. | |
2529 | (source_script_from_stream): New function. | |
2530 | (source_script_with_search): New function. | |
2531 | (source_script): Rewrite. | |
2532 | (source_command): Parse "-s" option. | |
2533 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
2534 | * python/python.c (source_python_script): Make file arg a const char *. | |
2535 | Don't call fclose, leave for caller. | |
2536 | * python/python.h (source_python_script): Update. | |
2537 | ||
a86988f2 PA |
2538 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
2539 | Pedro Alves <pedro@codesourcery.com> | |
2540 | ||
2541 | Avoid rereading shared libraries that haven't changed. | |
2542 | ||
2543 | * solib.c (free_so_symbols): New function, from ... | |
2544 | (free_so): ... here. Call it. | |
2545 | (solib_read_symbols): Don't warn here if symbols have already been | |
2546 | loaded. | |
2547 | (solib_add): Warn here instead, if a pattern was specified. | |
2548 | (reload_shared_libraries_1): New. | |
2549 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
2550 | ||
e6d9b9c2 DE |
2551 | 2010-04-14 Doug Evans <dje@google.com> |
2552 | ||
589390d6 | 2553 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
2554 | concatenating string to search path. |
2555 | ||
516ba659 PA |
2556 | 2010-04-14 Pedro Alves <pedro@codesourcery.com> |
2557 | ||
2558 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
2559 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
2560 | * corelow.c: Include objfiles.h | |
2561 | (core_close): Use gdb_bfd_close_or_warn. | |
2562 | * elfread.c (build_id_verify): Ditto. | |
2563 | * exec.c (exec_close, exec_close_1): Ditto. | |
2564 | ||
048d532d PA |
2565 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
2566 | Pedro Alves <pedro@codesourcery.com> | |
2567 | ||
2568 | Group errors for many missing shared libraries. | |
2569 | ||
2570 | * solist.h (struct so_list): Remove from_tty. | |
2571 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
2572 | (solib_map_sections): Take so_list argument. Return 0 if we | |
2573 | failed to open a BFD. Add target sections here. | |
2574 | (symbol_add_stub): Delete. | |
2575 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
2576 | not from_tty copied from the so_list. Don't warn a second time | |
2577 | for a missing library. | |
2578 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
2579 | add to the section table here. Print out a single warning for all | |
2580 | missing libraries. | |
2581 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
2582 | flags. | |
2583 | ||
044c0f87 PM |
2584 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
2585 | ||
2586 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
2587 | error/warning messages. Capitalize and use complete sentences. | |
2588 | (blpy_block_syms_iternext): Likewise. | |
2589 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
2590 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
2591 | (frame_info_to_frame_object, frapy_read_var) | |
2592 | (gdbpy_frame_stop_reason_string): Likewise. | |
2593 | * python/py-lazy-string.c (stpy_convert_to_value) | |
2594 | (gdbpy_create_lazy_string_object): Likewise. | |
2595 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
2596 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
2597 | * python/python.c (parameter_to_python): Likewise. | |
2598 | * python/py-type.c (typy_range, typy_target): Likewise. | |
2599 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
2600 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
2601 | ||
2602 | ||
79f283fe PM |
2603 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
2604 | ||
2605 | PR python/11381 | |
2606 | ||
2607 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
2608 | Py_None. | |
2609 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
2610 | Return value depending on return type. | |
2611 | (print_children): Take a value indicating whether data was printed | |
2612 | before this function was called. Alter output accordingly. | |
2613 | (apply_val_pretty_printer): Capture return value from | |
2614 | print_string_repr and pass to print_children. | |
2615 | ||
4ac5d44e MK |
2616 | 2010-04-13 Mark Kettenis <kettenis@gnu.org> |
2617 | ||
e1caee70 | 2618 | PR corefiles/11481 |
4ac5d44e MK |
2619 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
2620 | register note sections. | |
2621 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
2622 | New variables. | |
2623 | (i386_linux_init_abi): Install list of supported register note | |
2624 | sections that matches the target description. | |
2625 | ||
ad91cd99 PA |
2626 | 2010-04-13 Pedro Alves <pedro@codesourcery.com> |
2627 | ||
2628 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
2629 | replies. | |
2630 | (remote_start_remote): Update and merge tracepoints and trace | |
2631 | state variables as long as the target supports tracepoints. | |
2632 | (remote_trace_init): Fix prototype. | |
2633 | (remote_download_trace_state_variable): Validate reply. | |
2634 | (remote_trace_set_readonly_regions): Fix prototype. | |
2635 | (remote_trace_start): Fix prototype. Check for empty reply. | |
2636 | (remote_get_trace_status): Small cleanup. | |
2637 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
2638 | (remote_trace_find): Check for empty reply. | |
2639 | (remote_save_trace_data): Validate reply. | |
2640 | (remote_set_disconnected_tracing): Check for empty reply, and | |
2641 | validate reply. | |
2642 | (remote_set_circular_trace_buffer): Ditto. | |
2643 | ||
ae3bccd4 PM |
2644 | 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr> |
2645 | ||
2646 | Suppress unused value warning during compilation. | |
2647 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
2648 | calls to void. | |
2649 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
2650 | ||
523136f2 SS |
2651 | 2010-04-12 Stan Shebs <stan@codesourcery.com> |
2652 | ||
2653 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
2654 | ||
0d18d720 MF |
2655 | 2010-04-12 Mike Frysinger <vapier@gentoo.org> |
2656 | ||
2657 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
2658 | * remote-sim.c (gdbsim_files_info): Likewise. | |
2659 | ||
3b273a55 RE |
2660 | 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
2661 | ||
2662 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
2663 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
2664 | variable. | |
2665 | (fetch_vfp_registers): New function to fetch VFP registers. | |
2666 | (store_vfp_registers): New function to store VFP registers. | |
2667 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
2668 | registers. | |
2669 | (arm_linux_store_inferior_registers): Likewise. | |
2670 | (arm_linux_read_description): Likewise. | |
2671 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
2672 | until we need it. | |
2673 | ||
778c7095 L |
2674 | 2010-04-11 H.J. Lu <hongjiu.lu@intel.com> |
2675 | ||
2676 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
2677 | tdep. | |
2678 | (amd64_collect_xstateregset): Likewise. | |
2679 | ||
2114d44c SS |
2680 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
2681 | ||
87290684 SS |
2682 | * tracepoint.c (trace_status_mi): Report frames created. |
2683 | ||
2114d44c SS |
2684 | * tracepoint.c (trace_dump_command): Include default-collect |
2685 | expressions. | |
2686 | ||
86da934b UW |
2687 | 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com> |
2688 | ||
2689 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
2690 | before function start address, even if line info is missing. | |
2691 | ||
2d6e647a | 2692 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
d337e9f0 PA |
2693 | |
2694 | * NEWS: Mention tracepoints support. | |
2695 | ||
a97153c7 PA |
2696 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
2697 | ||
2698 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
2699 | circular trace buffer statuses. | |
2700 | ||
7a66d603 JK |
2701 | 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2702 | ||
2703 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
2704 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
2705 | ||
2566ad2d PA |
2706 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
2707 | ||
2708 | * breakpoint.c (condition_command): Pass condition expression to | |
2709 | set_breakpoint_condition stripped from breakpoint number. | |
2710 | ||
adc36818 PM |
2711 | 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> |
2712 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2566ad2d | 2713 | Tom Tromey <tromey@redhat.com> |
adc36818 PM |
2714 | |
2715 | * breakpoint.c (condition_command): Simplify. Move condition | |
2716 | setting code to ... | |
2717 | (set_breakpoint_condition): ... here. New function. | |
2718 | * breakpoint.h (set_breakpoint_condition): Declare. | |
2719 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
2720 | (SUBDIR_PYTHON_SRCS): Likewise. | |
2721 | (py-breakpoint.o): New rule. | |
2722 | * python/py-breakpoint.c: New file. | |
2723 | * python/python-internal.h (gdbpy_breakpoints) | |
2724 | (gdbpy_initialize_breakpoints): Declare. | |
2725 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
2726 | ||
219f2f23 PA |
2727 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
2728 | ||
2729 | * regformats/regdat.sh: Include server.h. Don't include | |
2730 | regcache.h. | |
2731 | ||
33da3f1c SS |
2732 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
2733 | Pedro Alves <pedro@codesourcery.com> | |
2734 | ||
2735 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
2736 | and circular_buffer. | |
2737 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
2738 | * tracepoint.c (trace_status_command): Display target's status for | |
2739 | disconnected tracing and circular buffer. | |
2740 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
2741 | query for non-disconnected-tracing case, remove the stop_tracing | |
2742 | call. | |
2743 | (tfile_open): Clear disconnected and circular buffer status. | |
2744 | (trace_save): Save disconnected and circular buffer status. | |
2745 | (parse_trace_status): Parse disconnected and circular buffer status, | |
2746 | also recognize disconnected as a stop reason. | |
2747 | * remote.c (remote_set_disconnected_tracing): Only set | |
2748 | QTDisconnected if the remote end supports disconnected tracing. | |
2749 | Warn otherwise, if trying to enable disconnected tracing. | |
2750 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
2751 | * cli/cli-cmds.c (quit_command): Ditto. | |
2752 | ||
4e4d8374 L |
2753 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
2754 | ||
2755 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
2756 | internal_error. | |
2757 | ||
ad443146 SS |
2758 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
2759 | ||
2760 | * breakpoint.c (default_collect_info): New function. | |
2761 | (breakpoints_info): Call it. | |
2762 | (maintenance_info_breakpoints): Ditto. | |
2763 | (tracepoints_info): Ditto. | |
2764 | ||
40936b0d L |
2765 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
2766 | ||
2767 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
2768 | ||
3a13a53b L |
2769 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
2770 | ||
2771 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
2772 | if HAVE_PTRACE_GETFPXREGS is defined. | |
2773 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
2774 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
2775 | ||
2776 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
2777 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
2778 | if .reg-xfp section doesn't exist. | |
2779 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
2780 | ||
2781 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
2782 | ||
2783 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
2784 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
2785 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
2786 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
2787 | (i386_gdbarch_init): Update comments. | |
2788 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
2789 | ||
2790 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
2791 | ||
2792 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
2793 | ||
2794 | * features/Makefile (i386/i386-mmx-expedite): New. | |
2795 | (i386/i386-mmx-linux-expedite): Likewise. | |
2796 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
2797 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
2798 | ||
2799 | * features/i386/i386-mmx-linux.c: New. | |
2800 | * features/i386/i386-mmx-linux.xml: Likewise. | |
2801 | * features/i386/i386-mmx.c: Likewise. | |
2802 | * features/i386/i386-mmx.xml: Likewise. | |
2803 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
2804 | * regformats/i386/i386-mmx.dat: Likewise. | |
2805 | ||
2806 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
2807 | i386/i386-mmx-linux. | |
2808 | ||
08001717 DE |
2809 | 2010-04-08 Doug Evans <dje@google.com> |
2810 | ||
2811 | * source.c (openp): Skip $cdir in PATH. | |
2812 | ||
fff5cc64 PM |
2813 | 2010-04-08 Phil Muldoon <pmuldoon@redhat.com> |
2814 | ||
2815 | PR python/11417 | |
fff5cc64 | 2816 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
2817 | a NULL address. |
2818 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
2819 | address and a zero length. | |
fff5cc64 | 2820 | |
f8c4f480 HZ |
2821 | 2010-04-08 Hui Zhu <teawater@gmail.com> |
2822 | ||
2823 | * i386-tdep.c (i386_process_record): Add support for insn | |
2824 | rdtsc. | |
2825 | ||
eb5cda86 DE |
2826 | 2010-04-07 Doug Evans <dje@google.com> |
2827 | ||
2828 | * python/python.c (source_python_script): Use ensure_python_env | |
2829 | to prepare environment for script. | |
2830 | ||
a055a187 L |
2831 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
2832 | ||
2833 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
2834 | <sys/uio.h> and "i386-xstate.h". | |
2835 | (PTRACE_GETREGSET): New. | |
2836 | (PTRACE_SETREGSET): Likewise. | |
2837 | (have_ptrace_getregset): Likewise. | |
2838 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
2839 | registers. | |
2840 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
2841 | registers. | |
2842 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
2843 | (amd64_linux_store_inferior_registers): Likewise. | |
2844 | (amd64_linux_read_description): Check and enable AVX target | |
2845 | descriptions. | |
2846 | ||
2847 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
2848 | and "features/i386/amd64-avx-linux.c". | |
2849 | (amd64_linux_regset_sections): New. | |
2850 | (amd64_linux_core_read_description): Check and enable AVX | |
2851 | target description. | |
2852 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
2853 | set_gdbarch_core_regset_sections. | |
2854 | (_initialize_amd64_linux_tdep): Call | |
2855 | initialize_tdesc_amd64_avx_linux. | |
2856 | ||
2857 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
2858 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
2859 | (tdesc_amd64_avx_linux): New. | |
2860 | (amd64_linux_update_xstateregset): Likewise. | |
2861 | ||
2862 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
2863 | (amd64_ymm_names): New. | |
2864 | (amd64_ymmh_names): Likewise. | |
2865 | (amd64_register_name): Likewise. | |
2866 | (amd64_supply_xstateregset): Likewise. | |
2867 | (amd64_collect_xstateregset): Likewise. | |
2868 | (amd64_supply_xsave): Likewise. | |
2869 | (amd64_collect_xsave): Likewise. | |
2870 | (AMD64_NUM_REGS): Removed. | |
2871 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
2872 | %xmmN if AVX is available. | |
2873 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
2874 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
2875 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
2876 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
2877 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
2878 | ||
2879 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
2880 | AMD64_YMM15H_REGNUM. | |
2881 | (AMD64_NUM_REGS): New. | |
2882 | (amd64_supply_xsave): Likewise. | |
2883 | (amd64_collect_xsave): Likewise. | |
2884 | (amd64_register_name): Removed. | |
2885 | (amd64_register_type): Likewise. | |
2886 | ||
31aeac78 L |
2887 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
2888 | ||
2889 | * i387-tdep.c: Include "i386-xstate.h". | |
2890 | (XSAVE_XSTATE_BV_ADDR): New. | |
2891 | (xsave_avxh_offset): Likewise. | |
2892 | (XSAVE_AVXH_ADDR): Likewise. | |
2893 | (i387_supply_xsave): Likewise. | |
2894 | (i387_collect_xsave): Likewise. | |
2895 | ||
2896 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
2897 | (I387_YMM0H_REGNUM): Likewise. | |
2898 | (I387_YMMENDH_REGNUM): Likewise. | |
2899 | (i387_supply_xsave): Likewise. | |
2900 | (i387_collect_xsave): Likewise. | |
2901 | ||
c131fcee L |
2902 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
2903 | ||
2904 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
2905 | <sys/uio.h> and "i386-xstate.h". | |
2906 | (PTRACE_GETREGSET): New. | |
2907 | (PTRACE_SETREGSET): Likewise. | |
2908 | (fetch_xstateregs): Likewise. | |
2909 | (store_xstateregs): Likewise. | |
2910 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
2911 | (regmap): Include 8 upper YMM registers. | |
2912 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
2913 | state. | |
2914 | (i386_linux_store_inferior_registers): Likewise. | |
2915 | (i386_linux_read_description): Check and enable AVX target | |
2916 | descriptions. | |
2917 | ||
2918 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
2919 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
2920 | (i386_linux_regset_sections): Add ".reg-xstate". | |
2921 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
2922 | (i386_linux_core_read_xcr0): New. | |
2923 | (i386_linux_core_read_description): Check and enable AVX target | |
2924 | description. | |
2925 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
2926 | (_initialize_i386_linux_tdep): Call | |
2927 | initialize_tdesc_i386_avx_linux. | |
2928 | ||
2929 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
2930 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
2931 | (i386_linux_core_read_xcr0): New. | |
2932 | (tdesc_i386_avx_linux): Likewise. | |
2933 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
2934 | ||
2935 | * i386-tdep.c: Include "i386-xstate.h" and | |
2936 | "features/i386/i386-avx.c". | |
2937 | (i386_ymm_names): New. | |
2938 | (i386_ymmh_names): Likewise. | |
2939 | (i386_ymmh_regnum_p): Likewise. | |
2940 | (i386_ymm_regnum_p): Likewise. | |
2941 | (i386_xmm_regnum_p): Likewise. | |
2942 | (i386_register_name): Likewise. | |
2943 | (i386_ymm_type): Likewise. | |
2944 | (i386_supply_xstateregset): Likewise. | |
2945 | (i386_collect_xstateregset): Likewise. | |
2946 | (i386_sse_regnum_p): Removed. | |
2947 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
2948 | (i386_pseudo_register_type): Likewise. | |
2949 | (i386_pseudo_register_read): Likewise. | |
2950 | (i386_pseudo_register_write): Likewise. | |
2951 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
2952 | %xmmN if AVX is available. | |
2953 | (i386_regset_from_core_section): Support .reg-xstate section. | |
2954 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
2955 | (i386_process_record): Replace i386_sse_regnum_p with | |
2956 | i386_xmm_regnum_p. | |
2957 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
2958 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 2959 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
2960 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
2961 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
2962 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
2963 | Set ymm0_regnum. | |
2964 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
2965 | ||
2966 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
2967 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
2968 | i386_ymm_type. | |
2969 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
2970 | (I386_AVX_NUM_REGS): New. | |
2971 | (i386_xmm_regnum_p): Likewise. | |
2972 | (i386_ymm_regnum_p): Likewise. | |
2973 | (i386_ymmh_regnum_p): Likewise. | |
2974 | ||
2975 | * common/i386-xstate.h: New. | |
2976 | ||
98adf0f3 L |
2977 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
2978 | ||
2979 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
2980 | ||
2981 | * features/Makefile (WHICH): Add i386/i386-avx, | |
2982 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
2983 | (i386/i386-avx-expedite): New. | |
2984 | (i386/i386-avx-linux-expedite): Likewise. | |
2985 | (i386/x86-64-avx-expedite):Likewise. | |
2986 | (i386/x86-64-avx-linux-expedite): Likewise. | |
2987 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
2988 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
2989 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
2990 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
2991 | ||
2992 | * features/i386/32bit-avx.xml: New. | |
2993 | * features/i386/64bit-avx.xml: Likewise. | |
2994 | * features/i386/i386-avx-linux.c: Likewise. | |
2995 | * features/i386/i386-avx-linux.xml: Likewise. | |
2996 | * features/i386/i386-avx.c: Likewise. | |
2997 | * features/i386/i386-avx.xml: Likewise. | |
2998 | * features/i386/x86-64-avx-linux.c: Likewise. | |
2999 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
3000 | * features/i386/x86-64-avx.c: Likewise. | |
3001 | * features/i386/x86-64-avx.xml: Likewise. | |
3002 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
3003 | * regformats/i386/i386-avx.dat: Likewise. | |
3004 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
3005 | * regformats/i386/x86-64-avx.dat: Likewise. | |
3006 | ||
05159abe DE |
3007 | 2010-04-07 Doug Evans <dje@google.com> |
3008 | ||
3009 | * top.c (source_file_name): Make const char *. | |
3010 | * top.h (source_file_name): Update. | |
3011 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
3012 | const char *. | |
3013 | (script_from_file): Change `file' arg to const char *. | |
3014 | * cli/cli-script.h (script_from_file): Update. | |
3015 | ||
96e39866 DE |
3016 | 2010-04-06 Doug Evans <dje@google.com> |
3017 | ||
3018 | * cli/cli-cmds.c (source_command): Run cleanups. | |
3019 | ||
3149d8c1 SS |
3020 | 2010-04-06 Stan Shebs <stan@codesourcery.com> |
3021 | ||
3022 | * defs.h (char_ptr): Move typedef here from... | |
3023 | * ada-lang.c (char_ptr): Remove. | |
3024 | * charset.c (char_ptr): Remove. | |
3025 | * tracepoint.h (struct uploaded_string): Remove. | |
3026 | (struct uploaded_tp): Use vectors for string arrays. | |
3027 | * tracepoint.c (trace_save): Use vectors of actions. | |
3028 | (parse_tracepoint_definition): Ditto. | |
3029 | (get_uploaded_tp): Clear vectors. | |
3030 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
3031 | (next_cmd): Change to an int. | |
3032 | (read_next_cmd): Use vector of command strings. | |
3033 | ||
4cc23ede DE |
3034 | 2010-04-06 Doug Evans <dje@google.com> |
3035 | ||
3036 | * top.h (source_script, cd_command): Delete. | |
3037 | * main.c: #include "cli/cli-cmds.h" | |
3038 | ||
bd333fb7 KB |
3039 | 2010-04-06 Kevin Buettner <kevinb@redhat.com> |
3040 | ||
3041 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
3042 | type in bytes, not bits. | |
3043 | ||
ec8a089a PM |
3044 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
3045 | ||
3046 | * stabsread.c (define_symbol): Add support for char | |
3047 | and string constants. | |
3048 | ||
2244ba2e PM |
3049 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
3050 | ||
3051 | Remove remaining "%ll" uses. | |
3052 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
3053 | hex_string call. | |
3054 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
3055 | * solib-pa64.c (pa64_current_sos): Idem. | |
3056 | * solib-spu.c (spu_current_sos): Idem. | |
3057 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
3058 | plongest call. | |
3059 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
3060 | phex (VAR, 8) call. | |
3061 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
3062 | ||
fce3c1f0 SS |
3063 | 2010-04-05 Stan Shebs <stan@codesourcery.com> |
3064 | ||
3065 | * tracepoint.c: Include gdbcore.h. | |
3066 | (tfile_xfer_partial): Return partial results, also try reading | |
3067 | from executable. | |
3068 | (tfile_has_all_memory): New function. | |
3069 | (init_tfile_ops): Use it. | |
3070 | ||
626ea16d SDJ |
3071 | 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
3072 | ||
3073 | PR gdb/10736: | |
3074 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
3075 | the changes in data-directory. | |
3076 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
3077 | has changed. | |
3078 | ||
1f7ccab2 JK |
3079 | 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3080 | ||
3081 | Code cleanup. | |
3082 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
3083 | ||
d77f58be SS |
3084 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
3085 | Nathan Sidwell <nathan@codesourcery.com> | |
3086 | ||
3087 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
3088 | breakpoints printed. | |
3089 | (is_hardware_watchpoint): Make argument const. | |
3090 | (is_watchpoint): Ditto. | |
3091 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
3092 | use it everywhere. | |
3093 | (breakpoints_info): Pass NULL to breakpoint_1. | |
3094 | (maintenance_info_breakpoints): Ditto. | |
3095 | (watchpoints_info): New function. | |
3096 | (tracepoints_info): Use breakpoint_1 filter. | |
3097 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
3098 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
3099 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
3100 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
3101 | ||
af54718e SS |
3102 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
3103 | ||
3104 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
3105 | ||
74d1f91e JK |
3106 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3107 | ||
3108 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
3109 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
3110 | ||
91d91ceb JK |
3111 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3112 | ||
3113 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
3114 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
3115 | ||
60531b24 JK |
3116 | 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3117 | ||
3118 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
3119 | code form. | |
3120 | ||
a3c4230a HZ |
3121 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
3122 | ||
3123 | * i386-tdep.c (OT_DQUAD): New enum. | |
3124 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
3125 | SSE3, SSSE3 and SSE4. | |
3126 | ||
b15758fe HZ |
3127 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
3128 | ||
3129 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
3130 | "*addr = 0". | |
3131 | ||
afd02f27 PA |
3132 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
3133 | ||
3134 | * tracepoint.c (trace_dump_actions): New, factored out from | |
3135 | trace_dump_command, and adjusted to recurse into while-stepping's | |
3136 | action list. | |
3137 | (trace_dump_command): Use it. | |
3138 | ||
5cea2a26 PA |
3139 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
3140 | ||
3141 | * breakpoint.h (struct counted_command_line): Moved definition to | |
3142 | breakpoint.c, and forward declare. | |
3143 | (breakpoint_commands): Declare. | |
3144 | * breakpoint.c (struct counted_command_line): Moved here. | |
3145 | (breakpoint_commands): New. | |
3146 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
3147 | * remote.c (remote_download_tracepoint): Ditto. | |
3148 | ||
7c47795c L |
3149 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
3150 | ||
3151 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
3152 | of phex_nz for error. | |
3153 | ||
fff87407 SS |
3154 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
3155 | Nathan Sidwell <nathan@codesourcery.com> | |
3156 | ||
3157 | * tracepoint.h (enum actionline_type): Remove. | |
3158 | (validate_actionline): Change return to void. | |
3159 | * tracepoint.c (report_agent_reqs_errors): New function. | |
3160 | (validate_actionline): Call it, change return to void, report errors | |
3161 | more consistently. | |
3162 | (collect_symbol): Call report_agent_reqs_errors. | |
3163 | (encode_actions_1): Ditto. | |
3164 | (encode_actions): Don't expect a result from validate_actionline. | |
3165 | ||
615bcdef SS |
3166 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
3167 | ||
3168 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
3169 | (trace_stop_command): Error if trace not running. | |
3170 | ||
fe01d668 L |
3171 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
3172 | ||
3173 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
3174 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
3175 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
3176 | (amd64_pseudo_register_write): Likewise. | |
3177 | (amd64_init_abi): Set num_byte_regs to 20. | |
3178 | ||
86b17b60 PA |
3179 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
3180 | ||
3181 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
3182 | (prev_breakpoint_count): New. | |
3183 | (set_breakpoint_count): Adjust. | |
3184 | (rbreak_start_breakpoint_count): New. | |
3185 | (start_rbreak_breakpoints): Adjust. | |
3186 | (end_rbreak_breakpoints): Adjust. | |
3187 | (struct commands_info) <arg>: New field. | |
3188 | (do_map_commands_command): Tweak output to include breakpoint spec | |
3189 | range. | |
3190 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
3191 | ARG was empty on entry. Set INFO's arg. | |
3192 | (create_breakpoint): Adjust. | |
3193 | ||
3194 | * NEWS: Clarify `commands' changes. | |
3195 | ||
2c58c0a9 PA |
3196 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
3197 | ||
3198 | * tracepoint.c: Include stack.h. | |
3199 | (struct add_local_symbols_data): New. | |
3200 | (do_collect_symbol): New. | |
3201 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
3202 | iterate_over_block_local_vars. | |
3203 | * stack.c (print_block_frame_locals): Rewrite as ... | |
3204 | (iterate_over_block_locals): ... this. Take a callback function | |
3205 | pointer and generic data pointer, and call that instead of | |
3206 | print_variable_and_value. | |
3207 | (struct print_variable_and_value_data): New. | |
3208 | (do_print_variable_and_value): New. | |
3209 | (iterate_over_block_local_vars): New, abstracted out from | |
3210 | print_frame_local_vars. | |
3211 | (print_frame_local_vars): Rewrite using | |
3212 | iterate_over_block_local_vars. | |
3213 | (iterate_over_block_arg_vars): New, abstracted out from | |
3214 | print_frame_arg_vars. | |
3215 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
3216 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
3217 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
3218 | ||
d476da0e RE |
3219 | 2010-03-31 Richard Earnshaw <rearnsha@arm.com> |
3220 | ||
3221 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 3222 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
3223 | PC register. |
3224 | ||
8072405b JK |
3225 | 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
3226 | ||
3227 | Fix crash on reading wrong function declaration DWARF. | |
3228 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
3229 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
3230 | more close to their use. | |
3231 | ||
8bf6485c SS |
3232 | 2010-03-31 Stan Shebs <stan@codesourcery.com> |
3233 | ||
3234 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 3235 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
3236 | * tracepoint.c (save_trace_state_variables): New function. |
3237 | * tracepoint.h (save_trace_state_variables): Declare it. | |
3238 | ||
2ae2a0b7 PM |
3239 | 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr> |
3240 | ||
1a161f72 | 3241 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 3242 | |
86ffb506 KS |
3243 | 2010-03-30 Keith Seitz <keiths@redhat.com> |
3244 | ||
3245 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
3246 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
3247 | Use the passed-in language instead of current_language. | |
3248 | (c_type_print_varspec_suffix): Use current_language instead | |
3249 | of assuming language_c. | |
3250 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
3251 | any return type specifier from the physname. | |
3252 | ||
956c2c8b PA |
3253 | 2010-03-30 Pedro Alves <pedro@codesourcery.com> |
3254 | ||
3255 | * tui/tui-interp.c (tui_is_toplevel): New. | |
3256 | (tui_init): Set it. | |
3257 | (tui_allowed_p): New. | |
3258 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
3259 | enabling it. | |
3260 | * tui/tui.h (tui_allowed_p): Declare. | |
3261 | ||
98e5a990 TT |
3262 | 2010-03-30 Ozkan Sezer <sezeroz@gmail.com> |
3263 | ||
3264 | * serial.h: Include winsock2.h before windows.h. | |
3265 | ||
c8d5aac9 L |
3266 | 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> |
3267 | ||
3268 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
3269 | ||
3270 | * i386-tdep.c: Include "remote.h". | |
3271 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
3272 | ||
3273 | * remote.c (remote_support_xml): New. | |
3274 | (register_remote_support_xml): Likewise. | |
3275 | (remote_query_supported_append): Likewise. | |
3276 | (remote_query_supported): Support remote_support_xml. | |
3277 | ||
3278 | * remote.h (register_remote_support_xml): New. | |
3279 | ||
76a2b958 SS |
3280 | 2010-03-29 Stan Shebs <stan@codesourcery.com> |
3281 | ||
42e08e69 SS |
3282 | * tracepoint.c (trace_find_line_command): Remove dead code. |
3283 | ||
409873ef SS |
3284 | * tracepoint.h (struct uploaded_string): New struct. |
3285 | (struct uploaded_tp): New fields for source strings. | |
3286 | * breakpoint.c (this_utp, next_cmd): New globals. | |
3287 | (read_uploaded_action): New function. | |
3288 | (create_tracepoint_from_upload): Fill in more parts | |
3289 | of a tracepoint. | |
3290 | * tracepoint.c (encode_source_string): New function. | |
3291 | (trace_save): Write out source strings, fix error checks. | |
3292 | (parse_tracepoint_definition): Add source string parsing. | |
3293 | * remote.c (PACKET_TracepointSource): New packet type. | |
3294 | (remote_download_command_source): New function. | |
3295 | (remote_download_tracepoint): Download source pieces also. | |
3296 | (_initialize_remote): Add packet config command. | |
3297 | ||
a0405854 SS |
3298 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
3299 | expression handler. | |
3300 | ||
76a2b958 SS |
3301 | * tracepoint.c (start_tracing): Check tracepoints before sending |
3302 | commands to target, don't start if all tracepoints disabled. | |
3303 | ||
d350db38 PA |
3304 | 2010-03-28 Pedro Alves <pedro@codesourcery.com> |
3305 | ||
12f2d601 | 3306 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 3307 | |
8b9b7ef8 SS |
3308 | 2010-03-26 Stan Shebs <stan@codesourcery.com> |
3309 | ||
3310 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
3311 | ||
9766ced4 SS |
3312 | 2010-03-26 Tom Tromey <tromey@redhat.com> |
3313 | ||
3314 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
3315 | ||
059acae7 UW |
3316 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
3317 | ||
3318 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
3319 | (skip_prologue_sal): Remove local definition. | |
3320 | (resolve_sal_pc): Remove now unnecessary code. | |
3321 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
3322 | * symtab.c (find_function_start_pc): Remove. | |
3323 | (find_function_start_sal): Extract prologue skipping into ... | |
3324 | (skip_prologue_sal): ... this new function. Handle code both | |
3325 | with and without debug info. Respect SAL's explicit_pc and | |
3326 | explicit_line flags. Inline old find_function_start_pc. | |
3327 | * symtab.h (find_function_start_pc): Remove. | |
3328 | (skip_prologue_sal): Add prototype. | |
3329 | ||
4a811a97 UW |
3330 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
3331 | ||
3332 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
3333 | for DW_TAG_imported_module children. | |
3334 | ||
907af001 UW |
3335 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
3336 | ||
3337 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
3338 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
3339 | * completer.c (add_struct_fields): Fix inverted logic. | |
3340 | ||
dde2d684 UW |
3341 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
3342 | ||
3343 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
3344 | ||
a609a0c8 PA |
3345 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
3346 | ||
3347 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
3348 | is non-NULL here. | |
3349 | (parse_trace_status): Release a previous error_desc string, and | |
3350 | set it to NULL by default. If stop reason is tracepoint_error, | |
3351 | make sure error_desc is not left NULL. | |
3352 | ||
610197fd PA |
3353 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
3354 | ||
3355 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
3356 | description. | |
3357 | ||
99b5e152 PA |
3358 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
3359 | ||
3360 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
3361 | the terror description. Don't expect an X prefix. | |
3362 | ||
6c28cbf2 SS |
3363 | 2010-03-25 Stan Shebs <stan@codesourcery.com> |
3364 | ||
3365 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
3366 | (struct trace_status): New field error_desc. | |
3367 | * tracepoint.c (stop_reason_names): Add terror. | |
3368 | (current_trace_status): Ensure non-NULL error description. | |
3369 | (trace_status_command): Add error report. | |
3370 | (trace_status_mi): Ditto. | |
3371 | (trace_save): Add special case for error description. | |
3372 | (parse_trace_status): Add case for errors. | |
3373 | ||
418835cc KS |
3374 | 2010-03-25 Keith Seitz <keiths@redhat.com> |
3375 | ||
3376 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
3377 | language is Java, mark any formal parameter named "this" as | |
3378 | artificial (GCC/43521). | |
3379 | (dwarf2_name): Add special handling for Java constructors. | |
3380 | ||
aa7d318d TT |
3381 | 2010-03-25 Tom Tromey <tromey@redhat.com> |
3382 | ||
3383 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
3384 | * infrun.c (handle_inferior_event): Change initialization of | |
3385 | stop_stack_dummy. | |
3386 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
3387 | (normal_stop): Update use of stop_stack_dummy. | |
3388 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
3389 | * inferior.h (stop_stack_dummy): Update. | |
3390 | * infcmd.c (stop_stack_dummy): Change type. | |
3391 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
3392 | function. | |
3393 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
3394 | Rewrite std::terminate handling. | |
3395 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
3396 | bp_std_terminate_master>: New. | |
3397 | (enum stop_stack_kind): New. | |
3398 | (struct bpstat_what) <call_dummy>: Change type. | |
3399 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
3400 | Declare. | |
3401 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
3402 | function. | |
3403 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
3404 | Call create_std_terminate_master_breakpoint. | |
3405 | (print_it_typical): Handle new breakpoint kinds. | |
3406 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
3407 | (bpstat_what): Correctly set call_dummy field. Handle | |
3408 | bp_std_terminate_master and bp_std_terminate. | |
3409 | (print_one_breakpoint_location): Update. | |
3410 | (allocate_bp_location): Update. | |
3411 | (set_std_terminate_breakpoint): New function. | |
3412 | (delete_std_terminate_breakpoint): Likewise. | |
3413 | (create_thread_event_breakpoint): Update. | |
3414 | (delete_command): Update. | |
3415 | (breakpoint_re_set_one): Update. | |
3416 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
3417 | ||
82ccf5a5 JK |
3418 | 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3419 | ||
3420 | * symfile.c (build_section_addr_info_from_bfd): New. | |
3421 | (build_section_addr_info_from_objfile): Base it on | |
3422 | build_section_addr_info_from_bfd. | |
3423 | (addrs_section_compar, addrs_section_sort): New. | |
3424 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
3425 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
3426 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
3427 | ||
737c4c52 MS |
3428 | 2010-03-24 Michael Snyder <msnyder@localhost.localdomain> |
3429 | ||
8d95cc3b | 3430 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
3431 | Remove unused local variable. |
3432 | ||
95a42b64 TT |
3433 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
3434 | ||
3435 | PR breakpoints/9352: | |
3436 | * NEWS: Mention changes to `commands' and `rbreak'. | |
3437 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
3438 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
3439 | end_rbreak_breakpoints. | |
3440 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
3441 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
3442 | (multi_start, multi_end, last_was_multi): New globals. | |
3443 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
3444 | functions. | |
3445 | (struct commands_info): New | |
3446 | (do_map_commands_command): New function. | |
3447 | (commands_command_1): New function. | |
3448 | (commands_command): Use it. | |
3449 | (commands_from_control_command): Likewise. | |
3450 | (do_delete_breakpoint): New function. | |
3451 | (delete_command): Use it. | |
3452 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
3453 | (do_map_disable_breakpoint): New function. | |
3454 | (disable_command): Use it. | |
3455 | (do_map_enable_breakpoint): New function. | |
3456 | (enable_command): Use it. | |
3457 | (enable_once_breakpoint): Add argument. | |
3458 | (enable_once_command): Update. | |
3459 | (enable_delete_breakpoint): Add argument. | |
3460 | (enable_delete_command): Update. | |
3461 | (break_command_really): Set last_was_multi when needed. | |
3462 | (check_tracepoint_command): Fix formatting. | |
3463 | (validate_commands_for_breakpoint): New function. | |
3464 | (breakpoint_set_commands): Use it. | |
3465 | (tracepoint_save_command): Update. | |
3466 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
3467 | Declare. | |
3468 | ||
9add0f1b TT |
3469 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
3470 | ||
3471 | * breakpoint.h (struct counted_command_line): New struct. | |
3472 | (struct breakpoint) <commands>: Change type. | |
3473 | (struct bpstats) <commands>: Change type. | |
3474 | <commands_left>: New field. | |
3475 | * breakpoint.c (alloc_counted_command_line): New function. | |
3476 | (incref_counted_command_line): Likewise. | |
3477 | (decref_counted_command_line): Likewise. | |
3478 | (do_cleanup_counted_command_line): Likewise. | |
3479 | (make_cleanup_decref_counted_command_line): Likewise. | |
3480 | (breakpoint_set_commands): Use decref_counted_command_line and | |
3481 | alloc_counted_command_line. | |
3482 | (commands_command): Don't error if breakpoint commands are | |
3483 | executing. | |
3484 | (commands_from_control_command): Likewise. | |
3485 | (bpstat_free): Update. | |
3486 | (bpstat_copy): Likewise. | |
3487 | (bpstat_clear_actions): Likewise. | |
3488 | (bpstat_do_actions_1): Likewise. | |
3489 | (bpstat_stop_status): Likewise. | |
3490 | (print_one_breakpoint_location): Likewise. | |
3491 | (delete_breakpoint): Likewise. | |
3492 | (bpstat_alloc): Initialize new field. | |
3493 | (tracepoint_save_command): Update. | |
3494 | * tracepoint.c (encode_actions): Update. | |
3495 | (trace_dump_command): Update. | |
3496 | ||
a6c727b2 DJ |
3497 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
3498 | ||
3499 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
3500 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
3501 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
3502 | no byte size and no children. | |
3503 | (read_subroutine_type): Mark functions as prototyped by default. | |
3504 | * symtab.c (producer_is_realview): New function. | |
3505 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
3506 | (producer_is_realview): Declare. | |
3507 | ||
0d39a070 DJ |
3508 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
3509 | ||
3510 | * arm-tdep.c (skip_prologue_function): New function. | |
3511 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
3512 | (thumb_analyze_prologue): Document return value. Recognize more | |
3513 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
3514 | Add debug output. | |
3515 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
3516 | for non-GNU compilers. | |
3517 | (arm_instruction_changes_pc): New function. | |
3518 | (arm_analyze_prologue): New function, broken out from | |
3519 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
3520 | calls. Update comments. Handle NULL cache. Return the address | |
3521 | of the first unrecognized instruction. Do not skip past other | |
3522 | instructions which change control flow. Add debug output. | |
3523 | (arm_scan_prologue): Use arm_analyze_prologue. | |
3524 | (ARM_PC_32): Delete. | |
3525 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
3526 | ||
4baf5cf4 VP |
3527 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3528 | ||
3529 | * tracepoint.c (tvariables_info_1): Actually compute | |
3530 | the number of rows in the result. | |
3531 | ||
4a5e7a5b PA |
3532 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
3533 | ||
3534 | * remote.c (crc32): Constify `buf' parameter. | |
3535 | (remote_verify_memory): New, abstracted out from... | |
3536 | (compare_sections_command): ... this. Remove hardcoded target | |
3537 | checks. | |
3538 | (init_remote_ops): Install remote_verify_memory. | |
3539 | * target.c (target_verify_memory): New. | |
3540 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
3541 | (target_verify_memory): Declare. | |
3542 | ||
011aacb0 VP |
3543 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3544 | ||
3545 | Implement -trace-save. | |
3546 | ||
3547 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
3548 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
3549 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
3550 | * remote.c (remote_save_trace_data): Take const parameter. | |
3551 | * target.h (struct target_ops::to_save_trace_data): Take | |
3552 | const parameter. | |
3553 | * target.c (update_current_target): Adjust to the above. | |
3554 | * tracepoint.c (trave_save): New, extracted from | |
3555 | (trace_save_command): ...this. | |
3556 | (tfile_trace_find): Remove message that is unnecessary now | |
3557 | that 'tfind' reports found frame. | |
3558 | * tracepoint.h (trace_save): Declare. | |
3559 | ||
f197e0f1 VP |
3560 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3561 | ||
3562 | Implement -trace-find. | |
3563 | ||
3564 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
3565 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
3566 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
3567 | * target.h (struct target_ops): Document to_trace_find. | |
3568 | * tracepoint.h (tfind_1): Declare. | |
3569 | * tracepoint.c (finish_tfind_command): Rename to... | |
3570 | (tfind_1): ...this. | |
3571 | * remote.c (remote_trace_find): Return -1 if target say | |
3572 | there's no frame. Improve error diagnostics. | |
3573 | ||
40e1c229 VP |
3574 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3575 | ||
3576 | -trace-define-variable and -trace-list-variables. | |
3577 | ||
3578 | * tracepoint.c (create_trace_state_variable): Make | |
3579 | private copy of name, as opposed to assuming the | |
3580 | pointer lives forever. | |
3581 | (tvariables_info_1): New. | |
3582 | (tvariables_info): Use the above. | |
3583 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
3584 | Declare. | |
3585 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
3586 | and -trace-list-variables. | |
3587 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
3588 | (mi_cmd_trace_list_variables): New. | |
3589 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
3590 | (mi_cmd_trace_list_variables): New. | |
3591 | ||
9b4c786c VP |
3592 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3593 | ||
3594 | Implement -break-passcount. | |
3595 | ||
3596 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
3597 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
3598 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
3599 | ||
f224b49d VP |
3600 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3601 | ||
3602 | -trace-start/-trace-end/-trace-status. | |
3603 | ||
3604 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
3605 | and -trace-stop. | |
3606 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
3607 | (mi_cmd_trace_stop): Declare. | |
3608 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
3609 | (mi_cmd_trace_stop): New. | |
3610 | * tracepoint.c (start_tracing): New, extracted from... | |
3611 | (trace_start_command): ...this. | |
3612 | (trace_status_mi): New. | |
3613 | * tracepoint.h (struct trace_status): Document | |
3614 | stopping_tracepoint. | |
3615 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
3616 | ||
6534d786 VP |
3617 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3618 | ||
3619 | Implement creating tracepoints with -break-insert. | |
3620 | ||
3621 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
3622 | to mean that tracepoint should be created. | |
3623 | ||
51661e93 VP |
3624 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3625 | ||
3626 | * breakpoint.c (check_no_tracepoint_commands): Use | |
3627 | current spelling of 'teval'. | |
3628 | ||
a7bdde9e VP |
3629 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
3630 | ||
3631 | Unify actions and commands | |
3632 | ||
3633 | * defs.h (read_command_lines, read_command_lines_1): New | |
3634 | parameters validator and closure. | |
3635 | * tracepoint.h (struct action_line): Remove. | |
3636 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
3637 | field. | |
3638 | * defs.h (enum command_control_type): New value | |
3639 | while_stepping_control. | |
3640 | (struct command_line): Add comments. | |
3641 | * breakpoint.c (breakoint_is_tracepoint): New. | |
3642 | (breakpoint_set_commands): For tracepoints, | |
3643 | verify the commands are permissible. | |
3644 | (check_tracepoint_commands): New. | |
3645 | (commands_command): Require that each new line is validated using | |
3646 | check_tracepoint_command, if we set commands for a tracepoint. | |
3647 | (create_tracepoint_from_upload): Likewise. | |
3648 | (print_one_breakpoint_location): Remove the code to print | |
3649 | actions specifically. | |
3650 | (tracepoint_save_command): Relay to print_command_lines. | |
3651 | * cli/cli-script.c (process_next_line): New parameters validator | |
3652 | and closure. Handle 'while-stepping'. Call validator if not null. | |
3653 | (read_command_lines, read_command_lines1): Likewise. | |
3654 | (recurse_read_control_structure): New parameters validator and | |
3655 | closure. Handle while_stepping_control. | |
3656 | (print_command_lines): Handle while-stepping. | |
3657 | (get_command_line, define_command, document_command): Adjust. | |
3658 | * remote.c (remote_download_tracepoint): Adjust. | |
3659 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
3660 | (free_actions, do_free_actions_cleanup): Remove. | |
3661 | (trace_actions_command): Use read_command_lines. | |
3662 | (validate_actionline): Use error in one place. | |
3663 | (encode_actions_1): New, extracted from... | |
3664 | (encode_actions): ...this. Also use cleanups for exception | |
3665 | safety. | |
3666 | (trace_dump_command): Adjust. | |
3667 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
3668 | it's tracepoint. | |
3669 | ||
64e3cf3d MF |
3670 | 2010-03-23 Mike Frysinger <vapier@gentoo.org> |
3671 | ||
3672 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
3673 | ||
52e9fde8 SS |
3674 | 2010-03-22 Stan Shebs <stan@codesourcery.com> |
3675 | ||
3676 | * value.c (value_static_field): Be lazy about the field's value. | |
3677 | ||
508ccb1f TT |
3678 | 2010-03-22 Reid Kleckner <reid@kleckner.net> |
3679 | ||
3680 | PR gdb/11094 | |
3681 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
3682 | bp_jit_event. | |
3683 | (disable_breakpoints_in_shlibs): Likewise. | |
3684 | ||
acebe513 UW |
3685 | 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com> |
3686 | ||
3687 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
3688 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
3689 | (determine_prefix): Likewise. | |
3690 | ||
957b8b5a DJ |
3691 | 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com> |
3692 | ||
3693 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
3694 | get_current_arch. | |
3695 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
3696 | ||
3b11a015 SS |
3697 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
3698 | ||
3699 | * ax-gdb.c (gen_fetch): Handle bool. | |
3700 | (gen_usual_unary): Ditto. | |
3701 | (gen_cast): Ditto. | |
3702 | (gen_equal): New function. | |
3703 | (gen_less): New function. | |
3704 | (gen_expr_binop_rest): Call them, also return integer type from | |
3705 | logical operations. | |
3706 | (gen_expr): Ditto. | |
3707 | ||
20781792 TT |
3708 | 2010-03-19 Tom Tromey <tromey@redhat.com> |
3709 | ||
3710 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
3711 | (jv_type_objfile_data_key): New globals. | |
3712 | (class_symtab): Move earlier. | |
3713 | (jv_per_objfile_free): New function. | |
3714 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
3715 | parameter. | |
3716 | Remove ancient #if 1. | |
3717 | (add_class_symbol): Remove redundant declaration. | |
3718 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
3719 | (java_link_class_type): Mark as static. Update. | |
3720 | (jv_clear_object_type): New function. | |
3721 | (set_java_object_type): Likewise. | |
3722 | (get_java_object_type): Use set_java_object_type. | |
3723 | (is_object_type): Likewise. | |
3724 | (_initialize_java_language): Register new objfile keys. | |
3725 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
3726 | (add_class_symtab_symbol): Update. | |
3727 | (type_from_class): Update. | |
3728 | ||
cf3e25ca SS |
3729 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
3730 | ||
8d95cc3b | 3731 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 3732 | |
f1ae44c9 | 3733 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
3734 | ||
3735 | GDB 7.1 released. | |
3736 | ||
4daf5ac0 SS |
3737 | 2010-03-18 Stan Shebs <stan@codesourcery.com> |
3738 | Pedro Alves <pedro@codesourcery.com> | |
3739 | ||
3740 | * target.h (struct target_ops): New method | |
3741 | to_set_circular_trace_buffer. | |
3742 | (target_set_circular_trace_buffer): New macro. | |
3743 | * target.c (update_current_target): Add | |
3744 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
3745 | default behavior. | |
3746 | * remote.c (remote_set_circular_trace_buffer): New function. | |
3747 | (init_remote_ops): Add it to vector. | |
3748 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
3749 | change buffer_size and buffer_free to int. | |
3750 | * tracepoint.c (circular_trace_buffer): New global. | |
3751 | (start_tracing): Send values of disconnected tracing and circular | |
3752 | trace buffer settings. | |
3753 | (set_circular_trace_buffer): New function. | |
3754 | (parse_trace_state): Handle total space and frames created. | |
3755 | (trace_status_command): Display total space and total frames | |
3756 | created. | |
3757 | (trace_save): Write out new status values. | |
3758 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
3759 | buffer_free and buffer_size to -1 by default. | |
3760 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
3761 | * NEWS: Mention the circular trace buffer option. | |
3762 | ||
40c549d6 TT |
3763 | 2010-03-18 Tom Tromey <tromey@redhat.com> |
3764 | ||
3765 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
3766 | in TRY_CATCH. | |
3767 | ||
e8d05480 JB |
3768 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
3769 | ||
3770 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
3771 | DIE has a name before creating the associated partial symbol. | |
3772 | (read_func_scope): Emit a complaint if the subprogram does not | |
3773 | have a name or when we can't extract the subprogram PC bounds. | |
3774 | ||
441b986a UW |
3775 | 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com> |
3776 | ||
3777 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
3778 | instead of selected frame architecture. | |
3779 | ||
4247603b PA |
3780 | 2010-03-18 Pedro Alves <pedro@codesourcery.com> |
3781 | ||
3782 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
3783 | a valid selected thread, and that it is not running. | |
3784 | (advance_command): Ditto. | |
3785 | (finish_command): Ditto. | |
3786 | ||
400c6af0 SS |
3787 | 2010-03-17 Stan Shebs <stan@codesourcery.com> |
3788 | ||
3a96536b SS |
3789 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
3790 | ||
573cda03 SS |
3791 | * infcall.c: Include tracepoint.h. |
3792 | (call_function_by_hand): Disallow calls in tfind mode. | |
3793 | * infcmd.c: Include tracepoint.h. | |
3794 | (ensure_not_tfind_mode): New function. | |
3795 | (continue_1): Call it. | |
3796 | (step_1) Ditto. | |
3797 | (jump_command): Ditto. | |
3798 | (signal_command): Ditto. | |
3799 | (advance_command): Ditto. | |
3800 | (until_command): Ditto. | |
3801 | (finish_command): Ditto. | |
3802 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
3803 | ||
400c6af0 SS |
3804 | * ax-gdb.h (struct axs_value): New field optimized_out. |
3805 | (gen_trace_for_var): Add gdbarch argument. | |
3806 | * ax-gdb.c (gen_trace_static_fields): New function. | |
3807 | (gen_traced_pop): Call it, add gdbarch argument. | |
3808 | (gen_trace_for_expr): Update call to it. | |
3809 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
3810 | (gen_struct_ref_recursive): Check for optimized-out value. | |
3811 | (gen_struct_elt_for_reference): Ditto. | |
3812 | (gen_static_field): Pass gdbarch instead of expression, assume | |
3813 | optimization if field not found. | |
3814 | (gen_var_ref): Set the optimized_out flag. | |
3815 | (gen_expr): Error on optimized-out variable. | |
3816 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
3817 | expressions, skip optimized-out variables with computed locations. | |
3818 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
3819 | erroring out if location expression missing. | |
3820 | (loclist_tracepoint_var_ref): Don't error out here. | |
3821 | ||
a3b2a86b TT |
3822 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
3823 | ||
3824 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
3825 | DWARF data is available. | |
3826 | ||
38963c97 DJ |
3827 | 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
3828 | ||
3829 | * symfile.c (generic_load): Reset breakpoints after loading. | |
3830 | ||
ddabfc73 TT |
3831 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
3832 | ||
3833 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
3834 | ||
d8c09fb5 JK |
3835 | 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3836 | ||
3837 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
3838 | create_breakpoint call, adjust the parameters. | |
3839 | ||
bbb0eef6 JK |
3840 | 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3841 | Chandru <chandru@in.ibm.com> | |
3842 | ||
3843 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
3844 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
3845 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
3846 | ||
46956e39 HZ |
3847 | 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org> |
3848 | ||
3849 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
3850 | ||
b8d088ac JB |
3851 | 2010-03-16 Joel Brobecker <brobecker@adacore.com> |
3852 | ||
3853 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
3854 | before doing the associated thread switch. | |
3855 | ||
322be962 DJ |
3856 | 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com> |
3857 | ||
3858 | * MAINTAINERS: Update my email address. | |
3859 | ||
8cdf0e15 VP |
3860 | 2010-03-16 Vladimir Prus <vladimir@codesourcery.com> |
3861 | ||
3862 | Simplify MI breakpoint setting. | |
3863 | ||
3864 | * breakpoint.c (break_command_really): Make nonstatic and | |
3865 | rename to... | |
3866 | (create_breakpoint): ...this. Rename prior function by this name | |
3867 | to... | |
3868 | (create_breakpoint_sal): ...this. | |
3869 | (create_breakpoints): Rename to... | |
3870 | (create_breakpoints_sal): ...this. | |
3871 | (set_breakpoint): Remove. | |
3872 | * breakpoint.h: Adjust to above changes. | |
3873 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
3874 | ||
b6e7192f SS |
3875 | 2010-03-15 Stan Shebs <stan@codesourcery.com> |
3876 | ||
3877 | * ax-gdb.c: Include cp-support.h. | |
3878 | (find_field): Remove. | |
3879 | (gen_primitive_field): New function. | |
3880 | (gen_struct_ref_recursive): New function. | |
3881 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
3882 | of find_field. | |
3883 | (gen_static_field): New function. | |
3884 | (gen_struct_elt_for_reference): New. | |
3885 | (gen_namespace_elt): New. | |
3886 | (gen_maybe_namespace_elt): New. | |
3887 | (gen_aggregate_elt_ref): New. | |
3888 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
3889 | ||
1054b214 TT |
3890 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
3891 | ||
3892 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
3893 | DW_TAG_subprogram. | |
3894 | ||
13387711 SW |
3895 | 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> |
3896 | ||
3897 | PR c++/7936: | |
3898 | * cp-support.h: Added char *declaration element to using_direct | |
3899 | data struct. | |
3900 | (cp_add_using): Added char *declaration argument. | |
3901 | (cp_add_using_directive): Ditto. | |
3902 | (cp_lookup_symbol_imports): made extern. | |
3903 | * cp-namespace.c: Updated with the above changes. | |
3904 | * dwarf2read.c (read_import_statement): Ditto. | |
3905 | (read_namespace): Ditto. | |
3906 | (read_import_statement): Support import declarations. | |
3907 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
3908 | declarations. | |
3909 | Added support for 'declaration_only' search. | |
3910 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
3911 | is before consideration of imports. | |
3912 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
3913 | search at every block level search. | |
3914 | Now takes language argument. | |
3915 | (lookup_symbol_aux): Updated. | |
3916 | ||
6e31430b TT |
3917 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
3918 | ||
3919 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
3920 | ||
4dea3bb7 | 3921 | 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change) |
bf307134 JB |
3922 | |
3923 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
3924 | * configure: Regenerate. | |
3925 | ||
4d9743af JK |
3926 | 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
3927 | ||
3928 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
3929 | and ".sdynbss". Update the comment. | |
3930 | ||
f75150fe JZ |
3931 | 2010-03-15 Jie Zhang <jie@codesourcery.com> |
3932 | ||
3933 | * MAINTAINERS: Update my email address. | |
3934 | ||
3c13bc11 DJ |
3935 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
3936 | ||
3937 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
3938 | ||
43484f03 DJ |
3939 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
3940 | ||
3941 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
3942 | (_initialize_charset): Correct type of w32_host_default_charset. | |
3943 | ||
5f25d77d PA |
3944 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
3945 | ||
3946 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
3947 | ||
1c809c68 TT |
3948 | 2010-03-12 Tom Tromey <tromey@redhat.com> |
3949 | ||
3950 | PR c++/9708: | |
3951 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
3952 | in a lexical block does not need a namespace. | |
3953 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
3954 | list_in_scope in all cases. | |
3955 | ||
948103cf SS |
3956 | 2010-03-12 Stan Shebs <stan@codesourcery.com> |
3957 | ||
3958 | * ax-gdb.c (gen_expr): Add shift expressions. | |
3959 | (gen_expr_binop_rest): Ditto. | |
3960 | ||
00ae8fef SW |
3961 | 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> |
3962 | ||
3963 | * buildsym.c (finish_block): Reset using_directives pointer | |
3964 | after block initialization. | |
3965 | ||
9cad29ac L |
3966 | 2010-03-12 H.J. Lu <hongjiu.lu@intel.com> |
3967 | ||
3968 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
3969 | * i386-tdep.c (i386_word_names): Likewise. | |
3970 | ||
2f4d8875 PA |
3971 | 2010-03-12 Pedro Alves <pedro@codesourcery.com> |
3972 | ||
3973 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
3974 | inspecting trace frames. | |
3975 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
3976 | dcache. | |
3977 | ||
ccf26247 JK |
3978 | 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3979 | ||
3980 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
3981 | for the PIC displacement, print also the displacement value. | |
3982 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
3983 | ||
477c84a7 KB |
3984 | 2010-03-10 Kevin Buettner <kevinb@redhat.com> |
3985 | ||
3986 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
3987 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
3988 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
3989 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
3990 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
3991 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
3992 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
3993 | comments describing each of these functions. | |
3994 | (mips_enter_debug, mips_exit_debug, common_open) | |
3995 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
3996 | blank line after the comment describing the function. | |
3997 | ||
01c30d6e JK |
3998 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
3999 | ||
4000 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
4001 | parameter displacementp. Update comment. | |
4002 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
4003 | element exists. Return if svr4_exec_displacement was not successful. | |
4004 | Update comment. | |
4005 | ||
09919ac2 JK |
4006 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
4007 | Daniel Jacobowitz <dan@codesourcery.com> | |
4008 | ||
4009 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
4010 | all program headers. | |
4011 | (read_program_headers_from_bfd): New function. | |
4012 | (svr4_static_exec_displacement): Remove and move the comment ... | |
4013 | (svr4_exec_displacement): ... here. Remove variable found. New | |
4014 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
4015 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
4016 | targets using read_program_headers_from_bfd. Remove the call of | |
4017 | svr4_static_exec_displacement. | |
4018 | ||
d146bf1e TT |
4019 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
4020 | ||
4021 | * dwarf2read.c (struct pubnames_header): Remove. | |
4022 | (_PUBNAMES_HEADER): Remove. | |
4023 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
4024 | (struct aranges_header): Remove. | |
4025 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
4026 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
4027 | (PUBNAMES_SECTION): Remove. | |
4028 | (ARANGES_SECTION): Remove. | |
4029 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
4030 | (dwarf2_build_psymtabs): Remove dead code. | |
4031 | (dwarf2_build_psymtabs_easy): Remove. | |
4032 | ||
be391dca TT |
4033 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
4034 | ||
4035 | * elfread.c (elf_symfile_read): Don't call | |
4036 | dwarf2_build_frame_info. | |
4037 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
4038 | (struct dwarf2_per_objfile) <objfile>: New field. | |
4039 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
4040 | (dwarf2_read_section): Check and set readin field. Call | |
4041 | posix_madvise. | |
4042 | (dwarf2_build_psymtabs): Don't read all sections. | |
4043 | (read_type_comp_unit_head): Read types section. | |
4044 | (create_debug_types_hash_table): Likewise. | |
4045 | (init_cu_die_reader): Add asserts. | |
4046 | (process_type_comp_unit): Add assert. | |
4047 | (dwarf2_build_psymtabs_hard): Read info section. | |
4048 | (load_partial_comp_unit): Add assert. | |
4049 | (create_all_comp_units): Read info section. | |
4050 | (load_full_comp_unit): Likewise. | |
4051 | (dwarf2_ranges_read): Read ranges section. | |
4052 | (dwarf2_record_block_ranges): Add assert. | |
4053 | (dwarf2_read_abbrevs): Read abbrev section. | |
4054 | (read_indirect_string): Read str section. | |
4055 | (dwarf_decode_line_header): Read line section. | |
4056 | (read_signatured_type_at_offset): Read types section. | |
4057 | (dwarf_decode_macros): Read macinfo section. | |
4058 | (dwarf2_symbol_mark_computed): Read loc section. | |
4059 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
4060 | dwarf2_build_frame_info. | |
4061 | (dwarf2_build_frame_info): Unconditionally set | |
4062 | dwarf2_frame_objfile_data on the objfile. | |
4063 | * configure.ac: Check for posix_madvise. | |
4064 | * config.in, configure: Rebuild. | |
4065 | ||
ccefe4c4 TT |
4066 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
4067 | ||
e38df1d0 TT |
4068 | * xcoffread.c (xcoff_start_psymtab): Update. |
4069 | (xcoff_end_psymtab): Update. | |
4070 | * psymtab.c (allocate_psymtab): Remove dead code. | |
4071 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
4072 | void*. | |
4073 | * mdebugread.c (parse_partial_symbols): Update. | |
4074 | (new_psymtab): Likewise. | |
4075 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
4076 | (psymtab_to_symtab_1): Update. | |
4077 | * dbxread.c (start_psymtab): Update. | |
4078 | (end_psymtab): Likewise. | |
4079 | ||
be391dca | 4080 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
e38df1d0 | 4081 | |
ccefe4c4 TT |
4082 | * xcoffread.c: Include psymtab.h. |
4083 | (xcoff_sym_fns): Update. | |
4084 | * symtab.h (struct partial_symbol): Remove. | |
4085 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
4086 | (struct partial_symtab): Remove. | |
4087 | (PSYMTAB_TO_SYMTAB): Remove. | |
4088 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
4089 | (find_pc_sect_psymtab): Remove. | |
4090 | (find_pc_sect_symtab_via_partial): Declare. | |
4091 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
4092 | (find_main_psymtab): Remove. | |
4093 | (find_main_filename): Declare. | |
4094 | (fixup_psymbol_section): Remove. | |
4095 | (fixup_section): Declare. | |
4096 | * symtab.c: Include psymtab.h. | |
4097 | (lookup_symtab): Use lookup_symtab method. | |
4098 | (lookup_partial_symtab): Remove. | |
4099 | (find_pc_sect_psymtab_closer): Remove. | |
4100 | (find_pc_sect_psymtab): Remove. | |
4101 | (find_pc_sect_symtab_via_partial): New function. | |
4102 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
4103 | (fixup_section): No longer static. | |
4104 | (fixup_psymbol_section): Remove. | |
4105 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
4106 | (lookup_global_symbol_from_objfile): Likewise. | |
4107 | (lookup_symbol_aux_psymtabs): Remove. | |
4108 | (lookup_symbol_aux_quick): New function. | |
4109 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
4110 | (lookup_partial_symbol): Remove. | |
4111 | (basic_lookup_transparent_type_quick): New function. | |
4112 | (basic_lookup_transparent_type): Use it. | |
4113 | (find_main_psymtab): Remove. | |
4114 | (find_main_filename): New function. | |
4115 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
4116 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
4117 | (output_partial_symbol_filename): New function. | |
4118 | (sources_info): Use map_partial_symbol_filenames. | |
4119 | (struct search_symbols_data): New type. | |
4120 | (search_symbols_file_matches): New function. | |
4121 | (search_symbols_name_matches): Likewise. | |
4122 | (search_symbols): Use expand_symtabs_matching method. | |
4123 | (struct add_name_data): Rename from add_macro_name_data. | |
4124 | (add_macro_name): Update. | |
4125 | (add_partial_symbol_name): New function. | |
4126 | (default_make_symbol_completion_list): Use | |
4127 | map_partial_symbol_names. | |
4128 | (struct add_partial_symbol_name): New type. | |
4129 | (maybe_add_partial_symtab_filename): New function. | |
4130 | (make_source_files_completion_list): Use | |
4131 | map_partial_symbol_filenames. | |
4132 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
4133 | * symmisc.c: Include psymtab.h. | |
4134 | (print_objfile_statistics): Use print_stats method. | |
4135 | (dump_objfile): Use dump method. | |
4136 | (dump_psymtab, maintenance_print_psymbols) | |
4137 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
4138 | (extend_psymbol_list): Remove. | |
4139 | * symfile.h (struct quick_symbol_functions): New struct. | |
4140 | (struct sym_fns) <qf>: New field. | |
4141 | (sort_pst_symbols): Remove. | |
4142 | (increment_reading_symtab): Declare. | |
4143 | * symfile.c: Include psymtab.h. | |
4144 | (compare_psymbols, sort_pst_symbols): Remove. | |
4145 | (psymtab_to_symtab): Remove. | |
4146 | (increment_reading_symtab): New function. | |
4147 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
4148 | method. | |
4149 | (set_initial_language): Use find_main_filename. | |
4150 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
4151 | (free_named_symtabs): Remove unused code. | |
4152 | (start_psymtab_common, add_psymbol_to_bcache) | |
4153 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
4154 | Remove. | |
4155 | * stack.c: Include psymtab.h, symfile.h. | |
4156 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
4157 | * source.h (psymtab_to_fullname): Don't declare. | |
4158 | * source.c: Include psymtab.h. | |
4159 | (select_source_symtab): Use find_last_source_symtab method. | |
4160 | (forget_cached_source_info): Use forget_cached_source_info | |
4161 | method. | |
4162 | (find_and_open_source): No longer static. | |
4163 | (psymtab_to_fullname): Remove. | |
4164 | * somread.c: Include psymtab.h. | |
4165 | (som_sym_fns): Update. | |
4166 | * psympriv.h: New file. | |
4167 | * psymtab.h: New file. | |
4168 | * psymtab.c: New file. | |
4169 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
4170 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
4171 | * objfiles.c: Include psymtab.h. | |
4172 | (objfile_relocate1): Use relocate method. | |
4173 | (objfile_has_partial_symbols): Use has_symbols method. | |
4174 | * mipsread.c: Include psymtab.h. | |
4175 | (ecoff_sym_fns): Update. | |
4176 | * mi/mi-cmd-file.c: Include psymtab.h. | |
4177 | (print_partial_file_name): New function. | |
4178 | (mi_cmd_file_list_exec_source_files): Use | |
4179 | map_partial_symbol_filenames. | |
4180 | * mdebugread.c: Include psympriv.h. | |
4181 | * machoread.c: Include psympriv.h. | |
4182 | (macho_sym_fns): Update. | |
4183 | * m2-exp.y (yylex): Use lookup_symtab. | |
4184 | * elfread.c: Include psympriv.h. | |
4185 | (elf_sym_fns): Update. | |
4186 | * dwarf2read.c: Include psympriv.h. | |
4187 | * dbxread.c: Include psympriv.h. | |
4188 | (aout_sym_fns): Update. | |
4189 | * cp-support.c: Include psymtab.h. | |
4190 | (read_in_psymtabs): Remove. | |
4191 | (make_symbol_overload_list_qualified): Use | |
4192 | expand_symtabs_for_function method. | |
4193 | * coffread.c: Include psympriv.h. | |
4194 | (coff_sym_fns): Update. | |
4195 | * blockframe.c: Include psymtab.h. | |
4196 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
4197 | * ada-lang.h (ada_update_initial_language): Update. | |
4198 | * ada-lang.c: Include psymtab.h. | |
4199 | (ada_update_initial_language): Remove 'main_pst' argument. | |
4200 | (ada_lookup_partial_symbol): Remove. | |
4201 | (struct ada_psym_data): New type. | |
4202 | (ada_add_psyms): New function. | |
4203 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
4204 | (struct add_partial_datum): New type. | |
4205 | (ada_add_partial_symbol_completions): New function. | |
4206 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
4207 | (ada_exception_support_info_sniffer): Update. | |
4208 | * Makefile.in (SFILES): Add psymtab.c. | |
4209 | (COMMON_OBS): Add psymtab.o. | |
4210 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
4211 | ||
7d8500b7 PM |
4212 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
4213 | ||
4214 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
4215 | ||
c0cc3a76 SW |
4216 | 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com> |
4217 | ||
4218 | PR C++/11236: | |
4219 | * cp-namespace.c (cp_add_using): Deleted. | |
4220 | (cp_add_using_directive): Use obstack allocations. | |
4221 | Merged the function cp_add_using into this one. | |
4222 | Added 'struct obstack *' argument. | |
4223 | (cp_scan_for_anonymous_namespaces): Updated. | |
4224 | * cp-support.h: Updated. | |
4225 | * dwarf2read.c (read_import_statement): Updated. | |
4226 | (read_namespace): Updated. | |
4227 | ||
452fa064 CF |
4228 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
4229 | ||
4230 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
4231 | ||
60e1c644 PA |
4232 | 2010-03-10 Pedro Alves <pedro@codesourcery.com> |
4233 | ||
4234 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
4235 | (is_hardware_watchpoint): Add comment. | |
4236 | (is_watchpoint): New. | |
4237 | (update_watchpoint): Don't reparse the watchpoint's condition | |
4238 | unless necessary. | |
4239 | (WP_IGNORE): New. | |
4240 | (watchpoint_check): Use it. | |
4241 | (bpstat_check_watchpoint): Handle it. | |
4242 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
4243 | conditions in a frame where it makes sense. | |
4244 | (watch_command_1): Store the innermost block of the condition | |
4245 | expression. | |
4246 | (delete_breakpoint): Delete the watchpoint condition expression. | |
4247 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
4248 | (struct breakpoint): New field `cond_exp_valid_block'. | |
4249 | ||
af6b7be1 JB |
4250 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
4251 | ||
4252 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
4253 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
4254 | ||
60c5c021 CF |
4255 | 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx> |
4256 | Pierre Muller <muller@ics.u-strasbg.fr> | |
4257 | ||
4258 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
4259 | from/to posix/win32. | |
4260 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
4261 | (windows_create_inferior): Make sure that cygallargs points to | |
4262 | original args in non Cygwin 1.7. case. | |
4263 | ||
60a1502a MS |
4264 | 2010-03-09 Michael Snyder <msnyder@vmware.com> |
4265 | ||
4266 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
4267 | after target_read_memory to get host byte order. | |
4268 | (i386_process_record): Ditto. | |
4269 | ||
94af9270 KS |
4270 | 2010-03-09 Keith Seitz <keiths@redhat.com> |
4271 | ||
4272 | Based on work from Daniel Jacobowitz <dan@codesourcery.com> | |
4273 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
4274 | print out const or volatile qualifiers, too. | |
4275 | (c_type_print_args): Add parameters show_artificial and language. | |
4276 | Skip artificial parameters when requested. | |
4277 | Use the appropriate language printer. | |
4278 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
4279 | parameters and pass language_c. | |
4280 | * dwarf2read.c (die_list): New file global. | |
4281 | (struct partial_die_info): Update comments for name field. | |
4282 | (pdi_needs_namespace): Renamed to ... | |
4283 | (die_needs_namespace): ... this. Rewrite. | |
4284 | (dwarf2_linkage_name): Remove. | |
4285 | (add_partial_symbol): Do not predicate the call to | |
4286 | partial_die_full_name based on pdi_needs_namespace. | |
4287 | Remove call to cp_check_possible_namespace_symbols and associated | |
4288 | outdated comments. | |
4289 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
4290 | (dwarf2_fullname): Update comments. | |
4291 | Use die_needs_namespace to assist in computing the name. | |
4292 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
4293 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
4294 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
4295 | dwarf2_linkage_name. | |
4296 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
4297 | (determine_class): Remove. | |
4298 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
4299 | except Ada. | |
4300 | (new_symbol): Unconditionally call dwarf2_name. | |
4301 | Compute the "linkage name" using dwarf2_physname. | |
4302 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
4303 | When determining to scan for anonymous C++ namespaces, ignore | |
4304 | the linkage name. | |
4305 | (dwarf2_physname): New function. | |
4306 | (dwarf2_full_name): Move content to new function and call | |
4307 | that. | |
4308 | (dwarf2_compute_name): "New" function. | |
4309 | (_initialize_dwarf2_read): Initialize die_list. | |
4310 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
4311 | physname. | |
4312 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
4313 | without a demangled name. | |
4314 | Print out type information for non-virtual methods. | |
c8d5aac9 | 4315 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 4316 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
4317 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
4318 | (decode_compound): Stop consuming at an open parenthesis. | |
4319 | Keep template parameters. | |
4320 | Keep any overload information. | |
4321 | Keep keywords like "const". | |
4322 | Remove paren_pointer. | |
4323 | Move is_quoted check from set_flags to here. | |
4324 | Remove #if 0 code from 2000. Ten years is long enough. | |
4325 | (find_method): Before comparing symbol names, canonicalize the string | |
4326 | from the user. | |
4327 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
4328 | (find_method_overload_end): New function. |
4329 | (set_flags): Remove. | |
c8d5aac9 L |
4330 | (decode_compound): Assume that parentheses are matched. |
4331 | It's a lot easier. | |
94af9270 KS |
4332 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
4333 | to cplus_demangle. | |
4334 | * linespec.c (decode_line_1): Keep important keywords like | |
4335 | "const" and "volatile". | |
4336 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
4337 | * typeprint.h (c_type_print_args): Add declaration. | |
4338 | * ui-file.c (do_ui_file_obsavestring): New function. | |
4339 | (ui_file_obsavestring): New function. | |
4340 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
4341 | * valops.c (find_overload_match): Resolve the object to | |
4342 | a non-pointer type. | |
4343 | If the object is a data member, search the object for the member | |
4344 | and return with staticp set. | |
4345 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
4346 | Do not attempt to extract a function name from non-function types. | |
4347 | If the extracted function name and the original name are the same, | |
4348 | we don't have a C++ method. | |
4349 | ||
8d95cc3b PA |
4350 | From Jan Kratochvil <jan.kratochvil@redhat.com>: |
4351 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
4352 | |
4353 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
4354 | and arguments from symbol lookups. | |
4355 | * ax-gdb.c (gen_expr): Likewise. | |
4356 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
4357 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
4358 | lookup_possible_namespace_symbol): Likewise. | |
4359 | * cp-support.c (read_in_psymtabs): Likewise. | |
4360 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
4361 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
4362 | * scm-valprint.c (scm_inferior_print): Likewise. | |
4363 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
4364 | * solib-svr.c (elf_lookup_lib): Likewise. | |
4365 | * solib.c (show_auto_solib_add): Likewise. | |
4366 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
4367 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
4368 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
4369 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
4370 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
4371 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
4372 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
4373 | basic_lookup_transparent_type, find_main_psymtab, | |
4374 | lookup_block_symbol): Likewise. | |
4375 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
4376 | lookup_symbol_global, lookup_symbol_aux_block, | |
4377 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
4378 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
4379 | ||
9cb74f47 PM |
4380 | 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr> |
4381 | ||
4382 | * python/python-internal.h: Include symtab.h. | |
4383 | ||
af6b7be1 JB |
4384 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
4385 | Pierre Muller <muller@ics.u-strasbg.fr> | |
e13eedd5 PM |
4386 | |
4387 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
4388 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
4389 | indentation. | |
4390 | ||
bad56014 TT |
4391 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
4392 | ||
4393 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
4394 | ||
08105857 PA |
4395 | 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com> |
4396 | Pedro Alves <pedro@codesourcery.com> | |
4397 | ||
4398 | * solib.c (solib_find): Replace extension if | |
4399 | solib_symbols_extension is set in the target gdbarch. | |
4400 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
4401 | solib_symbols_extension to "sym". | |
4402 | * gdbarch.sh (solib_symbols_extension): New variable. | |
4403 | (pstring): New function. | |
4404 | * gdbarch.h, gdbarch.c: Regenerate. | |
4405 | ||
7c953934 TT |
4406 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
4407 | ||
4408 | PR cli/9591: | |
4409 | * NEWS: Update. | |
4410 | * utils.c: Include main.h. | |
4411 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
4412 | (defaulted_query): Use default answer if `batch_flag'. | |
4413 | * main.h (batch_flag): Declare. | |
4414 | * main.c (batch_flag): New global. | |
4415 | (captured_main): Remove 'batch'. Update. | |
4416 | ||
bbd2783e KB |
4417 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
4418 | ||
4419 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
4420 | and Kevin Buettner: | |
4421 | ||
4422 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
4423 | (MON_ROCKHOPPER): New mips_monitor_type. | |
4424 | (read_hex_value): New function. | |
4425 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 4426 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
4427 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
4428 | (rockhopper_open): New function. | |
4429 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
4430 | read_hex_value to parse them and mips_set_register to commit them. | |
4431 | (mips_set_register): New function. | |
4432 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
4433 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
4434 | (mips_store_registers): Use a 'T' packet to set registers when | |
4435 | using MON_ROCKHOPPER. | |
4436 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
4437 | and expect the total to be printed before the entry address. | |
4438 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
4439 | ||
566f3d17 KB |
4440 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
4441 | ||
4442 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
4443 | Change return value to int. Store value fetched in location | |
4444 | addressed by `val'. Use function's return value as success | |
4445 | or failure indicator. Adjust all callers. | |
4446 | ||
9c8ee2ab | 4447 | 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr> |
f72d4b77 PM |
4448 | |
4449 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
4450 | ||
7155de5a HZ |
4451 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4452 | Hui Zhu <teawater@gmail.com> | |
4453 | ||
4454 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
4455 | tmp_to_stopped_data_address. | |
4456 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
4457 | tmp_to_stopped_data_address. | |
4458 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
4459 | to_stopped_data_address. | |
4460 | ||
580879fc HZ |
4461 | 2010-03-08 Hui Zhu <teawater@gmail.com> |
4462 | ||
4463 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
4464 | ||
b0fcb67f JK |
4465 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4466 | ||
4467 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
4468 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
4469 | ||
08597104 JB |
4470 | 2010-03-08 Joel Brobecker <brobecker@adacore.com> |
4471 | ||
4472 | Memory error when reading wrong core file. | |
4473 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
4474 | errors while reading the inferior memory, and return zero if | |
4475 | an exception was raised. | |
4476 | ||
425b824a MS |
4477 | 2010-03-07 Michael Snyder <msnyder@vmware.com> |
4478 | ||
ec6dbf37 MS |
4479 | * record.c (record_restore): Rename tmpu8 to rectype. |
4480 | ||
648d0c8b MS |
4481 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
4482 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
4483 | ||
4484 | (i386_record_push): Rename local tmpulongest to addr. | |
4485 | ||
4486 | (i386_process_record): Rename local tmpulongest to addr. | |
4487 | ||
4488 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
4489 | addr64. | |
955db0c0 MS |
4490 | |
4491 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 4492 | |
10760264 JB |
4493 | 2010-03-07 Joel Brobecker <brobecker@adacore.com> |
4494 | ||
4495 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 4496 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 4497 | |
b3c613f2 CF |
4498 | 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx> |
4499 | ||
4500 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
4501 | block. Define helper macros to reduce ifdefs in code. | |
4502 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
4503 | size. Call unadorned GetModuleFileNameEx rather than | |
4504 | GetModuleFileNameEx*. | |
4505 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
4506 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
4507 | appropriate. | |
4508 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
4509 | (handle_load_dll): Likewise. | |
4510 | (windows_pid_to_exec_file): Likewise. | |
4511 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
4512 | non-Cygwin. | |
4513 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
4514 | __USEWIDE conditional. | |
4515 | (bad_GetModuleFileNameExA): Likewise. | |
4516 | (_initialize_loadable): Just use real function names without the dyn_ | |
4517 | part since they are defined earlier. | |
4518 | ||
f870a310 TT |
4519 | 2010-03-05 Corinna Vinschen <vinschen@redhat.com> |
4520 | Tom Tromey <tromey@redhat.com> | |
4521 | ||
4522 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
4523 | (parse_escape): Likewise. | |
4524 | * python/py-utils.c (unicode_to_target_string): Update. | |
4525 | (unicode_to_target_python_string): Update. | |
4526 | (target_string_to_unicode): Update. | |
4527 | * printcmd.c (printf_command): Update. | |
4528 | * p-exp.y (yylex): Update. | |
4529 | * objc-exp.y (yylex): Update. | |
4530 | * mi/mi-parse.c: Include charset.h. | |
4531 | (mi_parse_escape): New function. | |
4532 | (mi_parse_argv): Use it. | |
4533 | * jv-exp.y (yylex): Update. | |
4534 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
4535 | function. | |
4536 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
4537 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
4538 | * gdbarch.c: Rebuild. | |
4539 | * gdbarch.h: Rebuild. | |
4540 | * defs.h (parse_escape): Update. | |
4541 | * cli/cli-setshow.c: Include arch-utils.h. | |
4542 | (do_setshow_command): Update. | |
4543 | * cli/cli-cmds.c (echo_command): Update. | |
4544 | * charset.h (target_charset, target_wide_charset): Update. | |
4545 | * charset.c: Include arch-utils.h. | |
4546 | (target_charset_name): Default to "auto". | |
4547 | (target_wide_charset_name): Likewise. | |
4548 | (show_target_charset_name): Handle "auto". | |
4549 | (show_target_wide_charset_name): Likewise. | |
4550 | (be_le_arch): New global. | |
4551 | (set_be_le_names): Add 'gdbarch' argument. | |
4552 | (validate): Likewise. Don't call set_be_le_names. | |
4553 | (set_charset_sfunc, set_host_charset_sfunc) | |
4554 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
4555 | Update. | |
4556 | (target_charset): Add 'gdbarch' argument. | |
4557 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
4558 | (auto_target_charset_name): New global. | |
4559 | (default_auto_charset, default_auto_wide_charset): New functions. | |
4560 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
4561 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
4562 | USE_WIN32API. | |
4563 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
4564 | remove 'byte_order' argument. Update. | |
4565 | (classify_type): Likewise. | |
4566 | (c_emit_char): Update. | |
4567 | (c_printchar): Update. | |
4568 | (c_printstr): Update. | |
4569 | (c_get_string): Update. | |
4570 | (evaluate_subexp_c): Update. | |
4571 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
4572 | Declare. | |
4573 | * python/python.c (gdbpy_target_charset): New function. | |
4574 | (gdbpy_target_wide_charset): Likewise. | |
4575 | (GdbMethods): Update. | |
4576 | * NEWS: Update. | |
4577 | ||
4e7386b0 UW |
4578 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
4579 | ||
4580 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
4581 | off high address bits. | |
4582 | ||
aab48ede UW |
4583 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
4584 | ||
4585 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
4586 | address as UnsignedLongLong, not LongLong. | |
4587 | ||
8eeafb51 | 4588 | 2010-03-05 Kevin Buettner <kevinb@redhat.com> |
c8d5aac9 | 4589 | Pedro Alves <pedro@codesourcery.com> |
8eeafb51 KB |
4590 | |
4591 | * remote-mips.c (gdbthread.h): Include. | |
4592 | (remote_mips_ptid): Declare. | |
4593 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
4594 | (common_open): Set inferior_ptid, add it as an inferior, and | |
4595 | as a thread too. Delete FIXME comment regarding start_remote(). | |
4596 | (mips_close): Invoke generic_mourn_inferior(). | |
4597 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
4598 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
4599 | it's now invoked from mips_close(). | |
4600 | (mips_load): Don't null out inferior_ptid. Don't call | |
4601 | clear_symtab_users(). | |
4602 | (mips_thread_alive, mips_pid_to_str): New functions. | |
4603 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
4604 | to_thread_alive and to_pid_to_str operations. | |
4605 | ||
ae411497 TT |
4606 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
4607 | ||
4608 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
4609 | in DWARF 3 and later. | |
4610 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
4611 | ||
0e0b460e KS |
4612 | 2010-03-04 Keith Seitz <keiths@redhat.com> |
4613 | ||
4614 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
4615 | If the filename portion of the linespec was quoted, recheck the | |
4616 | remainder for additional quoting. | |
4617 | (locate_first_half): Skip over completer chars, too. | |
4618 | ||
1b93ff13 TT |
4619 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
4620 | ||
4621 | * printcmd.c (printf_command): Pass dummy argument to | |
4622 | printf_filtered. | |
4623 | ||
fc36e839 DE |
4624 | 2010-03-04 Doug Evans <dje@google.com> |
4625 | ||
111f853c DE |
4626 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
4627 | unwound_fp. | |
4628 | ||
fc36e839 DE |
4629 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
4630 | ||
c7437ca6 PA |
4631 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
4632 | ||
4633 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
4634 | the software watchpoint isn't watching any memory. | |
4635 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
4636 | ||
58dadb1b PA |
4637 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
4638 | ||
4639 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
4640 | level interpreter before dereferencing it. If there isn't one, | |
4641 | don't paginate either. | |
4642 | ||
50e98be4 DJ |
4643 | 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
4644 | ||
4645 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
4646 | the state right when single stepping. | |
4647 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
4648 | Get the next PC along with the instruction state. | |
4649 | (thumb_get_next_pc): Remove. | |
4650 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
4651 | ||
2e3ceee9 HZ |
4652 | 2010-03-04 Hui Zhu <teawater@gmail.com> |
4653 | ||
4654 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
4655 | ||
390a8aca PA |
4656 | 2010-03-03 Pedro Alves <pedro@codesourcery.com> |
4657 | ||
4658 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
4659 | top level interpreter is MI. | |
4660 | ||
9355b391 SS |
4661 | 2010-03-03 Stan Shebs <stan@codesourcery.com> |
4662 | ||
4663 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
4664 | * tracepoint.c (validate_actionline): Ditto. | |
4665 | (encode_actions): Add location argument. | |
4666 | (trace_dump_command): Check all locations to see if stepping | |
4667 | frame. | |
390a8aca | 4668 | |
8685c86f L |
4669 | 2010-03-03 H.J. Lu <hongjiu.lu@intel.com> |
4670 | Eli Zaretskii <eliz@gnu.org> | |
4671 | ||
4672 | * NEWS: Add X86 general purpose registers section. | |
4673 | ||
e8f781e2 TT |
4674 | 2010-03-03 Tom Tromey <tromey@redhat.com> |
4675 | ||
4676 | PR mi/11098: | |
4677 | * varobj.c (install_new_value): Handle case where new print_value | |
4678 | is NULL. | |
4679 | ||
a0e0ef55 TT |
4680 | 2010-03-03 Dainis Jonitis <jonitis@gmail.com> |
4681 | ||
4682 | PR gdb/11345: | |
4683 | * printcmd.c (printf_command): Print end of format string using | |
4684 | printf_filtered. | |
4685 | ||
a58d7472 TT |
4686 | 2010-03-02 Tom Tromey <tromey@redhat.com> |
4687 | ||
4688 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
4689 | * defs.h (read_command_lines_1): Add missing 'void'. | |
4690 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
4691 | 'void'. | |
4692 | (read_next_line): Likewise. | |
4693 | (read_command_lines_1): Likewise. | |
4694 | ||
ce50d78b UW |
4695 | 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com> |
4696 | ||
4697 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
4698 | store backchain as part of prologue. | |
4699 | ||
7e9af34a DJ |
4700 | 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com> |
4701 | ||
4702 | * progspace.c (update_address_spaces): Update inferior address spaces | |
4703 | also. | |
4704 | ||
01637564 DE |
4705 | 2010-03-02 Doug Evans <dje@google.com> |
4706 | ||
4707 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
4708 | lowpc,highpc args to addrmap_set_empty. | |
4709 | ||
1ba53b71 L |
4710 | 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> |
4711 | ||
4712 | * amd64-tdep.c (amd64_byte_names): New. | |
4713 | (amd64_word_names): Likewise. | |
4714 | (amd64_dword_names): Likewise. | |
4715 | (amd64_pseudo_register_name): Likewise. | |
4716 | (amd64_pseudo_register_read): Likewise. | |
4717 | (amd64_pseudo_register_write): Likewise. | |
4718 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
4719 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
4720 | set_gdbarch_pseudo_register_write and | |
4721 | set_tdesc_pseudo_register_name. Don't call | |
4722 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
4723 | ||
4724 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
4725 | (i386_num_pseudo_regs): Likewise. | |
4726 | (i386_byte_names): New. | |
4727 | (i386_word_names): Likewise. | |
4728 | (i386_byte_regnum_p): Likewise. | |
4729 | (i386_word_regnum_p): Likewise. | |
4730 | (i386_mmx_regnum_p): Updated. | |
4731 | (i386_pseudo_register_name): Make it global. Handle byte and | |
4732 | word pseudo-registers. | |
4733 | (i386_pseudo_register_read): Likewise. | |
4734 | (i386_pseudo_register_write): Likewise. | |
4735 | (i386_pseudo_register_type): Handle byte, word and dword | |
4736 | pseudo-registers | |
4737 | (i386_register_reggroup_p): Don't include pseudo | |
4738 | registers, except for MXX, in any register groups. Don't | |
4739 | include pseudo byte, word, dword registers in general_reggroup. | |
4740 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
4741 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
4742 | pseudo-registers after word pseudo-registers. Call | |
4743 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
4744 | ||
4745 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
4746 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
4747 | eax_regnum. | |
4748 | (i386_byte_regnum_p): New. | |
4749 | (i386_word_regnum_p): Likewise. | |
4750 | (i386_dword_regnum_p): Likewise. | |
4751 | (i386_pseudo_register_name): Likewise. | |
4752 | (i386_pseudo_register_read): Likewise. | |
4753 | (i386_pseudo_register_write): Likewise. | |
4754 | ||
a6f5ef51 L |
4755 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
4756 | ||
4757 | * target-descriptions.c (tdesc_type): Remove | |
4758 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
4759 | (tdesc_predefined_types): Likewise. | |
4760 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
4761 | if flag name is empty. | |
4762 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
4763 | ||
4764 | * features/i386/32bit-core.xml: Define i386_eflags. | |
4765 | * features/i386/64bit-core.xml: Likewise. | |
4766 | ||
4767 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
4768 | * features/i386/64bit-sse.xml: Likewise. | |
4769 | ||
4770 | * features/i386/amd64-linux.c: Regenerated. | |
4771 | * features/i386/amd64.c: Likewise. | |
4772 | * features/i386/i386-linux.c: Likewise. | |
4773 | * features/i386/i386.c: Likewise. | |
4774 | ||
f5dff777 DJ |
4775 | 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com> |
4776 | ||
4777 | * gdbtypes.c (append_composite_type_field_raw): New. | |
4778 | (append_composite_type_field_aligned): Use the new function. | |
4779 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
4780 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
4781 | (struct tdesc_type_flag): New type. | |
4782 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
4783 | kind. Add size to u.u. Add u.f for flags. | |
4784 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
4785 | (tdesc_free_type): Likewise. | |
4786 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
4787 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
4788 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
4789 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
4790 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
4791 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
4792 | current_type. Add current_type_size and current_type_is_flags. | |
4793 | (tdesc_start_union): Clear the new fields. | |
4794 | (tdesc_start_struct, tdesc_start_flags): New. | |
4795 | (tdesc_start_field): Handle struct fields, including bitfields. | |
4796 | (field_attributes): Make type optional. Add start and end. | |
4797 | (union_children): Rename to struct_union_children. | |
4798 | (union_attributes): Rename to struct_union_attributes. Add optional | |
4799 | size. | |
4800 | (flags_attributes): New. | |
4801 | (feature_children): Add struct and flags. | |
4802 | * features/gdb-target.dtd: Add flags and struct to features. | |
4803 | Make field type optional. Add field start and end. | |
4804 | ||
90884b2b L |
4805 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
4806 | ||
4807 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
4808 | (amd64_linux_read_description): Likewise. | |
4809 | (_initialize_amd64_linux_nat): Set to_read_description to | |
4810 | amd64_linux_read_description. | |
4811 | ||
4812 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
4813 | (amd64_linux_register_name): Removed. | |
4814 | (amd64_linux_register_type): Likewise. | |
4815 | (amd64_linux_core_read_description): New. | |
4816 | (amd64_linux_init_abi): Set target description to | |
4817 | tdesc_amd64_linux if needed. Support orig_rax in target | |
4818 | description. Don't call set_gdbarch_register_name nor | |
4819 | set_gdbarch_register_type. Call | |
4820 | set_gdbarch_core_read_description. | |
4821 | (_initialize_amd64_linux_tdep): Call | |
4822 | initialize_tdesc_amd64_linux. | |
4823 | ||
4824 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
4825 | ||
4826 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
4827 | (amd64_register_names): Removed. | |
4828 | (amd64_register_name): Likewise. | |
4829 | (amd64_register_type): Likewise. | |
4830 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 4831 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
4832 | set_gdbarch_register_name nor set_gdbarch_register_type. |
4833 | (_initialize_amd64_tdep): New. | |
4834 | ||
4835 | * i386-linux-nat.c (i386_linux_read_description): New. | |
4836 | (_initialize_i386_linux_nat): Set to_read_description to | |
4837 | i386_linux_read_description. | |
4838 | ||
4839 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
4840 | (i386_linux_register_name): Removed. | |
4841 | (i386_linux_core_read_description): New. | |
4842 | (i386_linux_read_description): Likewise. | |
4843 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
4844 | Set target description to tdesc_i386_linux if needed. Support | |
4845 | orig_eax. Set register_reggroup_p. Call | |
4846 | set_gdbarch_core_read_description. | |
4847 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
4848 | ||
4849 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
4850 | ||
4851 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
4852 | with I387_NUM_REGS. | |
4853 | ||
4854 | * i386-tdep.c: Include "features/i386/i386.c". | |
4855 | (i386_register_names): Make it const. | |
4856 | (i386_mmx_names): Likewise. | |
4857 | (i386_num_register_names): Removed. | |
4858 | (i386_register_name): Likewise. | |
4859 | (i386_eflags_type): Likewise. | |
4860 | (i386_mxcsr_type): Likewise. | |
4861 | (i386_sse_type): Likewise. | |
4862 | (i386_register_type): Likewise. | |
4863 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
4864 | (i386_pseudo_register_name): New. | |
4865 | (i386_pseudo_register_type): Likewise. | |
4866 | (i386_mmx_type): Make it static. | |
4867 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
4868 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
4869 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
4870 | Set register_reggroup_p. Set target description to tdesc_i386 | |
4871 | if needed. Call set_tdesc_pseudo_register_type, | |
4872 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
4873 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
4874 | initialize_tdesc_x86_64. | |
4875 | ||
4876 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
4877 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
4878 | register_names, tdesc and register_reggroup_p. | |
4879 | (I386_NUM_FREGS): Removed. | |
4880 | (i386_eflags_type): Likewise. | |
4881 | (i386_mxcsr_type): Likewise. | |
4882 | (i386_mmx_type): Likewise. | |
4883 | (i386_sse_type): Likewise. | |
4884 | (i386_register_name): Likewise. | |
4885 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
4886 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
4887 | ||
4888 | * i387-tdep.h (I387_NUM_REGS): New. | |
4889 | ||
4890 | * regformats/i386/i386-linux.dat: Generated. | |
4891 | * regformats/i386/i386.dat: Likewise. | |
4892 | * regformats/i386/amd64-linux.dat: Likewise. | |
4893 | * regformats/i386/amd64.dat: Likewise. | |
4894 | ||
4895 | * regformats/reg-i386-linux.dat: Removed. | |
4896 | * regformats/reg-i386.dat: Likewise. | |
4897 | * regformats/reg-x86-64-linux.dat: Likewise. | |
4898 | * regformats/reg-x86-64.dat: Likewise. | |
4899 | ||
d0d0ab16 CV |
4900 | 2010-03-01 Corinna Vinschen <vinschen@redhat.com> |
4901 | ||
4902 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
4903 | cygwin_conv_path API rather than the deprecated | |
4904 | cygwin_conv_to_full_posix_path. | |
4905 | * windows-nat.c: | |
4906 | (GetModuleFileNameExA): Undefine for Cygwin. | |
4907 | (GetModuleFileNameExW): Define for Cygwin. | |
4908 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
4909 | Call GetModuleFileNameExW and convert path to POSIX using | |
4910 | cygwin_conv_path. | |
4911 | (windows_make_so): Always define p. Drop unused variable m. | |
4912 | Don't use Win32 functions to check file existance, rather use | |
4913 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
4914 | Use canonicalize_file_name to get full path. | |
4915 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
4916 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
4917 | use correct target buffer size in call to WideCharToMultiByte. | |
4918 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
4919 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
4920 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
4921 | and use CreateProcessW on Cygwin. | |
4922 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
4923 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
4924 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
4925 | (_initialize_loadable): Load GetModuleFileNameExW into | |
4926 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
4927 | ||
dc00d89f PM |
4928 | 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> |
4929 | ||
4930 | PR python/11036 | |
4931 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
4932 | to cope with user provided blocks. | |
4933 | ||
0e095b7e JK |
4934 | 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4935 | ||
4936 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
4937 | New comment. | |
4938 | ||
2f9e05b4 CV |
4939 | 2010-02-28 Corinna Vinschen <vinschen@redhat.com> |
4940 | ||
4941 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
4942 | (COMMON_OBS): ... to here since it's used unconditionally. | |
4943 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
4944 | (SFILES): To here. | |
4945 | ||
eb195664 DD |
4946 | 2010-02-26 David Daney <ddaney@caviumnetworks.com> |
4947 | ||
4948 | * mips-linux-tdep.c: Update struct sigframe comments. | |
4949 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
4950 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
4951 | this_frame's sp. | |
4952 | (mips_linux_n32n64_sigframe_init): Same. | |
4953 | ||
97b0f3e2 KB |
4954 | 2010-02-26 Kevin Buettner <kevinb@redhat.com> |
4955 | ||
4956 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
4957 | invalidating regcache. | |
4958 | ||
4069ebbe DJ |
4959 | 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
4960 | ||
4961 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
4962 | ||
05071a4d PA |
4963 | 2010-02-26 Pedro Alves <pedro@codesourcery.com> |
4964 | ||
4965 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
4966 | support. | |
4967 | ||
6063c216 UW |
4968 | 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com> |
4969 | ||
4970 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
4971 | add ADDR_SIZE member. | |
4972 | (allocate_piece_closure): Update. | |
4973 | (copy_pieced_value_closure): Likewise. | |
4974 | (dwarf2_evaluate_loc_desc): Likewise. | |
4975 | (read_pieced_value): Use DWARF address size instead of | |
4976 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
4977 | ||
5107b149 | 4978 | 2010-02-26 Phil Muldoon <pmuldoon@redhat.com> |
c8d5aac9 | 4979 | Tom Tromey <tromey@redhat.com> |
5107b149 PM |
4980 | |
4981 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
4982 | If provided restrict lookup to specified blocks. | |
4983 | (gdbpy_lookup_type): Likewise. | |
4984 | (typy_lookup_type): Likewise. | |
4985 | ||
78664fa3 | 4986 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8d95cc3b | 4987 | |
78664fa3 PA |
4988 | Symbian config |
4989 | ||
4990 | gdb/ | |
4991 | * arm-symbian-tdep.c: New. | |
4992 | * configure.tgt (arm*-*-symbianelf*): New target. | |
4993 | (*-*-symbianelf*): New OS. | |
4994 | * osabi.c (gdb_osabi_names): Add Symbian. | |
4995 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
4996 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
4997 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
4998 | ||
eb73e134 DJ |
4999 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
5000 | ||
5001 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
5002 | ||
46ef47e5 PA |
5003 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5004 | ||
5005 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
5006 | ||
f3e9a817 | 5007 | 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> |
8d95cc3b | 5008 | Tom Tromey <tromey@redhat.com> |
f3e9a817 PM |
5009 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
5010 | ||
5011 | * python/python.c (_initialize_python): Call | |
5012 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
5013 | gdbpy_initialize_blocks. | |
5014 | * python/python-internal.h: Declare struct symbol, block and | |
5015 | symtab_and_line. Declare block_object_type and | |
5016 | symbol_object_type | |
5017 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
5018 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
5019 | (symbol_to_symbol_object, block_to_block_object) | |
5020 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
5021 | (gdbpy_initialize_blocks ): Declare. | |
5022 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
5023 | (frapy_select): Add methods. | |
5024 | (frapy_read_var): Add symbol branch. | |
5025 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
5026 | py-block. | |
5027 | (SUBDIR_PYTHON_SRCS): Likewise. | |
5028 | (py-symbol.o): New rule. | |
5029 | (py-symtab.o): Likewise. | |
5030 | (py-block.o): Likewise. | |
5031 | * python/py-symbol.c: New file. | |
5032 | * python/py-symtab.c: Likewise. | |
5033 | * python/py-block.c: Likewise. | |
5034 | ||
24291992 PA |
5035 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5036 | ||
5037 | PR gdb/11321 | |
5038 | ||
5039 | * inferior.h (prepare_for_detach): Declare. | |
5040 | (struct inferior) <detaching>: New field. | |
5041 | * infrun.c (prepare_for_detach): New. | |
5042 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
5043 | * target.c (target_detach): Call prepare_for_detach. | |
5044 | ||
fc1cf338 PA |
5045 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5046 | ||
5047 | Per-process displaced stepping queue. | |
5048 | ||
5049 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
5050 | (displaced_step_gdbarch, displaced_step_closure, | |
5051 | (displaced_step_original, displaced_step_copy): Move globals to | |
5052 | this... | |
5053 | (struct displaced_step_inferior_state): ... new structure. | |
5054 | (displaced_step_inferior_states): New global. | |
5055 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
5056 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
5057 | functions. | |
5058 | (displaced_step_clear): Add displaced_step_inferior_state | |
5059 | parameter, and adjust to handle it. | |
5060 | (displaced_step_clear_cleanup): Parameter is now a | |
5061 | displaced_step_inferior_state. Adjust. | |
5062 | (displaced_step_prepare): Adjust. | |
5063 | (displaced_step_fixup, displaced_step_fixup) | |
5064 | (infrun_thread_ptid_changed, resume): Adjust. | |
5065 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
5066 | (infrun_thread_stop_requested): Rewrite. | |
5067 | (_initialize_infrun): Install infrun_inferior_exit as | |
5068 | inferior_exit observer. | |
5069 | ||
0723dbf5 PA |
5070 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5071 | ||
5072 | * inferior.h (ptid_match): Declare. | |
5073 | * infrun.c (ptid_match): New. | |
5074 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
5075 | (handle_notification): Add debug output. | |
5076 | * linux-nat.c (ptid_match): Delete. | |
5077 | ||
09de9781 DM |
5078 | 2010-02-24 David S. Miller <davem@davemloft.net> |
5079 | ||
5080 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
5081 | * syscalls/sparc-linux.xml: New. | |
5082 | * syscalls/sparc64-linux.xml: New. | |
5083 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
5084 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
5085 | (sparc32_linux_get_syscall_number): New function. | |
5086 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
5087 | syscall number fetcher. | |
5088 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
5089 | (sparc64_linux_get_syscall_number): New function. | |
5090 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
5091 | syscall number fetcher. | |
5092 | ||
a79b8f6e VP |
5093 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
5094 | ||
5095 | Multiexec MI | |
5096 | ||
5097 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
5098 | * inferior.c (add_inferior_silent): Notify inferior_added | |
5099 | observer. | |
5100 | (delete_inferior_1): Notify inferior_removed observer. | |
5101 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
5102 | (inferior_appeared): Likewise. | |
5103 | (add_inferior_with_spaces): New. | |
5104 | (add_inferior_command): Use the above. | |
5105 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
5106 | Declare. | |
5107 | ||
5108 | * inflow.c (inflow_inferior_exit): Likewise. | |
5109 | * jit.c (jit_inferior_exit_hook): Likewise. | |
5110 | ||
5111 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
5112 | remove-inferior. | |
5113 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
5114 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
5115 | (report_initial_inferior): New. | |
5116 | (mi_inferior_removed): Register the above. Make sure | |
5117 | inferior_added observer is called on the first inferior. | |
5118 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
5119 | inferior number, not pid. | |
5120 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
5121 | affected. | |
5122 | * mi/mi-main.c (current_context): New. | |
5123 | (proceed_thread_callback): Use typed closure. | |
5124 | Proceed everything if pid is 0. Most implementation split into | |
5125 | (proceed_thread): ... this. | |
5126 | (run_one_inferior): New. | |
5127 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
5128 | Adjust for multiexec behaviour. | |
5129 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
5130 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
5131 | Do some extra checks. | |
5132 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
5133 | options. | |
5134 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
5135 | ||
115d30f9 VP |
5136 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
5137 | ||
5138 | Make -exec-run a proper MI commands. | |
5139 | ||
5140 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
5141 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
5142 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
5143 | ||
06cd862c PA |
5144 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5145 | Stan Shebs <stan@codesourcery.com> | |
5146 | ||
5147 | * tracepoint.h (set_traceframe_number) | |
5148 | (cleanup_restore_current_traceframe): Declare. | |
5149 | * tracepoint.c (set_traceframe_number): New. | |
5150 | (struct current_traceframe_cleanup): New. | |
5151 | (do_restore_current_traceframe_cleanup) | |
5152 | (restore_current_traceframe_cleanup_dtor) | |
5153 | (make_cleanup_restore_current_traceframe): New. | |
5154 | * infrun.c: Include tracepoint.h. | |
5155 | (fetch_inferior_event): Switch out and in of tfind mode. | |
5156 | ||
ab92d69b PA |
5157 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
5158 | ||
5159 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
5160 | bp_shlib_event breakpoints. | |
5161 | * solib-frv.c (enable_break): Remove call to | |
5162 | remove_solib_event_breakpoints. | |
5163 | * solib-svr4.c (enable_break): Ditto. | |
5164 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
5165 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
5166 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
5167 | * solib-spu.c (spu_enable_break): Ditto. | |
5168 | ||
e707a91d PA |
5169 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
5170 | ||
5171 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
5172 | ||
cfce2ea2 PA |
5173 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
5174 | ||
5175 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
5176 | ||
05566b3b TT |
5177 | 2010-02-23 Tom Tromey <tromey@redhat.com> |
5178 | ||
5179 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
5180 | handle big-endian values. | |
5181 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
5182 | ||
85d721b8 PA |
5183 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
5184 | ||
5185 | PR9605 | |
5186 | ||
5187 | gdb/ | |
5188 | * breakpoint.c (insert_bp_location): If inserting the read | |
5189 | watchpoint failed, fallback to an access watchpoint. | |
5190 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
5191 | if the value changed, if not watching the same memory for writes. | |
5192 | (watchpoint_locations_match): Add comment. | |
5193 | (update_global_location_list): Copy the location's watchpoint type. | |
5194 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
5195 | handle read watchpoints here. | |
5196 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
5197 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
5198 | packets. | |
5199 | * target.h (target_insert_watchpoint): Update description. | |
5200 | ||
48ea67a7 TT |
5201 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
5202 | ||
5203 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
5204 | * m2-typeprint.c (m2_print_type): Update. | |
5205 | * gdbtypes.c (recursive_dump_type): Update. | |
5206 | (copy_type_recursive): Update. | |
5207 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
5208 | (c_type_print_base): Update. | |
5209 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
5210 | Remove. | |
5211 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
5212 | <struct template_arg>: Remove. | |
5213 | <is_dynamic>: Move earlier. | |
5214 | (TYPE_TEMPLATE_ARGS): Remove. | |
5215 | (TYPE_NTEMPLATE_ARGS): Remove. | |
5216 | (TYPE_TEMPLATE_ARG): Remove. | |
5217 | ||
48e32051 TT |
5218 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
5219 | ||
5220 | PR c++/8693, PR c++/9496: | |
5221 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
5222 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
5223 | write_dollar_variable. Don't try to classify NAME tokens. | |
5224 | (token_and_value): New type. | |
5225 | (token_fifo, popping, name_obstack): New globals. | |
5226 | (classify_name): New function. | |
5227 | (classify_inner_name): Likewise. | |
5228 | (yylex): Likewise. | |
5229 | (VARIABLE): Now has type sval. | |
5230 | (exp : VARIABLE): Call write_dollar_variable. | |
5231 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
5232 | multiple "::" instances. | |
5233 | (variable): Use name_not_typename. | |
5234 | (qualified_type): Remove. | |
5235 | (typebase): Update. | |
5236 | ||
672d9c23 JK |
5237 | 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
5238 | ||
5239 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
5240 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
5241 | found by bfd_get_section_by_name. | |
5242 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
5243 | ||
bfbf3774 JB |
5244 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
5245 | ||
5246 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
5247 | 7.0 section" into "Changes in 7.1". | |
5248 | ||
6756b09b | 5249 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
5250 | ||
5251 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
5252 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
5253 | ||
202b96c1 PA |
5254 | 2010-02-18 Harald Koenig <H.Koenig@science-computing.de> |
5255 | ||
5256 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
5257 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
5258 | ||
de2e5182 TT |
5259 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
5260 | ||
5261 | * NEWS: Add Python API Improvements section. | |
5262 | ||
7280022e DJ |
5263 | 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com> |
5264 | ||
5265 | * NEWS: Correct typo. | |
5266 | ||
6f451e5e TT |
5267 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
5268 | ||
5269 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
5270 | ||
012836ea JK |
5271 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
5272 | ||
5273 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
5274 | only if they are SEC_ALLOC or SEC_LOAD. | |
5275 | ||
d182d057 L |
5276 | 2010-02-17 H.J. Lu <hongjiu.lu@intel.com> |
5277 | ||
5278 | PR shlibs/11293 | |
5279 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
5280 | of ULONGEST for address size. | |
5281 | ||
4eef138c TT |
5282 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
5283 | ||
5284 | * NEWS: Add C++ improvements section. | |
5285 | ||
548a926a UW |
5286 | 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
5287 | ||
5288 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
5289 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
5290 | ||
ad3a0e5b JK |
5291 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
5292 | ||
5293 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
5294 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
5295 | ||
243e2c5d | 5296 | 2010-02-17 Tristan Gingold <gingold@adacore.com> |
b2319725 | 5297 | Petr Hluzin <petr.hluzin@gmail.com> |
243e2c5d TG |
5298 | |
5299 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
5300 | gdb_assert. Fix info->size for SIG prologue. | |
5301 | ||
275f2e57 DJ |
5302 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
5303 | ||
5304 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
5305 | Correct output message. | |
5306 | ||
791dfb64 DJ |
5307 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
5308 | ||
5309 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
5310 | FUNCTION contains parentheses. Improve removal of a trailing | |
5311 | single quote. | |
5312 | ||
14d1346b DJ |
5313 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
5314 | ||
5315 | * gcore.c (do_bfd_delete_cleanup): New function. | |
5316 | (gcore_command): Use it. Discard the cleanup after success. | |
5317 | (gcore_copy_callback): Delete dead code. | |
5318 | ||
e76ab67f DJ |
5319 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
5320 | ||
5321 | * symfile.c (addr_info_make_relative): Always use | |
5322 | find_lowest_section. | |
5323 | ||
71dee663 SW |
5324 | 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com> |
5325 | ||
5326 | * NEWS: Added entry for namespace fixes. | |
5327 | ||
a9854bd5 TT |
5328 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
5329 | ||
5330 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
5331 | objfile obstack. | |
5332 | ||
fd9e29b5 TT |
5333 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
5334 | ||
5335 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
5336 | ||
4e1fc9c9 JK |
5337 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5338 | ||
5339 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
5340 | initialize it from ELF BFD. Extend the prelink condition by it. | |
5341 | ||
74164c56 JK |
5342 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5343 | ||
5344 | * defs.h (parse_pid_to_attach): New. | |
5345 | * utils.c (parse_pid_to_attach): New. | |
5346 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
5347 | * gnu-nat.c (gnu_attach): Likewise. | |
5348 | * nto-procfs.c (procfs_attach): Likewise. | |
5349 | * procfs.c (procfs_attach): Likewise. | |
5350 | * windows-nat.c (windows_attach): Likewise. | |
5351 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
5352 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
5353 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
5354 | check. | |
5355 | ||
bf6adea8 MM |
5356 | 2010-02-14 Masaki Muranaka <monaka@monami-software.com> |
5357 | ||
5358 | * MAINTAINERS: Add myself for write after approval privileges. | |
5359 | ||
28f34a8f JK |
5360 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
5361 | ||
5362 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
5363 | block. | |
5364 | ||
701ed6dc JK |
5365 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
5366 | ||
5367 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
5368 | only if INFO_VERBOSE. | |
5369 | ||
e5829bee MS |
5370 | 2010-02-12 Tomas Holmberg <th@virtutech.com> |
5371 | ||
5372 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
5373 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
5374 | exec-next-instruction, exec-step-instruction. This is to | |
5375 | support reverse execution over the MI interface to gdb. | |
5376 | ||
081dfbf7 PA |
5377 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
5378 | ||
5379 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
5380 | range of `tfind outsize' is exclusive, and that the address range | |
5381 | of `tfind range' is inclusive, in the commands' help strings. | |
5382 | ||
ecc13e53 JB |
5383 | 2010-02-12 Joel Brobecker <brobecker@adacore.com> |
5384 | ||
5385 | Spurious "dll not found" error messages on x64-windows. | |
5386 | * windows-nat.c: Add include of complaints.h. | |
5387 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
5388 | ||
15c3d785 PA |
5389 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
5390 | ||
5391 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
5392 | bp_tracepoint and bp_fast_tracepoint, not | |
5393 | bp_loc_software_breakpoint. | |
5394 | (update_global_location_list): Tracepoints are never duplicates of | |
5395 | anything. | |
5396 | ||
fd9b8c24 PA |
5397 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
5398 | ||
5399 | * breakpoint.c (break_command_really): Change return type to int. | |
5400 | Return false if no breakpoint was created, true otherwise. | |
5401 | (trace_command): Don't set the tracepoint count if no tracepoint | |
5402 | was created. | |
5403 | (ftrace_command): Ditto. | |
5404 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
5405 | created in the breakpoints table. | |
5406 | ||
5c0d192f JK |
5407 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
5408 | Ulrich Weigand <uweigand@de.ibm.com> | |
5409 | ||
5410 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
5411 | ||
5d5b640e PA |
5412 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
5413 | ||
5414 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
5415 | the offset value isn't of integral type. | |
5416 | ||
e5a0a904 JK |
5417 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
5418 | ||
5419 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
5420 | New. | |
5421 | ||
be636754 PA |
5422 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
5423 | ||
5424 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
5425 | non-subscriptable types. | |
5426 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
5427 | from ... | |
5428 | (binop_user_defined_p): ... this. | |
5429 | * value.h (binop_types_user_defined_p): Declare. | |
5430 | ||
10ef8d6a PA |
5431 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
5432 | ||
5433 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
5434 | Merge uploaded TSVs before merging uploaded tracepoints. | |
5435 | ||
b1028c8e PA |
5436 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
5437 | ||
5438 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
5439 | ||
7a93fb82 | 5440 | 2010-02-11 Vladimir Prus <vladimir@codesourcery.com> |
84d90c10 | 5441 | |
7a93fb82 VP |
5442 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
5443 | whitespace character after a dot in comment. | |
5444 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
5445 | Likewise. | |
5446 | (list_args_or_locals): For the 'all' (that is | |
5447 | -stack-list-variables) case, always output list of tuples. | |
5448 | Output 'arg' field if variable is argument. | |
84d90c10 | 5449 | |
92981e24 TT |
5450 | 2010-02-10 Tom Tromey <tromey@redhat.com> |
5451 | ||
5452 | * parser-defs.h (parser_debug): Declare. | |
5453 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
5454 | command. | |
5455 | (parser_debug): New global. | |
5456 | (show_parserdebug): New function. | |
5457 | * c-exp.y (c_parse): Set yydebug. | |
5458 | ||
9fd3625f L |
5459 | 2010-02-10 H.J. Lu <hongjiu.lu@intel.com> |
5460 | ||
5461 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
5462 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
5463 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
5464 | i386_mxcsr. | |
5465 | (tdesc_find_type): New. | |
5466 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
5467 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
5468 | ||
5469 | * target-descriptions.h (tdesc_find_type): New. | |
5470 | ||
2fe842e5 MS |
5471 | 2010-02-10 Michael Snyder <msnyder@vmware.com> |
5472 | ||
5473 | * gdb-gdb.py: Comment fix. | |
5474 | ||
f18b4cab TG |
5475 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
5476 | ||
5477 | * machoread.c (macho_symfile_relocate): New function. | |
5478 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
5479 | default_symfile_relocate. | |
5480 | (macho_oso_data): New type. | |
5481 | (current_oso): New variable. | |
5482 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
5483 | instead set vma of sections. | |
5484 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
5485 | Set and clear current_oso. | |
5486 | ||
31dbc1c5 JB |
5487 | 2010-02-09 Joel Brobecker <brobecker@adacore.com> |
5488 | ||
5489 | Wrong type description for tagged type parameter. | |
5490 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
5491 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
5492 | reference to a tagged type. | |
5493 | ||
399f313b TG |
5494 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
5495 | ||
5496 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
5497 | brothers of the parent. | |
5498 | ||
714f19d5 TT |
5499 | 2010-02-08 Tom Tromey <tromey@redhat.com> |
5500 | ||
5501 | PR c++/8017: | |
5502 | * value.h: Update. | |
5503 | * valops.c (search_struct_field): Make 'name' const. | |
5504 | (search_struct_method): Likewise. | |
5505 | (find_method_list): Make 'method' const. | |
5506 | (value_struct_elt): Make 'name' and 'err' const. | |
5507 | (value_find_oload_method_list): Make 'method' const. | |
5508 | (find_overload_match): Make 'name' const. | |
5509 | * eval.c (evaluate_subexp_standard): New locals function, | |
5510 | function_name. | |
5511 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
5512 | ||
de0a0249 UW |
5513 | 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
5514 | ||
5515 | * infrun.c (handle_inferior_event): Do not look up regcache | |
5516 | for exited processes. | |
5517 | ||
8d95cc3b | 5518 | 2010-02-08 Chris Moller <moller@mollerware.com> |
83b10087 CM |
5519 | |
5520 | PR gdb/10728 | |
5521 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 5522 | warn if found, and assume length = 1. |
83b10087 | 5523 | |
99903ae3 CM |
5524 | 2010-02-08 Chris Moller <cmoller@redhat.com> |
5525 | ||
5526 | PR gdb/9067 | |
5527 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
5528 | cp_print_static_field) Fix use of obstacks. | |
8d95cc3b | 5529 | |
e3e9f5a2 PA |
5530 | 2010-02-08 Pedro Alves <pedro@codesourcery.com> |
5531 | ||
5532 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
5533 | resumed LWPs as resumed. | |
5534 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
5535 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
5536 | of throwing an internal error. If an LWP of a process we're not | |
5537 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
5538 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
5539 | go through all LWPs cancelling breakpoints in non-stop mode. | |
5540 | (resume_stopped_resumed_lwps): New. | |
5541 | (linux_nat_wait): Use it. | |
5542 | ||
46763423 L |
5543 | 2010-02-07 H.J. Lu <hongjiu.lu@intel.com> |
5544 | ||
5545 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
5546 | i386/amd64 and i386/amd64-linux. | |
5547 | (i386/i386-expedite): New. | |
5548 | (i386/i386-linux-expedite): Likewise. | |
5549 | (i386/amd64-expedite):Likewise. | |
5550 | (i386/amd64-linux-expedite): Likewise. | |
5551 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
5552 | ($(outdir)/i386/amd64.dat): Likewise. | |
5553 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
5554 | ||
5555 | * features/i386/32bit-core.xml: New. | |
5556 | * features/i386/32bit-linux.xml: Likewise. | |
5557 | * features/i386/32bit-sse.xml: Likewise. | |
5558 | * features/i386/64bit-core.xml: Likewise. | |
5559 | * features/i386/64bit-linux.xml: Likewise. | |
5560 | * features/i386/64bit-sse.xml: Likewise. | |
5561 | * features/i386/i386-linux.xml: Likewise. | |
5562 | * features/i386/i386.xml: Likewise. | |
5563 | * features/i386/amd64-linux.xml: Likewise. | |
5564 | * features/i386/amd64.xml: Likewise. | |
5565 | * features/i386/i386-linux.c: Likewise. | |
5566 | * features/i386/i386.c: Likewise. | |
5567 | * features/i386/amd64-linux.c: Likewise. | |
5568 | * features/i386/amd64.c: Likewise. | |
5569 | ||
82856980 SW |
5570 | 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> |
5571 | ||
5572 | PR c++/7935: | |
5573 | * cp-support.h: Added char* alias element to using_direct data | |
5574 | struct. | |
5575 | (cp_add_using): Added char* alias argument. | |
5576 | (cp_add_using_directive): Ditto. | |
5577 | * cp-namespace.c: Updated with the above changes. | |
5578 | (cp_lookup_symbol_imports): Check for aliases. | |
5579 | * dwarf2read.c (read_import_statement): Figure out local alias | |
5580 | for the import and pass it on to cp_add_using. | |
5581 | (read_namespace): Pass alias argument to cp_add_using. | |
5582 | ||
d18b8b7a HZ |
5583 | 2010-02-05 Hui Zhu <teawater@gmail.com> |
5584 | ||
5585 | * defs.h (gdb_bfd_errmsg): New extern. | |
5586 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
5587 | gdb_bfd_errmsg. | |
5588 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
5589 | (AMBIGUOUS_MESS2): New macro. | |
5590 | (gdb_bfd_errmsg): New function. | |
5591 | ||
48379de6 DE |
5592 | 2010-02-04 Doug Evans <dje@google.com> |
5593 | ||
5594 | * solib-svr4.c (enable_break): Add comment. | |
5595 | ||
4ee73e90 AG |
5596 | 2010-02-04 Anthony Green <green@moxielogic.com> |
5597 | ||
5598 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
5599 | gracefully. | |
5600 | ||
1a334831 TT |
5601 | 2010-02-04 Tom Tromey <tromey@redhat.com> |
5602 | ||
5603 | * valops.c (search_struct_field): Account for | |
5604 | value_embedded_offset. Fix check for virtual base past the end of | |
5605 | the object. Use value_copy when making a slice of the value. | |
5606 | ||
1180b2c8 L |
5607 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
5608 | ||
5609 | PR tui/9622 | |
5610 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
5611 | only if gdb_stdout is a tty. | |
5612 | ||
c3f08eb7 L |
5613 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
5614 | ||
5615 | * target-descriptions.c: Include "osabi.h". | |
5616 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
5617 | OSABI. | |
5618 | ||
2d33f7b8 TG |
5619 | 2010-02-04 Tristan Gingold <gingold@adacore.com> |
5620 | ||
5621 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
5622 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
5623 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
5624 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
5625 | (macho_new_init): Move this function after declarations. | |
5626 | (macho_symfile_init): Ditto. | |
5627 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
5628 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
5629 | ||
11334b82 VP |
5630 | 2010-02-04 Vladimir Prus <vladimir@codesourcery.com> |
5631 | ||
5632 | Include MI command in remotelog. | |
5633 | ||
5634 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
5635 | ||
ff97be06 L |
5636 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
5637 | ||
5638 | * remote.c (remote_state): Remove gdbarch. | |
5639 | (init_remote_state): Don't set gdbarch. | |
5640 | (remote_query_supported): Pass target_gdbarch instead of | |
5641 | rs->gdbarch to gdbarch_qsupported. | |
5642 | ||
75cebea9 L |
5643 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
5644 | ||
5645 | * gdbarch.sh: Add qsupported. | |
5646 | ||
5647 | * gdbarch.c: Regenerated. | |
5648 | * gdbarch.h: Likewise. | |
5649 | ||
5650 | * remote.c (remote_state): Add gdbarch. | |
5651 | (init_remote_state): Set gdbarch. | |
5652 | (remote_query_supported): Support gdbarch_qsupported. | |
5653 | ||
c1dec97b DJ |
5654 | 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com> |
5655 | ||
5656 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
5657 | __FreeBSD_kernel_version. | |
5658 | ||
ac8035ab TG |
5659 | 2010-02-03 Tristan Gingold <gingold@adacore.com> |
5660 | ||
5661 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
5662 | (default_symfile_relocate): New prototype. | |
5663 | (symfile_relocate_debug_section): First argument is now an objfile. | |
5664 | * symfile.c (default_symfile_relocate): Rename from | |
5665 | symfile_relocate_debug_section, first argument is now an objfile. | |
5666 | (symfile_relocate_debug_section): New function. | |
5667 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
5668 | * somread.c (som_sym_fns): Ditto. | |
5669 | * mipsread.c (ecoff_sym_fns): Ditto. | |
5670 | * machoread.c (macho_sym_fns): Ditto. | |
5671 | * elfread.c (elf_sym_fns): Ditto. | |
5672 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
5673 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
5674 | * dbxread.c (aout_sym_fns): Ditto. | |
5675 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
5676 | (elfstab_build_psymtabs): Ditto. | |
5677 | ||
be52b756 L |
5678 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
5679 | ||
5680 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
5681 | ||
9c3c02fd TT |
5682 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
5683 | ||
5684 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
5685 | type. | |
5686 | ||
f23f4c59 TT |
5687 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
5688 | ||
5689 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
5690 | (gnuv2_baseclass_offset): Now static. | |
5691 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
5692 | * gnu-v2-abi.h: Remove. | |
5693 | ||
0cc2414c TT |
5694 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
5695 | ||
5696 | * m2-typeprint.c (m2_record_fields): Don't use | |
5697 | TYPE_DECLARED_TYPE. | |
5698 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
5699 | (struct main_type) <flag_declared_class>: New field. | |
5700 | (struct cplus_struct_type) <declared_type>: Remove. | |
5701 | <ntemplate_args>: Move earlier. | |
5702 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
5703 | (DECLARED_TYPE_TEMPLATE): Remove. | |
5704 | (TYPE_DECLARED_TYPE): Remove. | |
5705 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
5706 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
5707 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
5708 | TYPE_DECLARED_TYPE. | |
5709 | ||
edf3d5f3 TT |
5710 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
5711 | ||
5712 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
5713 | * valops.c (search_struct_field): Compute nbases after calling | |
5714 | CHECK_TYPEDEF. | |
5715 | (check_field): Call CHECK_TYPEDEF. | |
5716 | * cp-valprint.c (cp_print_value): Pass correct address to | |
5717 | baseclass_offset. Fix check for virtual base past the end of the | |
5718 | object. Don't offset address passed to cp_print_value_fields or | |
5719 | apply_val_pretty_printer. | |
5720 | (cp_print_value_fields): Fix call to val_print. | |
5721 | (cp_print_value_fields_rtti): New function. | |
5722 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
5723 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
5724 | val_print. | |
5725 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
5726 | offset to address. | |
5727 | * language.h (struct language_defn) <la_val_print>: Document. | |
5728 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
5729 | ||
e4b7f41c JK |
5730 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5731 | ||
5732 | PR libc/11214: | |
5733 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
5734 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
5735 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
5736 | ||
7618e12b DJ |
5737 | 2010-02-01 Michael Matz <matz@suse.de> |
5738 | Daniel Jacobowitz <dan@codesourcery.com> | |
5739 | ||
e4b7f41c | 5740 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
5741 | functions use a frame pointer. |
5742 | ||
b381ea14 JK |
5743 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5744 | ||
5745 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
5746 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
5747 | * config/djgpp/fnchange.lst: Add translations for | |
5748 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
5749 | ||
0e05dfcb DJ |
5750 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5751 | ||
5752 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
5753 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
5754 | * gdbarch.c: Regenerated. | |
5755 | ||
f9d67f43 DJ |
5756 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5757 | ||
5758 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
5759 | arm_pc_is_thumb. | |
5760 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
5761 | (extend_buffer_earlier): New function. | |
5762 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
5763 | (arm_adjust_breakpoint_address): New function. | |
5764 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
5765 | ||
177321bd DJ |
5766 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5767 | ||
5768 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
5769 | (arm_linux_thumb2_le_breakpoint): New constants. | |
5770 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
5771 | thumb2_breakpoint_size. | |
5772 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
5773 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
5774 | Implement support for single stepping through IT blocks if | |
5775 | a 32-bit Thumb breakpoint instruction is available. | |
5776 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
5777 | is available, use it when needed. | |
5778 | (arm_remote_breakpoint_from_pc): New function. | |
5779 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
5780 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
5781 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
5782 | ||
a1dcb23a DJ |
5783 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5784 | ||
5785 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
5786 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
5787 | * gdbarch.c, gdbarch.h: Regenerated. | |
5788 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
5789 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
5790 | gdbarch_remote_breakpoint_from_pc. | |
5791 | ||
2b009048 DJ |
5792 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
5793 | ||
5794 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
5795 | match a breakpoint. | |
5796 | (handle_inferior_event): Move the check for unusual breakpoint | |
5797 | signals earlier. | |
5798 | ||
e4e2711a JB |
5799 | 2010-01-29 Paul Hilfinger <hilfinger@adacore.com> |
5800 | ||
5801 | amd64 - function returning record with field straddling 2 registers. | |
5802 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
5803 | a record of length <= 16 in which a field straddles the two | |
5804 | eightbytes. | |
5805 | ||
cba6fab5 JB |
5806 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
5807 | ||
5808 | Implement return values on amd64-windows. | |
5809 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
5810 | (amd64_windows_return_value): New function. | |
5811 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
5812 | amd64_windows_return_value. | |
5813 | ||
3af6ddfe JB |
5814 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
5815 | ||
5816 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 5817 | parameter registers. |
3af6ddfe JB |
5818 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
5819 | integer_param_regs_saved_in_caller_frame. | |
5820 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
5821 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
5822 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
5823 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
5824 | ||
80d19a06 JB |
5825 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
5826 | ||
5827 | amd64-windows: memory args passed by pointer during function calls. | |
5828 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
5829 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
5830 | where tdep->memory_args_by_pointer is non-zero. | |
5831 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
5832 | tdep->memory_args_by_pointer to 1. | |
5833 | ||
ba581dc1 JB |
5834 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
5835 | ||
4966b6c2 | 5836 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
5837 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
5838 | amd64-tdep.c. | |
5839 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
5840 | call_dummy_integer_regs, and classify. | |
5841 | * amd64-tdep.h (amd64_classify): Add declaration. | |
5842 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
5843 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
5844 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
5845 | Replace call to amd64_classify by call to tdep->classify. | |
5846 | (amd64_push_arguments): Get the list of registers to use for | |
5847 | passing integer parameters from the gdbarch tdep structure, | |
5848 | rather than using a hardcoded one. Replace calls to amd64_classify | |
5849 | by calls to tdep->classify. | |
5850 | (amd64_push_dummy_call): Get the register number used for | |
5851 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
5852 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
5853 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
5854 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
5855 | (amd64_windows_dummy_call_integer_regs): New static global. | |
5856 | (amd64_windows_classify): New function. | |
5857 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
5858 | tdep->call_dummy_integer_regs and tdep->classify. | |
5859 | ||
d37346f0 DJ |
5860 | 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
5861 | ||
5862 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
5863 | for the new regcache. All callers updated. | |
5864 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
5865 | (get_thread_arch_regcache): Do not set aspace here. | |
5866 | * regcache.h (regcache_xmalloc): Update declaration. | |
5867 | ||
5868 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
5869 | regcache_xmalloc updated. | |
5870 | ||
7434dadd JB |
5871 | 2010-01-28 Joel Brobecker <brobecker@adacore.com> |
5872 | ||
5873 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
5874 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
5875 | Only define if SYS_syssgi is defined. | |
5876 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
5877 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
5878 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
5879 | is itself defined. | |
5880 | ||
16d905e2 CF |
5881 | 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx> |
5882 | ||
5883 | * windows-nat.c (windows_initialization_done): New variable. | |
5884 | (get_windows_debug_event): Issue error when process dies before | |
5885 | completely initializing. | |
5886 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
5887 | the initial steps of attaching to the child. | |
5888 | ||
cd55e50f JK |
5889 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
5890 | ||
5891 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
5892 | ||
99cc78aa DE |
5893 | 2010-01-27 Doug Evans <dje@google.com> |
5894 | ||
4c7dcb84 DE |
5895 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
5896 | ||
99cc78aa DE |
5897 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
5898 | ||
52334bf5 JK |
5899 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
5900 | ||
5901 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
5902 | objfile via SYMBOL_SYMTAB. | |
5903 | ||
708ead4e TT |
5904 | 2010-01-26 Tom Tromey <tromey@redhat.com> |
5905 | ||
5906 | PR exp/7643: | |
5907 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
5908 | coerce_array on result. | |
5909 | ||
b14e635e SW |
5910 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
5911 | ||
5912 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
5913 | search_parent argument. | |
5914 | (cp_add_using): Initialize 'searched' field. | |
5915 | (reset_directive_searched): New function. | |
5916 | * cp-support.h: Add 'searched' field to using_direct struct. | |
5917 | (cp_lookup_symbol_imports): Ditto. | |
5918 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
5919 | Perform recursive search. | |
5920 | Implement non parent search. | |
5921 | * valops.c (value_maybe_namespace_elt): Updated. | |
5922 | ||
8540c487 SW |
5923 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
5924 | ||
5925 | PR gdb/10929: | |
5926 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
5927 | scopes which contain using directives even if they contain no | |
5928 | declarations. | |
5929 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
5930 | la_lookup_symbol_nonlocal. | |
5931 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
5932 | cp_lookup_symbol_namespace. | |
5933 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
5934 | block level. | |
5935 | (cp_lookup_symbol_imports): New function. | |
5936 | (cp_lookup_symbol_in_namespace): New function. | |
5937 | ||
421d5d99 TT |
5938 | 2010-01-25 Tom Tromey <tromey@redhat.com> |
5939 | ||
5940 | PR gdb/11049: | |
5941 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
5942 | result. | |
5943 | ||
6bcc772d RO |
5944 | 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5945 | ||
5946 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
5947 | Use test to check variables, prefix strings with x. | |
5948 | * configure: Regenerate. | |
5949 | ||
5950 | * solib-osf.c (osf_current_sos): Initialize tail. | |
5951 | ||
1c1238a5 TG |
5952 | 2010-01-25 gingold <gingold@adacore.com> |
5953 | ||
c8d5aac9 L |
5954 | * windows-nat.c (windows_continue): Use %x to print thread id. |
5955 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 5956 | |
0b92b5bb TT |
5957 | 2010-01-22 Tom Tromey <tromey@redhat.com> |
5958 | ||
5959 | PR symtab/11199: | |
5960 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
5961 | type and arguments. Use smash_to_methodptr_type. | |
5962 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
5963 | later. | |
5964 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
5965 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
5966 | (lookup_methodptr_type): Use it. | |
5967 | ||
0d5392b8 TT |
5968 | 2010-01-21 Tom Tromey <tromey@redhat.com> |
5969 | ||
5970 | PR symtab/11198: | |
5971 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
5972 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
5973 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
5974 | (glibc_skip_solib_resolver): Use | |
5975 | lookup_minimal_symbol_and_objfile. | |
5976 | ||
e6d088ec KT |
5977 | 2010-01-21 Kai Tietz <kai.tietz@onevision.com> |
5978 | ||
5979 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
5980 | WIN32 targets. | |
5981 | ||
b966cb8a TT |
5982 | 2010-01-20 Tom Tromey <tromey@redhat.com> |
5983 | ||
5984 | PR backtrace/10770: | |
5985 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
5986 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
5987 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
5988 | dwarf_stack_values, not CORE_ADDRs. | |
5989 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
5990 | use signed operands. | |
5991 | ||
3f81c18a VP |
5992 | 2010-01-20 Vladimir Prus <vladimir@codesourcery.com> |
5993 | ||
5994 | Per-inferior args and tty and environment. | |
5995 | ||
5996 | * infcmd.c (inferior_args): Rename to ... | |
5997 | (inferior_args_scratch): ... this. | |
5998 | (inferior_io_terminal): Rename to ... | |
5999 | (inferior_io_terminal_scratch): ... this. | |
6000 | (inferior_argc, inferior_argv): Remove. | |
6001 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
6002 | inside current_inferior(). | |
6003 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
6004 | (get_inferior_args, set_inferior_args): Store inside | |
6005 | current_inferior(). | |
6006 | (notice_args_set): Likewise and rename to... | |
6007 | (set_args_command): ... this. | |
6008 | (set_inferior_args_vector): Likewise. | |
6009 | (notice_args_read): Rename to... | |
6010 | (show_args_command): ...new. | |
6011 | (tty_command): Remove. | |
6012 | (run_command_1): Don't free old args, as they are freed by | |
6013 | set_inferior_arg now. | |
6014 | (run_no_args_command): Likewise. | |
6015 | (inferior_environ): Remove. | |
6016 | (run_command_1): Use environment of the current inferior. | |
6017 | (environment_info, set_environment_command) | |
6018 | (unset_environment_command, path_info, path_command): Likewise. | |
6019 | (_initialize_infcmd): Adjust for function and variable renames. | |
6020 | Do not init inferior_environ. | |
6021 | * inferior.h (set_inferior_arg): Adjust prototype. | |
6022 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
6023 | (inferior_environ): Remove declaration. | |
6024 | * inferior.c (free_inferior): Free new fields. | |
6025 | (add_inferior_silent): Initialize 'environment' field. | |
6026 | * main.c (captured_main): Set arguments only after the initial | |
6027 | inferior has been created. Set set_inferior_io_terminal, | |
6028 | not tty_command. | |
6029 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
6030 | inferior. | |
6031 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
6032 | inferior_environ. | |
6033 | * solib.c (solib_find): Use environment of the current inferior. | |
6034 | ||
d8b65138 JK |
6035 | 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6036 | ||
6037 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
6038 | HAVE_PYTHON. | |
6039 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
6040 | ||
692465f1 JB |
6041 | 2010-01-20 Joel Brobecker <brobecker@adacore.com> |
6042 | ||
6043 | Get rid of ada-lang.c:function_name_from_pc. | |
6044 | * ada-lang.c: Add "stack.h" #include. | |
6045 | (function_name_from_pc): Delete. | |
6046 | (is_known_support_routine): Replace call to function_name_from_pc | |
6047 | by call to find_frame_funname. | |
6048 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
6049 | ||
95519e0e TT |
6050 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
6051 | ||
6052 | PR c++/11026: | |
6053 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
6054 | objfile obstack. | |
6055 | ||
95c11dc7 TT |
6056 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
6057 | ||
6058 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
6059 | ||
a0f49112 JK |
6060 | 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
6061 | ||
6062 | * breakpoint.c (watchpoint_check): Check the call | |
6063 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
6064 | Extend the comment. | |
8d95cc3b | 6065 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
6066 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
6067 | watchpoint-cond-gone-stripped.c. | |
6068 | ||
ceeb3d5a TT |
6069 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
6070 | ||
6071 | PR c++/8000: | |
6072 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
6073 | into parent scope, and enumerator into grandparent scope. | |
6074 | ||
2b71fc8e JB |
6075 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6076 | ||
6077 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
6078 | ||
03564ed9 JB |
6079 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6080 | ||
6081 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
6082 | i[34567]86-*-solaris2.1[0-9]*. | |
6083 | * configure.tgt: Likewise. | |
6084 | ||
fb2e7cb4 JB |
6085 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6086 | ||
6087 | * NEWS: Document the source command enhancement allowing it | |
6088 | to load Python scripts. Document the "set/show script-extension" | |
6089 | commands. | |
6090 | ||
1cb5e2a4 JB |
6091 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6092 | ||
6093 | Add -Wunused-function to compile flags. | |
6094 | * configure.ac: Add -Wunused-function to build_warnings. | |
6095 | * configure: Regenerate. | |
6096 | ||
0ec6cd0c JB |
6097 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6098 | ||
6099 | "delete" ada-lex.c:input function, not used. | |
6100 | * ada-lex.l: #define YY_NO_INPUT. | |
6101 | ||
b74845da JB |
6102 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6103 | ||
6104 | Delete free_named_symtabs and associated cleanup. | |
6105 | * symfile.h (free_named_symtabs): Delete declaration. | |
6106 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
6107 | (cashier_psymtab): Comment function out. | |
6108 | Delete declaration. | |
6109 | (free_named_symtabs): Delete. | |
6110 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
6111 | * dbxread.c (end_psymtab): Likewise. | |
6112 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
6113 | * exec.c (exec_close_1): Ditto. | |
6114 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
6115 | ||
65c06092 JB |
6116 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6117 | ||
6118 | * stack.c (print_block_frame_labels): Comment function out. | |
6119 | ||
d5cd6034 JB |
6120 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
6121 | ||
6122 | Delete unused or undefined functions. | |
6123 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
6124 | * dcache.c (dcache_write_line): Remove declaration. | |
6125 | * infrun.c (build_infrun): Remove declaration. | |
6126 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
6127 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
6128 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
6129 | * infrun.c (init_execution_control_state): Delete. | |
6130 | (proceed): Update comment to avoid mentioning | |
6131 | init_execution_control_state. | |
6132 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
6133 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
6134 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
6135 | * cp-namespace.c (cp_copy_usings): Delete. | |
6136 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
6137 | * progspace.c (find_program_space_by_num): Delete. | |
6138 | * inflow.c (handle_sigio): Delete declaration. | |
6139 | * hppa-tdep.c (hppa_alignof): Delete. | |
6140 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
6141 | (mipsnbsd_core_osabi_sniffer): Delete. | |
6142 | ||
4e8f195d TT |
6143 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
6144 | ||
6145 | PR c++/9680: | |
6146 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
6147 | (CONST_CAST): New tokens. | |
6148 | (exp): Add new productions. | |
6149 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
6150 | reinterpret_cast. | |
6151 | (is_cast_operator): New function. | |
6152 | (yylex): Handle cast operators specially. | |
6153 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
6154 | UNOP_REINTERPRET_CAST>: New cases. | |
6155 | * expprint.c (print_subexp_standard): Likewise. | |
6156 | (op_name_standard): Likewise. | |
6157 | (dump_subexp_body_standard): Likewise. | |
6158 | * parse.c (operator_length_standard): Likewise. | |
6159 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
6160 | UNOP_REINTERPRET_CAST. | |
6161 | * gdbtypes.c (class_types_same_p): New function. | |
6162 | (is_ancestor): Use it. | |
6163 | (is_public_ancestor): New function. | |
6164 | (is_unique_ancestor_worker): Likewise. | |
6165 | (is_unique_ancestor): Likewise. | |
6166 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
6167 | (is_unique_ancestor): Declare. | |
6168 | * valops.c (value_reinterpret_cast): New function. | |
6169 | (dynamic_cast_check_1): Likewise. | |
6170 | (dynamic_cast_check_2): Likewise. | |
6171 | (value_dynamic_cast): Likewise. | |
6172 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
6173 | ||
d9c57d9f JB |
6174 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
6175 | ||
6176 | Fix build failure when building without Python support. | |
6177 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
6178 | is not defined. | |
6179 | ||
f80d3ff2 JB |
6180 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
6181 | ||
6182 | Use XVS field type instead of doing a parallel lookup. | |
6183 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
6184 | if it is a reference type instead of doing a type lookup using | |
6185 | the XVS field name. | |
6186 | ||
5bf03f13 JB |
6187 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
6188 | ||
6189 | Trust PAD types instead of using PAD___XVS. | |
6190 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
6191 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
6192 | parallel XVS type, follow the XVS type instead of the PAD type. | |
6193 | (unwrap_value): Make sure that there is no parallel XVE type | |
6194 | before returning the value as is. | |
6195 | (set_ada_list, show_ada_list): New static variables. | |
6196 | (set_ada_command, show_ada_command): New functions. | |
6197 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
6198 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
6199 | ||
973817a3 JB |
6200 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
6201 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
6202 | ||
6203 | Allow "source" to load python scripts. | |
6204 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
6205 | * python/python.c (source_python_script): New function. | |
6206 | * python/python.h (source_python_script): Add declaration. | |
6207 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
6208 | (script_ext_off, script_ext_soft, script_ext_strict) | |
6209 | (script_ext_enums, script_ext_mode): New static constants. | |
6210 | (show_script_ext_mode, find_and_open_script): New functions. | |
6211 | (source_script): Enhance to handle Python scripts. | |
6212 | (init_cli_cmds): Add set/show script-extension commands. | |
6213 | ||
98e03262 SS |
6214 | 2010-01-16 Stan Shebs <stan@codesourcery.com> |
6215 | ||
6216 | * tracepoint.h (struct trace_status): Use unsigned long long | |
6217 | instead of size_t. | |
6218 | * tracepoint.c (trace_status_command): Fix printf directive. | |
6219 | (trace_save_command): Check fwrite returns, fix printf directive. | |
6220 | (trace_filename): New global. | |
6221 | (tfile_open): Set it, check read returns. | |
6222 | (tfile_close): Free trace_filename. | |
6223 | (tfile_get_traceframe_address): Check read returns. | |
6224 | (tfile_trace_find): Ditto. | |
6225 | (tfile_fetch_registers): Ditto. | |
6226 | (tfile_xfer_partial): Ditto. | |
6227 | (tfile_get_trace_state_variable_value): Ditto. | |
6228 | ||
00bf0b85 SS |
6229 | 2010-01-15 Stan Shebs <stan@codesourcery.com> |
6230 | ||
6231 | Add trace file support. | |
6232 | * tracepoint.h (enum trace_stop_reason): New enum. | |
6233 | (struct trace_status): New struct. | |
6234 | (parse_trace_status): Declare. | |
6235 | (struct uploaded_tp): Move here from remote.c, | |
6236 | add fields for actions. | |
6237 | (struct uploaded_tsv): New struct. | |
6238 | * tracepoint.c (tfile_ops): New target vector. | |
6239 | (trace_fd): New global. | |
6240 | (tfile_open): New function. | |
6241 | (tfile_close): New function. | |
6242 | (tfile_files_info): New function. | |
6243 | (tfile_get_trace_status): New function. | |
6244 | (tfile_get_traceframe_address): New function. | |
6245 | (tfile_trace_find): New function. | |
6246 | (tfile_fetch_registers): New function. | |
6247 | (tfile_xfer_partial): New function. | |
6248 | (tfile_get_trace_state_variable_value): New function. | |
6249 | (init_tfile_ops): New function. | |
6250 | (_initialize_tracepoint): Call it, add tfile target. | |
6251 | (trace_status): New global. | |
6252 | (current_trace_status): New function. | |
6253 | (trace_running_p): Remove, change all users to get from | |
6254 | current_trace_status()->running. | |
6255 | (get_trace_status): Remove. | |
6256 | (trace_status_command): Call target_get_trace_status directly, | |
6257 | report more detail including tracing stop reasons. | |
6258 | (trace_find_command): Always allow tfind on a file. | |
6259 | (trace_find_pc_command): Ditto. | |
6260 | (trace_find_tracepoint_command): Ditto. | |
6261 | (trace_find_line_command): Ditto. | |
6262 | (trace_find_range_command): Ditto. | |
6263 | (trace_find_outside_command): Ditto. | |
6264 | (trace_frames_offset, cur_offset): Declare as off_t. | |
6265 | (trace_regblock_size): Rename from reg_size, update users. | |
6266 | (parse_trace_status): New function. | |
6267 | (tfile_interp_line): New function. | |
6268 | (disconnect_or_stop_tracing): Ensure current trace | |
6269 | status before asking what to do. | |
6270 | (stop_reason_names): New global. | |
6271 | (trace_save_command): New command. | |
6272 | (get_uploaded_tp): Move here from remote.c. | |
6273 | (find_matching_tracepoint): Ditto. | |
6274 | (merge_uploaded_tracepoints): New function. | |
6275 | (parse_trace_status): Use stop_reason_names. | |
6276 | (_initialize_tracepoint): Define tsave command. | |
6277 | * target.h (target_ops): New fields to_save_trace_data, | |
6278 | to_upload_tracepoints, to_upload_trace_state_variables, | |
6279 | to_get_raw_trace_data, change to_get_trace_status | |
6280 | to take a pointer to a status struct. | |
6281 | (target_save_trace_data): New macro. | |
6282 | (target_upload_tracepoints): New macro. | |
6283 | (target_upload_trace_state_variables): New macro. | |
6284 | (target_get_raw_trace_data): New macro. | |
6285 | * target.c (update_current_target): Add new methods, change | |
6286 | signature of to_get_trace_status. | |
6287 | * remote.c (hex2bin): Make globally visible. | |
6288 | (bin2hex): Ditto. | |
6289 | (remote_download_trace_state_variable): Download name also. | |
6290 | (remote_get_trace_status): Update parameter, use | |
6291 | parse_trace_status. | |
6292 | (remote_save_trace_data): New function. | |
6293 | (remote_upload_tracepoints): New function. | |
6294 | (remote_upload_trace_state_variables): New function. | |
6295 | (remote_get_raw_trace_data): New function. | |
6296 | (remote_start_remote): Use them. | |
6297 | (_initialize_remote_ops): Add operations. | |
6298 | * ax-gdb.c: Include breakpoint.h. | |
6299 | * breakpoint.c (create_tracepoint_from_upload): Use | |
6300 | break_command_really, return tracepoint, warn about unimplemented | |
6301 | parts. | |
6302 | * NEWS: Mention trace file addition. | |
6303 | ||
d904de5b JK |
6304 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
6305 | ||
6306 | Fix compilation warning on gcc-3.4. | |
6307 | * exec.c (print_section_info): Move the `displacement' variable | |
6308 | initialization to its declaration. | |
6309 | ||
64aa9731 JK |
6310 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
6311 | ||
6312 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
6313 | comparison. | |
6314 | ||
ca1f5def | 6315 | 2010-01-15 Eric Botcazou <botcazou@adacore.com> |
9f0dec2d JB |
6316 | |
6317 | "info tasks" broken by typedefs in ATCB type definitions. | |
6318 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
6319 | ada_check_typedef before retrieving the length of the type for | |
6320 | regular fields. | |
6321 | ||
12ab9e09 JB |
6322 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
6323 | ||
6324 | Do not use name-based lookup for unconstrained packed arrays. | |
6325 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
6326 | Limit the fallback to name-based lookups to the case where | |
6327 | the type is a constrained packed array. | |
6328 | ||
c389c3dc JB |
6329 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
6330 | ||
6331 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
6332 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
6333 | ||
7991dee7 JK |
6334 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
6335 | ||
6336 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
6337 | * configure: Regenerate. | |
6338 | * config.in: Regenerate. | |
6339 | * utils.c: Include sys/resource.h. | |
6340 | (dump_core, can_dump_core): New. | |
6341 | (internal_vproblem): Update the comment. Check can_dump_core while | |
6342 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
6343 | ||
93c26624 JK |
6344 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6345 | Eli Zaretskii <eliz@gnu.org> | |
6346 | ||
6347 | * NEWS: Document the PIE support. | |
6348 | ||
55235ad7 JK |
6349 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6350 | ||
6351 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
6352 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
6353 | ||
41752192 JK |
6354 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6355 | ||
6356 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
6357 | Replace exec_entry_point call by bfd_get_start_address. | |
6358 | ||
9f2982ff JK |
6359 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6360 | ||
6361 | Support Valgrind attachments broken by the PIE support. | |
6362 | * auxv.c: Include gdbcore.h. | |
6363 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
6364 | parameters ops, object and annex. Remove their assertions. | |
6365 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
6366 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
6367 | (memory_xfer_auxv): ... here. | |
6368 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
6369 | memory_xfer_auxv. | |
6370 | * procfs.c (procfs_xfer_partial): Likewise. | |
6371 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
6372 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
6373 | (svr4_solib_create_inferior_hook): Conditionalize the | |
6374 | svr4_relocate_main_executable call. | |
6375 | ||
61f0d762 JK |
6376 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6377 | ||
6378 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
6379 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
6380 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
6381 | New variable abfd. | |
6382 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
6383 | of separate debug info file. | |
6384 | ||
51bee8e9 JK |
6385 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6386 | ||
6387 | Support PIEs with no symfile_objfile. | |
6388 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
6389 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
6390 | ||
b8040f19 JK |
6391 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
6392 | ||
6393 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
6394 | code part to ... | |
6395 | (svr4_static_exec_displacement): ... a new function. | |
6396 | (svr4_exec_displacement): New function. | |
6397 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
6398 | new_offsets using alloca now. Remove variable old_chain and changed. | |
6399 | Call objfile_relocate unconditionally now. | |
6400 | ||
eb90ce83 DE |
6401 | 2010-01-14 Doug Evans <dje@google.com> |
6402 | ||
6403 | * gdbtypes.c (arch_flags_type): Fix comment. | |
6404 | * gdbtypes.h (arch_composite_type): Fix comment. | |
6405 | ||
bdfed3bc TG |
6406 | 2009-01-14 Tristan Gingold <gingold@adacore.com> |
6407 | ||
6408 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
6409 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
6410 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
6411 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
6412 | macho_add_oso_symfile. | |
6413 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
6414 | ||
1596ad23 JB |
6415 | 2010-01-14 Joel Brobecker <brobecker@adacore.com> |
6416 | ||
6417 | Tru64: Dead threads are never deleted. | |
6418 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
6419 | (dec_thread_count_gdb_threads): Fix counter increment. | |
6420 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
6421 | (resync_thread_list): Fix bug in deletion of dead threads that | |
6422 | caused all threads to be deleted, instead of just the dead ones. | |
6423 | ||
be759fcf PM |
6424 | 2010-01-13 Phil Muldoon <pmuldoon@redhat.com> |
6425 | ||
6426 | PR python/10705 | |
6427 | ||
6428 | * python/python-internal.h: Add lazy_string_object_type | |
6429 | definition. | |
6430 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
6431 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
6432 | * python/py-value.c (valpy_lazy_string): New function. | |
6433 | (convert_value_from_python): Add lazy string conversion. | |
6434 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
6435 | return is also a lazy string. | |
6436 | (print_string_repr): Add lazy string printing branch. | |
6437 | (print_children): Likewise. | |
6438 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
6439 | * python/python.c (_initialize_python): Call | |
6440 | gdbpy_initialize_lazy_string. | |
6441 | * varobj.c (value_get_print_value): Add lazy string printing | |
6442 | branch. Account for encoding. | |
6443 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
6444 | encoding is NULL, find encoding suited for type, otherwise use | |
6445 | user encoding. | |
6446 | * language.h (language_defn): Add encoding argument. | |
6447 | (LA_PRINT_STRING): Likewise. | |
6448 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
6449 | argument to language_defn. | |
6450 | * ada-lang.h (ada_printstr): Likewise. | |
6451 | * c-lang.h (c_printstr): Likewise. | |
6452 | * p-lang.h (pascal_printstr); | |
6453 | * f-lang.c (f_printstr): Likewise. | |
6454 | * m2-lang.c (m2_printstr): Likewise. | |
6455 | * objc-lang.c (objc_printstr): Likewise. | |
6456 | * p-lang.c (pascal_printstr): Likewise. | |
6457 | * scm-lang.c (scm_printstr): Likewise. | |
6458 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
6459 | encoding argument. | |
6460 | * ada-valprint.c (ada_printstr): Likewise. | |
6461 | * f-valprint.c (f_val_print): Likewise | |
6462 | * m2-valprint.c (m2_val_print): Likewise. | |
6463 | * p-valprint.c (pascal_val_print): Likewise. | |
6464 | * expprint.c (print_subexp_standard): Likewise. | |
6465 | * valprint.c (val_print_string): Likewise. | |
6466 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
6467 | (SUBDIR_PYTHON_SRCS): Likewise. | |
6468 | (py-lazy-string.o): New rule. | |
6469 | ||
1fe72117 | 6470 | 2010-01-13 Doug Evans <dje@google.com> |
8eee9c5a DE |
6471 | |
6472 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
6473 | uninitialized" warning from gcc on local `tree'. | |
6474 | ||
dc146f7c VP |
6475 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
6476 | ||
6477 | Implement core awareness. | |
6478 | ||
6479 | * bcache.c (compare_ints): Remove | |
6480 | (print_percentage): Use compare_positive_ints. | |
6481 | * defs.h (compare_positive_ints): Declare. | |
6482 | * linux-nat.h (struct lin_lwp): New field core. | |
6483 | (linux_nat_core_of_thread_1): Declare. | |
6484 | * linux-nat.c (add_lwp): Init the 'core' field. | |
6485 | (linux_nat_wait_1): Record the core. | |
6486 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
6487 | (linux_nat_add_target): Register the above. | |
6488 | * linux-thread-db.c (update_thread_core): New. | |
6489 | (thread_db_find_new_threads): Update core information for | |
6490 | every thread. | |
6491 | * remote.c (struct private_thread_info): New. | |
6492 | (free_private_thread_info, demand_private_info): New. | |
6493 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
6494 | (struct thread_item, threads_parsing_context | |
6495 | (start_thread, end_thread, thread_attributes) | |
6496 | (thread_children, threads_children, threads_elements): New. | |
6497 | (remote_threads_info): Try qXfer:threads before anything | |
6498 | else. | |
6499 | (remote_protocol_packets): Register qXfer:threads. | |
6500 | (remote_open_1): Init use_osdata_threads. | |
6501 | (struct stop_reply): New field 'core'. | |
6502 | (remote_parse_stop_reply): Parse core number. | |
6503 | (process_stop_reply): Record core number. | |
6504 | (remote_xfer_partial): Handle qXfer:threads. | |
6505 | (remote_core_of_thread): New. | |
6506 | (init_remote_ops): Register remote_core_of_thread. | |
6507 | (_initialize_remote): Register qXfer:read. | |
6508 | * target.c (target_core_of_thread): New | |
6509 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
6510 | (struct target_ops): New field to_core_of_threads. | |
6511 | (target_core_of_thread): Declare. | |
6512 | * gdbthread.h (struct thread_info): New field private_dtor. | |
6513 | * thread.c (print_thread_info): Report the core. | |
6514 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
6515 | * utils.c (compare_positive_ints): New. | |
6516 | * features/threads.dtd: New. | |
6517 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
6518 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
6519 | (do_nothing, free_vector_of_osdata_items) | |
6520 | (splay_tree_int_comparator, free_splay_tree): New. | |
6521 | (print_one_inferior_data): Implemented printing of selected | |
6522 | inferiors. Collect and print cores. | |
6523 | (output_cores): New. | |
6524 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
6525 | thread groups together with --available. | |
6526 | ||
d30c5336 JK |
6527 | 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
6528 | ||
6529 | * configure: Regenerate (for _STRUCTURED_PROC). | |
6530 | ||
02893727 JB |
6531 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
6532 | ||
6533 | Delete dead function. | |
6534 | * ada-lang.c (extract_string): Delete. No longer used. | |
6535 | ||
46ed2d6f JB |
6536 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
6537 | ||
6538 | Fix -Wunused warning in dec-thread.c. | |
6539 | * dec-thread.c (dec_thread_count_gdb_threads) | |
6540 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
6541 | ||
606b8d1a JB |
6542 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
6543 | ||
6544 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
6545 | ||
b4ba55a1 JB |
6546 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
6547 | ||
6548 | Add support for DW_AT_GNAT_descriptive_type. | |
6549 | * gdbtypes.h (enum type_specific_kind): New enum. | |
6550 | (struct main_type) [type_specific_field]: New component. | |
6551 | [type_specific]: Add new component "gnat_stuff". | |
6552 | (struct gnat_aux_type): New type. | |
6553 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
6554 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
6555 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
6556 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
6557 | (TYPE_SPECIFIC_FIELD): New macros. | |
6558 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
6559 | type does not hold any cplus-specific data. | |
6560 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
6561 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
6562 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
6563 | cplus-specific data. | |
6564 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
6565 | Set new component TYPE_SPECIFIC_FIELD (type). | |
6566 | (gnat_aux_default): New constant. | |
6567 | (allocate_gnat_aux_type): New function. | |
6568 | (init_type): Add initialization the type-specific stuff for | |
6569 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
6570 | (print_gnat_stuff): New function. | |
6571 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
6572 | specific data. Adjust code that prints the contents of the | |
6573 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
6574 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
6575 | the type cplus stuff for Ada types. | |
6576 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
6577 | Error out if these routines are called with an Ada type. | |
6578 | (read_structure_type, read_array_type, read_subrange_type): | |
6579 | Add call to set_descriptive_type. | |
6580 | (set_die_type): Initialize the gnat-specific data if necessary. | |
6581 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
6582 | New functions. | |
6583 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
6584 | decode_constrained_packed_array_type instead of doing a standard | |
6585 | lookup to locate a parallel type. | |
6586 | (find_parallel_type_by_descriptive_type): New function. | |
6587 | (ada_find_parallel_type_with_name): New function. | |
6588 | (ada_find_parallel_type): Reimplement using | |
6589 | ada_find_parallel_type_with_name. | |
6590 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
6591 | to check if type has a cplus stuff. | |
6592 | * linespec.c (total_number_of_methods): Likewise. | |
6593 | * mdebugread.c (new_type): Likewise. | |
6594 | ||
b0f02ee9 JK |
6595 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6596 | ||
6597 | * NEWS: Document the 0b binary number prefix parsing. | |
6598 | ||
b260e109 JK |
6599 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6600 | ||
6601 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
6602 | Describe the new return value. Return non-zero if data changed. | |
6603 | (objfile_relocate): New variable changed. Set it. Call | |
6604 | breakpoint_re_set depending on CHANGED. | |
6605 | ||
b5cfddf5 JK |
6606 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6607 | ||
6608 | Implement binary numbers parsing. | |
6609 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
6610 | ||
e0ae4240 JK |
6611 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6612 | Tristan Gingold <gingold@adacore.com> | |
6613 | ||
6614 | * solib.c (info_sharedlibrary_command): Replace | |
6615 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
6616 | objfile_has_symbols. | |
6617 | ||
6e0e5977 JB |
6618 | 2010-01-10 Joel Brobecker <brobecker@adacore.com> |
6619 | ||
6620 | * NEWS: Document the improvements made to the mips-irix port. | |
6621 | ||
7348c5e1 JB |
6622 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6623 | ||
6624 | Fix the documentation of valprint.c:value_print. | |
6625 | * valprint.c (value_print): Update the function description to | |
6626 | mention that the syntax of the output follows the current_language, | |
6627 | not necessarily C. | |
6628 | ||
567995e1 JK |
6629 | 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6630 | ||
6631 | Fix displacement of separate debug info files. | |
6632 | * objfiles.c (objfile_relocate): Rename to ... | |
6633 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
6634 | (objfile_relocate): New function. | |
6635 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
6636 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
6637 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
6638 | allocated using alloca. | |
6639 | * symfile.c (copy_section_addr_info): Remove. | |
6640 | (build_section_addr_info_from_objfile): Make it global. New variables | |
6641 | addr_bit and mask, use them. | |
6642 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
6643 | (copy_section_addr_info): Remove. | |
6644 | ||
6d8eadbd JB |
6645 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6646 | ||
6647 | Signal unwinder for mips-irix N32. | |
6648 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
6649 | tramp-frame.h. | |
6650 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
6651 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
6652 | (SIGCONTEXT_LO_OFF): New macros. |
6653 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
6654 | (mips_irix_n32_tramp_frame): New static constant. |
6655 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
6656 | ||
27087a3d JB |
6657 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6658 | ||
6659 | Breakpoint in shared library does not work on mips-irix. | |
6660 | * procfs.c: #include "observer.h". | |
6661 | (procfs_inferior_created): New function, moving here the code | |
6662 | which unsets the syssgi syscall-exit notifications. | |
6663 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
6664 | syscall-exit notifications. It is too early to do this here. | |
6665 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
6666 | ||
f08877ba JB |
6667 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6668 | ||
6669 | Wrong return convention for arrays (mips-irix). | |
6670 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
6671 | 128 bits or smaller are returned the same way as structs | |
6672 | and unions of the the same size. | |
6673 | ||
e4b97d48 JB |
6674 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6675 | ||
6676 | Cannot set the PC on mips-irix. | |
6677 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
6678 | register number, no the cooked one. | |
6679 | ||
11377e68 JB |
6680 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6681 | ||
6682 | Error while loading core file on mips-irix. | |
6683 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
6684 | if debugging from a core file. | |
6685 | ||
b2391021 JB |
6686 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6687 | ||
6688 | GDB hangs when attaching to process on mips-irix. | |
6689 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
6690 | attaching to a process. | |
6691 | ||
f2ec0ecf JB |
6692 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6693 | ||
6694 | Use the correct breakpoint instruction on mips-irix. | |
6695 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
6696 | containing the correct breakpoint instruction to use on mips-irix. | |
6697 | Use it when the osabi is GDB_OSABI_IRIX. | |
6698 | ||
3c95f01c JB |
6699 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6700 | ||
6701 | -Wunused warning in procfs.c (mips-irix only). | |
6702 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
6703 | throughout instead of using praddset and prdelset respectively. | |
6704 | ||
4b7703ad JB |
6705 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6706 | ||
6707 | GDB crash while stepping into function. | |
6708 | * infrun.c (handle_inferior_event): Refetch the current frame | |
6709 | after handling what.main_action, in case that pointer became | |
6710 | dangling. | |
6711 | ||
12c89474 JB |
6712 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
6713 | ||
6714 | Fix build failure of solaris-hosted cross debuggers. | |
6715 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
6716 | ||
1a3fd262 | 6717 | 2010-01-09 Daniel Gutson <dgutson@codesourcery.com> |
4c490650 JB |
6718 | |
6719 | Fix build failure on sparc-solaris. | |
6720 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
6721 | ||
75242ef4 JK |
6722 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
6723 | ||
6724 | Move some symfile code into subroutines. | |
6725 | * symfile.h (relative_addr_info_to_section_offsets) | |
6726 | (addr_info_make_relative): New prototypes. | |
6727 | * symfile.c (default_symfile_offsets): Move a part to ... | |
6728 | (relative_addr_info_to_section_offsets): ... this new function. | |
6729 | (default_symfile_offsets): Call it. | |
6730 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
6731 | this part to ... | |
6732 | (addr_info_make_relative): ... this new function. | |
6733 | ||
268a4a75 JK |
6734 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
6735 | ||
6736 | Add from_tty to solib_create_inferior_hook. | |
6737 | * infcmd.c (post_create_inferior): Move solib_add after | |
6738 | solib_create_inferior_hook. Pass from_tty to | |
6739 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
6740 | 0 from_tty and comment why. | |
6741 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
6742 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
6743 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
6744 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
6745 | from_tty. | |
6746 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
6747 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
6748 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
6749 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
6750 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
6751 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
6752 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
6753 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
6754 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
6755 | from_tty. | |
6756 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
6757 | solib_add. | |
6758 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
6759 | enable_break. | |
6760 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
6761 | parameter from_tty. | |
6762 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
6763 | it to ops->solib_create_inferior_hook. | |
6764 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
6765 | Move solib_add after solib_create_inferior_hook, call it now with | |
6766 | from_tty as 0. New comment there. | |
6767 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
6768 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
6769 | Likewise. | |
6770 | ||
cf00dfa7 VP |
6771 | 2010-01-08 Vladimir Prus <vladimir@codesourcery.com> |
6772 | ||
6773 | Fix multiexec race. | |
6774 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
6775 | with events ptid, not get_current_regcache. | |
6776 | ||
f91e5ac3 JB |
6777 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
6778 | ||
6779 | GDB crash with empty executable name (MinGW). | |
6780 | * source.c (openp): Add assert that parameter string is not NULL. | |
6781 | if parameter string is an empty string, then return with a failure | |
6782 | immediately. | |
6783 | ||
92b9ce5b JB |
6784 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
6785 | ||
6786 | Get rid of support for VAX Floats. | |
6787 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
6788 | (ada_vax_float_print_function): Delete. | |
6789 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
6790 | (ada_vax_float_print_function): Delete. | |
6791 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
6792 | (ada_print_type): Remove support for VAX floats. | |
6793 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
6794 | ||
268a4a75 | 6795 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
d24d8548 JK |
6796 | |
6797 | * stabsread.c (read_args): Handle zero arguments. | |
6798 | ||
f0f20949 JB |
6799 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
6800 | ||
6801 | Cannot find in-tree libiconv.a after reconfigure. | |
6802 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
6803 | that we can use, then cache the path to this archive. | |
6804 | * configure: Regenerate. | |
6805 | ||
6b6218c5 SS |
6806 | 2010-01-07 Stan Shebs <stan@codesourcery.com> |
6807 | ||
35b1e5cc SS |
6808 | Make tracepoint operations go through target vector. |
6809 | * target.h (enum trace_find_type): New enum. | |
6810 | (struct target_ops): New fields to_trace_init, | |
6811 | to_download_tracepoint, to_download_trace_state_variable, | |
6812 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
6813 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
6814 | to_set_disconnected_tracing. | |
6815 | (target_trace_init): New macro. | |
6816 | (target_download_tracepoint): New macro. | |
6817 | (target_download_trace_state_variable): New macro. | |
6818 | (target_trace_start): New macro. | |
6819 | (target_trace_set_readonly_regions): New macro. | |
6820 | (target_get_trace_status): New macro. | |
6821 | (target_trace_stop): New macro. | |
6822 | (target_trace_find): New macro. | |
6823 | (target_get_trace_state_variable_value): New macro. | |
6824 | (target_set_disconnected_tracing): New macro. | |
6825 | * target.c (update_current_target): Inherit and set defaults for | |
6826 | tracepoint operations. | |
6827 | * tracepoint.c (default_collect): Make globally visible. | |
6828 | (target_is_remote): Remove, along with all calls. | |
6829 | (tvariables_info): Call target_get_trace_state_variable_value. | |
6830 | (remote_set_transparent_ranges): Remove. | |
6831 | (trace_start_command): Call target_trace_init, | |
6832 | target_download_tracepoint, etc. | |
6833 | (download_tracepoint): Remove. | |
6834 | (trace_stop_command): Simplify. | |
6835 | (stop_tracing): Call target_trace_stop. | |
6836 | (get_trace_status): Call target_get_trace_status. | |
6837 | (trace_status_command): Add case for targets that cannot trace. | |
6838 | (finish_tfind_command): Change to take numerical arguments, call | |
6839 | target_trace_find. | |
6840 | (trace_find_command): Update call to finish_tfind_command. | |
6841 | (trace_find_pc_command): Ditto. | |
6842 | (trace_find_tracepoint_command): Ditto. | |
6843 | (trace_find_line_command): Ditto. | |
6844 | (trace_find_range_command): Ditto. | |
6845 | (trace_find_outside_command): Ditto. | |
6846 | (set_disconnected_tracing_value): Call | |
6847 | target_set_disconnected_tracing. | |
6848 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
6849 | (trace_error): Move from tracepoint.c. | |
6850 | (remote_get_noisy_reply): Ditto. | |
6851 | (free_actions_list_cleanup_wrapper): Ditto. | |
6852 | (free_actions_list): Ditto. | |
6853 | (remote_trace_init): New function. | |
6854 | (remote_download_tracepoint): New function. | |
6855 | (remote_download_trace_state_variable): New function. | |
6856 | (remote_trace_set_readonly_regions): New function. | |
6857 | (remote_trace_start): New function. | |
6858 | (remote_get_trace_status): New function. | |
6859 | (remote_trace_stop): New function. | |
6860 | (remote_trace_find): New function. | |
6861 | (remote_download_trace_state_variable): New function. | |
6862 | (remote_set_disconnected_tracing): New function. | |
6863 | (init_remote_ops): Add tracepoint operations. | |
6864 | ||
6b6218c5 SS |
6865 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
6866 | ||
089b4803 TG |
6867 | 2010-01-07 Tristan Gingold <gingold@adacore.com> |
6868 | ||
6869 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
6870 | (symbol_file_add_separate): Don't use offsets from objfile but | |
6871 | built an addr info. | |
6872 | ||
d5551862 SS |
6873 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
6874 | ||
6875 | Support disconnected tracing. | |
6876 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
6877 | * cli/cli-cmds.c (quit_command): Ditto. | |
6878 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
6879 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
6880 | (get_tracepoint_by_number_on_target): New function. | |
6881 | * remote.c (struct remote): New field disconnected_tracing. | |
6882 | (remote_disconnected_tracing_feature): New function. | |
6883 | (remote_protocol_features): Add DisconnectedTracing. | |
6884 | (struct uploaded_tp): New struct. | |
6885 | (uploaded_tps): New global. | |
6886 | (get_uploaded_tp): New function. | |
6887 | (find_matching_tracepoint): New function. | |
6888 | (remote_get_tracing_state): New function. | |
6889 | (remote_start_remote): Call it. | |
6890 | * tracepoint.c (disconnected_tracing): New global. | |
6891 | (trace_start_command): Initialize number_on_target. | |
6892 | (stop_tracing): New function, split out from... | |
6893 | (trace_stop_command): Call stop_tracing. | |
6894 | (get_trace_status): New function, split out from... | |
6895 | (trace_status_command): Call get_trace_status, add info on | |
6896 | disconnection behavior. | |
6897 | (disconnect_or_stop_tracing): New function. | |
6898 | (finish_tfind_command): Translate from number on target. | |
6899 | (trace_find_tracepoint_command): Translate to number on target. | |
6900 | (send_disconnected_tracing_value): New function. | |
6901 | (set_disconnected_tracing): New function. | |
6902 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
6903 | * NEWS: Mention disconnected tracing. | |
6904 | ||
15d123c9 TG |
6905 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
6906 | ||
6907 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
6908 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
6909 | * symfile.h (symbol_file_add_separate) | |
6910 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
6911 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
6912 | (reread_symbols): Use free_objfile_separate_debug. | |
6913 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
6914 | Adjust comment. | |
6915 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
6916 | (free_objfile_separate_debug): New prototypes. | |
6917 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
6918 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
6919 | functions. | |
6920 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
6921 | multiple separate debug objfile. | |
6922 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
6923 | debug objfiles. | |
6924 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
6925 | debug objfile. | |
6926 | (lookup_minimal_symbol_text): Ditto. | |
6927 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
6928 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
6929 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
6930 | debug objfiles. | |
6931 | ||
7a697b8d SS |
6932 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
6933 | ||
6934 | Add fast tracepoints. | |
6935 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
6936 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
6937 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
6938 | * breakpoint.c (tracepoint_type): New function. | |
6939 | (ALL_TRACEPOINTS): Use it. | |
6940 | (should_be_inserted): Ditto. | |
6941 | (bpstat_check_location): Ditto. | |
6942 | (print_one_breakpoint_location): Ditto. | |
6943 | (user_settable_breakpoint): Ditto. | |
6944 | (set_breakpoint_location_function): Ditto. | |
6945 | (disable_breakpoints_in_shlibs): Ditto. | |
6946 | (delete_trace_command): Ditto. | |
6947 | (print_it_typical): Add bp_fast_tracepoint case. | |
6948 | (bpstat_what): Ditto. | |
6949 | (print_one_breakpoint_location): Ditto. | |
6950 | (allocate_bp_location): Ditto. | |
6951 | (mention): Ditto. | |
6952 | (breakpoint_re_set_one): Ditto. | |
6953 | (disable_command): Ditto. | |
6954 | (enable_command): Ditto. | |
6955 | (check_fast_tracepoint_sals): New function. | |
6956 | (break_command_really): Call it. | |
6957 | (ftrace_command): New function. | |
6958 | (_initialize_breakpoint): Add ftrace command. | |
6959 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
6960 | * gdbarch.h, gdbarch.c: Regenerate. | |
6961 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
6962 | (i386_gdbarch_init): Use it. | |
6963 | * remote.c (struct remote_state): New field fast_tracepoints. | |
6964 | (PACKET_FastTracepoints): New packet config type. | |
6965 | (remote_fast_tracepoint_feature): New function. | |
6966 | (remote_protocol_features): Add FastTracepoints. | |
6967 | (remote_supports_fast_tracepoints): New function. | |
6968 | (_initialize_remote): Add FastTracepoints. | |
6969 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
6970 | * NEWS: Mention fast tracepoints. | |
6971 | ||
737a160e JB |
6972 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
6973 | ||
6974 | * gdb-gdb.py: New file. | |
6975 | ||
ce6cca6d MS |
6976 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
6977 | ||
6978 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
6979 | ||
0d15807d JK |
6980 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
6981 | ||
6982 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
6983 | ||
7803799a UW |
6984 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
6985 | ||
c8d5aac9 | 6986 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
6987 | and s390x-linux64. |
6988 | (s390-linux32-expedite): Define. | |
6989 | (s390-linux64-expedite): Define. | |
6990 | (s390x-linux64-expedite): Define. | |
6991 | * features/s390-acr.xml: New file. | |
6992 | * features/s390-fpr.xml: New file. | |
6993 | * features/s390-core32.xml: New file. | |
6994 | * features/s390-core64.xml: New file. | |
6995 | * features/s390x-core64.xml: New file. | |
6996 | * features/s390-linux32.xml: New file. | |
6997 | * features/s390-linux64.xml: New file. | |
6998 | * features/s390x-linux64.xml: New file. | |
6999 | * features/s390-linux32.c: New generated file. | |
7000 | * features/s390-linux64.c: New generated file. | |
7001 | * features/s390x-linux64.c: New generated file. | |
7002 | ||
7003 | * regformats/s390-linux32.dat: New generated file. | |
7004 | * regformats/s390-linux64.dat: New generated file. | |
7005 | * regformats/s390x-linux64.dat: New generated file. | |
7006 | * regformats/reg-s390.dat: Remove. | |
7007 | * regformats/reg-s390x.dat: Remove. | |
7008 | ||
7009 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
7010 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
7011 | (s390_target_wordsize): New function. | |
7012 | (s390_auxv_parse): Likewise. | |
7013 | (s390_get_hwcap): Likewise. | |
7014 | (s390_read_description): Likewise. | |
7015 | (_initialize_s390_nat): Install s390_auxv_parse and | |
7016 | s390_read_description. | |
7017 | ||
7018 | * s390-tdep.c: Include "features/s390-linux32.c", | |
7019 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
7020 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
7021 | (s390_register_call_saved): New function. | |
7022 | (s390_register_name): Remove. | |
7023 | (s390_register_type): Remove. | |
7024 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
7025 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
7026 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
7027 | (s390_pseudo_register_name): New function. | |
7028 | (s390_pseudo_register_type): New function. | |
7029 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
7030 | Handle full GPR pesudos and varying pseudo register numbers. | |
7031 | (s390_pseudo_register_write): Likewise | |
7032 | (s390x_pseudo_register_read): Remove. | |
7033 | (s390x_pseudo_register_write): Likewise. | |
7034 | (s390_register_group): Remove. | |
7035 | (s390_pseudo_register_group): New function. | |
7036 | (s390_regmap_gregset): Add GPR upper halves. | |
7037 | (s390x_regmap_gregset): Likewise. | |
7038 | (s390_regmap_fpregset): Likewise. | |
7039 | (s390_regmap_upper): New global variable. | |
7040 | (s390_upper_regset): New global variable. | |
7041 | (s390_upper_regset_sections): New global variable. | |
7042 | (s390_regset_from_core_section): Handle GPR upper halves. | |
7043 | (s390_core_read_description): New function. | |
7044 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
7045 | register information. Handle varying pseudo register numbers. | |
7046 | (s390_backchain_frame_unwind_cache): Likewise. | |
7047 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
7048 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
7049 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
7050 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
7051 | Handle varying pseudo register numbers. | |
7052 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
7053 | (s390_dwarf2_prev_register): New function. | |
7054 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
7055 | register information. Handle varying pseudo register numbers. | |
7056 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
7057 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
7058 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
7059 | (_initialize_s390_tdep): Initialize target descriptions. | |
7060 | ||
7061 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
7062 | (S390_NUM_REGS): Redefine to include upper half registers. | |
7063 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
7064 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
7065 | (tdesc_s390_linux32): Add declaration. | |
7066 | (tdesc_s390_linux64): Likewise. | |
7067 | (tdesc_s390x_linux64): Likewise. | |
7068 | ||
1b1818e4 UW |
7069 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
7070 | ||
7071 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
7072 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
7073 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
7074 | (ppc_linux_vmx_regset_sections): Likewise. | |
7075 | (ppc_linux_fp_regset_sections): Likewise. | |
7076 | ||
7077 | * corelow.c (get_core_register_section): Constify arguments. | |
7078 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
7079 | of hard-coded platform-specific register section names. | |
7080 | ||
dcbf108f UW |
7081 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
7082 | ||
7083 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 7084 | a register, assume the least-significant part is used. |
dcbf108f UW |
7085 | (write_pieced_value): Likewise. |
7086 | ||
704e9165 UW |
7087 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
7088 | ||
7089 | * printcmd.c: Include "arch-utils.h". | |
7090 | (do_one_display): Re-parse expression if current architecture changed. | |
7091 | ||
c54eabfa JK |
7092 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
7093 | Joel Brobecker <brobecker@adacore.com> | |
7094 | ||
7095 | * gdbtypes.c (check_typedef): New comment on type length. | |
7096 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
7097 | comment on type length. | |
7098 | (value_primitive_field): Keep the original TYPE value, new comment. | |
7099 | ||
50cb2941 JK |
7100 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7101 | ||
7102 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
7103 | p_start. Change != comparisons to > and < comparisons. | |
7104 | ||
be66db07 JK |
7105 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7106 | ||
7107 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
7108 | ||
abd775ce JB |
7109 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
7110 | ||
7111 | Update the copyright hearder to add year 2010 for most GDB files. | |
7112 | ||
6479260d JB |
7113 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
7114 | ||
7115 | Fix build failure in inf-ptrace.c. | |
7116 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
7117 | ||
4a70f654 JB |
7118 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
7119 | ||
7120 | * top.c (print_gdb_version): Update copyright year. | |
7121 | ||
b9ee2233 JB |
7122 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
7123 | ||
7124 | Fix break *FUN'address thread NUM. | |
7125 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
7126 | ||
70575d34 JB |
7127 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
7128 | ||
7129 | Fix break *FUN'address task NUM. | |
7130 | * ada-lex.l (task): New rule. | |
7131 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
7132 | been built before using it. | |
7133 | ||
e1e4d4a4 | 7134 | For older changes see ChangeLog-2009. |
c906108c SS |
7135 | \f |
7136 | Local Variables: | |
7137 | mode: change-log | |
7138 | left-margin: 8 | |
7139 | fill-column: 74 | |
7140 | version-control: never | |
57da7796 | 7141 | coding: utf-8 |
c906108c | 7142 | End: |