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